1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Bootstrap5 (#17)

* Bootstrap5 migration
This commit is contained in:
catborise 2021-07-07 14:12:38 +03:00 committed by GitHub
parent 1663a49cee
commit 073b7b6717
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
244 changed files with 9494 additions and 8597 deletions

View file

@ -1,16 +1,17 @@
// Yeti 4.6.0
// Yeti 5.0.2
// Bootswatch
// Variables ===================================================================
// Variables
$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;
@import url($web-font-path);
@if $web-font-path {
@import url($web-font-path);
}
// Navbar ======================================================================
// Navbar
.navbar {
font-size: $font-size-sm;
font-weight: $headings-font-weight;
}
@ -26,7 +27,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-item.active,
.dropdown-item:hover,
.dropdown-item:focus {
background-color: darken($primary, 5%);
background-color: shade-color($primary, 10%);
color: $white;
}
}
@ -46,7 +47,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-item.active,
.dropdown-item:hover,
.dropdown-item:focus {
background-color: darken($gray-800, 5%);
background-color: shade-color($gray-800, 10%);
color: $white;
}
}
@ -64,47 +65,47 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-item.active,
.dropdown-item:hover,
.dropdown-item:focus {
background-color: lighten($gray-200, 5%);
background-color: tint-color($gray-200, 10%);
color: $navbar-light-hover-color;
}
}
}
// Buttons =====================================================================
// Buttons
.btn {
&-primary {
border-color: darken($primary, 5%);
border-color: shade-color($primary, 10%);
}
&-secondary {
border-color: darken($secondary, 5%);
border-color: shade-color($secondary, 10%);
}
&-success {
border-color: darken($success, 5%);
border-color: shade-color($success, 10%);
}
&-info {
border-color: darken($info, 5%);
border-color: shade-color($info, 10%);
color: $white;
}
&-danger {
border-color: darken($danger, 5%);
border-color: shade-color($danger, 10%);
}
&-warning {
border-color: darken($warning, 5%);
border-color: shade-color($warning, 10%);
color: $white;
}
&-light {
border-color: darken($light, 5%);
border-color: shade-color($light, 10%);
}
&-dark {
border-color: darken($dark, 5%);
border-color: shade-color($dark, 10%);
}
}
@ -116,7 +117,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-toggle {
&.btn-primary ~ .dropdown-menu {
background-color: $primary;
border-color: darken($primary, 5%);
border-color: shade-color($primary, 10%);
.dropdown-item {
color: $white;
@ -124,13 +125,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-item:hover,
.dropdown-item:focus {
background-color: darken($primary, 8%);
background-color: shade-color($primary, 16%);
}
}
&.btn-secondary ~ .dropdown-menu {
background-color: $secondary;
border-color: darken($secondary, 5%);
border-color: shade-color($secondary, 10%);
.dropdown-item {
color: $body-color;
@ -138,13 +139,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-item:hover,
.dropdown-item:focus {
background-color: darken($secondary, 8%);
background-color: shade-color($secondary, 16%);
}
}
&.btn-success ~ .dropdown-menu {
background-color: $success;
border-color: darken($success, 5%);
border-color: shade-color($success, 10%);
.dropdown-item {
color: $white;
@ -152,13 +153,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-item:hover,
.dropdown-item:focus {
background-color: darken($success, 8%);
background-color: shade-color($success, 16%);
}
}
&.btn-info ~ .dropdown-menu {
background-color: $info;
border-color: darken($info, 5%);
border-color: shade-color($info, 10%);
.dropdown-item {
color: $white;
@ -166,13 +167,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-item:hover,
.dropdown-item:focus {
background-color: darken($info, 8%);
background-color: shade-color($info, 16%);
}
}
&.btn-warning ~ .dropdown-menu {
background-color: $warning;
border-color: darken($warning, 5%);
border-color: shade-color($warning, 10%);
.dropdown-item {
color: $white;
@ -180,13 +181,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-item:hover,
.dropdown-item:focus {
background-color: darken($warning, 8%);
background-color: shade-color($warning, 16%);
}
}
&.btn-danger ~ .dropdown-menu {
background-color: $danger;
border-color: darken($danger, 5%);
border-color: shade-color($danger, 10%);
.dropdown-item {
color: $white;
@ -194,13 +195,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
.dropdown-item:hover,
.dropdown-item:focus {
background-color: darken($danger, 8%);
background-color: shade-color($danger, 16%);
}
}
}
}
// Typography ==================================================================
// Typography
.text-secondary {
color: $gray-700 !important;
@ -210,170 +211,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,
color: $gray-600;
}
// Tables ======================================================================
// Tables
table {
font-size: $font-size-sm;
}
.table {
&-primary,
&-success,
&-info,
&-warning,
&-danger {
color: $white;
}
&-primary {
&,
> th,
> td {
background-color: $primary;
}
}
&-secondary {
&,
> th,
> td {
background-color: $secondary;
}
}
&-light {
&,
> th,
> td {
background-color: $light;
}
}
&-dark {
&,
> th,
> td {
background-color: $dark;
}
}
&-success {
&,
> th,
> td {
background-color: $success;
}
}
&-info {
&,
> th,
> td {
background-color: $info;
}
}
&-danger {
&,
> th,
> td {
background-color: $danger;
}
}
&-warning {
&,
> th,
> td {
background-color: $warning;
}
}
&-active {
&,
> th,
> td {
background-color: $table-active-bg;
}
}
&-hover {
.table-primary:hover {
&,
> th,
> td {
background-color: darken($primary, 5%);
}
}
.table-secondary:hover {
&,
> th,
> td {
background-color: darken($secondary, 5%);
}
}
.table-light:hover {
&,
> th,
> td {
background-color: darken($light, 5%);
}
}
.table-dark:hover {
&,
> th,
> td {
background-color: darken($dark, 5%);
}
}
.table-success:hover {
&,
> th,
> td {
background-color: darken($success, 5%);
}
}
.table-info:hover {
&,
> th,
> td {
background-color: darken($info, 5%);
}
}
.table-danger:hover {
&,
> th,
> td {
background-color: darken($danger, 5%);
}
}
.table-warning:hover {
&,
> th,
> td {
background-color: darken($warning, 5%);
}
}
.table-active:hover {
&,
> th,
> td {
background-color: $table-active-bg;
}
}
}
}
// Forms =======================================================================
// Forms
label,
.control-label,
@ -384,7 +228,7 @@ label,
font-size: $font-size-sm;
}
// Navs ========================================================================
// Navs
.dropdown-item {
padding-top: .75rem;
@ -404,22 +248,24 @@ label,
.nav-link:hover,
.nav-link:focus {
background-color: lighten($gray-200, 5%);
background-color: tint-color($gray-200, 10%);
}
}
.nav-pills {
.active {
border: 1px solid darken($primary, 5%);
border: 1px solid shade-color($primary, 10%);
}
}
.breadcrumb {
border: 1px solid $dropdown-border-color;
border-radius: 3px;
font-size: $font-size-sm;
font-weight: 300;
text-transform: uppercase;
a {
text-decoration: none;
}
}
.pagination {
@ -460,93 +306,22 @@ label,
font-weight: 300;
}
// Indicators ==================================================================
.close {
opacity: .6;
text-shadow: none;
&:hover,
&:focus {
opacity: 1;
}
}
// Indicators
.alert {
font-size: $font-size-sm;
font-weight: 300;
color: $white;
&-primary {
&,
> th,
> td {
background-color: $primary;
}
}
&-secondary {
&,
> th,
> td {
background-color: $secondary;
}
}
&-success {
&,
> th,
> td {
background-color: $success;
}
}
&-info {
&,
> th,
> td {
background-color: $info;
}
}
&-danger {
&,
> th,
> td {
background-color: $danger;
}
}
&-warning {
&,
> th,
> td {
background-color: $warning;
}
}
&-dark {
&,
> th,
> td {
background-color: $dark;
}
}
&-light {
&,
> th,
> td {
background-color: $light;
}
}
.alert-link {
font-weight: 400;
color: $white;
text-decoration: underline;
}
&:not(.alert-secondary):not(.alert-light) .btn-close {
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'><path d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/></svg>");
}
&-secondary,
&-light {
&,
@ -558,15 +333,13 @@ label,
}
.badge {
padding-bottom: .3em;
&-warning,
&-info {
color: $white;
&.bg-secondary,
&.bg-light {
color: $dark;
}
}
// Progress bars ===============================================================
// Progress bars
.progress[value] {
height: 22px;
@ -576,8 +349,7 @@ label,
@include box-shadow(none);
}
// Popovers ===============================================================
// Popovers
.popover-header {
border-top-left-radius: 0;

View file

@ -1,6 +1,8 @@
// Yeti 4.6.0
// Yeti 5.0.2
// Bootswatch
$theme: "yeti" !default;
//
// Color system
//
@ -37,7 +39,7 @@ $danger: $red !default;
$light: $gray-200 !default;
$dark: $gray-900 !default;
$yiq-contrasted-threshold: 200 !default;
$min-contrast-ratio: 1.9 !default;
// Components
@ -49,10 +51,12 @@ $border-radius-sm: 0 !default;
// stylelint-disable-next-line value-keyword-case
$font-family-sans-serif: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
$font-size-base: .9375rem !default;
$font-size-sm: $font-size-base * .88 !default;
$headings-font-weight: 300 !default;
// Tables
$table-bg-scale: 0 !default;
// Buttons
$input-btn-padding-x: .5rem !default;
@ -82,10 +86,6 @@ $pagination-border-color: $nav-tabs-border-color !default;
$pagination-active-border-color: darken($primary, 5%) !default;
$pagination-disabled-color: $gray-200 !default;
// Jumbotron
$jumbotron-padding: 4rem !default;
// Cards
$card-inner-border-radius: 0 !default;
@ -95,6 +95,12 @@ $card-inner-border-radius: 0 !default;
$badge-font-weight: 300 !default;
$badge-padding-x: 1rem !default;
// Alerts
$alert-link-font-weight: 400 !default;
$alert-bg-scale: 0 !default;
// Progress bars
$progress-bg: $gray-400 !default;
@ -104,7 +110,16 @@ $progress-bar-color: $white !default;
$list-group-disabled-bg: $gray-200 !default;
// Breadcrumbs
$breadcrumb-padding-y: .375rem !default;
$breadcrumb-padding-x: .75rem !default;
$breadcrumb-border-radius: 3px !default;
// Close
$close-color: $gray-600 !default;
$close-text-shadow: none !default;
$btn-close-color: $gray-600 !default;
$btn-close-opacity: .6 !default;
$btn-close-hover-opacity: 1 !default;
$link-decoration: none !default;