
/********************************************************************************************************
 * PageList
 *
 ********************************************************************************************************/

/**
 * Disable any inherited borders
 *
 */
.PageList a {
	border: none !important; 
}

/**
 * When in Select mode, set off the header from the list and anything above it with a margin
 *
 */
.PageListSelectHeader {
	margin: 0; 
}

.PageListSelectHeader .PageListSelectName {
	display: inline; 
	padding-right: 0.25em; 
}
.PageListSelectHeader .PageListSelectName:empty {
	display: none; 
}

.PageListRoot > .PageList {
	margin-top: 0.5em; 
}

/**
 * Indentation for PageLists
 *
 */
.PageList .PageList {
	margin: 0 0 0 2em;
}

/**
 * If the root PageList is hidden (like on the 'children' tab in PageEdit) then don't give it any indent
 *
 */
.PageListRootHidden > .PageList {
	margin-left: 0; 
}

/**
 * An individual list item in the pageList
 *
 * We use padding rather than line height so that PageListPlaceholderItem instances can be inserted
 * without changing the visual line height
 *
 */
.PageListItem {
	padding-top: 3px; 
	padding-bottom: 3px; 
	line-height: 1em; 
}
.PageListItem > a span + span:before {
	content: ', ';
}

/**
 * Style for the children label and notes
 *
 */
.PageList .PageListNumChildren,
.PageListItemOpen span.PageListNote,
.PageListSorting .PageListSortItem span.PageListMoveNote {
	font-size: 0.9166em; 
	padding-left: 0.25em; 
}

.PageList i.icon,
.PageList i.fa, 
.PageList .PageListStatusIcon {
	font-size: 14px; 
}
.PageList i.icon {
	display: inline-block;
	width: 18px;
}
.PageList .PageListStatusIcon {
	margin-left: 4px; 
}



/**
 * An animated GIF loading image that appears during ajax calls
 *
 */
.PageListLoading {
	display: inline; 
	padding: 0 9px 9px 0; 
	background: url(images/loading.gif) top left no-repeat; 
	position: relative;
	top: 3px; 
}

/*
.PageList .PageListStatusLocked a.PageListPage,
.PageList .PageListStatusLocked a.PageListPage:hover {
	padding-right: 10px;
}
*/

.PageList .PageListAccessOff a.PageListPage,
.PageList .PageListAccessOff a.PageListPage:hover {
	/*
	padding-right: 10px;
	background: url(images/lock.gif) center right no-repeat; 
	*/
}

.PageList .PageListAccessOn a.PageListPage,
.PageList .PageListAccessOn a.PageListPage:hover {
	/*
	padding-right: 13px;
	background: url(images/unlock.png) center right no-repeat; 
	*/
}


.PageList .PageListID7 a.PageListPage,
.PageList .PageListID7 a.PageListPage:hover,
.PageList .PageListID7 + .PageList a.PageListPage,
.PageList .PageListID7 + .PageList a.PageListPage:hover {
	/* don't show icon on trash page to avoid confusion */
	padding-right: 0;
	background: none; 
}



.PageList .PageListStatusSystem a.PageListPage { }

.PageList .PageListStatusUnpublished a.PageListPage {
	text-decoration: line-through; 
}

.PageList .PageListStatusHidden a.PageListPage {
	/* alternate color when page has a 'hidden' status? */
}


/**
 * When a page is open, give it a slight yellow background color to highlight the fact
 *
.PageList .PageListItemOpen > a.PageListPage {
	background-color: #ffffdd; 
}
 */

/**
 * If a page list note is present, it should be hidden until item is open
 *
 */
.PageListItem span.PageListNote {
	display: none; 
}

/**
 * Display note when item is open
 *
 */
.PageListItemOpen span.PageListNote {
	display: inline; 
}



/********************************************************************************************************
 * PageListActions
 *
 ********************************************************************************************************/

/** 
 * Default style for the UL actions list
 *
 */
.PageList .PageListItem .PageListActions {
	display: none; 
	margin: 0;
	padding-left: 0.25em; 
}

/**
 * Default style for the items in the actions list
 *
 */
.PageListActions li {
	display: inline !important;
	border-left: 1px solid #bbb;
	padding: 0 1px;
	text-transform: lowercase;
}

/**
 * Default style for links in actions list
 *
 */
.PageListActions li a {
	padding: 1px 3px 1px 3px;
}

/**
 * When an item is open, this style ensures that the PageListActions become visible
 *
 */
.PageList .PageListItemOpen > ul.PageListActions,
.PageListSelectHeader .PageListActions {
	display: inline !important;
}

/**
 * Specific to ul.actions for actions that appear at end of list, i.e. More action
 *
 */
.PageListItem + .PageListActions {
	margin: 0 !important; 
}

.PageListActionTrash {
	float: right;
}

/********************************************************************************************************
 * PageListPagination
 *
 ********************************************************************************************************/

.PageListPagination {
	font-size: 0.9166em; 
	margin: 0.25em 0 !important;
}

.PageListPagination li {
	display: inline;
	margin: 0 0.25em; 
}

.PageListPagination li a {
	padding: 0.1em 0.5em;
}

.PageListPagination li a:hover,
.PageListPagination li.PageListPaginationCurrent a {
}


/********************************************************************************************************
 * PageListSort
 *
 ********************************************************************************************************/

/**
 * When sorting/moving, highlight the page name in yellow
 *
 */
.PageListSortItem > a.PageListPage {
	background-color: #ffffaa; 
	cursor: move; 
}

/**
 * Don't display actions on any pages when sorting, and don't display numChildren on page being moved
 *
 */
.PageListSorting .PageList .PageListItem ul.actions,
.PageList .PageListSortItem span.PageListNumChildren {
	display: none !important; 
}

/**
 * Remove the text underline when sorting
 *
 */
.PageListSorting .PageListItem a.PageListPage {
	text-decoration: none;
}

/**
 * An invisible placeholder that is automatically inserted above and below open items
 * 
 * This allows for child items where children don't already exist 
 *
 */
.PageListPlaceholder .PageListPlaceholderItem {
	/*background: #eee; */
	height: 6px; /* see .PageListItem */ 
	margin: 0; 
	padding: 0; 
}

/** 
 * Prevents a 6px gap from appearing below a open item 
 *
 */
.PageListPlaceholder + .PageListItem,
.PageListPlaceholder + .PageList {
	margin-top: -6px !important; 
}

/**
 * Last item in a list before it retreats to the parent list, prevents a visual margin below it. 
 *
 */
.PageListPlaceholder:last-child {
	margin-bottom: -6px; 
}


/** 
 * The hover placeholder that appears in potential targets as you are sorting/moving a PageListItem
 *
 */
.PageListSortPlaceholder {
	background-color: #ffffcc; 
	height: 1em; 
	width: auto; 
	border-left: 2px solid #999; 
}


/********************************************************************************************************
 * PageListXHTML
 * The following are for the non-javascript / XHTML version of PageList
 *
 ********************************************************************************************************/

.PageListXHTML .PageList .PageListItem {
	margin: 0; 
	padding: 0;
}

.PageListXHTML .PageList .PageListItem ul.actions {
	display: inline; 
}

.PageListXHTML .PageList .PageListItem ul.actions .PageListActionMove {
	display: none; 
}
