123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- /**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
- // Forked Cosmo 3.3.7
- // Bootswatch
- // -----------------------------------------------------
- // Navbar =====================================================================
- .navbar {
- border: none;
- li > a:focus {
- outline: 0;
- }
- &-inverse {
- .badge {
- background-color: @lightest;
- color: @brand-primary;
- }
- }
- .caret {
- display: inline-block;
- padding: 0 5px 18px 5px;
- }
- }
- .navbar-inverse {
- border: 3px solid @navbar-inverse-bg;
- }
- .navbar-inverse .navbar-nav > li > a:hover,
- .navbar-inverse .navbar-nav > li > a:focus,
- .navbar-inverse .navbar-nav > li.active > a {
- background: transparent;
- border-bottom: 3px solid @brand-primary;
- margin-bottom: -3px;
- }
- .navbar-inverse .navbar-nav > .active > a,
- .navbar-inverse .navbar-nav > .active > a:hover,
- .navbar-inverse .navbar-nav > .active > a:focus {
- background: transparent;
- }
- .navbar-nav > li > a {
- padding-top: 18px;
- }
- // Buttons ====================================================================
- .btn-default:hover {
- color: @gray-dark;
- background-color: @gray-bg;
- }
- .nav-tabs {
- .dropdown-toggle.btn,
- .btn-group.open .dropdown-toggle.btn {
- &,
- &:hover,
- &:active,
- &:focus {
- border-color: transparent;
- background-color: transparent;
- box-shadow: none;
- }
- }
- }
- .caret {
- border: none;
- color: @gray;
- &:hover {
- color: @gray-darker;
- }
- &:before {
- font-family: 'FontAwesome';
- font-size: @font-size-xs;
- content: '\f078';
- }
- }
- // Typography =================================================================
- body {
- -webkit-font-smoothing: antialiased;
- }
- .text-primary,
- .text-primary:hover {
- color: @brand-primary;
- }
- .text-success,
- .text-success:hover {
- color: @success;
- }
- .text-danger,
- .text-danger:hover {
- color: @brand-danger;
- }
- .text-warning,
- .text-warning:hover {
- color: @brand-warning;
- }
- .text-info,
- .text-info:hover {
- color: @brand-info;
- }
- // Tables =====================================================================
- table,
- .table {
- .dropdown-menu a {
- text-decoration: none;
- }
- .success,
- .warning,
- .danger,
- .info {
- color: @lightest;
- a {
- color: @lightest;
- }
- .btn-default {
- color: @gray;
- }
- }
- }
- // Forms ======================================================================
- .has-warning {
- .help-block,
- .control-label,
- .radio,
- .checkbox,
- .radio-inline,
- .checkbox-inline,
- &.radio label,
- &.checkbox label,
- &.radio-inline label,
- &.checkbox-inline label,
- .form-control-feedback {
- color: @brand-warning;
- }
- .form-control,
- .form-control:focus,
- .input-group-addon {
- border: 1px solid @brand-warning;
- }
- }
- .has-error {
- .help-block,
- .control-label,
- .radio,
- .checkbox,
- .radio-inline,
- .checkbox-inline,
- &.radio label,
- &.checkbox label,
- &.radio-inline label,
- &.checkbox-inline label,
- .form-control-feedback {
- color: @brand-danger;
- }
- .form-control,
- .form-control:focus,
- .input-group-addon {
- border: 1px solid @brand-danger;
- }
- }
- .has-success {
- .help-block,
- .control-label,
- .radio,
- .checkbox,
- .radio-inline,
- .checkbox-inline,
- &.radio label,
- &.checkbox label,
- &.radio-inline label,
- &.checkbox-inline label,
- .form-control-feedback {
- color: @brand-success;
- }
- .form-control,
- .form-control:focus,
- .input-group-addon {
- border: 1px solid @brand-success;
- }
- }
- // Navs =======================================================================
- .nav-pills {
- & > li > a {
- border-radius: @border-radius-normal;
- }
- }
- .dropdown-menu {
- & > li > a:hover,
- & > li > a:focus {
- background-image: none;
- }
- }
- // Indicators =================================================================
- .close {
- text-decoration: none;
- text-shadow: none;
- opacity: 0.4;
- &:hover,
- &:focus {
- opacity: 1;
- }
- }
- .alert {
- border: none;
- }
- .alert-link {
- text-decoration: underline;
- }
- .alert-info .alert-link {
- color: @alert-info-text;
- }
- .alert-danger .alert-link {
- color: @alert-danger-text;
- }
- .alert-warning .alert-link {
- color: @alert-warning-text;
- }
- .alert-success .alert-link {
- color: @alert-success-text;
- }
- .label {
- border-radius: @border-radius-normal;
- }
- label {
- font-weight: @font-weight-normal;
- }
- // Progress bars ==============================================================
- .progress {
- height: 14px;
- .box-shadow(none);
- .progress-bar {
- font-size: @font-size-s;
- line-height: @line-height-tight;
- padding-top: 1px;
- }
- }
- // Containers =================================================================
- .panel {
- border: none;
- &-heading,
- &-footer {
- border-top-right-radius: 0;
- border-top-left-radius: 0;
- }
- &-default {
- .panel-heading {
- padding: 15px 15px 0 15px;
- background-color: transparent;
- }
- .panel-title {
- color: @text-color;
- padding-bottom: 5px;
- border-bottom: 1px solid @gray-light;
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- margin: 10px 0 0 0;
- font-weight: @font-weight-bold;
- }
- }
- .close {
- color: @text-color;
- }
- }
- &-primary {
- .panel-heading {
- padding: 15px 15px 0 15px;
- background-color: transparent;
- }
- .panel-title {
- color: @text-color;
- padding-bottom: 5px;
- border-bottom: 1px solid @gray-light;
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- margin: 10px 0 0 0;
- font-weight: @font-weight-bold;
- }
- }
- .close {
- color: @text-color;
- }
- }
- }
- .panel-title-large {
- font-size: 24px;
- }
- a.list-group-item {
- &-success {
- &.active {
- background-color: @state-success-bg;
- }
- &.active:hover,
- &.active:focus {
- background-color: darken(@state-success-bg, 5%);
- }
- }
- &-warning {
- &.active {
- background-color: @state-warning-bg;
- }
- &.active:hover,
- &.active:focus {
- background-color: darken(@state-warning-bg, 5%);
- }
- }
- &-danger {
- &.active {
- background-color: @state-danger-bg;
- }
- &.active:hover,
- &.active:focus {
- background-color: darken(@state-danger-bg, 5%);
- }
- }
- }
- .modal {
- .close {
- color: @text-color;
- }
- }
- .popover {
- color: @text-color;
- }
- // Tabs ==============================================================
- .nav-tabs > li > a {
- border-top: 3px solid transparent;
- }
- .nav-tabs > li.active > a,
- .nav-tabs > li.active > a:hover,
- .nav-tabs > li.active > a:focus {
- background-color: @lightest;
- font-weight: @font-weight-bold;
- border-top: 3px solid @brand-primary;
- }
- // Tables ==============================================================
- .table {
- .info {
- color: @state-info-text;
- }
- .danger {
- color: @state-danger-text;
- }
- .warning {
- color: @state-warning-text;
- }
- .success {
- color: @state-success-text;
- }
- }
- // Utils ==============================================================
- hr {
- margin: 10px 0;
- }
- // generate space-n classes for vertical spacing
- .space-loop(@counter) when (@counter > 0) {
- .space-loop((@counter - 1)); // next iteration
- .space-@{counter} {
- margin-bottom: (10px * @counter); // code for each iteration
- }
- }
- .space-loop(6);
- a {
- cursor: pointer;
- }
|