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,13 +1,15 @@
// Solar 4.6.0
// Solar 5.0.2
// Bootswatch
// Variables ===================================================================
// Variables
$web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" !default;
@import url($web-font-path);
@if $web-font-path {
@import url($web-font-path);
}
// Buttons =====================================================================
// Buttons
.btn {
@each $color, $value in $theme-colors {
@ -21,195 +23,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@4
}
}
// Tables ======================================================================
.table {
&-primary,
&-secondary,
&-dark,
&-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 =======================================================================
.custom-control-input:checked ~ .custom-control-label::before {
background-color: $primary;
background-image: none;
}
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
border-color: $primary;
}
.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
background-color: $primary;
background-image: none;
border-color: $primary;
}
.custom-switch {
.custom-control-label::after {
background-color: rgba(255, 255, 255, 1);
}
.custom-control-input:checked ~ .custom-control-label::after {
background-color: rgba(255, 255, 255, .75);
}
}
// Indicators ==================================================================
// Indicators
.alert {
border: none;
@ -239,3 +53,16 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@4
}
}
}
.badge {
&.bg-light {
color: $dark;
}
}
.breadcrumb {
a {
text-decoration: none;
}
}

View file

@ -1,6 +1,8 @@
// Solar 4.6.0
// Solar 5.0.2
// Bootswatch
$theme: "solar" !default;
//
// Color system
//
@ -38,7 +40,7 @@ $danger: $red !default;
$light: $gray-100 !default;
$dark: $gray-800 !default;
$enable-gradients: true;
$min-contrast-ratio: 2.5 !default;
// Body
@ -68,15 +70,31 @@ $table-dark-bg: $gray-500 !default;
$table-dark-border-color: darken($gray-500, 3%) !default;
$table-dark-color: $body-bg !default;
$table-bg-scale: 0 !default;
// Forms
$input-bg: #a9bdbd !default;
$input-disabled-bg: #657b83 !default;
$input-color: $gray-800 !default;
$input-border-color: rgba($black, .15) !default;
$input-placeholder-color: #657b83 !default;
$input-group-addon-color: $gray-600 !default;
$input-group-addon-bg: $gray-800 !default;
$form-check-input-bg: rgba(255, 255, 255, .75) !default;
$form-check-input-border: 1px solid $white !default;
$form-check-input-checked-bg-color: $primary !default;
$form-switch-color: rgba(255, 255, 255, .75) !default;
$form-switch-focus-color: $form-switch-color !default;
$form-range-track-bg: $gray-800 !default;
$form-range-thumb-bg: $primary !default;
$form-file-button-color: $gray-600 !default;
// Dropdowns
$dropdown-bg: $gray-800 !default;
@ -111,10 +129,6 @@ $pagination-disabled-color: $gray-800 !default;
$pagination-disabled-bg: transparent !default;
$pagination-disabled-border-color: $gray-800 !default;
// Jumbotron
$jumbotron-bg: $gray-800 !default;
// Cards
$card-border-color: rgba($gray-900, .95) !default;
@ -148,24 +162,30 @@ $progress-bar-color: $primary !default;
// List group
$list-group-color: $white !default;
$list-group-bg: transparent !default;
$list-group-border-color: $gray-800 !default;
$list-group-hover-bg: $gray-800 !default;
$list-group-active-color: rgba(255, 255, 255, .75) !default;
$list-group-disabled-color: $component-active-bg !default;
$list-group-active-color: $white !default;
$list-group-disabled-color: $gray-600 !default;
$list-group-disabled-bg: transparent !default;
$list-group-action-color: $body-color !default;
$list-group-action-hover-color: $component-active-color !default;
$list-group-action-hover-color: $white !default;
// Breadcrumbs
$breadcrumb-padding-y: .375rem !default;
$breadcrumb-padding-x: .75rem !default;
$breadcrumb-bg: $component-active-bg !default;
$breadcrumb-active-color: $gray-500 !default;
$breadcrumb-border-radius: .25rem !default;
// Close
$close-color: $body-color !default;
$close-text-shadow: none !default;
$btn-close-color: $body-color !default;
// Code
$pre-color: inherit !default;
$link-decoration: none !default;