updated to 2.2.1
[bootswatch] / readable / bootswatch.less
index de8cc14..e9ad942 100755 (executable)
@@ -1,94 +1,85 @@
-// Bootswatch.less
-// Swatch: Readable
+// Readable 2.2.1
+// Bootswatch
 // -----------------------------------------------------
 
-// CUSTOM VALUES
-// --------------------------------------------------
-
-@bodyBackgroundColor:  #FDFDFA;
-
 
 // TYPOGRAPHY
 // -----------------------------------------------------
 
-h1 {
-       font-size: 2em;
-       line-height: 2em;
-       color: @textColor;
+body {
+       word-spacing: -0.05em;
 }
 
-h2 {
-       font-size: 1.5em;
-       line-height: 2em;
-       color: @textColor;
-}
+h1 { font-size: 2.5em; }
 
-h3, h4, h5, h6 {
-       font-size: 1em;
-       line-height: 2em;
-       text-transform: none;
-       color: @textColor;
+h2 { font-size: 2em; }
+
+h3 { font-size: 1.5em; }
+
+small {
+       font-size: 13px;
 }
 
-input, button, select, textarea {
-       font-family: @baseFontFamily;
+blockquote {
+
+       border-left: 6px solid @grayLighter;
+
+       &.pull-right {
+               border-right: 6px solid @grayLighter;
+       }
+
+       p {
+               font-size: 1em;
+               line-height: 1.2em;
+       }
 }
 
-input, textarea, select {
-       color: @textColor;
+code, pre {
+       .border-radius(0);
+       background-color: @white;
 }
 
 .muted, .help-block, .uneditable-input, blockquote, small {
        color: @grayLight;
 }
 
-small {
-       font-size: 13px;
-}
-
 // SCAFFOLDING
 // -----------------------------------------------------
 
-body {
-       background-color: @bodyBackgroundColor;
-       padding-top: 20px !important;
+.page-header {
+       border-bottom: 2px solid @grayLighter;
 }
 
-
 // NAVBAR
 // -----------------------------------------------------
 
 .navbar {
 
-       margin-left: 16px;
-
-       .navbar-inner {
-               .box-shadow(none);
-       }
-
        .brand {
-               color: @linkColor;
-               font-size: @baseFontSize;
                font-weight: bold;
                line-height: 1em;
-               padding: 10px 10px 11px;
-               
+               padding: 15px 15px 7px;
+
                &:hover {
                        color: @linkColorHover;
                }
        }
-       
+
        .nav > li > a {
                text-shadow: none;
-               padding: 10px;
+               padding: 15px 15px 7px;
        }
 
-       .nav > li.active > a,
-       .nav > li:active > a,
-       .dropdown.open .dropdown-toggle {
-               color: @linkColor;
+       .nav > .active > a,
+       .nav > .active > a:hover,
+       .nav > .active > a:focus {
+               .box-shadow(none);
+       }
+
+       .navbar-search {
+               margin-top: 11px;
        }
-       
+
        .search-query {
                border: 1px solid #D4D4D4;
                .border-radius(0);
@@ -96,102 +87,96 @@ body {
                background-color: @white;
        }
 
-       .nav .dropdown-toggle .caret,
-       .nav .open.dropdown .caret {
-               border-top-color: @linkColor;
-               opacity: 1;
+       .navbar-text {
+               margin: 15px 15px 0;
+               line-height: @baseLineHeight;
        }
 
-}
+       .divider-vertical {
+               border-right: 1px solid rgba(128, 128, 128, 0.3);
+               border-left: none;
+       }
 
-@media (max-width: 980px) {
-       form.navbar-form, form.navbar-search {
-               border-top: 1px solid #D4D4D4;
-               border-bottom: 1px solid #D4D4D4;
+       &-inverse {
+
+               .brand:hover {
+                       color: @white;
+               }
        }
 }
 
-.navbar-fixed-top {
-       position: static;
+@media (max-width: @navbarCollapseWidth) {
+
+       .navbar .nav-collapse {
+
+               .nav li:first-child > a {
+                       margin-bottom: 10px;
+               }
+
+               .nav li > a {
+                       color: @linkColor;
+                       .border-radius(0);
+                       font-weight: normal;
+
+                       &:hover {
+                               background-color: rgba(0, 0, 0, 0.05);
+                               color: @linkColorHover;
+                       }
+               }
+
+               .navbar-form,
+               .navbar-search {
+                       border-top: 1px solid rgba(128, 128, 128, 0.2);
+                       border-bottom: 1px solid rgba(128, 128, 128, 0.2);
+               }
+
+               .nav-header {
+                       color: @grayLight;
+               }
+       }
+
+       .navbar-inverse .nav-collapse {
+
+               .nav li > a {
+                       color: @grayLighter;
+               }
+
+               .nav li > a:hover {
+                       background-color: rgba(0, 0, 0, 0.2) !important;
+                       color: @white;
+               }
+       }
 }
 
 div.subnav {
+
        .box-shadow(none);
        .border-radius(0);
        background-color: @white;
        background-image: none;
 
        .nav {
-               padding: 0;     
+               padding: 0;
        }
-       
+
        .nav > li.active > a,
        .nav > li:active > a {
                color: @linkColor;
                .box-shadow(none);
                background-color: transparent;
        }
-       
+
        .nav > li > a:hover,
        .nav > li.active > a:hover,
        .nav > li:active > a:hover {
-               color: @linkColorHover;
-               .box-shadow(none);
                background-color: transparent;
-       }
-}
-
-div.subnav-fixed {
-       position: static;
-       left: auto;
-       width: 100%;
-       margin: 0;
-       .box-shadow(none);
-       .border-radius(4px);
-       border: 1px solid #E5E5E5;
-       
-       .nav {
-               width: auto;
-               padding: 0;
-       }
-}
-
-.dropdown-menu {
-       background-color: @white;
-       border: 1px solid #D4D4D4;
-       .border-radius(0);
-       .box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
-       
-       li > a {
-               color: @linkColor;
-       }
-       
-       li > a:hover {
+               .box-shadow(none);
                color: @linkColorHover;
-               background-color: transparent;
        }
-}
 
-.navbar .nav-collapse.collapse {
-       
-       .nav > li > a:last-child {
-               margin-bottom: 10px;
+       &-fixed {
+               top: @navbarHeight;
        }
-       
-       li > a {
-               color: @linkColor;
-               .border-radius(0);
-               font-weight: normal;
-               
-               &:hover {
-                       color: @linkColorHover;
-               }
-       }
-       
-       li > a:hover {
-               background: transparent;
-       }
-
 }
 
 // NAV
@@ -208,13 +193,13 @@ div.subnav-fixed {
        }
 
        li > a:hover {
-               background-color: @bodyBackgroundColor;
+               background-color: @bodyBackground;
        }
 
        li.active > a,
        li.active > a:hover {
                color: @textColor;
-               background-color: @bodyBackgroundColor;
+               background-color: @bodyBackground;
        }
 }
 
@@ -223,7 +208,6 @@ div.subnav-fixed {
        li > a {
                background-color: @white;
        }
-       
 
        li.active > a,
        li.active > a:hover,
@@ -244,13 +228,29 @@ div.subnav-fixed {
        }
 
        li > a:hover {
-               background-color: @bodyBackgroundColor;
+               background-color: @bodyBackground;
        }
 
        li.active > a,
        li.active > a:hover {
                color: @textColor;
-               background-color: @bodyBackgroundColor;
+               background-color: @bodyBackground;
+       }
+
+       .open .dropdown-toggle {
+               background-color: transparent;
+               color: @linkColor;
+               border-left: 1px solid whiteSmoke;
+               border-right: 1px solid #E5E5E5;
+       }
+
+
+       li.dropdown.open .dropdown-toggle .caret {
+               border-top-color: @linkColor;
+       }
+
+       li.dropdown.open .dropdown-toggle:hover .caret {
+               border-top-color: @linkColorHover;
        }
 }
 
@@ -267,16 +267,20 @@ div.subnav-fixed {
        li.active > a:hover {
                color: @textColor;
        }
-       
+
        [class^="icon-"] {
                margin-top: 3px;
                opacity: 0.8;
        }
+
+       .divider {
+               margin: 1px;
+       }
 }
 
 .breadcrumb {
        .border-radius(0);
-       background-color: @white;
+       background-color: transparent;
        background-image: none;
 }
 
@@ -286,31 +290,36 @@ div.subnav-fixed {
                .box-shadow(none);
        }
 
-       li > a {
-               padding: 10px 14px;
+       ul > li > a,
+       ul > li > span {
+               padding: 12px 14px 8px;
+               background-color: @white;
+               line-height: 1;
        }
-       
 
-       li.active > a,
-       li.active > a:hover {
+       ul > li:first-child > a,
+       ul > li:last-child > a {
+               .border-radius(0);
+       }
+
+       ul > .active > a,
+       ul > .active > a:hover,
+       ul > .active > span,
+       ul > .active > span:hover {
                color: @textColor;
                background-color: #F5F5F5;
        }
-       
-       li > a,
-       li.disabled > a,
-       li.disabled > a:hover {
+
+       ul > .disabled > a,
+       ul > .disabled > a:hover,
+       ul > .disabled > span,
+       ul > .disabled > span:hover {
                background-color: @white;
        }
-       
-       li:first-child > a,
-       li:last-child > a {
-               .border-radius(0);
-       }
 }
 
 .pager {
-       
+
        a {
                .border-radius(0);
        }
@@ -320,7 +329,7 @@ div.subnav-fixed {
 // -----------------------------------------------------
 
 .btn-primary {
-  .buttonBackground(lighten(@primaryButtonBackground, 10%), @primaryButtonBackground);
+  .buttonBackground(lighten(@btnPrimaryBackground, 10%), @btnPrimaryBackground);
 }
 
 .btn [class^="icon-"],
@@ -343,10 +352,6 @@ div.subnav-fixed {
        margin-top: 13px;
 }
 
-// FORMS
-// -----------------------------------------------------
-
-
 // TABLES
 // -----------------------------------------------------
 
@@ -354,26 +359,54 @@ div.subnav-fixed {
        .border-radius(0);
 }
 
-.table-striped {
-  tbody {
-    tr:nth-child(odd) td,
-    tr:nth-child(odd) th {
-      background-color: darken(@bodyBackgroundColor, 2%);
-    }
-  }
+.table-bordered thead:first-child tr:first-child th:first-child,
+.table-bordered tbody:first-child tr:first-child td:first-child {
+       .border-radius(0);
+}
+
+.table-bordered thead:last-child tr:last-child th:first-child,
+.table-bordered tbody:last-child tr:last-child td:first-child {
+       .border-radius(0);
+}
+
+// FORMS
+// -----------------------------------------------------
+
+input, button, select, textarea {
+       font-family: @baseFontFamily;
 }
 
-.table {
-  tbody tr:hover td,
-  tbody tr:hover th {
-      background-color: darken(@bodyBackgroundColor, 4%);
-  }
+input, textarea, select {
+       color: @textColor;
 }
 
-// MISCELLANEOUS
+select, input[type="file"] {
+       height: auto;
+       line-height: normal;
+}
+
+.form-actions {
+       border-top: 1px solid #D4D4D4;
+       padding-top: 2em;
+}
+
+// DROPDOWNS
+// -----------------------------------------------------
+
+.dropdown-menu {
+       border: 1px solid #D4D4D4;
+       .border-radius(0);
+       .box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
+
+       .divider {
+               margin: 5px 1px;
+       }
+}
+
+// ALERTS, LABELS, BADGES
 // -----------------------------------------------------
 
-.alert, 
+.alert,
 .label, .label:hover {
        .border-radius(0);
        border: 1px solid #D4D4D4;
@@ -401,53 +434,37 @@ div.subnav-fixed {
 
 .label-info, .label-info:hover { background-color: @infoBackground; }
 
-.well {
+// MISC
+// -----------------------------------------------------
+
+.well, .hero-unit {
        .box-shadow(none);
        border: 1px solid #D4D4D4;
        .border-radius(0);
-       background-color: @white;
-}
-
-blockquote {
-       border-left: 6px solid @grayLighter;
-       
-       &.pull-right {
-               border-right: 6px solid @grayLighter;
-       }
-       
-       p {
-               font-size: 1em;
-               line-height: 1.2em;
-       }
 }
 
 .thumbnail {
        background-color: @white;
 }
 
-.thumbnail, .thumbnail > img {
+.thumbnail,
+.thumbnail > img {
        .border-radius(0);
        .box-shadow(none);
 }
 
-code, pre {
-       .border-radius(0);
+.modal {
        background-color: @white;
+       .border-radius(0);
 }
 
-.page-header {
-       padding-bottom: 1em;
-       border-bottom: 2px solid @grayLighter;
+.modal-header {
+       border-bottom: none;
 }
 
-.form-actions {
-       background-color: transparent;
-       border-top: 1px solid #D4D4D4;
-       padding-top: 2em;
+.modal-footer {
+       background-color: @bodyBackground;
 }
 
-footer.footer {
-       padding-top: 2em;
-       padding-bottom: 3em;
-       border-top: 2px solid @grayLighter;
-}
\ No newline at end of file
+// MEDIA QUERIES
+// -----------------------------------------------------