3.0.2 -> 3.0.3
[bootswatch] / simplex / bootswatch.less
old mode 100755 (executable)
new mode 100644 (file)
index fef77dd..3cb2cde
-// Simplex 2.2.2
-// Bootswatch.less
+// Simplex 3.0.3
+// Bootswatch
 // -----------------------------------------------------
 
+@import url("//fonts.googleapis.com/css?family=Josefin+Sans:300,400,700");
 
-@boxShadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
-
-// TYPOGRAPHY
-// -----------------------------------------------------
-
-@import url('//fonts.googleapis.com/css?family=Josefin+Sans:300,400,700');
-
-// SCAFFOLDING
-// -----------------------------------------------------
-
-hr {
-       border-bottom: none;
+.btn-shadow(@color) {
+       #gradient > .vertical-three-colors(lighten(@color, 15%), @color, 6%, darken(@color, 4%));
+       filter: none;
+       border: 1px solid darken(@color, 10%);
 }
 
-// NAVBAR
-// -----------------------------------------------------
+// Navbar =====================================================================
 
 .navbar {
+       border-bottom: 1px solid #dfdfdf;
+       font-family: @headings-font-family;
 
-       .navbar-inner {
-               .box-shadow(none);
-       }
-
-       .brand {
-               padding: 12px 20px 8px;
-               font-family: @headingsFontFamily;
-               font-weight: bold;
-
-               &:hover {
-                       color: @linkColor;
-               }
-       }
-
-       .nav > li > a {
-               padding: 13px 15px 6px;
-               font-family: @headingsFontFamily;
-               font-weight: bold;
-               text-shadow: none;
-
-               &:hover {
-                       text-decoration: none;
-               }
-       }
-
-       .nav .active > a,
-       .nav .active > a:hover {
-               background-color: transparent;
-       }
-
-       .navbar-text {
-               padding: 13px 15px 7px;
-               line-height: 19px;
-               font-family: @headingsFontFamily;
-               color: @grayLight;
+       &-nav > li > a {
+               padding-top: @navbar-padding-vertical + 2px;
+               padding-bottom: @navbar-padding-vertical - 2px;
        }
 
-       .divider-vertical {
-               height: @navbarHeight - 1;
-               background-color: @hrBorder;
-       }
-
-       .navbar-search {
-               margin-top: 5px;
-
-               input[type="text"] {
-                       margin-bottom: 5px;
-               }
-       }
-
-       .dropdown-menu a {
-               font-family: @headingsFontFamily;
-       }
-
-       &-inverse {
-
-               .navbar-inner {
-                       .box-shadow(none);
-               }
-
-               .brand:hover {
-                       color: @white;
-               }
+       &-brand {
+               padding: 14px 15px 8px;
        }
 }
 
-@media (max-width: @navbarCollapseWidth) {
-
-       .navbar .nav-collapse {
-
-               .nav li > a {
-                       color: @textColor;
-
-                       &:hover {
-                               background-image: none;
-                               background-color: @dropdownLinkBackgroundHover;
-                       }
-               }
-
-               .nav .active > a {
-                       .box-shadow(none);
-               }
-
-               .navbar-form,
-               .navbar-search {
-                       border-top: 1px solid rgba(128, 128, 128, 0.3);
-                       border-bottom: 1px solid rgba(128, 128, 128, 0.3);
-               }
-       }
-
-       .navbar-inverse .nav-collapse {
+// Buttons ====================================================================
 
-               .nav li > a {
-                       color: @white;
-
-                       &:hover {
-                               background-color: rgba(255, 255, 255, 0.1) !important;
-                       }
-               }
-
-               .nav-header {
-                       color: rgba(255, 255, 255, 0.7);
-               }
-       }
+.btn {
+       font-family: @headings-font-family;
 }
 
-div.subnav {
-
-       background-image: none;
-       background-color: @navbarBackground;
-       border-bottom: 1px solid transparent;
-       .box-shadow(@boxShadow);
-       font-family: @headingsFontFamily;
-
-       &.subnav-fixed {
-               .box-shadow(inset 0 5px #fff~"," @boxShadow);
-       }
-
-       .nav > li > a {
-               padding: 14px 12px 10px;
-               border-left-color: transparent;
-               border-right-color: transparent;
-               color: @navbarText;
-               font-weight: bold;
-
-               &:hover {
-                       background-color: transparent;
-                       color: @linkColor;
-               }
-       }
-
-       .nav > li.active > a,
-       .nav > li.active > a:hover {
-               border-left-color: transparent;
-               border-right-color: transparent;
-               background-color: transparent;
-               .box-shadow(none);
-               color: @linkColor;
-       }
+.btn-default,
+.btn-default:hover {
+       .btn-shadow(@btn-default-bg);
 }
 
-// NAV
-// -----------------------------------------------------
-
-.nav .nav-header {
-       font-size: 13px;
-       font-weight: normal;
-       text-transform: none;
+.btn-primary,
+.btn-primary:hover {
+       .btn-shadow(@btn-primary-bg);
 }
 
-.nav-tabs {
-
-       & > li > a {
-               background-color: darken(@bodyBackground, 3%);
-               border: 1px solid #ccc;
-               color: @textColor;
-
-               &:hover {
-                       border: 1px solid #ccc;
-                       background-color: @dropdownLinkBackgroundHover;
-                       color: @linkColor;
-               }
-       }
-
-       & > li.active > a,
-       & > li.active > a:hover {
-               background-color: @bodyBackground;
-       }
-
-       .dropdown {
-
-               .dropdown-toggle .caret {
-                       border-top-color: @textColor;
-                       border-bottom-color: @textColor;
-                       opacity: 1;
-               }
-
-               &:hover .dropdown-toggle .caret {
-                       border-top-color: @linkColor;
-                       border-bottom-color: @linkColor;
-               }
-       }
-
-       .dropdown.open .dropdown-toggle {
-
-               background-color: @dropdownLinkBackgroundHover;
-               border-color: #ccc;
-               color: @linkColor;
-
-               .caret,
-               &:hover .caret {
-                       border-top-color: @linkColor;
-                       border-bottom-color: @linkColor;
-                       opacity: 1;
-               }
-       }
-
-       .dropdown-menu {
-
-               .border-radius(0);
-
-               a {
-                       padding: 8px 15px 3px;
-               }
-       }
+.btn-success,
+.btn-success:hover {
+       .btn-shadow(@btn-success-bg);
 }
 
-.tabbable {
-
-       .nav-tabs > li > a,
-       .nav-tabs > li > a:hover {
-               border: 1px solid #ccc;
-       }
-
-       .nav-tabs > li.active > a {
-               border-bottom: 1px solid transparent;
-       }
+.btn-info,
+.btn-info:hover {
+       .btn-shadow(@btn-info-bg);
+}
 
-       &.tabs-below > .nav-tabs > li.active > a,
-       &.tabs-left > .nav-tabs > li.active > a,
-       &.tabs-right > .nav-tabs > li.active > a {
-               border-bottom: 1px solid #ccc;
-       }
+.btn-warning,
+.btn-warning:hover {
+       .btn-shadow(@btn-warning-bg);
 }
 
-.nav-pills {
+.btn-danger,
+.btn-danger:hover {
+       .btn-shadow(@btn-danger-bg);
+}
 
-       li > a {
-               color: @textColor;
+// Typography =================================================================
 
-               &:hover {
-                       background-color: @dropdownLinkBackgroundHover;
-                       color: @linkColor;
-               }
-       }
+// Tables =====================================================================
 
-       li.active > a,
-       li.active > a:hover {
-               background-color: @dropdownLinkBackgroundHover;
-               color: @linkColor;
-       }
+// Forms ======================================================================
 
-       .dropdown .dropdown-toggle .caret {
-               border-top-color: @textColor;
-               border-bottom-color: @textColor;
-               opacity: 1;
+.has-warning {
+       .help-block,
+       .control-label {
+               color: @brand-danger;
        }
 
-       .dropdown .dropdown-toggle:hover .caret {
-               border-top-color: @linkColor;
-               border-bottom-color: @linkColor;
-       }
-
-       .dropdown.open .dropdown-toggle,
-       .dropdown.open:hover .dropdown-toggle {
-               background-color: @dropdownLinkBackgroundHover;
-               color: @linkColor;
-
-               .caret {
-                       border-top-color: @linkColor;
-                       border-bottom-color: @linkColor;
-               }
+       .form-control,
+       .form-control:focus {
+               border-color: @brand-danger;
        }
 }
 
-.nav-list {
-
-       li > a {
-               color: @textColor;
-
-               &:hover {
-                       background-color: @dropdownLinkBackgroundHover;
-                       color: @linkColor;
-               }
+.has-error {
+       .help-block,
+       .control-label {
+               color: @brand-primary;
        }
 
-       li.active > a,
-       li.active > a:hover {
-               background-color: @dropdownLinkBackgroundHover;
-               color: @linkColor;
+       .form-control,
+       .form-control:focus {
+               border-color: @brand-primary;
        }
 }
 
-.breadcrumb {
-       background-color: @white;
-       border: 0px solid transparent;
-       .box-shadow(@boxShadow~", "-1px -1px 0 rgba(0, 0, 0, 0.1));
-
-       li {
-               padding-top: 2px;
-               text-shadow: none;
-       }
-
-       .active {
-               color: @textColor;
-       }
-
-       a {
-               text-shadow: none;
+.has-success {
+       .help-block,
+       .control-label {
+               color: @brand-success;
        }
 
-       a:hover {
-               text-decoration: none;
+       .form-control,
+       .form-control:focus {
+               border-color: @brand-success;
        }
 }
 
-.pagination {
-
-       ul > li > a,
-       ul > li > span {
-               padding: 2px 14px 0;
-               color: @textColor;
-
-               &:hover {
-                       background-color: @dropdownLinkBackgroundHover;
-                       color: @linkColor;
-               }
-       }
+// Navs =======================================================================
 
-       ul > .active > a,
-       ul > .active > span {
-               background-color: @dropdownLinkBackgroundHover;
-               color: @linkColor;
-       }
+.pagination {
 
-       ul > .disabled > a,
-       ul > .disabled > a:hover,
-       ul > .disabled > span,
-       ul > .disabled > span:hover {
-               background-color: transparent;
-               color: @textColor;
+       .active > a,
+       .active > a:hover {
+               border-color: #ddd;
        }
 }
 
+// Indicators =================================================================
 
-// BUTTONS
-// -----------------------------------------------------
-
-.btn {
-       padding-top: .6em;
-       font-family: @headingsFontFamily;
-       font-weight: bold;
-}
-
-// TABLES
-// -----------------------------------------------------
-
-// FORMS
-// -----------------------------------------------------
-
-legend {
-       border-bottom: 1px solid #ddd;
-       font-family: @headingsFontFamily;
-}
-
-.navbar-search .search-query {
-       border: 1px solid #ddd;
-       .border-radius(0);
-       background-color: @bodyBackground;
-       color: @gray;
-}
-
-.help-inline, .help-block {
-       font-size: 13px;
-}
+// Progress bars ==============================================================
 
-.input-append .btn,
-.input-prepend .btn {
-       line-height: 16px;
-}
-
-// DROPDOWNS
-// -----------------------------------------------------
-
-// ALERTS, LABELS, BADGES
-// -----------------------------------------------------
-
-.label {
-       padding: 4px 4px 3px;
-       margin-left: 1px;
-       margin-right: 1px;
-       line-height: 26px;
-       font-weight: normal;
-}
-
-// MISCELLANEOUS
-// -----------------------------------------------------
-
-i[class^="icon-"]{
-       opacity: 0.5;
-       vertical-align: -2px;
-}
-
-.well {
-       .box-shadow(@boxShadow~", "-1px -1px 0 rgba(0, 0, 0, 0.1));
-       border: none;
-}
-
-.hero-unit {
-       background-color: @navbarBackground;
-       .box-shadow(@boxShadow~", "-1px -1px 0 rgba(0, 0, 0, 0.1));
-}
-
-.thumbnail {
-       padding: 10px;
-       background-color: @white;
-}
-
-.progress {
-    #gradient > .vertical(#e0e0e0, #e8e8e8);
-}
-
-.modal {
-
-       &-header {
-               border-bottom: none;
-       }
-
-       &-header,
-       &-body {
-               background-color: @navbarBackground;
-       }
-
-       &-footer {
-               background-color: @bodyBackground;
-       }
-}
-
-// MEDIA QUERIES
-// -----------------------------------------------------
+// Containers =================================================================
\ No newline at end of file