2.2.2 -> 2.3.0
[bootswatch] / journal / bootswatch.less
index 65e6f68..c5bfc6a 100755 (executable)
-// Bootswatch.less
-// Swatch: Journal
-// Version: 2.0.3
+// Journal 2.3.0
+// Bootswatch
 // -----------------------------------------------------
 
+
 // TYPOGRAPHY
 // -----------------------------------------------------
 
-@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');
+@import url('//fonts.googleapis.com/css?family=News+Cycle:400,700');
+
+h1, h2, h3, h4, h5, h6 {
+
+       margin: 0 0 10px;
+       line-height: 1.2;
 
-h1, h2, h3, h4, h5, h6, .navbar .brand {
-       font-weight: 700;
+       a {
+               color: @headingsColor;
+       }
+}
+
+h1 { font-size: 48px; }
+
+h2 { font-size: 36px; }
+
+h3 { font-size: 28px; }
+
+h4 { font-size: 20px; }
+
+h5 { font-size: 13px; }
+
+p > a,
+address > a,
+.breadcrumb a,
+abbr[title] {
+       text-decoration: none;
+       border-bottom: 1px dotted;
+
+       &:hover {
+               text-decoration: none;
+               border-bottom: 1px solid;
+       }
+}
+
+code, pre {
+       .border-radius(0);
+       background-color: @grayLighter;
+       .box-shadow(none);
 }
 
 // SCAFFOLDING
 // -----------------------------------------------------
 
-a {
-       text-decoration: underline;
+.page-header {
+       border-bottom: 2px solid @grayLighter;
 }
 
-.nav a, .navbar .brand, .subnav a, a.btn, .dropdown-menu a {
-       text-decoration: none;
+hr {
+       border-bottom: 1px solid @grayLighter;
 }
 
 // NAVBAR
 // -----------------------------------------------------
 
 .navbar {
-       
+
+       font-family: @sansFontFamily;
+       font-weight: bold;
+
        .navbar-inner {
-               @shadow: 0 2px 4px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
-               .box-shadow(@shadow);
-               border-top: 1px solid #E5E5E5;
+               border-bottom: 2px solid @grayLighter;
                .border-radius(0);
+               .box-shadow(none);
        }
-               
+
        .brand {
+               padding: 19px 20px 21px;
+               font-size: 24px;
+               font-weight: bold;
                text-shadow: none;
-
-               &:hover {
-                       background-color: #EEEEEE;
-               }
+               text-transform: uppercase;
        }
-       
+
        .nav > li > a {
-               text-shadow: none;              
+               padding: 20px 10px 20px;
+               font-size: 18px;
+               text-shadow: none;
+               text-transform: uppercase;
        }
 
-       .nav .active > a,
-       .nav .active > a:hover {
-               color: @navbarLinkColor;
-               background-color: rgba(0, 0, 0, 0);
+       .nav > .active > a {
+               background-color: transparent;
        }
-               
-       .nav .active > a:hover,
-       .nav > li > a:hover,
-       .nav-collapse.in .nav li > a:hover {
-               background-color: #EEEEEE;
+
+       .navbar-text {
+               margin-top: 20px;
+               padding-left: 10px;
+               padding-right: 10px;
+               font-size: 18px;
+               line-height: 20px;
        }
 
-       .dropdown-menu {
-               .border-radius(0);              
+       .nav > .active > a,
+       .nav > .active > a:hover,
+       .nav > .active > a:focus {
+               .box-shadow(none);
        }
 
-       .nav li.dropdown .dropdown-toggle .caret,
-       .nav .open .caret,
-       .nav .open .dropdown-toggle:hover .caret {
-               border-top-color: @black;
-               opacity: 1;
+       .divider-vertical {
+               border-left-color: @grayLighter;
+               border-right-color: @grayLighter;
        }
-               
-       .nav-collapse .nav li > a {
-               color: @textColor;
-               text-decoration: none;
-               font-weight: normal;    
+
+       .dropdown-menu {
+
+               top: 85%;
+               .border-radius(0);
+
+               a {
+                       font-size: 15px;
+                       font-weight: bold;
+               }
        }
-       
-       .nav-collapse .navbar-form,
-       .nav-collapse .navbar-search {
-               border-color: transparent;
-       }       
-       
+
        .navbar-search .search-query,
        .navbar-search .search-query:hover {
-               border: 1px solid @grayLighter;
+               border: 2px solid @grayLighter;
                color: @textColor;
                .placeholder(@gray);
        }
 }
 
+@media (max-width: @navbarCollapseWidth) {
+
+       .nav-collapse .navbar-form,
+       .nav-collapse .navbar-search {
+               margin-bottom: 0;
+               border-top: 2px solid @grayLighter;
+               border-bottom: 2px solid @grayLighter;
+       } 
+
+
+
+       .navbar .nav-collapse {
+
+               .nav li > a {
+                       color: @navbarLinkColor;
+
+                       &:hover {
+                               background-color: @dropdownLinkBackgroundHover;
+                       }
+               }
+
+               .navbar-text {
+                       margin-top: 0;
+               }
+       }
+
+       .navbar-inverse .nav-collapse {
+
+               .nav li > a {
+                       color: @navbarInverseLinkColor;
+
+                       &:hover {
+                               background-color: #111;
+                               background-image: none;
+                       }
+               }
+
+       }
+}
+
 div.subnav {
-       background-color: @bodyBackground;
-       background-image: none;
-       @shadow: 0 1px 2px rgba(0,0,0,.25);
-       .box-shadow(@shadow);
+
+       margin: 0 1px;
+       height: 54px;
+       background: @bodyBackground none;
+       .box-shadow(none);
+       border: 2px solid @grayLighter;
+       border-left: none;
+       border-right: none;
        .border-radius(0);
-       
-       .nav > li > a:hover,
-       .nav > .active > a,
-       .nav > .active > a:hover {
-               color: @textColor;
-               text-decoration: none;
-               font-weight: normal;
+
+       &.subnav-fixed {
+               top: @navbarHeight + 1;
+               margin: 0;
+               border-top: none;
        }
 
+       .nav > li > a,
        .nav > li:first-child > a,
-       .nav > li:first-child > a:hover {
-               .border-radius(0);
-       }       
+       .nav > li.active > a {
+               padding: 20px 15px;
+               border-left: none;
+               border-right: none;
+               background-color: transparent;
+               .box-shadow(none);
+               font-family: @sansFontFamily;
+               color: @headingsColor;
+               font-size: 15px;
+               font-weight: bold;
+
+               &:hover {
+                       padding: 20px 15px;
+                       background-color: transparent;
+                       .box-shadow(none);
+                       color: @headingsColor;
+               }
+       }
+
+       li.dropdown > .dropdown-toggle .caret ,
+       li.dropdown > .dropdown-toggle:hover .caret,
+       li.dropdown.open > .dropdown-toggle .caret {
+               border-top-color: @headingsColor;
+               border-bottom-color: @headingsColor;
+               opacity: 1;
+       }
+
+       li.dropdown.open .dropdown-toggle,
+       li.dropdown.open .dropdown-toggle:hover {
+               background-color: @bodyBackground;
+               color: @headingsColor;
+       }
 }
 
+// NAV
+// -----------------------------------------------------
+
 // BUTTONS
 // -----------------------------------------------------
 
-.btn-primary {
-  .buttonBackground(lighten(@linkColor, 5%), @linkColor);
+[class^="icon-"], [class*=" icon-"] {
+       vertical-align: baseline;
 }
 
-// MODALS
+.btn-inverse {
+       .buttonBackground(@grayDarker, @black);
+}
+
+// TABLES
+// -----------------------------------------------------
+
+.table-bordered {
+       .border-radius(0);
+       .box-shadow(none);
+}
+
+// FORMS
+// -----------------------------------------------------
+
+legend {
+       border-bottom: 2px solid @grayLighter;
+       font-family: @headingsFontFamily;
+       font-weight: @headingsFontWeight;
+       color: @headingsColor;
+}
+
+// DROPDOWNS
+// -----------------------------------------------------
+
+// MISC
 // -----------------------------------------------------
 
+.well {
+       .border-radius(0);
+       .box-shadow(none);
+}
+
+.hero-unit {
+       padding: 30px 60px;
+       border: 1px solid rgba(0,0,0,.05);
+       .border-radius(0);
+       .box-shadow(none);
+
+       h1 {
+               margin: 0 0 10px;
+               line-height: 1.2;
+       }
+}
+
+// a.thumbnail:hover {
+//     .box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.3));
+//     border-color: #ddd;
+// }
+
 .modal {
        .border-radius(0px);
        background: @bodyBackground;
@@ -129,30 +291,42 @@ div.subnav {
        border-bottom: none;
 }
 
-.modal-header .close {
-       text-decoration: none;
-}
-
 .modal-footer {
+       border-top: none;
        background: transparent;
        .box-shadow(none);
-       border-top: none;
 }
 
+.close,
+.close:hover {
+       border-bottom: none;
+}
 
-// MISC
+// MEDIA QUERIES
 // -----------------------------------------------------
 
-code, pre, pre.prettyprint, .well {
-       background-color: @grayLighter;
-}
+@media (max-width: 768px) {
 
-.hero-unit {
-    .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
-       border: 1px solid rgba(0,0,0,.05);
-       .border-radius(0);
-}
+       div.subnav {
 
-.table-bordered, .well, .prettyprint {
-       .border-radius(0);
+               height: auto;
+
+               .nav > li.active > a {
+                       border-top: none;
+               }
+
+               .nav > li:hover > a,
+               .nav > li:first-child:hover > a,
+               .nav > li.active:hover > a,
+               .nav > li.dropdown.open .dropdown-toggle, 
+               .nav > li.dropdown.open .dropdown-toggle:hover {
+                       background-color: @dropdownLinkBackgroundHover;
+               }
+       }
+
+       .nav-tabs .open .dropdown-toggle,
+       .nav-pills .open .dropdown-toggle,
+       .nav > li.dropdown.open.active > a:hover {
+               border-color: #e5e5e5;
+       }
 }