2.2.2 -> 2.3.0
[bootswatch] / cyborg / bootswatch.less
index ac76c7b..f730a9e 100755 (executable)
-// Bootswatch.less
-// Swatch: Cyborg
+// Cyborg 2.3.0
+// Bootswatch
 // -----------------------------------------------------
 
+
 // TYPOGRAPHY
 // -----------------------------------------------------
 
-// Ubuntu web font
-@import url('http://fonts.googleapis.com/css?family=Droid+Sans:400,700');
-
-h1, h2, h3, h4, h5, .navbar .brand, .navbar .nav-collapse.collapse .nav li > a {
-       color: @grayLighter;
-       font-weight: normal;
-       text-shadow: none;
-}
+@import url('//fonts.googleapis.com/css?family=Droid+Sans:400,700');
 
-.navbar {
-       font-size: 16px;
-}
-
-label, input, button, select, textarea {
+label, input, button, select, textarea,
+.navbar .search-query:-moz-placeholder,
+.navbar .search-query::-webkit-input-placeholder {
        font-family: 'Droid Sans', sans-serif;
        color: @gray;
 }
 
-.navbar .search-query&::-moz-placeholder {
-       font-family: 'Droid Sans', sans-serif;
-       color: @gray;
+code, pre {
+       background-color: @grayLighter;
 }
-       
-.navbar .search-query&:::-webkit-input-placeholder {
-       font-family: 'Droid Sans', sans-serif;
+
+blockquote {
+       border-left: 5px solid @grayDark;
+
+       &.pull-right {
+               border-right: 5px solid @grayDark;
+       }
 }
 
 // SCAFFOLDING
 // -----------------------------------------------------
 
-body {
-       background-color: #060606;
-       #gradient > .vertical (#060606, #252A30);
+html {
+       min-height: 100%;
 }
 
-hr {
-       border-top: 1px solid #222;
-       border-bottom: 0;
+body {
+       min-height: 100%;
+       #gradient > .vertical (@bodyBackground, #252A30);
 }
 
 .page-header {
-       border-bottom: 2px solid @blue
+       border-bottom: 1px solid @grayDark
+}
+
+hr {
+       border-bottom: none;
 }
 
 // NAVBAR
 // -----------------------------------------------------
 
-.navbar-inner {
-  .border-radius(0);
-  @shadow: none;
-  .box-shadow(@shadow);
-  border-bottom: 2px solid @blue
-}
+.navbar {
 
-.navbar .nav li > a {
-       padding: 13px 10px 8px;
-       border-bottom: 3px solid rgba(0, 0, 0, 0);
-}
+       .navbar-inner {
+               .border-radius(0);
+               .box-shadow(none);
+               border-bottom: 1px solid @grayDark;
+       }
 
-.navbar .brand {
-       padding: 12px 20px 8px;
-}
+       .brand {
+               padding: 15px 20px 15px;
+               color: @grayLighter;
+               font-weight: normal;
+               text-shadow: none;
+       }
 
-.navbar .search-query {
-       background: @black;
-       .border-radius(1px);
-}
+       .nav > li > a {
+               padding: 15px 15px 14px;
+               border-bottom: 1px solid transparent;
+       }
 
-.navbar .nav .active > a,
-.navbar .nav li > a:hover,
-.navbar .brand:hover {
-       border-bottom: 3px solid @blue
-}
+       .nav > li > a:hover,
+       .nav > .active > a,
+       .nav > .active > a:hover {
+               border-bottom: 1px solid @blue;
+       }
 
-// Added dividers to items
-.navbar .nav > li > a {
-       border-left: 1px solid #222;    
-}
+       .nav > .active > a,
+       .nav > .active > a:hover,
+       .nav > .active > a:focus {
+               .box-shadow(none);
+       }
 
-.dropdown-menu {
-       background-color: #191A1A;
-       border-left: solid 1px rgba(256,256,256,.1);
-       .box-shadow(0 2px 4px rgba(0,0,0,.8));
-}
+       .navbar-text {
+               margin-bottom: 1px;
+               padding: 15px 15px 14px;
+               line-height: inherit;
+       }
 
-.dropdown-menu li > a:hover {
-       background-color: @blue;
-       border-bottom: 3px solid transparent;
-}
+       .divider-vertical {
+               margin: 0;
+               border-left: 1px solid @grayDark;
+               border-right-width: 0;
+       }
 
-.dropdown-menu .divider {
-       background-color: #222;
-       border-bottom: 0px solid white;
-}
+       .search-query,
+       .search-query:focus,
+       .search-query.focused {
+               .border-radius(1px);
+               background-color: @grayDark;
+               line-height: normal;
+               color: @grayLight;
+               text-shadow: none;
+               .placeholder(@gray);
+       }
 
-.navbar .dropdown-menu::before,
-.navbar .dropdown-menu::after {
-       display: none;
-}
+       &-inverse {
 
-.navbar .nav-collapse.collapse .nav > li > a {
-       border-left: 0;
+       }
 }
 
-.navbar .nav-collapse.collapse .nav a:hover {
-       background-color: @blue;
-}
+@media (max-width: @navbarCollapseWidth) {
 
-div.subnav {
-       position: static;
-       background-color: @grayDarker;
-       background-image: none;
-       border: 0;
-}
+       .navbar .nav-collapse {
 
-div.subnav.subnav-fixed {
-       position: relative;
-       left: -1px;
-       top: auto;
-}
+               .nav li > a {
+                       border: none;
+                       color: @grayLighter;
+                       font-weight: normal;
+                       text-shadow: none;
 
-div.subnav .nav li > a,
-div.subnav .nav .active a {
-       border-left: 1px solid #222;
-       border-right: 0;
-       color: @grayLighter;
-       background-color: @grayDarker;
-}
+                       &:hover {
+                               border: none;
+                               background-color: @blue;
+                       }
+               }
 
-.subnav .nav > li > a:hover,
-.subnav .nav > li.active > a:hover,
-.subnav .nav > li:first-child > a:hover {
-       background: transparent;
-       border-bottom: 2px solid @blue;
-       border-left: 1px solid #222;
-       color: @white;
-}
+               .nav .active > a {
+                       border: none;
+                       background-color: @blue;
+               }
 
-div.subnav .nav .dropdown.open {
+               .dropdown-menu a:hover {
+                       background-color: @blue;
+               }
 
-       .dropdown-toggle {
-               border: 0;
-               border-left: 1px solid #222;
-           border-bottom: 2px solid @blue;
-               background-color: #060606;
+               .navbar-form,
+               .navbar-search {
+                       border-top: none;
+                       border-bottom: none;
+               }
+
+               .nav-header {
+                       color: rgba(128, 128, 128, 0.6);
+               }
        }
 
-       .dropdown-menu {
-               background-color: @grayDarker;
-               border-left: 0;
-               
-               li > a:hover {
-                       border-bottom: 0;
-                       background: @blue;
+       .navbar-inverse .nav-collapse {
+
+               .nav li > a:hover {
+                       background-color: #111;
+               }
+
+               .nav .active > a {
+                       background-color: #111;
+               }
+
+               .nav li.dropdown.open > .dropdown-toggle,
+               .nav li.dropdown.active > .dropdown-toggle,
+               .nav li.dropdown.open.active > .dropdown-toggle {
+                       background-color: #111;
                }
        }
 }
 
-@media (max-width: 768px) {
-       div.subnav .nav > li + li > a,
-       div.subnav .nav > li:first-child > a {
-               border-top: 1px solid #222;
-               border-left: 1px solid #222;
+div.subnav {
+
+       margin: 0 1px;
+       background-color: @grayDarker;
+       background-image: none;
+       border: none;
+       border-bottom: 1px solid @grayDark;
+
+       .nav > li > a,
+       .nav > li:first-child > a,
+       .nav > li:first-child > a:hover {
+               padding: 11px 12px;
+               border: none;
+               background-color: @grayDarker;
+               color: @grayLight;
        }
-       
-       .subnav .nav > li + li > a:hover,
-       .subnav .nav > li:first-child > a:hover {
-                       border-bottom: 0;
-                       background-color: @blue;
+
+       .nav > li > a:hover,
+       .nav > li.active > a,
+       .nav > li.active > a:hover,
+       .nav > li:first-child > a:hover {
+               padding: 11px 12px;
+               background: transparent;
+               border: none;
+               border-bottom: 1px solid @blue;
+               color: @white;
        }
-       
-}
 
-// TABLES
-// -----------------------------------------------------
+       .nav li.nav-header {
+               text-shadow: none;
+       }
 
-.table-bordered {
-  border: 1px solid #222;
-  
-  th + th,
-  td + td,
-  th + td,
-  td + th {
-    border-left: 1px solid #222;
-  }
-  // Prevent a double border
-  thead:first-child tr:first-child th,
-  tbody:first-child tr:first-child th,
-  tbody:first-child tr:first-child td {
-    border-top: 0;
-  }
-}
 
-.table th, .table td {
-       border-top: 1px solid #222;
-}
 
-// make shaded elements light gray
-.breadcrumb,
-.table-striped tbody tr:nth-child(odd) td,
-.table-striped tbody tr:nth-child(odd) th {
-       background-color: rgba(40, 40, 40, 0.5);
-}
 
-code, pre, pre.prettyprint {
-       background-color: @grayLighter;
+       &-fixed {
+               top: @navbarHeight;
+               margin: 0;
+       }
 }
 
-.well {
-       background-color: rgba(40, 40, 40, 0.5);
-       background-color: #131517;
-       border-top: solid 1px rgba(256,256,256,.1);
-       .box-shadow(0 2px 4px rgba(0,0,0,.8));
-}
+// NAV
+// -----------------------------------------------------
 
+.nav-tabs {
 
-.table, .well, .prettyprint, input, textarea, select {
-       .border-radius(1px);
-}
+       border-bottom: 1px solid @grayDark;
 
-input, textarea, select, .uneditable-input {
-       color: @grayDark;
+       li > a:hover,
+       li.active > a,
+       li.active > a:hover {
+               border-color: transparent;
+               background-color: @blue;
+               color: @white;
+       }
+
+       .open .dropdown-toggle {
+               background-color: #060606;
+               border-color: transparent;
+       }
 }
 
+.nav-pills {
 
-// NAVIGATION
-// -----------------------------------------------------
+       li > a:hover {
+               background-color: @blue;
+               color: @white;
+       }
 
+       .open .dropdown-toggle {
+               background-color: #060606;
+       }
 
-.nav-list > li > a, .nav-list .nav-header {
-       text-shadow: none;
+       .dropdown-menu li > a:hover {
+               border: none;
+       }
 }
 
-.nav-list li > a:hover,
-.nav-tabs li > a:hover,
-.nav-tabs li.active > a,
-.nav-pills li > a:hover,
-.nav-stacked li > a:hover,
-.nav-stacked li.active > a {
-       background-color: @blue;
-       color: @white;
-}
+.nav-list {
 
-.nav-tabs {
-       border-bottom: 1px solid #222;
-}
+       li > a {
+               text-shadow: none;
+       }
 
-.nav-stacked > li > a,
-.nav-tabs > li > a:hover,
-.nav-tabs > .active > a,
-.nav-tabs > .active > a:hover {
-       border: 1px solid #222 !important;
-}
+       li > a:hover {
+               background-color: @blue;
+               color: @white;
+       }
 
-.nav.nav-tabs .active a:hover {
-       background-color: @blue;
-       color: @white;
+       .nav-header {
+               text-shadow: none;
+       }
+
+       .divider {
+               background-color: transparent;
+               border-bottom: 1px solid @grayDark;
+       }
 }
 
-.nav.nav-tabs .dropdown.open,
-.nav.nav-pills .dropdown.open {
-       .dropdown-toggle {
-               background-color: #060606 !important;
-               border-top: 0;
-               border: 1px solid #222;
+.nav-stacked {
+
+       li > a {
+               border: 1px solid @grayDark !important;
+       }
+
+       li > a:hover,
+       li.active > a {
+               background-color: @blue;
+               color: @white;
        }
-       
-       .dropdown-menu li > a:hover { border-bottom: 0; }
 }
 
-.tabbable .nav-tabs, .thumbnail {
-       border-color: #222;
+.tabbable  {
+       .nav-tabs,
+       .nav-tabs li.active > a {
+               border-color: @grayDark;
+       }
 }
 
 .breadcrumb {
+       
        background-color: transparent;
        background-image: none;
        border-width: 0;
        .box-shadow(none);
        font-size: 14px;
-       
-       li > a {
-               color: @blue;
+
+       li {
                text-shadow: none;
        }
-       
-       li.active {
+
+       li > a {
+               color: @blue;
                text-shadow: none;
        }
 }
 
 .pagination {
+
        ul {
                .box-shadow(none);
        }
-       
-       a {
-               border: 0;
-               font-size: 14px;
+
+       ul > li > a:hover,
+       ul > .active > a,
+       ul > .active > span {
+               // color: @white;       
+       }
+
+       ul > .disabled > a,
+       ul > .disabled > a:hover,
+       ul > .disabled > span,
+       ul > .disabled > span:hover {
+               background-color: rgba(0, 0, 0, 0.2);
        }
-       
-       a:hover, .active a {
-               background-color: @blue;
-               color: @white;
-       }       
+}
+
+.pager {
+
+       li > a,
+       li > span {
+               background-color: @bodyBackground;
+               border: none;
+
+               &:hover {
+                       background-color: @blue;
+               }
+       }
+
+       .disabled a,
+       .disabled a:hover {
+               background-color: @bodyBackground;
+       }
+
 }
 
 // BUTTONS
 // -----------------------------------------------------
 
-.btn, {
-       border: 0;
-       .border-radius(3px);
+.btn {
        .box-shadow(1px 1px 2px #111);
        .buttonBackground(darken(@gray, 20%), darken(@gray, 30%));
        color: @white;
        text-shadow: none;
-       
+
        &:hover {
-           background-color: darken(@gray, 35%);
                text-shadow: none;
                color: @white;
        }
 }
 
-// Set the backgrounds
-// -------------------------
 .btn-primary {
   .buttonBackground(@blueDark, darken(@blueDark, 10%));
 }
-// Warning appears are orange
+
 .btn-warning {
   .buttonBackground(lighten(@orange, 10%), @orange);
 }
-// Danger and error appear as red
+
 .btn-danger {
   .buttonBackground(lighten(@red, 10%), @red);
 }
-// Success appears as green
+
 .btn-success {
   .buttonBackground(lighten(@green, 10%), @green);
 }
-// Info appears as a neutral blue
+
 .btn-info {
   .buttonBackground(darken(@gray, 40%), darken(@gray, 50%));
 }
 
-.btn-group .btn:first-child {
-    -webkit-border-top-left-radius: 3px;
-       -moz-border-top-left-radius: 3px;
-            border-top-left-radius: 3px;
-
-    -webkit-border-bottom-left-radius: 3px;
-       -moz-border-bottom-left-radius: 3px;
-            border-bottom-left-radius: 3px;
-}
-
-.btn-group .btn:last-child, .btn-group .dropdown-toggle {
-    -webkit-border-top-right-radius: 3px;
-       -moz-border-top-right-radius: 3px;
-            border-top-right-radius: 3px;
-
-    -webkit-border-bottom-right-radius: 3px;
-       -moz-border-bottom-right-radius: 3px;
-            border-bottom-right-radius: 3px;
-       
+.btn-inverse {
+  .buttonBackground(lighten(@purple, 5%), @purple);
 }
 
 .btn .caret {
@@ -389,9 +395,39 @@ input, textarea, select, .uneditable-input {
 // FORMS
 // -----------------------------------------------------
 
+input, textarea, select {
+       border-width: 2px;
+       .border-radius(1px);
+}
 
-.form-actions {
-       background: transparent;
+select, textarea,
+input[type="text"], input[type="password"], input[type="datetime"],
+input[type="datetime-local"], input[type="date"], input[type="month"],
+input[type="time"], input[type="week"], input[type="number"],
+input[type="email"], input[type="url"], input[type="search"],
+input[type="tel"], input[type="color"], .uneditable-input {
+       color: @grayDark;
+}
+
+input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly], .uneditable-input {
+       border-color: #444;
+}
+
+input:focus,
+textarea:focus,
+input.focused,
+textarea.focused {
+  border-color: rgba(82,168,236,1);
+  outline: 0;
+  outline: thin dotted \9; /* IE6-9 */
+}
+
+input[type="file"]:focus,
+input[type="radio"]:focus,
+input[type="checkbox"]:focus,
+select:focus {
+  .box-shadow(none); // override for file inputs
+  .tab-focus();
 }
 
 legend, label {
@@ -399,14 +435,99 @@ legend, label {
        border-bottom: 0px solid #222;
 }
 
-.form-actions, footer.footer {
+.form-actions {
        border-top: 1px solid #222;
 }
 
+// TABLES
+// -----------------------------------------------------
+
+.table {
+
+       .border-radius(1px);
+
+       tbody tr.success td {
+               background-color: @green;
+               color: @white;
+       }
+
+       tbody tr.error td {
+               background-color: @red;
+               color: @white;
+       }
+
+       tbody tr.info td {
+               background-color: @blue;
+               color: @white;
+       }
+}
+
+// DROPDOWNS
+// -----------------------------------------------------
+
+.dropdown-menu {
+       .box-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
+}
+
+// ALERTS, LABELS, BADGES
+// -----------------------------------------------------
+
+.alert,
+.alert .alert-heading,
+.alert-success,
+.alert-success .alert-heading,
+.alert-danger,
+.alert-error,
+.alert-danger .alert-heading,
+.alert-error .alert-heading,
+.alert-info,
+.alert-info .alert-heading {
+  color: @grayLighter;
+  text-shadow: none;
+  border: none;
+}
+
+.label {
+       color: @grayLighter;
+}
+
+.label, .alert { background-color: darken(@gray, 20%); }
+
+.label:hover { background-color: darken(@gray, 30%); }
+
+.label-important,
+.alert-danger,
+.alert-error { background-color: @red; }
+
+.label-important:hover { background-color: darken(@red, 10%); }
+
+.label-warning   { background-color: darken(@orange, 10%); }
+
+.label-warning:hover { background-color: darken(@orange, 20%); }
+
+.label-success, .alert-success { background-color: darken(@green, 3%); }
 
-// MISCELLANEOUS
+.label-success:hover { background-color: darken(@green, 13%); }
+
+.label-info, .alert-info { background-color: darken(@blueDark, 10%); }
+
+.label-info:hover { background-color: darken(@blueDark, 20%); }
+
+// MISC
 // -----------------------------------------------------
 
+.well, .hero-unit {
+       .border-radius(1px);
+}
+
+.well, .hero-unit {
+       border-top: solid 1px lighten(@grayDark, 5%);
+       .box-shadow(0 2px 4px rgba(0,0,0,.8));
+}
+
+.thumbnail {
+       border-color: @grayDark;
+}
 
 .progress {
        background-color: #060606;
@@ -414,8 +535,40 @@ legend, label {
        .border-radius(0);
 }
 
-.label { background-color: darken(@gray, 20%); }
-.label-important { background-color: @red; }
-.label-warning   { background-color: darken(@orange, 10%); }
-.label-success   { background-color: darken(@green, 3%); }
-.label-info      { background-color: darken(@blueDark, 10%); }
+.modal {
+       .border-radius(1px);
+       border-top: solid 1px lighten(@grayDark, 5%);
+       background-color: @grayDark;
+}
+
+.modal-header {
+       border-bottom: 1px solid @grayDark;
+}
+
+.modal-footer {
+       background-color: @grayDark;
+       border-top: 1px solid @grayDark;
+       .border-radius(0 0 6px 6px);
+       .box-shadow(none);
+}
+
+.footer {
+       border-top: 1px solid @grayDark;
+}
+
+// MEDIA QUERIES
+// -----------------------------------------------------
+
+@media (max-width: 768px) {
+       div.subnav .nav > li + li > a,
+       div.subnav .nav > li:first-child > a {
+               border-top: 1px solid @grayDark;
+               border-left: 1px solid @grayDark;
+       }
+
+       .subnav .nav > li + li > a:hover,
+       .subnav .nav > li:first-child > a:hover {
+                       border-bottom: 0;
+                       background-color: @blue;
+       }
+}