123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608 |
- // Paper 3.3.4
- // Bootswatch
- // -----------------------------------------------------
- @import url("//fonts.googleapis.com/css?family=Roboto:300,400,500,700");
- // Navbar =====================================================================
- .navbar {
- border: none;
- @include box-shadow(0 1px 2px rgba(0,0,0,.3));
- &-brand {
- font-size: 24px;
- }
- &-inverse {
- .form-control {
- color: #fff;
- @include placeholder($navbar-inverse-link-color);
- &[type=text] {
- @include box-shadow(inset 0 -1px 0 $navbar-inverse-link-color);
- &:focus {
- @include box-shadow(inset 0 -2px 0 #fff);
- }
- }
- }
- }
- &-nav > li > .dropdown-menu {
- margin-top: 2px;
- }
- }
- // Buttons ====================================================================
- @mixin btn($class,$bg){
- .btn-#{$class} {
- background-size: 200%;
- background-position: 50%;
- &:hover,
- &:active:hover,
- &:focus {
- background-color: darken($bg, 6%);
- }
- &:active {
- background-color: darken($bg, 6%);
- @include gradient-radial(darken($bg, 6%) 10%, $bg 11%);
- background-size: 1000%;
- @include box-shadow(2px 2px 2px rgba(0,0,0,.3));
- }
- }
- }
- @include btn(default,$btn-default-bg);
- @include btn(primary,$btn-primary-bg);
- @include btn(success,$btn-success-bg);
- @include btn(info,$btn-info-bg);
- @include btn(warning,$btn-warning-bg);
- @include btn(danger,$btn-danger-bg);
- .btn {
- text-transform: uppercase;
- border-right: none;
- border-bottom: none;
- @include box-shadow(1px 1px 2px rgba(0,0,0,.3));
- @include transition(all 0.2s);
- &-link {
- @include box-shadow(none);
- &:hover,
- &:focus {
- color: $brand-primary;
- text-decoration: none;
- }
- }
- &-default.disabled {
- border: 1px solid $btn-default-border;
- }
- }
- .btn-group {
- .btn + .btn,
- .btn + .btn-group,
- .btn-group + .btn,
- .btn-group + .btn-group {
- margin-left: 0;
- }
- &-vertical {
- > .btn + .btn,
- > .btn + .btn-group,
- > .btn-group + .btn,
- > .btn-group + .btn-group {
- margin-top: 0;
- }
- }
- }
- // Typography =================================================================
- body {
- -webkit-font-smoothing: antialiased;
- letter-spacing: .1px;
- text-rendering: optimizeLegibility;
- }
- p {
- margin: 0 0 1em;
- }
- input,
- button {
- -webkit-font-smoothing: antialiased;
- letter-spacing: .1px;
- text-rendering: optimizeLegibility;
- }
- a {
- @include transition(all 0.2s);
- }
- // Tables =====================================================================
- // Forms ======================================================================
- label {
- font-weight: normal;
- }
- textarea,
- textarea.form-control,
- input.form-control,
- input[type=text],
- input[type=password],
- input[type=email],
- input[type=number],
- [type=text].form-control,
- [type=password].form-control,
- [type=email].form-control,
- [type=tel].form-control,
- [contenteditable].form-control {
- padding: 0;
- border: none;
- border-radius: 0;
- -webkit-appearance: none;
- @include box-shadow(inset 0 -1px 0 #ddd);
- font-size: 16px;
- &:focus {
- @include box-shadow(inset 0 -2px 0 $brand-primary);
- }
- &[disabled],
- &[readonly] {
- @include box-shadow(none);
- border-bottom: 1px dotted #ddd;
- }
- &.input {
- &-sm {
- font-size: $font-size-small;
- }
- &-lg {
- font-size: $font-size-large;
- }
- }
- }
- select,
- select.form-control {
- border: 0;
- border-radius: 0;
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- padding-left: 0;
- padding-right: 0\9; // remove padding for < ie9 since default arrow can't be removed
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmaP/QSjAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
- background-size: 13px;
- background-repeat: no-repeat;
- background-position: right center;
- @include box-shadow(inset 0 -1px 0 #ddd);
- font-size: 16px;
- line-height: 1.5;
- &::-ms-expand {
- display: none;
- }
- &.input {
- &-sm {
- font-size: $font-size-small;
- }
- &-lg {
- font-size: $font-size-large;
- }
- }
- &:focus {
- @include box-shadow(inset 0 -2px 0 $brand-primary);
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEUhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISF8S9ewAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
- }
- &[multiple] {
- background: none;
- }
- }
- .radio,
- .radio-inline,
- .checkbox,
- .checkbox-inline {
- label {
- padding-left: 25px;
- }
- input[type="radio"],
- input[type="checkbox"] {
- margin-left: -25px;
- }
- }
- input[type="radio"],
- .radio input[type="radio"],
- .radio-inline input[type="radio"] {
- position: relative;
- margin-top: 5px;
- margin-right: 4px;
- vertical-align: -4px;
- border: none;
- background-color: transparent;
- -webkit-appearance: none;
- appearance: none;
- cursor: pointer;
- &:focus {
- outline: none;
- }
- &:before,
- &:after {
- content: "";
- display: block;
- width: 18px;
- height: 18px;
- margin-top: -3px;
- border-radius: 50%;
- @include transition(240ms);
- }
- &:before {
- position: absolute;
- left: 0;
- top: 0;
- background-color: $brand-primary;
- @include scale(0);
- }
- &:after {
- border: 2px solid $gray;
- }
- &:checked:before {
- @include scale(0.5);
- }
- &:disabled:checked:before {
- background-color: $gray-light;
- }
- &:checked:after {
- border-color: $brand-primary;
- }
- &:disabled:after,
- &:disabled:checked:after {
- border-color: $gray-light;
- }
- }
- input[type="checkbox"],
- .checkbox input[type="checkbox"],
- .checkbox-inline input[type="checkbox"] {
- position: relative;
- vertical-align: -4px;
- border: none;
- -webkit-appearance: none;
- appearance: none;
- cursor: pointer;
- &:focus {
- outline: none;
- }
- &:after {
- content: "";
- display: block;
- width: 18px;
- height: 18px;
- margin-top: -2px;
- margin-right: 5px;
- border: 2px solid $gray;
- border-radius: 2px;
- @include transition(240ms);
- }
- &:checked:before {
- content: "";
- position: absolute;
- top: 0;
- left: 6px;
- display: table;
- width: 6px;
- height: 12px;
- border: 2px solid #fff;
- border-top-width: 0;
- border-left-width: 0;
- @include rotate(45deg);
- }
- &:checked:after {
- background-color: $brand-primary;
- border-color: $brand-primary;
- }
- &:disabled:after {
- border-color: $gray-light;
- }
- &:disabled:checked:after {
- background-color: $gray-light;
- border-color: transparent;
- }
- }
- .has-warning {
- input:not([type=checkbox]),
- .form-control,
- input:not([type=checkbox]):focus,
- .form-control:focus {
- @include box-shadow(inset 0 -2px 0 $brand-warning);
- }
- }
- .has-error {
- input:not([type=checkbox]),
- .form-control,
- input:not([type=checkbox]):focus,
- .form-control:focus {
- @include box-shadow(inset 0 -2px 0 $brand-danger);
- }
- }
- .has-success {
- input:not([type=checkbox]),
- .form-control,
- input:not([type=checkbox]):focus,
- .form-control:focus {
- @include box-shadow(inset 0 -2px 0 $brand-success);
- }
- }
- // Navs =======================================================================
- .nav-tabs {
- > li > a,
- > li > a:focus {
- margin-right: 0;
- background-color: transparent;
- border: none;
- color: $navbar-default-link-color;
- @include box-shadow(inset 0 -1px 0 #ddd);
- @include transition(all 0.2s);
- &:hover {
- background-color: transparent;
- @include box-shadow(inset 0 -2px 0 $brand-primary);
- color: $brand-primary;
- }
- }
- & > li.active > a,
- & > li.active > a:focus {
- border: none;
- @include box-shadow(inset 0 -2px 0 $brand-primary);
- color: $brand-primary;
- &:hover {
- border: none;
- color: $brand-primary;
- }
- }
- & > li.disabled > a {
- @include box-shadow(inset 0 -1px 0 #ddd);
- }
- &.nav-justified {
- & > li > a,
- & > li > a:hover,
- & > .active > a,
- & > .active > a:hover {
- border: none;
- }
- }
- .dropdown-menu {
- margin-top: 0;
- }
- }
- .dropdown-menu {
- border: none;
- @include box-shadow(0 1px 4px rgba(0,0,0,.3));
- }
- // Indicators =================================================================
- .alert {
- border: none;
- color: #fff;
- &-success {
- background-color: $brand-success;
- }
- &-info {
- background-color: $brand-info;
- }
- &-warning {
- background-color: $brand-warning;
- }
- &-danger {
- background-color: $brand-danger;
- }
- a:not(.close),
- .alert-link {
- color: #fff;
- font-weight: bold;
- }
- .close {
- color: #fff;
- }
- }
- .badge {
- padding: 3px 6px 5px;
- }
- .progress {
- position: relative;
- z-index: 1;
- height: 6px;
- border-radius: 0;
- @include box-shadow(none);
- &-bar {
- @include box-shadow(none);
- &:last-child {
- border-radius: 0 3px 3px 0;
- }
- &:last-child {
- &:before {
- display: block;
- content: "";
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- right: 0;
- z-index: -1;
- background-color: lighten($progress-bar-bg, 35%);
- }
- }
-
- &-success:last-child.progress-bar:before {
- background-color: lighten($brand-success, 35%);
- }
-
- &-info:last-child.progress-bar:before {
- background-color: lighten($brand-info, 45%);
- }
- &-warning:last-child.progress-bar:before {
- background-color: lighten($brand-warning, 35%);
- }
-
- &-danger:last-child.progress-bar:before {
- background-color: lighten($brand-danger, 25%);
- }
- }
- }
- // Progress bars ==============================================================
- // Containers =================================================================
- .close {
- font-size: 34px;
- font-weight: 300;
- line-height: 24px;
- opacity: 0.6;
- &:hover {
- opacity: 1;
- }
- }
- .list-group {
- &-item {
- padding: 15px;
- }
- &-item-text {
- color: $gray-light;
- }
- }
- .well {
- border-radius: 0;
- @include box-shadow(none);
- }
- .panel {
- border: none;
- border-radius: 2px;
- @include box-shadow(0 1px 4px rgba(0,0,0,.3));
- &-heading {
- border-bottom: none;
- }
- &-footer {
- border-top: none;
- }
- &-success {
- .panel-heading {
- background-color: $brand-success;
- }
- .panel-title {
- color: #fff;
- }
- }
- &-info {
- .panel-heading {
- background-color: $brand-info;
- }
- .panel-title {
- color: #fff;
- }
- }
- &-warning {
- .panel-heading {
- background-color: $brand-warning;
- }
- .panel-title {
- color: #fff;
- }
- }
- &-danger {
- .panel-heading {
- background-color: $brand-danger;
- }
- .panel-title {
- color: #fff;
- }
- }
- }
- .popover {
- border: none;
- @include box-shadow(0 1px 4px rgba(0,0,0,.3));
- }
- .carousel {
- &-caption {
- h1, h2, h3, h4, h5, h6 {
- color: inherit;
- }
- }
- }
|