UNPKG

styles

Version:

Compile your LESS stylesheets using JSON and underscore.

774 lines (746 loc) 15.8 kB
.nav { margin-left: 0; margin-bottom: 0; padding-left: 0; list-style: none; } .nav:before, .nav:after { content: " "; /* 1 */ display: table; /* 2 */ } .nav:after { clear: both; } .nav > li { display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover { text-decoration: none; background-color: #eeeeee; } .nav > .pull-right { float: right; } .nav-tabs { border-bottom: 1px solid #ddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 20px; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > .active > a, .nav-tabs > .active > a:hover { color: #555555; background-color: #ffffff; border: 1px solid #ddd; border-bottom-color: transparent; cursor: default; } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 5px; } .nav-pills > li + li > a { margin-left: 2px; } .nav-pills > .active > a, .nav-pills > .active > a:hover { color: #fff; background-color: #428bca; } .nav-stacked > li { float: none; } .nav-stacked > li + li > a { margin-top: 2px; margin-left: 0; } .nav-justified { max-height: 40px; } .nav-justified > li { float: none; display: table-cell; width: 1%; text-align: center; } .nav-list > li > a { margin-bottom: -1px; border: 1px solid #e5e5e5; } .nav-list > li:first-child > a { border-top-left-radius: 4px; border-top-right-radius: 4px; } .nav-list > li:last-child > a { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; } .nav-list > .active > a, .nav-list > .active > a:hover { z-index: 2; color: #fff; background-color: #428bca; border-color: #428bca; } .nav > .disabled > a { color: #999999; } .nav > .disabled > a:hover { text-decoration: none; background-color: transparent; cursor: default; } .nav-header { display: block; padding: 3px 15px; font-size: 11px; font-weight: bold; line-height: 20px; color: #999999; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); text-transform: uppercase; } .nav li + .nav-header { margin-top: 9px; } .nav .divider { height: 1px; margin: 9px 1px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #ffffff; } /* // Prevent IE8 from misplacing imgs // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989 .nav > li > a > img { max-width: none; } // Dropdowns // ------------------------- .nav-tabs .dropdown-menu { // Remove the top rounded corners here since there is a hard edge above the menu .border-top-radius(0); } // Default dropdown links // ------------------------- // Make carets use linkColor to start .nav .dropdown-toggle .caret { border-top-color: @link-color; border-bottom-color: @link-color; margin-top: 8px; } .nav .dropdown-toggle:hover .caret { border-top-color: @link-color-hover; border-bottom-color: @link-color-hover; } // Active dropdown links // ------------------------- .nav .active .dropdown-toggle .caret { border-top-color: #fff; border-bottom-color: #fff; } .nav-tabs .active .dropdown-toggle .caret { border-top-color: @gray; border-bottom-color: @gray; } // Active:hover dropdown links // ------------------------- .nav > .dropdown.active > a:hover { cursor: pointer; } // Open dropdowns // ------------------------- .nav-tabs .open .dropdown-toggle, .nav-pills .open .dropdown-toggle, .nav > li.dropdown.open.active > a:hover { color: #fff; background-color: @grayLight; border-color: @grayLight; } .nav li.dropdown.open .caret, .nav li.dropdown.open.active .caret, .nav li.dropdown.open a:hover .caret { border-top-color: #fff; border-bottom-color: #fff; .opacity(100); } // Dropdowns in stacked tabs .tabs-stacked .open > a:hover { border-color: @grayLight; } // Tabbable tabs // ------------------------- // Clear any floats .tabbable { .clearfix(); } // Show/hide tabbable areas .tab-content > .tab-pane, .pill-content > .pill-pane { display: none; } .tab-content > .active, .pill-content > .active { display: block; } */ .navbar { padding: 15px; background-color: #eeeeee; border-radius: 4px; } .navbar:before, .navbar:after { content: " "; /* 1 */ display: table; /* 2 */ } .navbar:after { clear: both; } .navbar .nav { margin-top: 15px; } .navbar .nav > li > a { padding-top: 15px; padding-bottom: 15px; color: #777777; line-height: 20px; } .navbar .nav > li > a:hover, .navbar .nav > li > a:focus { color: #333333; background-color: transparent; } .navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus { color: #555555; background-color: #d5d5d5; } .navbar-static-top { position: static; border-radius: 0; } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; border-radius: 0; } .navbar-fixed-top { top: 0; } .navbar-fixed-bottom { bottom: 0; } .navbar .brand { display: inline-block; padding: 7px 15px; font-size: 18px; font-weight: 500; line-height: 20px; color: #777777; } .navbar .brand:hover { color: #5e5e5e; text-decoration: none; background-color: transparent; } .btn-navbar { float: right; padding: 10px 12px; background-color: #ddd; border: 0; border-radius: 4px; } .btn-navbar .icon-bar { display: block; width: 20px; height: 2px; background-color: #fff; border-radius: 1px; } .btn-navbar .icon-bar + .icon-bar { margin-top: 3px; } .navbar .divider-vertical { height: 50px * 0.6; margin: 10px 9px; border-left: 1px solid #e1e1e1; border-right: 1px solid #fbfbfb; } .navbar-form { margin-top: 9px; margin-bottom: 9px; } .navbar .nav > li > .dropdown-menu { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; } .navbar-fixed-bottom .nav > li > .dropdown-menu { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .navbar .nav li.dropdown > a:hover .caret { border-top-color: #333333; border-bottom-color: #333333; } .navbar .nav li.dropdown.open > .dropdown-toggle, .navbar .nav li.dropdown.active > .dropdown-toggle, .navbar .nav li.dropdown.open.active > .dropdown-toggle { background-color: #d5d5d5; color: #555555; } .navbar .nav li.dropdown > .dropdown-toggle .caret { border-top-color: #777777; border-bottom-color: #777777; } .navbar .nav li.dropdown.open > .dropdown-toggle .caret, .navbar .nav li.dropdown.active > .dropdown-toggle .caret, .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret { border-top-color: #555555; border-bottom-color: #555555; } .navbar .pull-right > li > .dropdown-menu, .navbar .nav > li > .dropdown-menu.pull-right { left: auto; right: 0; } .navbar-inverse { background-color: #222222; } .navbar-inverse .brand { color: #999999; } .navbar-inverse .brand:hover { color: #808080; background-color: transparent; } .navbar-inverse .navbar-text { color: #999999; } .navbar-inverse .nav > li > a { color: #999999; } .navbar-inverse .nav > li > a:hover, .navbar-inverse .nav > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .nav > .active > a, .navbar-inverse .nav > .active > a:hover, .navbar-inverse .nav > .active > a:focus { color: #ffffff; background-color: #222222; } .navbar-inverse .btn-navbar { background-color: #444; } .navbar-inverse .divider-vertical { border-left-color: #151515; border-right-color: #2f2f2f; } .navbar-inverse .nav li.dropdown.open > .dropdown-toggle, .navbar-inverse .nav li.dropdown.active > .dropdown-toggle, .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle { background-color: #222222; color: #ffffff; } .navbar-inverse .nav li.dropdown > a:hover .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .nav li.dropdown > .dropdown-toggle .caret { border-top-color: #999999; border-bottom-color: #999999; } .navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret, .navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret, .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } @media screen and (min-width: 768px) { .navbar { padding-top: 0; padding-bottom: 0; } .navbar .brand { float: left; padding-top: (50px - 20px) / 2; padding-bottom: (50px - 20px) / 2; margin-left: -15px; } .navbar .nav { float: left; margin-top: 0; } .navbar .nav:before, .navbar .nav:after { content: " "; /* 1 */ display: table; /* 2 */ } .navbar .nav:after { clear: both; } .navbar .nav.pull-right { float: right; } .navbar .nav > li { float: left; } .navbar .btn-navbar { display: none; } .nav-collapse.collapse { height: auto !important; overflow: visible !important; } } /* // Janky solution for now to account for links outside the .nav // ------------------------- .navbar-link { color: @navbar-link-color; &:hover { color: @navbar-link-color-hover; } } // Buttons in navbar // ------------------------- .navbar .btn, .navbar .btn-group { .navbarVerticalAlign(30px); // Vertically center in navbar } .navbar .btn-group .btn, .navbar .input-prepend .btn, .navbar .input-append .btn { margin-top: 0; // then undo the margin here so we don't accidentally double it } // Navbar forms // ------------------------- .navbar-form { margin-bottom: 0; // remove default bottom margin .clearfix(); input, select, .radio, .checkbox { .navbarVerticalAlign(30px); // Vertically center in navbar } input, select, .btn { display: inline-block; margin-bottom: 0; } input[type="image"], input[type="checkbox"], input[type="radio"] { margin-top: 3px; } .input-append, .input-prepend { margin-top: 5px; white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left input { margin-top: 0; // remove the margin on top since it's on the parent } } } */ .caret { border-top-color: #fff; border-bottom-color: #fff; } .btn-group { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn { float: left; } .btn-toolbar:before, .btn-toolbar:after { content: " "; /* 1 */ display: table; /* 2 */ } .btn-toolbar:after { clear: both; } .btn-toolbar .btn-group { float: left; } .btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group, .btn-toolbar > .btn-group + .btn-group { margin-left: 5px; } .btn-group > .btn { position: relative; border-radius: 0; } .btn-group > .btn + .btn { margin-left: 1px; } .btn-group > .btn:first-child { margin-left: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; } .btn-group > .btn:last-child, .btn-group > .dropdown-toggle { border-top-right-radius: 4px; border-bottom-right-radius: 4px; } .btn-group > .btn.large:first-child { margin-left: 0; border-top-left-radius: 6px; border-bottom-left-radius: 6px; } .btn-group > .btn.large:last-child, .btn-group > .large.dropdown-toggle { border-top-right-radius: 6px; border-bottom-right-radius: 6px; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; } .btn-group > .btn-mini + .dropdown-toggle { padding-left: 5px; padding-right: 5px; } .btn-group > .btn-large + .dropdown-toggle { padding-left: 12px; padding-right: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn .caret { margin-top: 8px; margin-left: 0; } .btn-large .caret { margin-top: 6px; } .btn-large .caret { border-width: 5px; } .btn-mini .caret, .btn-small .caret { margin-top: 8px; } .dropup .btn-large .caret { border-bottom-width: 5px; } .btn-group-vertical > .btn { display: block; float: none; border-radius: 0; max-width: 100%; } .btn-group-vertical > .btn + .btn { margin-left: 0; margin-top: 1px; } .btn-group-vertical .btn:first-child { border-radius: 4px 4px 0 0; } .btn-group-vertical .btn:last-child { border-radius: 0 0 4px 4px; } .btn-group-vertical .btn-large:first-child { border-radius: 6px 6px 0 0; } .btn-group-vertical .btn-large:last-child { border-radius: 0 0 6px 6px; } .breadcrumb { padding: 8px 15px; margin: 0 0 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; } .breadcrumb > li { display: inline-block; text-shadow: 0 1px 0 #fff; } .breadcrumb > li:after { display: inline-block; content: "\00a0 /"; padding: 0 5px; color: #ccc; } .breadcrumb > .active { color: #999999; } .pagination { display: inline-block; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { float: left; padding: 4px 12px; line-height: 20px; text-decoration: none; background-color: #ffffff; border: 1px solid #dddddd; border-left-width: 0; } .pagination > li > a:hover, .pagination > .active > a, .pagination > .active > span { background-color: #f5f5f5; } .pagination > .active > a, .pagination > .active > span { color: #999999; cursor: default; } .pagination > .disabled > span, .pagination > .disabled > a, .pagination > .disabled > a:hover { color: #999999; background-color: transparent; cursor: default; } .pagination > li:first-child > a, .pagination > li:first-child > span { border-left-width: 1px; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-bottom-right-radius: 4px; border-top-right-radius: 4px; } .pagination-large > li > a, .pagination-large > li > span { padding: 11px 19px; font-size: 14px * 1.25; } .pagination-large > li:first-child > a, .pagination-large > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-large > li:last-child > a, .pagination-large > li:last-child > span { border-bottom-right-radius: 6px; border-top-right-radius: 6px; } .pagination-mini > li:first-child > a, .pagination-small > li:first-child > a, .pagination-mini > li:first-child > span, .pagination-small > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-mini > li:last-child > a, .pagination-small > li:last-child > a, .pagination-mini > li:last-child > span, .pagination-small > li:last-child > span { border-bottom-right-radius: 3px; border-top-right-radius: 3px; } .pagination-small > li > a, .pagination-small > li > span { padding: 2px 10px; font-size: 14px * 0.85; } .pagination-mini > li > a, .pagination-mini > li > span { padding: 0 6px; font-size: 14px * 0.75; } .pager { margin: 20px 0; list-style: none; text-align: center; } .pager:before, .pager:after { content: " "; /* 1 */ display: table; /* 2 */ } .pager:after { clear: both; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #fff; border: 1px solid #ddd; border-radius: 15px; } .pager li > a:hover { text-decoration: none; background-color: #f5f5f5; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > span { color: #999999; background-color: #fff; cursor: default; }