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,19 +1,15 @@
// Superhero 4.6.0
// Superhero 5.0.2
// Bootswatch
// Variables ===================================================================
// Variables
$web-font-path: "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap" !default;
@import url($web-font-path);
// Navbar ======================================================================
.navbar {
font-size: $font-size-sm;
@if $web-font-path {
@import url($web-font-path);
}
// Buttons =====================================================================
// Buttons
.btn {
@each $color, $value in $theme-colors {
@ -27,7 +23,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&
}
}
// Typography ==================================================================
// Typography
.dropdown-menu {
font-size: $font-size-sm;
@ -41,7 +37,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&
color: $body-color;
}
// Tables ======================================================================
// Tables
.table {
font-size: $font-size-sm;
@ -62,158 +58,9 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&
.text-muted {
color: $text-muted;
}
&-primary {
&,
> th,
> td {
background-color: $primary;
}
}
&-secondary {
&,
> th,
> td {
background-color: $secondary;
}
}
&-light {
&,
> th,
> td {
background-color: $light;
}
}
&-dark {
color: $white;
&,
> 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,
.radio label,
@ -222,7 +69,13 @@ label,
font-size: $font-size-sm;
}
// Navs ========================================================================
.form-floating {
label {
color: $input-placeholder-color;
}
}
// Navs
.nav-tabs,
.nav-pills {
@ -242,7 +95,7 @@ label,
text-decoration: none;
}
// Indicators ==================================================================
// Indicators
.alert {
border: none;
@ -272,25 +125,14 @@ label,
}
}
.close {
color: $white;
text-shadow: none;
opacity: .5;
&:hover,
&:focus {
opacity: 1;
}
}
// Popovers ===============================================================
// Popovers
.popover-header {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
// Containers ==================================================================
// Containers
.modal {
&-header,
@ -298,3 +140,9 @@ label,
background-color: $table-hover-bg;
}
}
.breadcrumb {
a {
text-decoration: none;
}
}

View file

@ -1,6 +1,8 @@
// Superhero 4.6.0
// Superhero 5.0.2
// Bootswatch
$theme: "superhero" !default;
//
// Color system
//
@ -17,13 +19,13 @@ $gray-800: #343a40 !default;
$gray-900: #212529 !default;
$black: #000 !default;
$blue: #df691a !default;
$blue: #4c9be8 !default;
$indigo: #6610f2 !default;
$purple: #6f42c1 !default;
$pink: #e83e8c !default;
$red: #d9534f !default;
$orange: #f0ad4e !default;
$yellow: #f0ad4e !default;
$yellow: #ffc107 !default;
$green: #5cb85c !default;
$teal: #20c997 !default;
$cyan: #5bc0de !default;
@ -35,13 +37,13 @@ $info: $cyan !default;
$warning: $yellow !default;
$danger: $red !default;
$light: lighten($gray-200, 35%) !default;
$dark: $gray-200 !default;
$dark: #20374c !default;
$yiq-contrasted-threshold: 185 !default;
$min-contrast-ratio: 1.6 !default;
// Body
$body-bg: #2b3e50 !default;
$body-bg: #0f2537 !default;
$body-color: $gray-100 !default;
// Components
@ -67,13 +69,26 @@ $table-dark-bg: $light !default;
$table-dark-border-color: $gray-200 !default;
$table-dark-color: $body-bg !default;
$table-bg-scale: 0 !default;
// Forms
$input-disabled-bg: $gray-100 !default;
$input-color: $gray-900 !default;
$input-border-color: transparent !default;
$input-border-width: 0 !default;
$input-placeholder-color: $gray-600 !default;
$input-group-addon-color: $body-color !default;
$custom-file-button-color: $white !default;
$custom-file-border-color: $gray-200 !default;
$form-check-input-bg: $white !default;
$form-check-input-border: none !default;
$form-file-button-color: $body-color !default;
$form-floating-label-opacity: 1 !default;
// Dropdowns
@ -92,7 +107,6 @@ $nav-tabs-link-active-border-color: $gray-200 !default;
// Navbar
$navbar-padding-y: .7rem !default;
$navbar-dark-color: rgba($white, .75) !default;
$navbar-dark-hover-color: $white !default;
@ -134,6 +148,7 @@ $modal-header-border-color: rgba(0, 0, 0, .2) !default;
// List group
$list-group-color: $white !default;
$list-group-bg: $gray-200 !default;
$list-group-border-color: transparent !default;
$list-group-hover-bg: $nav-link-disabled-color !default;
@ -143,9 +158,20 @@ $list-group-action-hover-color: $white !default;
// Breadcrumbs
$breadcrumb-padding-y: .375rem !default;
$breadcrumb-padding-x: .75rem !default;
$breadcrumb-bg: $gray-200 !default;
$breadcrumb-divider-color: $body-color !default;
$breadcrumb-active-color: $body-color !default;
// Close
$btn-close-color: $white !default;
$btn-close-opacity: .5 !default;
$btn-close-hover-opacity: 1 !default;
// Code
$pre-color: inherit !default;
$link-decoration: none !default;