123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="PageList">
	<div class="PageListItem PageListTemplate_animeList PageListID1016 PageListTriggerOpen PageListItemHover PageListItemOpen">
	<a href="#" title="/anime/" class="PageListPage label">
		<span class="label_title">Parent</span>
	</a>
	<span class="PageListNumChildren detail">2</span>
</div>


<div class="PageList" style="overflow: visible;">
	<div class="PageListItem PageListTemplate_anime PageListID1017 PageListTriggerOpen PageListItemOpen">
		<i class="fa fa-bars"></i>
		<a href="#" title="/anime/gintama-2011/" class="PageListPage label">
			<span class="label_title">Child 1</span>
		</a>
		<span class="PageListNumChildren detail">1</span>
		<ul class="PageListActions actions" style="display: inline; opacity: 1;">
			<li class="PageListActionEdit"><a href="http://example.com" target="_blank">Edit</a></li>
			<li class="PageListActionNew"><a href="#">New</a></li>
			<li class="PageListActionMove"><a href="#">Move</a></li>
			<li class="PageListActionExtras ui-priority-secondary">
				<a href="#" class="clickExtras"><i class="fa fa-angle-right"></i></a>
			</li>
			<li class="PageListActionExtra PageListActionUnpublish">
				<a class="PageListActionExtra PageListActionUnpublish" href="#" style="display: inline-block;">Unpub</a>
			</li>
			<li class="PageListActionExtra PageListActionHide">
				<a class="PageListActionExtra PageListActionHide" href="#" style="display: inline-block;">Hide</a>
			</li>
			<li class="PageListActionExtra PageListActionLock">
				<a class="PageListActionExtra PageListActionLock" href="#" style="display: inline-block;">Lock</a>
			</li>
			<li class="PageListActionExtra PageListActionTrash">
				<a class="PageListActionExtra PageListActionTrash" href="#" style="display: inline-block;">Trash</a>
			</li>
		</ul>
	</div>

	<div class="PageListItem PageListTemplate_anime PageListID1021">
		<i class="fa fa-bars"></i>
		<a href="#" title="/anime/gintama/" class="PageListPage label"><span class="label_title">Child 2</span></a>
		<span class="PageListNumChildren detail"></span>
		<ul class="PageListActions actions" style="display: inline; opacity: 1;">
			<li class="PageListActionEdit"><a href="http://example.com" target="_blank">Edit</a></li>
			<li class="PageListActionNew"><a href="#">New</a></li>
			<li class="PageListActionMove"><a href="#">Move</a></li>
			<li class="PageListActionExtras ui-priority-secondary">
				<a href="#" class="clickExtras"><i class="fa fa-angle-right"></i></a>
			</li>
			<li class="PageListActionExtra PageListActionUnpublish">
				<a class="PageListActionExtra PageListActionUnpublish" href="#" style="display: inline-block;">Unpub</a>
			</li>
			<li class="PageListActionExtra PageListActionHide">
				<a class="PageListActionExtra PageListActionHide" href="#" style="display: inline-block;">Hide</a>
			</li>
			<li class="PageListActionExtra PageListActionLock">
				<a class="PageListActionExtra PageListActionLock" href="#" style="display: inline-block;">Lock</a>
			</li>
			<li class="PageListActionExtra PageListActionTrash">
				<a class="PageListActionExtra PageListActionTrash" href="#" style="display: inline-block;">Trash</a>
			</li>
		</ul>
		
	</div>
</div>
	</div>


<div class="overlay"></div>
            
          
!
            
              
/********************************************************************************************************
 * 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; 
}
.PageList i.fa + span {
	margin-left: 2px; 
}



.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 .PageListStatusUnpublished a.PageListPage > span, 
.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
 *
 */
.PageListRoot .PageList .PageListItemOpen > ul.PageListActions {
	display: inline;
}

.PageListUseHoverActions .PageList .PageListItemOpen > ul.PageListActions {
	display: none;
}
.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; 
}

#PageListContainer.PageListContainerPage .PageListActionTrash {
	/* trash not applicable when page list doesn't start from root */
	display: none;
}

/********************************************************************************************************
 * 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; 
}

.PageListActionExtras i.fa {
	margin-left: 3px;
	margin-right: 2px;
}
.PageListActionExtras i.fa-flip-horizontal {
	margin-left: 2px;
	margin-right: 3px;
}


/********************************************************************************************************
 * 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; 
}







.PageList .PageList {
    margin-left: 2em
}

.PageList .PageListStatusIcon {
    color: #6c8dae;
    font-size: 14px
}

.PageList .PageListActions,.PageList .PageListerActions {
    position: relative;
    top: -1px;
    padding-left: 0;
    line-height: 1.4
}

.PageList .ProcessListerTable tr.open {
    background-color: #f0f3f7
}

.PageList .PageListActions li,.PageList .PageListerActions li {
    border: none;
    padding: 0;
    margin: 0 3px 0 0
}

.PageList .PageListActions li li:first-child:before,.PageList .PageListerActions li li:first-child:before {
    content: "\203A";
    margin-right: 3px;
    color: #6c8dae
}

.PageList .PageListActions a,.PageList .PageListMoveNote a,.PageList .PageListerActions a {
    color: #fff;
    border-radius: 3px;
    background: #e83561;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    display: inline-block
}

.PageList .PageListActions a:hover,.PageList .PageListMoveNote a:hover,.PageList .PageListerActions a:hover {
    color: #fff;
    background: #d21846;
    text-decoration: none
}

.PageList .PageListMoveNote {
    cursor: move
}

.PageList .PageListActionMore a {
    margin-top: .25em
}

.PageList .PageListSelectName {
    margin-right: .5em
}

.PageList .PageListSelectName i {
    margin-right: .25em
}

.PageList .PageListItem>a.PageListPage {
    line-height: 1.5em;
    color: #7a002b;
    opacity: 1
}

.PageList .PageListItem>a.PageListPage:active {
    color: #e83561
}

.PageList .PageListItem>a.PageListPage i {
    padding: 0 .25em 0 0;
    color: #a9adb5
}

.PageList .PageListItem>a.PageListPage i.PageListStatusIcon {
    color: #a9adb5
}

.PageList .PageListItem .PageListNumChildren {
    font-size: 13px;
    color: #6c8dae
}

.PageList .PageListItem.PageListItemHover>a.PageListPage,.PageList .PageListItem>a.PageListPage:hover {
    color: #d21846;
    text-decoration: none
}

.PageList .PageListItem.PageListItemHover>a.PageListPage i,.PageList .PageListItem>a.PageListPage:hover i {
    text-decoration: none
}

.PageList .PageListItem .PageListLoading {
    top: 5px
}

.PageList .PageListItemOpen.PageListItemHover>a.PageListPage,.PageList .PageListItemOpen.PageListItemHover>a.PageListPage:hover,.PageList .PageListItemOpen>a.PageListPage,.PageList .PageListItemOpen>a.PageListPage:hover {
    color: #bb153e;
    background-color: transparent
}

.PageList .PageListStatusHidden>a.PageListPage {
    opacity: .6
}

.PageList .PageListStatusTemp:not(.PageListItemOpen)>a.PageListPage {
    opacity: .3
}

.PageList .PageListPlaceholderItem {
    border: none;
    padding: 0
}

.PageList .PageListPagination {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -4px;
    padding: 0;
    list-style: none
}

.PageList>.uk-pagination {
    margin: 0
}

.PageList>.uk-pagination li {
    font-size: 12px;
    margin: 0 3px 0 0;
    padding: 0
}

.PageList>.uk-pagination a {
    padding: 2px 6px;
    padding-left: 9px;
    padding-right: 9px;
    border-radius: 3px
}

.PageList>.uk-pagination .PageListLoading {
    display: inline-block
}

.PageListSelectHeader .PageListActions {
    padding-left: 4px
}



/********************************************************************************************************
 * Custom css
 * responsive PageListActions
 ********************************************************************************************************/

.PageList {
	margin-left: 50px;
}

.PageList .PageListItem {
	border-bottom: 1px solid #ccc;
	display: flex;
	justify-items: center;
	min-height: 2.5em;
	height: auto;
	padding: 0;
	width: 100%;
	position: relative;
}

.PageList .PageListItem * {
	display: flex!important;
	align-items: center;
}

/* PageListActions toggle button */
.PageList .PageListItem .fa-bars {
	display: inline;
	cursor: pointer;
	padding: 0 20px;
	position: relative;
    z-index: 9;
}

.PageList .PageListItem .fa-bars:hover {
	background: #eee;
}

.PageList .PageListItem.open .fa-bars {
	color: #fff;
	background: #840020;
}

.PageList .open .PageListActions {
	background: #840020;
	display: flex !important;
	flex-direction: column;
	min-width: 100px;
	padding: 5px;
	position: absolute;
	top: 45px;
	z-index: 999;
}
	
.PageList .PageListActions{
	align-items: stretch;
	display: none !important;
}

.PageList .open .PageListActions li {
	margin: 3px;
}

.PageList .PageListActions a {
	justify-items: stretch;
	display: flex;
	min-height: 3em;
	height: 100%;
	border-radius: 0;
	padding: 0 1em;
	width: 100%;
}

.overlay {
	display: none;
}

.overlay.visible {
	display: block;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.25);
}
/* bigger than 500px */
@media (min-width: 500px) {	
	.PageList .PageListItem .fa-bars {
		display: none!important;
	}

	.PageList .PageListActions,
	.PageList .open .PageListActions {
		display: none !important;
	}
	
	.PageList .open-large .PageListActions {
		align-items: stretch;
		background: transparent;
		display: flex !important;
		flex-direction: row;
		flex-wrap: wrap;
		margin-left: 0.5em;
		padding: 0;
		position: static;
	}
	
	.PageList .open .PageListActions .PageListActionExtras {
		display: flex !important;
	}

	.PageList .PageListActions li {
		margin: 1px 3px 1px 0!important;
	}

	.PageList .PageListActions a {
		width: auto;
	}
	.overlay, .overlay.visible {
		display: none;
	}
}
            
          
!
            
              window.onload = function() {
	var toggler = document.querySelectorAll(".fa-bars");
	var overlay = document.querySelector(".overlay");
	for(let i = 0, len = toggler.length; i < len; i++) {
		toggler[i].onclick = function() {
			var extraActions = this.parentNode;
			overlay.classList.add("visible");

			if(extraActions.classList.contains("open")) {
				extraActions.classList.remove("open");
				overlay.classList.remove("visible");
			}
			else {
				if(document.querySelector(".open")) {
					document.querySelector(".open").classList.remove("open");
				}
				extraActions.classList.add("open");
			}
		}
	}
	
	var pages = document.querySelectorAll(".PageListItem");
	var hoverClass = "open-large";
	for(let i = 0, len = pages.length; i < len; i++) {
		pages[i].onmouseover = function(e) {
			this.classList.add(hoverClass);
		}
		pages[i].onmouseout = function(e) {
			this.classList.remove(hoverClass);
		}
	}
	
	overlay.onclick = function(e) {
		if(document.querySelector(".open")) {
			document.querySelector(".open").classList.remove("open");
			overlay.classList.remove("visible");
		}
	}
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console