Changeset 90762 in spip-zone


Ignore:
Timestamp:
Jul 7, 2015, 4:07:51 PM (4 years ago)
Author:
cedric@…
Message:

retablir nav-list et nav-header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/bootstrap/trunk/bootstrap2spip/css/navs.less

    r90750 r90762  
    66.texte_libre {&:extend(.nav-header);}
    77
    8 // TODO : retablir nav-list et nav-header ?
     8// Nav headers (for dropdowns and lists)
     9.nav-header {
     10  display: block;
     11        padding: @nav-link-padding;
     12  padding-top: @padding-base-vertical / 2;
     13  padding-bottom: @padding-base-vertical / 2;
     14  font-size: 1em * (@font-size-small / @font-size-base);
     15  font-weight: bold;
     16  line-height: @line-height-computed;
     17  color: @gray-light;
     18  text-transform: uppercase;
     19}
     20// Space them out when they follow another list item (link)
     21.nav li + .nav-header {
     22  margin-top: @emVertMargin/2;
     23}
     24
     25// NAV LIST
     26// --------
     27
     28.nav-list {
     29  padding-left : @padding-base-horizontal;
     30  padding-right : @padding-base-horizontal;
     31  margin-bottom: 0;
     32}
     33.nav-list > li > a,
     34.nav-list .nav-header {
     35  margin-left:  -@padding-base-horizontal;
     36  margin-right: -@padding-base-horizontal;
     37}
     38.nav-list > li > a {
     39  padding: @nav-link-padding;
     40        padding-top: @padding-base-vertical / 2;
     41        padding-bottom: @padding-base-vertical / 2;
     42}
     43.nav-list > .active > a,
     44.nav-list > .active > a:hover,
     45.nav-list > .active > a:focus {
     46  color: @component-active-color;
     47  background-color: @component-active-bg;
     48}
     49.nav-list [class^="icon-"],
     50.nav-list [class*=" icon-"] {
     51  margin-right: 2px;
     52}
     53// Dividers (basically an hr) within the dropdown
     54.nav-list .divider {
     55  .nav-divider(@dropdown-divider-bg);
     56}
Note: See TracChangeset for help on using the changeset viewer.