"colloect"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/alag/pen/YNrJjv?depth=everything&order=popularity&page=98&q=services&show_forks=false" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans:400,700'> <style class="cp-pen-styles">/* ---- setup ---- */ body { font-family: open sans, sans-serif; } .container { margin: 2rem auto; max-width: 1088px; } @media screen and (max-width: 1121px) { .container { max-width: 878px; } } @media screen and (max-width: 911px) { .container { max-width: 668px; } } .container * { box-sizing: border-box; } .level { display: block; } .level-wrap { padding: 8px; margin-bottom: 2rem; position: relative; display: inline-block; } .level:nth-child(n+2) .level-wrap:before { content: " "; position: absolute; top:-2px; left:-2px; width: 100%; height: 10px; border: 2px solid #0385AA; border-bottom: none; background: white; } .level .col--1-3 { margin-left: 220px; border-left: 2px dashed #efefef; padding-left: 10px; height:100%; } .level .col--1-3:first-of-type { float: left; border: none; margin: 0; padding: 0; } .level ul { margin: 0; padding:0; flex-wrap: wrap; display: flex; align-items: stretch; } /* ---- .element-item ---- */ .element-item { position: relative; display: inline-block; width: 200px; margin: 5px; background: #ffffff; border: 2px solid #E5E5E5; color: black; } /* .element-item * { -webkit-transition: background .3s, border .3s; transition: background .3s, border .3s; } */ .info { position: relative; display: block; height:100%; } .info-header { display: block; background: #E5E5E5; padding: 5px 35px 5px 10px; color: black; position: relative; } .info h4 { margin: 0 0 2px; font-size: 13px; } .info p { margin: 10px 0; font-size: 12px; } .info p:last-child { margin: 10px 0 0 0; } .info-details { padding: 0 10px; margin-bottom: 40px; } .info-btn { position: absolute; bottom: 0; left: 10px; background: #0385AA; color: white; border-radius: 100px; display: flex; align-items: center; justify-content: center; text-decoration: none; width: 20px; height: 20px; font-size: 12px; margin: -2px 0 10px -2px; } .element-item .context { position: absolute; border-left: 1px solid rgba(0, 0, 0, 0.05); background: #E5E5E5; text-align: center; width: 26px; height: 100%; padding: 4px 2px 4px 4px; right: 0; top: 0; } .element-item .context:after { content: " "; position: absolute; width: 0; height: 0; border-bottom:15px solid transparent; border-top:0px solid transparent; border-right:26px solid #E5E5E5; right: 0px; bottom: -15px; } /* --- active item --- */ .item-active .element-item, .item-list .selection { border: 2px solid #0385AA; background: #f5f5f5; } .item-active .info-header, .item-active .context, .item-list .selection .info-header, .item-list .selection .context { background: #0385AA; color: white; } .item-active .context:after, .item-list .selection .context:after{ border-right-color: #0385AA; } .item-list .selection { opacity: 0.5; background: white; pointer-events: none; } .item-active .element-item:empty{ border-color: #E5E5E5; min-height: 122px; background: repeating-linear-gradient( 45deg, #F2F2F2, #F2F2F2 10px, #E5E5E5 10px, #E5E5E5 20px ); } .item-active .element-item:empty:before { content: "Select an Org Unit"; color: grey; text-align: center; display: block; position: absolute; font-size: 12px; width: 100%; top: calc(50% - 14px); background: #e5e5e5; padding: 5px 0; } .item-active .element-item { opacity: 1; } .expanded .item-active:after { content: " "; position: absolute; height: 100%; left: 110px; bottom: -35px; border-left: 2px solid #0385AA; z-index: -1; } .expanded:last-of-type .item-active:after { display: none; } .item-list .selection:after { content: " "; position: absolute; width: 0px; height: 0px; border-top:6px solid transparent; border-bottom:0px solid transparent; border-left:14px solid #0385AA; left: -12px; bottom: 2px; -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -o-transform: rotate(-90deg); -ms-transform: rotate(-90deg); transform: rotate(-90deg); transform-origin: 50% 50%; } /* ---- hover ---- */ .info-header:hover, .info-header:hover .context, .info-btn:hover { cursor: pointer; background: #444444; color: white; } .element-item.hover .context:after { border-right-color: #444444; } .element-item.hover { border-color: #444444; } .item-list .element-item .info-header:hover, .item-list .element-item .info-header:hover .context, .item-list .element-item .info-header:hover h4 { cursor: pointer; background: #444444; color: white; } .item-list .element-item:hover .info-header:hover + .context:after{ border-right-color: #444444; } .item-list .element-item:hover { background: #fdfdfd; } .hover-expanded .item-active:after, .hover-children .level-wrap:before { border-color: #444444 !important; } /* ---- misc ---- */ .hidden { display: none; } .org-name { color: #0385AA; } .selection .org-name, .item-active .org-name{ color: #ffffff; } /* dsiable arrow thing */ .element-item .context:after { display: none; }</style></head><body> <section class="container"> <div id="level--0" class="level expanded"> <div class="level-wrap"> <div id="level--0--item-active" class="col--1-3 item-active"> <div class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Chief Executive <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i> </h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </div> </div> </div> </div> </div> <div id="level--1" class="level"> <div class="level-wrap"> <div id="level--1--item-active" class="col--1-3 item-active"> <div class="element-item"></div> </div> <div id="level--1--item-list" class="col--1-3 item-list"> <ul> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Digital Nat Facilities & Collections <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Environment Energy & Resources <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Finance & Services <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Future Industries <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Science Strategy & People <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Information Management & Technology <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> </ul> </div> </div> </div> <div id="level--2" class="level hidden"> <div class="level-wrap"> <div id="level--2--item-active" class="col--1-3 item-active"> <div class="element-item"></div> </div> <div id="level--2--item-list" class="col--1-3 item-list"> <ul> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Finance & Services <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Future Industries <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Science Strategy & People <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> </ul> </div> </div> </div> <div id="level--3" class="level hidden"> <div class="level-wrap"> <div id="level--3--item-active" class="col--1-3 item-active"> <div class="element-item"></div> </div> <div id="level--3--item-list" class="col--1-3 item-list"> <ul> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Digital Nat Facilities & Collections <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Environment Energy & Resources <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Finance & Services <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Future Industries <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Science Strategy & People <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> <li class="element-item"> <div class="info"> <div class="info-header"> <h4 class="org-name">Information Management & Technology <i class="fa fa-chevron-right" aria-hidden="true" style="font-size: 11px;"></i></h4> <div class="context"> <i class="fa fa-building-o" title="National facilities" aria-hidden="true"></i> </div> </div> <div class="info-details"> <p class="leader-name">Placeholder Name</p> </div> <a href="#" class="info-btn"> <i class="fa fa-info" aria-hidden="true"></i> </a> </div> </li> </ul> </div> </div> </div> </section> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script><script src='https://use.fontawesome.com/be053ed347.js'></script> <script >$(document).ready(function(){ // active classes var $LevelParentClass = '.level'; var $itemListParentClass = '.item-list'; var $itemActiveParentClass = '.item-active'; // move items function moveSelected($itemSelected) { var $levelParent = $($itemSelected).closest($LevelParentClass); var $itemListParent = $($itemSelected).closest($itemListParentClass); var $itemContainer = $($itemSelected).parent(); var $destination = $($itemListParent).siblings($itemActiveParentClass).children().first(); var $newContent = $($itemSelected).html(); // update selected content section $($destination).html($newContent); // fade animation to look like refresh $($itemListParent).siblings($itemActiveParentClass).fadeOut(0).fadeIn(300); $($levelParent).nextAll().not('.hidden').fadeOut(0).fadeIn(300); // toggle active item $($itemContainer).children().removeClass('selection'); $($itemSelected).addClass('selection'); // show next row/level (in the real version this would actually load new items) $($levelParent).next().removeClass('hidden'); $($levelParent).addClass('expanded'); } // smooth scroll to current level function scrollParent($scrollTarget){ var target = $scrollTarget; event.preventDefault(); if (target.length) { $('html, body').animate({ scrollTop: target.offset().top-15 }, 700); return false; } } // listeners $(".info-header").on("click", function(){ scrollParent($(this).closest('.level')); moveSelected($(this).closest('.element-item')); }); $(document).on('mouseenter','.info-header', function (event) { $(this).closest('.element-item').addClass('hover'); $(this).closest('.level').addClass('hover-expanded'); $(this).closest('.level').next('.level').addClass('hover-children'); }).on('mouseleave','.info-header', function(){ $(this).closest('.element-item').removeClass('hover'); $(this).closest('.level').removeClass('hover-expanded'); $(this).closest('.level').next('.level').removeClass('hover-children'); }); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: