/*------------------ Variables */ /*--- Main Colors */ @primaryColor: #ff0000; @secondaryColor: #9d0d05; /*--- Background Colors */ @backgroundColor: #fff; @contentColor: #fff; @contentHighlightColor: darken(@contentColor, 10%); /* darken if light color, lighten if dark color */ @lineColor: #ccc; /*--- Text Colors */ @textColor: #333; @secondaryTextColor: #999; /*--- State Colors */ @successColor: #5bb75b; @dangerColor: #da4f49; /*-----*/ /*------------------ Mixins */ .box-shadow(@shadow) { -webkit-box-shadow: @shadow; -moz-box-shadow: @shadow; box-shadow: @shadow; } .box-sizing(@boxmodel) { -webkit-box-sizing: @boxmodel; -moz-box-sizing: @boxmodel; box-sizing: @boxmodel; } .button-style(@color, @background) { color: @color; background-color: @background; .vertical-gradient(@background, darken(@background, 12%)); border-color: darken(@background, 14%); /* hover, focus, active */ &:hover, &:focus, &:active, &.active, .open > .dropdown-toggle { color: @color; background-color: darken(@background, 12%); border-color: darken(@background, 26%); } /* focus, active */ &:focus, &:active, &.active { border-color: darken(@background, 26%); .box-shadow(inset 0 3px 5px rgba(0,0,0,.25)); } /* disabled */ &.disabled, &[disabled], fieldset[disabled] { &, &:hover, &:focus, &:active, &.active { background-color: @background; border-color: darken(@background, 5%); } } } .transition(@properties) { -webkit-transition: @properties; -moz-transition: @properties; o-transition: @properties; transition: @properties; } .vertical-gradient(@startColor, @endColor) { background-image: -webkit-linear-gradient(top,@startColor 0,@endColor 100%); background-image: linear-gradient(to bottom,@startColor 0,@endColor 100%); } /*-----*/ /*------------------ @Font-face */ @font-face { font-family: "Fontname"; src: url("/themes/!!template_name!!/fonts/filename.eot"); src: url("/themes/!!template_name!!/fonts/filename.eot?#iefix") format("embedded-opentype"), url("/themes/!!template_name!!/fonts/filename.woff2") format("woff2"), url("/themes/!!template_name!!/fonts/filename.woff") format("woff"), url("/themes/!!template_name!!/fonts/filename.ttf") format("truetype"), url("/themes/!!template_name!!/fonts/filename.svg#FONTID") format("svg"); font-weight: normal; font-style: normal; } /*-----*/ /*------------------ DOM */ body { background-color: @backgroundColor; font-size: 14px; font-family: Arial, Helvetica, sans-serif; color: @textColor; font-weight: normal; } ::-moz-selection { background: @primaryColor; color: #fff; text-shadow: none; } ::-webkit-selection { background: @primaryColor; color: #fff; text-shadow: none; } ::selection { background: @primaryColor; color: #fff; text-shadow: none; } hr { border-top: 1px solid @lineColor; border-bottom: none; } .relative { position: relative; } img { display: inline-block; max-width: 100%; height: auto; } a img { display: inline; } .input-group-addon img { display: inline; max-width: none; } table img { max-width: none; } a:focus, button:focus { outline: 0 !important; } a[href^=tel], a[href^=tel]:hover { text-decoration: none; color: inherit; cursor: default; } /*-----*/ /*------------------ Forms */ .form-control:focus { outline: none; border-color: @primaryColor; @shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(red(@primaryColor),green(@primaryColor),blue(@primaryColor),0.6); .box-shadow(@shadow); } textarea { resize: vertical; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline { color: @dangerColor; } /*-----*/ /*------------------ Typography */ a { color: @primaryColor; text-decoration: none; } a:hover, a:focus { color: @secondaryColor; text-decoration: none; } h1, h2, h3, h4, h5, h6 { color: #333; font-weight: bold; } @headingBase: 18px; @headingRatio: 1.414; h1 { font-size: round(@headingBase * pow(@headingRatio, 2)); } h2 { font-size: round(@headingBase * @headingRatio); } h3 { font-size: @headingBase; } h4 { font-size: @headingBase; color: @secondaryTextColor; } h5 { font-size: round(@headingBase / @headingRatio); } h6 { font-size: round(@headingBase / @headingRatio); color: @secondaryTextColor; } /*-----*/ /*------------------ Buttons */ .btn-default { .button-style(#333, #fff); border-color: #ccc; } .btn-primary, .button { .button-style(#fff, @primaryColor); text-shadow: none; } .btn-success { .button-style(#fff, @successColor); } .btn-danger { .button-style(#fff, @dangerColor); } /*-----*/ /*------------------ Bootstrap Elements */ .lead { font-weight: normal; } .text-primary { color: @primaryColor; } .text-success { color: @successColor; } .text-danger { color: @dangerColor; } .text-muted { color: @secondaryTextColor; } .bg-primary { background-color: @primaryColor; } .bg-success { background-color: @successColor; } .bg-danger { background-color: @dangerColor; } .bg-primary, .bg-success, .bg-danger { margin-top: 20px; margin-bottom: 20px; } .bg-primary p:last-child, .bg-success p:last-child, .bg-danger p:last-child { margin-bottom: 0; } .table-striped tbody > tr:nth-child(odd) > td, .table-striped tbody > tr:nth-child(odd) > th, .table-hover tbody tr:hover > td, .table-hover tbody tr:hover > th, .well { background-color: @contentHighlightColor; } blockquote, blockquote.pull-right { border-color: @contentHighlightColor; } .table-bordered, .table-bordered th, .table-bordered td, .table th, .table td, .page-header, .well, legend, .form-actions { border-color: @lineColor; } legend { color: @textColor; } .help-block, .help-inline { color: @secondaryTextColor; } .form-actions { background-color: transparent; } .breadcrumb { background-color: @contentHighlightColor; } .breadcrumb > li + li:before { content: "/"; padding: 0 10px; } .pagination > li > a, .pagination > li > span { color: @primaryColor; } .pagination > li > a:hover, .pagination > li > span:hover { color: @secondaryColor; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { background-color: @primaryColor; border-color: @primaryColor; } .input-group-btn > .btn { z-index: 3; } .progress-bar { background-color: @primaryColor; .vertical-gradient(@primaryColor, darken(@primaryColor, 12%)); } /*-----*/ /*------------------ Header */ .banner h2 { margin-top: 23px; margin-bottom: 23px; } /*-----*/ /*------------------ Navigation */ /* Background */ .navbar { margin-bottom: 0; background-color: #ff0000; .vertical-gradient(#9d0d05, #ff0000); border-radius: 0; border: 0; } .sitelinks-container .sitelinks { /*--- Top Level */ /* Link Block */ li { } /* Link */ li a { color: #fff; /* Hover */ &:hover, &:active, &:focus { background-color: rgba(0, 0, 0, 0.08); } /* Parent */ &.parent { padding-right: 30px; &:before { display: inline-block; font-family: FontAwesome; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f0d7"; position: absolute; right: 15px; font-size: 14px; margin-top: 2px; } } } /* Link Active */ .active > a, .active > a:hover, .active > a:focus { } /* Link Open */ .open > a { background-color: rgba(0, 0, 0, 0.08); } /*--- Drop Level */ /* Container */ li .nav { background-color: #1b1b1b; border-radius: 0; min-width: 150px; /* Link Block */ li { float: none; /* Hover */ &:hover > a, &:active > a, &:focus > a { background-color: rgba(255, 255, 255, 0.05); } } /* Link */ li a { display: block; padding: 15px 15px; white-space: nowrap; /* Parent */ &.parent { padding-right: 30px; &:before { content: "\f0da"; } } } } /*--- Sub Levels */ /* Container */ li .nav li .nav { min-width: 0; } } /*--- Important Structure */ .sitelinks-container { position: relative; z-index: 200; .sitelinks { ul { width: auto; } li { position: relative; &.open > ul { display: block; } ul { position: absolute; display: none; } li:hover ul { top: 0; left: 100%; display: block; } li a { white-space: nowrap; } } } } .mobile-menu-button { display: none; } /*-----*/ /*------------------ Content */ .logo { float: left; } .cpage_body p, #spcu_info p { min-height: 15px; } .cpage_body p:last-child { margin-bottom: 0; } .cpage_body iframe { max-width: 100% } blockquote { font-size: 14px; font-style: italic; } /*-----*/ /*------------------ Calls to Action */ /*-----*/ /*------------------ Footer */ .footer { color: #e5e5e5; margin-top: 40px; padding-top: 15px; padding-bottom: 15px; text-align: center; background-color: #ff0000; .vertical-gradient(#9d0d05, #ff0000); p { margin: 0; } a { color: #e5e5e5; &:hover, &:focus, &:active { text-decoration: underline; } } } /*-----*/ /*------------------ User Pages */ .user-well { margin:auto; width:400px; } .user-well h2 { margin-top:0; margin-bottom:20px; } .si-well .checkbox { margin-top:0; margin-bottom:15px; } .si-secondary { margin-top: 20px; text-align: center; } /*-----*/ /*------------------ Helper Classes */ .margin-top-15 { margin-top: 15px; } .margin-bottom-15 { margin-bottom: 15px; } .margin-top-20 { margin-top: 20px; } .margin-bottom-20 { margin-bottom: 20px; } .margin-top-30 { margin-top: 30px; } .margin-bottom-30 { margin-bottom: 30px; } /*-----*/ /*------------------ Responsive */ /* Large */ @media (min-width: 1200px) { } /* Medium */ @media (min-width: 992px) and (max-width: 1199px) { } /* Small */ @media (min-width: 768px) and (max-width: 991px) { .banner h2 { margin-top: 28px; font-size: 16px; } } /* Extra Small */ @media (max-width: 767px) { /*------------------ Navigation (Change to Button) */ /*--- First Level */ .mobile-menu-button { width: 100%; padding: 14px 15px; color: #fff; &:hover, &:focus { color: #fff; text-decoration: none; } &:active, &.active { .box-shadow(inset 0 2px 4px 1px rgba(0,0,0,.25)); } } /* Container */ .sitelinks-container .sitelinks { border-radius: 0 0 4px 4px; background-color: #1b1b1b; margin: 0; left: 2px;; right: 2px; /* Link Block */ li { } /* Hover / Active */ .open > a, li a:hover, li a:active, li a:focus { background-color: rgba(255, 255, 255, 0.05); } /* Active */ .active > a, .active > a:hover, .sitelinks .active > a:focus { } /*--- Other Levels */ li .nav { border-left: 2px solid rgba(255, 255, 255, 0.05); /* Link Block */ li { } /* Link */ li a { } li a.parent:before { content: "\f0d7"; } } } /*--- Important Structure */ .sitelinks-container .sitelinks { display: none; position: absolute; min-width: 150px; li { float: none; clear: both; .nav { margin: 0 0 0 20px; } } li.open > ul { display: block; position: static; margin-bottom: 10px; } } .sitelinks-container.open .sitelinks { display: block; } .mobile-menu-button { display: inline-block; } /*--- User Pages */ .user-well { width: auto; } .cpage_body table, .cpage_body thead, .cpage_body th, .cpage_body tr, .cpage_body td { display: block; width: 100% !important; clear: both; } } /* Tiny */ @media (max-width: 480px) { /* Extra Bootstrap Class */ .col-xxs-12 { width: 100%; } } /*-----*/