1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-30 18:15:21 +00:00
webvirtcloud/dev/scss/bootswatch/yeti/_bootswatch.scss

364 lines
6.1 KiB
SCSS
Raw Normal View History

// Yeti 5.2.2
2020-05-19 16:53:54 +00:00
// Bootswatch
// Variables
2020-05-19 16:53:54 +00:00
$web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" !default;
@if $web-font-path {
@import url($web-font-path);
}
2020-05-19 16:53:54 +00:00
:root {
color-scheme: light;
}
// Navbar
2020-05-19 16:53:54 +00:00
.navbar {
font-weight: $headings-font-weight;
}
.bg-primary {
.dropdown-menu {
background-color: $primary;
.dropdown-item,
.dropdown-item:focus {
color: $navbar-dark-color;
}
.dropdown-item.active,
.dropdown-item:hover,
.dropdown-item:focus {
color: $white;
background-color: shade-color($primary, 10%);
2020-05-19 16:53:54 +00:00
}
}
}
.bg-dark {
background-color: $gray-800 !important;
.dropdown-menu {
background-color: $gray-800;
.dropdown-item,
.dropdown-item:focus {
color: $navbar-dark-color;
}
.dropdown-item.active,
.dropdown-item:hover,
.dropdown-item:focus {
color: $white;
background-color: shade-color($gray-800, 10%);
2020-05-19 16:53:54 +00:00
}
}
}
.bg-light {
.dropdown-menu {
background-color: $gray-200;
.dropdown-item,
.dropdown-item:focus {
color: $navbar-light-color;
}
.dropdown-item.active,
.dropdown-item:hover,
.dropdown-item:focus {
color: $navbar-light-hover-color;
background-color: tint-color($gray-200, 10%);
2020-05-19 16:53:54 +00:00
}
}
}
// Buttons
2020-05-19 16:53:54 +00:00
.btn {
&-primary {
border-color: shade-color($primary, 10%);
2020-05-19 16:53:54 +00:00
}
&-secondary {
border-color: shade-color($secondary, 10%);
2020-05-19 16:53:54 +00:00
}
&-success {
border-color: shade-color($success, 10%);
2020-05-19 16:53:54 +00:00
}
&-info {
color: $white;
border-color: shade-color($info, 10%);
2020-05-19 16:53:54 +00:00
}
&-danger {
border-color: shade-color($danger, 10%);
2020-05-19 16:53:54 +00:00
}
&-warning {
color: $white;
border-color: shade-color($warning, 10%);
2020-05-19 16:53:54 +00:00
}
&-light {
border-color: shade-color($light, 10%);
2020-05-19 16:53:54 +00:00
}
&-dark {
border-color: shade-color($dark, 10%);
2020-05-19 16:53:54 +00:00
}
}
.btn-outline-secondary {
color: $black;
}
2020-05-19 16:53:54 +00:00
.btn-group {
.dropdown-menu {
border-top-width: 0;
}
.dropdown-toggle {
&.btn-primary ~ .dropdown-menu {
background-color: $primary;
border-color: shade-color($primary, 10%);
2020-05-19 16:53:54 +00:00
.dropdown-item {
color: $white;
}
.dropdown-item:hover,
.dropdown-item:focus {
background-color: shade-color($primary, 16%);
2020-05-19 16:53:54 +00:00
}
}
&.btn-secondary ~ .dropdown-menu {
background-color: $secondary;
border-color: shade-color($secondary, 10%);
2020-05-19 16:53:54 +00:00
.dropdown-item {
color: $body-color;
2020-05-19 16:53:54 +00:00
}
.dropdown-item:hover,
.dropdown-item:focus {
background-color: shade-color($secondary, 16%);
2020-05-19 16:53:54 +00:00
}
}
&.btn-success ~ .dropdown-menu {
background-color: $success;
border-color: shade-color($success, 10%);
2020-05-19 16:53:54 +00:00
.dropdown-item {
color: $white;
}
.dropdown-item:hover,
.dropdown-item:focus {
background-color: shade-color($success, 16%);
2020-05-19 16:53:54 +00:00
}
}
&.btn-info ~ .dropdown-menu {
background-color: $info;
border-color: shade-color($info, 10%);
2020-05-19 16:53:54 +00:00
.dropdown-item {
color: $white;
}
.dropdown-item:hover,
.dropdown-item:focus {
background-color: shade-color($info, 16%);
2020-05-19 16:53:54 +00:00
}
}
&.btn-warning ~ .dropdown-menu {
background-color: $warning;
border-color: shade-color($warning, 10%);
2020-05-19 16:53:54 +00:00
.dropdown-item {
color: $white;
}
.dropdown-item:hover,
.dropdown-item:focus {
background-color: shade-color($warning, 16%);
2020-05-19 16:53:54 +00:00
}
}
&.btn-danger ~ .dropdown-menu {
background-color: $danger;
border-color: shade-color($danger, 10%);
2020-05-19 16:53:54 +00:00
.dropdown-item {
color: $white;
}
.dropdown-item:hover,
.dropdown-item:focus {
background-color: shade-color($danger, 16%);
2020-05-19 16:53:54 +00:00
}
}
}
}
// Typography
2020-05-19 16:53:54 +00:00
.text-secondary {
color: $gray-700 !important;
}
.blockquote-footer {
color: $gray-600;
}
// Tables
2020-05-19 16:53:54 +00:00
table {
font-size: $font-size-sm;
}
// Forms
2020-05-19 16:53:54 +00:00
label,
.control-label,
.help-block,
.checkbox,
.radio,
.form-control-feedback {
font-size: $font-size-sm;
}
// Navs
2020-05-19 16:53:54 +00:00
.dropdown-item {
padding-top: .75rem;
padding-bottom: .75rem;
2020-05-19 16:53:54 +00:00
font-size: $font-size-sm;
font-weight: 300;
}
.nav-tabs {
.nav-link,
.nav-link.disabled,
.nav-link.disabled:hover,
.nav-link.disabled:focus {
background-color: $gray-200;
border-color: $nav-tabs-border-color;
2020-05-19 16:53:54 +00:00
}
.nav-item + .nav-item {
.nav-link {
border-left: none;
}
2020-05-19 16:53:54 +00:00
}
}
.nav-pills {
.active {
border: 1px solid shade-color($primary, 10%);
2020-05-19 16:53:54 +00:00
}
}
.breadcrumb {
font-size: $font-size-sm;
font-weight: 300;
text-transform: uppercase;
border: 1px solid $dropdown-border-color;
2020-05-19 16:53:54 +00:00
}
.pagination {
font-weight: 300;
.page-link {
margin-right: .1em;
margin-left: .1em;
2020-05-19 16:53:54 +00:00
border-color: transparent;
border-radius: 3px;
&:hover,
&:focus {
text-decoration: none;
}
}
.page-item.disabled {
.page-link {
border-color: transparent;
}
}
}
.pagination,
.pagination-lg,
.pagination-sm {
.page-item:first-child,
.page-item:last-child {
.page-link {
border-radius: 3px;
}
}
}
.list-group {
font-size: $font-size-sm;
font-weight: 300;
}
// Indicators
2020-05-19 16:53:54 +00:00
.alert {
font-size: $font-size-sm;
font-weight: 300;
color: $white;
.alert-link {
color: $white;
2020-05-19 16:53:54 +00:00
text-decoration: underline;
}
&:not(.alert-secondary):not(.alert-light) .btn-close {
background-image: escape-svg(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$white}'><path d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/></svg>"));
}
2020-05-19 16:53:54 +00:00
&-secondary,
&-light {
&,
a:not(.btn),
.alert-link {
2020-05-19 16:53:54 +00:00
color: $body-color;
}
}
}
.badge {
&.bg-secondary,
&.bg-light {
color: $dark;
2020-05-19 16:53:54 +00:00
}
}
// Progress bars
2020-05-19 16:53:54 +00:00
.progress[value] {
height: 22px;
padding: 2px;
background-color: #f6f6f6;
border: 1px solid #ccc;
@include box-shadow(none);
}
// Popovers
2020-05-19 16:53:54 +00:00
.popover-header {
border-top-left-radius: 0;
border-top-right-radius: 0;
}