2.3.0+2 -> 2.3.1
[bootswatch] / spruce / bootswatch.less
index 6472570..7322b02 100755 (executable)
-// Bootswatch.less
-// Swatch: Spruce
-// Version: 2.0.2
+// Spruce 2.3.1
+// Bootswatch
 // -----------------------------------------------------
 
+
 // TYPOGRAPHY
 // --------------------------------------------------
 
-@import url('http://fonts.googleapis.com/css?family=Josefin+Slab:400,700');
-
-.navbar .brand, legend, .btn,
-.navbar .nav > li > a,
-div.subnav li > a  {
-       font-family: @headingsFontFamily;
-       font-weight: @headingsFontWeight;
-}
-
-h3 { font-size: 20px; }
-h4 { font-size: 16px; }
-h5 { font-size: 14px; }
-
-h1, h2, h3, h4, h5, h6 {
-       color: @yellow;
-}
+@import url(//fonts.googleapis.com/css?family=Crete+Round);
 
-h1 > small, h2 > small, h3 > small, h4 > small, h5 > small, h6 > small, .muted {
-       color: @linkColor;
+h1 > small,
+h2 > small,
+h3 > small,
+h4 > small,
+h5 > small,
+h6 > small,
+.muted {
+       color: @headingsColor;
        font-family: @baseFontFamily;
 }
 
-.alert-heading {
-       font-family: @baseFontFamily;
+.jumbotron h1 {
+       font-weight: normal !important;
 }
 
 // SCAFFOLDING
 // --------------------------------------------------
 
-body {
-       #gradient > .vertical-three-colors (#90A38F, #AEAD8E, 60%, #90A38F);
-       background-size: 100% 1400px;
-       background-repeat: repeat-y !important;
+.page-header {
+       border-bottom: none;
+       padding-bottom: 5px;
+
+       h1 {
+               margin-bottom: 0;
+       }
+}
+
+hr {
+       border-bottom: none;
 }
 
 blockquote {
-       border-left: 2px solid @linkColor;
-       
+       border-left: 2px solid @headingsColor;
+
        &.pull-right {
-               border-right: 2px solid @linkColor;
+               border-right: 2px solid @headingsColor;
        }
-       
+
        small {
                color: @blueDark;
        }
 }
 
-code, pre {
-       color: lighten(@blueDark, 10%);
-       background-color: @linkColor;
-}
-
 // NAVBAR
 // --------------------------------------------------
 
-.navbar-inner {
-       background-image: none;
-       .box-shadow(none);
-}
+.navbar {
 
-.navbar .brand {
-       font-size: 26px;
-       padding: 18px 20px 12px;
-       color: @linkColor;
-}
+       .navbar-inner {
+               background-image: none;
+               .box-shadow(none);
+       }
 
-.navbar .nav > li > a, {
-       font-size: 20px;
-       padding: 22px 10px 11px;
-       color: @linkColor;
-       
-       &:hover {
-               color: @yellow;
+       .brand {
+               padding: 18px 20px 16px;
+               font-size: 26px;
+               font-family: @headingsFontFamily;
+               font-weight: @headingsFontWeight;
+
+               &:hover {
+                       background-color: @navbarLinkBackgroundHover;
+               }
        }
-}
 
-.navbar .nav .active > a,
-.navbar .nav .active > a:hover {
-       color: @yellow;
-}
+       .nav > li > a {
+               padding: 20px 20px 14px;
+               font-size: 20px;
+               font-family: @headingsFontFamily;
+               font-weight: @headingsFontWeight;
+               text-shadow: none;
+       }
 
-.navbar-search {
-       margin-top: 12px;
-}
+       .nav > .active > a,
+       .nav > .active > a:hover,
+       .nav > .active > a:focus {
+               .box-shadow(none);
+       }
 
-.navbar-search .search-query {
-       border-color: transparent;
-       padding: 6px 9px 2px 9px;
-       background-color: rgba(256, 256, 256, 0.4);
-}
+       .navbar-text {
+               margin: 19px 20px 0;
+               font-size: 20px;
+               font-family: @headingsFontFamily;
+               font-weight: @headingsFontWeight;
+               line-height: inherit;
+       }
 
-.navbar .nav > .dropdown.open > a {
-       color: @yellow;
-}
+       .divider-vertical {
+               border-color: rgba(0, 0, 0, 0.2);
+       }
 
-.navbar .nav > .dropdown.open > .dropdown-menu {
-       background-color: @linkColor;
-       color: @textColor;
-       border-color: transparent;
-}
+       .btn-navbar {
+               margin-top: 14px;
+       }
 
-.navbar .nav > .dropdown.open > .dropdown-menu a:hover {
-       background-color: darken(#90A38F, 10%);
-       color: @linkColor;
-}
+       .navbar-form, .navbar-search {
+               border-color: transparent;
+               margin-top: 12px;
+               .box-shadow(none);
+               line-height: normal;
+       }
 
-.dropdown-menu .divider {
-       background-color: transparent;
-       border-bottom: 1px solid #AEAD8E;
-}
+       .navbar-search .search-query {
+               border-color: transparent;
+               background-color: rgba(255, 255, 255, 0.4);
+               line-height: normal;
+               color: @white;
+       }
 
-div.subnav {
-       background-color: @green;
-       background-image: none;
-       border-color: transparent;
-       .box-shadow(0 1px 5px rgba(0,0,0,.1));
-       font-size: 18px;
-}
+       .dropdown-menu li > a {
+               font-family: @headingsFontFamily;
+               font-weight: @headingsFontWeight;
+       }
 
-div.subnav .nav > li > a {
-       color: @linkColor;
-       border-color: transparent;
-       background-color: transparent;
-}
+       .nav > li > .dropdown-menu::before,
+       .nav > li > .dropdown-menu::after {
+               border-bottom: none;
+       }
 
-div.subnav .nav > li.active > a,
-div.subnav .nav > li > a:hover,
-div.subnav .nav > li.active > a:hover,
-div.subnav .dropdown.open .dropdown-toggle {
-       background-color: transparent;
-       border-color: transparent;
-       color: @yellow;
-}
+       &-inverse {
 
-div.subnav .nav > li + li > a {
-       border-color: transparent;
-}
+               .navbar-search .search-query {
+                       color: @gray;
+               }
 
-div.subnav .dropdown.open > .dropdown-menu {
-       background-color: @linkColor;
-       color: @textColor;
-       border-color: transparent;
-}
+               .dropdown-menu {
+                       background-color: @navbarInverseLinkBackgroundHover;
 
-div.subnav .dropdown.open > .dropdown-menu a:hover {
-       background-color: darken(#90A38F, 10%);
-       color: @linkColor;
-}
+                       li > a {
+                               color: @headingsColor;
 
-div.subnav-fixed {
-       top: 54px;
-}
+                               &:hover {
+                                       background-color: @navbarInverseBackground;
+                               }
+                       }
 
-.navbar .btn-navbar {
-       margin-top: 14px;
-}
+                       .divider {
+                               border-bottom: 1px solid rgba(0, 0, 0, 0.2);
+                       }
+
+                       .nav-header {
+                               color: @gray;
+                       }
+               }
 
-.navbar .nav-collapse.in .nav li > a {
-       color: @linkColor;
-       
-       &:hover {
-               color: @yellow;
-               background-color: @blue;
        }
-}
 
-.navbar .navbar-form, .navbar .navbar-search {
-       border-color: transparent;
-       .box-shadow(none);
 }
 
-// TABLES
-// --------------------------------------------------
+@media (max-width: @navbarCollapseWidth) {
 
-.table,
-.table.table-bordered,
-.table.table-striped {
-       .border-radius(0 0 8px 8px);
-}
+       .navbar .nav-collapse {
 
-.table-bordered thead:first-child tr:first-child th:first-child,
-.table-bordered tbody:first-child tr:first-child td:first-child,
-.table-bordered thead:first-child tr:first-child th:last-child,
-.table-bordered tbody:first-child tr:first-child td:last-child {
-       .border-radius(0);
-}
+               .nav li > a {
+                       color: @navbarLinkColor;
 
-.table-striped tbody:last-child tr:last-child td:first-child {
-       .border-radius(0 0 0 8px);
-}
+                       &:hover {
+                               background-color: @navbarLinkBackgroundHover;
+                       }
+               }       
+       }
 
-.table-striped tbody:last-child tr:last-child td:last-child {
-       .border-radius(0 0 8px 0);
-}
+       .navbar-inverse .nav-collapse {
 
-.table-bordered {
-       border: none;
-}
+               .nav li > a:hover {
+                       background-color: rgba(0, 0, 0, 0.06) !important;
+               }
+       }
 
-.table thead tr th:first-child,
-.table tbody tr td:first-child {
-       border-left: none;
+       .nav-collapse .navbar-form,
+       .nav-collapse .navbar-search {
+               border: none !important;
+               .box-shadow(none) !important;
+       }
 }
 
-.table th,
-.table-striped tbody tr:nth-child(odd) th {
-       background-color: darken(#90A38F, 10%);
-       color: @linkColor;
+div.subnav {
+
+       background: @green none;
+       border-color: transparent;
+
+       .nav > li > a {
+               padding: 12px 12px 10px;
+               border-color: transparent;
+               background-color: transparent;
+               font-family: @headingsFontFamily;
+               font-weight: @headingsFontWeight;
+               color: @navbarLinkColor;
+       }
+
+       .nav > li > a:hover,
+       .nav > .active > a,
+       .nav > .active > a:hover,
+       .dropdown.open .dropdown-toggle,
+       .dropdown.open.active .dropdown-toggle:hover {
+               background-color: @navbarLinkBackgroundHover;
+               .box-shadow(none);
+               border-color: transparent;
+               color: @white;
+       }
+
+       &.subnav-fixed {
+               top: @navbarHeight;
+       }
 }
 
-// BUTTONS
+// NAV
 // --------------------------------------------------
 
-.btn {
-  .buttonBackground(lighten(@blueDark, 5%), @blueDark);
-    text-shadow: none;
-    color: @white;
-       border-color: transparent;
-       .box-shadow(none);
-       
-       &:hover {
-               color: @grayLighter;
+.nav {
+
+       .nav-header {
+               color: @headingsColor;
        }
-}
 
-.btn-large {
-       font-size: 18px;
+       .disabled > a,
+       .disabled > a:hover {
+               background-color: lighten(@green, 10%);
+               color: @white;
+       }
 }
 
-.btn-primary {
-       .buttonBackground(lighten(@blue, 10%), lighten(@blue, 5%));
-}
+.nav-tabs {
+       
+       border-color: transparent;
 
-.btn-warning {
-  .buttonBackground(@orange, darken(@orange, 5%));
-}
+       & > li > a {
+               background-color: @green;
+               color: @white;
 
-.btn-danger {
-  .buttonBackground(lighten(@red, 5%), @red);
-}
+               &:hover {
+                       background-color: @navbarBackground;
+                       border-color: transparent;
+               }       
+       }
 
-.btn-success {
-  .buttonBackground(#62c462, #51a351);
-}
+       .active > a,
+       .active > a:hover {
+               background-color: @navbarBackground;
+               border-color: transparent;
+               color: @white;
+       }
 
-.btn-info {
-  .buttonBackground(#5bc0de, #2f96b4);
-}
+       &.nav-stacked > li > a {
+               border-color: transparent;
 
-.btn-inverse {
-  .buttonBackground(@yellow, darken(@yellow, 5%));
-}
+               &:hover {
+                       border-color: transparent;
+               }
+       }
 
-.btn-group .dropdown-toggle {
-       .box-shadow(none);
+       .open .dropdown-toggle,
+       .active.open .dropdown-toggle {
+               background-color: @navbarBackground;
+       }
 }
 
-// NAVIGATION
-// --------------------------------------------------
+.nav-pills {
 
-.breadcrumb, .pagination > ul {
-       background-color: darken(#90A38F, 10%);
-       background-image: none;
-       border-color: transparent;
-       .box-shadow(none);
-}
+       & > li > a {
+               background-color: @green;
+               color: @white;
 
-.breadcrumb li {
-       color: @yellow;
-       text-shadow: none;
-       
-       a {
-               color: @linkColor;
+               &:hover {
+                       background-color: @navbarBackground;
+                       border-color: transparent;
+               }
        }
-       
-       a:hover {
-               color: @yellow;
+
+       .active > a,
+       .active > a:hover {
+               background-color: @navbarBackground;
+               border-color: transparent;
+               color: @white;
        }
-       
-       .divider {
-               color: @blue;
+
+       .open .dropdown-toggle,
+       .active.open .dropdown-toggle {
+               background-color: @navbarBackground;
        }
 }
 
-.pagination a {
-       color: @linkColor;
-       border-color: transparent;
-       
-       &:hover {
-               color: @yellow;
-               background-color: #748C73;
+.tabbable {
+       .nav-tabs,
+       .nav-tabs > li > a,
+       .nav-tabs > li > a:hover,
+       .nav-tabs > li.active > a,
+       .nav-tabs > li.active > a:hover  {
+               border-color: transparent;
        }
 }
 
-.pagination .active a {
-       color: @blue;
-       background-color: #A2CDB5;
-}
+.nav-list {
 
-.pagination .disabled a,
-.pagination .disabled a:hover {
-       color: @blue;
-}
+       .nav-header,
+       li > a {
+               text-shadow: none;
+       }
 
-.nav-list > li > a, .nav-list .nav-header {
-       text-shadow: none;
-}
+       li > a:hover {
+               background-color: @green;
+               color: @white;
+       }
 
-.nav-list .active > a, .nav-list .active > a:hover {
-       background-color: #A2CDB5;
-       text-shadow: none;
-}
+       li.active > a,
+       li.active > a:hover {
+               background-color: @navbarBackground;
+               text-shadow: none;
+       }
 
-.nav-list li > a:hover {
-       background-color: transparent;
+       .divider {
+               background-color: transparent;
+               border-bottom: 1px solid @grayLight;
+       }
 }
 
-.nav-tabs {
+.breadcrumb {
+
+       background-color: @green;
+       background-image: none;
+       .box-shadow(none);
        border-color: transparent;
+
+       li {
+               color: @white;
+               text-shadow: none;
+
+               a {
+                       color: @white;
+                       text-decoration: underline;
+               }
+
+               a:hover {
+                       color: @white;
+               }
+
+               .divider {
+                       color: @white;
+               }
+       }
+
+       .active {
+               color: @white;
+       }
 }
 
-.nav-tabs > li > a,
-.nav-pills > li > a {
-       background-color: #748C73;
-       
-       &:hover {
-               background-color: #748C73;
+.pagination {
+
+       ul {
+               background-color: @green;
+               background-image: none;
+               .box-shadow(none);
                border-color: transparent;
        }
-}
 
-.nav-tabs > .active > a,
-.nav-tabs > .active > a:hover,
-.nav-pills .active > a,
-.nav-pills .active > a:hover {
-       background-color: #A2CDB5;
-       border-color: transparent;
-       color: @blue;
-}
 
-.nav-tabs.nav-stacked > li > a {
-       border-color: transparent;
-       
-       &:hover {
+       ul > li > a,
+       ul > li > span {
+               background-color: @green;
                border-color: transparent;
+               color: @white;
+
+               &:hover {
+                       background-color: @navbarBackground;
+                       color: @white;
+               }
+       }
+
+       ul > .active > a,
+       ul > .active > span {
+               background-color: @navbarBackground;
+               color: @white;
+       }
+
+       ul > .disabled > a,
+       ul > .disabled > a:hover,
+       ul > .disabled > span,
+       ul > .disabled > span:hover {
+               background-color: lighten(@green, 10%);
+               color: @white;
        }
 }
 
-.nav-tabs .open .dropdown-toggle,
-.nav-pills .open .dropdown-toggle  {
-       background-color: #748C73;
-       border-color: transparent;
-       color: @yellow;
+.pager {
+
+       li > a,
+       li > span {
+               border: none;
+               background-color: @green;
+               color: @white;
+
+               &:hover {
+                       background-color: @navbarBackground;
+               }
+       }
+
+       .disabled a,
+       .disabled a:hover {
+               background-color: lighten(@green, 10%);
+               color: @white;
+       }
 }
 
-.nav-tabs .active.open .dropdown-toggle,
-.nav-pills .active.open .dropdown-toggle {
-       background-color: #A2CDB5;
+// BUTTONS
+// --------------------------------------------------
+
+.btn {
+       font-family: @headingsFontFamily;
+       font-weight: @headingsFontWeight;
+    text-shadow: none;
 }
 
-.nav-tabs .dropdown-menu,
-.nav-pills .dropdown-menu {
-       background-color: @linkColor;
-       color: @textColor;
-       border-color: transparent;
-       
-       a:hover {
-               background-color: #A2CDB5;
-               color: @linkColor;
-       }
+.btn-large {
+       font-size: 18px;
 }
 
-.nav .nav-header {
-       color: @blue;
+.btn-group .dropdown-toggle {
+       .box-shadow(none);
 }
 
-.tabbable > .nav-tabs,
-.tabbable > .nav-tabs > li > a,
-.tabbable > .nav-tabs > li > a:hover,
-.tabbable > .nav-tabs > li.active > a,
-.tabbable > .nav-tabs > li.active > a:hover  {
-       border-color: transparent;
+// TABLES
+// --------------------------------------------------
+
+.table th,
+.table-striped tbody tr:nth-child(odd) th {
+       background-color: @green;
+       color: @white;
 }
 
-.pager a {
-       border: none;
-       background-color: #748C73;
-       
-       &:hover {
-               background-color: transparent;
-               background-color: #748C73;
+.table {
+
+       tbody tr.success td {
+               background-color: #B5EEAA;
+       }
+
+       tbody tr.error td {
+               background-color: #EEB8B8;
+       }
+
+       tbody tr.info td {
+               background-color: #AEE2EE;
        }
 }
 
@@ -404,11 +455,14 @@ div.subnav-fixed {
 // --------------------------------------------------
 
 legend {
-       color: @yellow;
+       border-bottom: none;
+       font-family: @headingsFontFamily;
+       font-weight: @headingsFontWeight;
+       color: @headingsColor;
 }
 
 label, .help-block, input[type="file"] {
-       color: @linkColor;
+       color: @headingsColor;
 }
 
 input, textarea, select {
@@ -419,66 +473,169 @@ input, textarea, select {
        color: @gray;
 }
 
-legend {
-       border-bottom: 2px solid @white;
-}
-
 .form-actions {
-       background-color: transparent;
        border-top: none;
-       .border-radius(4px);
 }
 
-// MISCELLANEOUS
+.control-group {
+
+       &.warning,
+       &.error,
+       &.success {
+
+               .control-label {
+                       color: @textColor;
+               }
+       }
+}
+
+.control-group.error {
+
+       .help-block,
+       .help-inline {
+               color: @red;
+       }
+
+       input, select, textarea {
+               border: 1px solid @red;
+               color: @textColor;
+       }
+}
+
+.control-group.success {
+
+       .help-block,
+       .help-inline {
+               color: @green;
+       }
+
+       input, select, textarea {
+               border: 1px solid @green;
+               color: @textColor;
+       }
+}
+
+.control-group.warning {
+
+       .help-block,
+       .help-inline {
+               color: @orange;
+       }
+
+       input, select, textarea {
+               border: 1px solid @orange;
+               color: @textColor;
+       }
+}
+
+// ALERTS, LABELS, BADGES
 // --------------------------------------------------
 
 .alert {
        text-shadow: none;
        border: none;
+
+       h1, h2, h3, h4, h5, h6 {
+               font-weight: bold;
+               color: @white;
+       }
+}
+
+.alert-heading {
+       font-family: @baseFontFamily;
+       color: inherit;
 }
 
+.badge,
 .label {
-       color: @linkColor;
-       opacity: 1;
+
+       background-color: @green;
        text-shadow: none;
-}
 
-.progress {
-       background-color: darken(#90A38F, 10%);
-       background-image: none;
-       .box-shadow(none);
-       
-       .bar {
-               background-image: none; 
-               background-color: #A2CDB5;
+       &-success {
+               background-color: @btnSuccessBackground;
+       }
+
+       &-warning {
+               background-color: @btnWarningBackground;
+       }
+
+       &-important {
+               background-color: @btnDangerBackground;
+       }
+
+       &-info {
+               background-color: @btnInfoBackground;
+       }
+
+       &-inverse {
+               background-color: @btnInverseBackground;
        }
 }
 
+// MISC
+// --------------------------------------------------
+
 .well {
-       background-color: darken(#90A38F, 10%);
        border: none;
        .box-shadow(none);
 }
 
+.hero-unit {
+       border: none;
+}
+
 .thumbnail {
        border: none;
        .box-shadow(none);
-       
-       img {
-               .border-radius(4px);
-       }
 }
 
-hr {
-       border-top: none;
-       border-bottom: 2px solid @linkColor;
+.dropdown-menu .nav-header {
+       color: @white;
+       text-shadow: none;
 }
 
-.page-header {
-       border-bottom: 2px solid @linkColor;
-       padding-bottom: 5px;
+.dropdown-menu li > a:hover,
+.dropdown-menu li > a:focus,
+.dropdown-submenu:hover > a {
+       background-image: none;
+}
+
+.progress {
+       background-color: darken(@grayLighter, 10%);
+       background-image: none;
+}
+
+[class^="icon-"],
+[class*=" icon-"] {
+       vertical-align: baseline;
+}
+
+.modal {
+
+       &-header {
+               padding: 12px 15px 6px;
+               background-color: @green;
+       }
+
+       &-body,
+       &-footer {
+               background-color: @headingsColor;
+               border: none;
+               .box-shadow(none);
+
+               label {
+                       color: @textColor;
+               }
+       }
 }
 
-footer.footer {
-       border-top: 2px solid @linkColor;
+.popover {
+
+       &-title {
+               color: @white;
+       }
 }
+
+// MEDIA QUERIES
+// --------------------------------------------------