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 @@
// Cyborg 4.6.0
// Cyborg 5.0.2
// Bootswatch
// Variables ===================================================================
// Variables
$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" !default;
@import url($web-font-path);
@if $web-font-path {
@import url($web-font-path);
}
// Navbar ======================================================================
// Navbar
.navbar {
&.bg-primary {
@ -32,7 +34,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&di
}
}
// Buttons =====================================================================
// Buttons
.btn {
@each $color, $value in $theme-colors {
@ -46,162 +48,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&di
}
}
// Tables ======================================================================
table {
color: $white;
}
.table {
&-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
legend {
color: $white;
@ -216,7 +63,7 @@ legend {
}
}
// Navs ========================================================================
// Navs
.nav-tabs,
.nav-pills {
@ -242,6 +89,7 @@ legend {
.breadcrumb {
a {
color: $white;
text-decoration: none;
}
}
@ -251,7 +99,7 @@ legend {
}
}
// Indicators ==================================================================
// Indicators
.alert {
border: none;
@ -275,49 +123,17 @@ legend {
}
.badge {
&-warning {
color: $white;
&.bg-dark {
color: $gray-900;
}
}
.close {
opacity: .6;
&:hover {
opacity: 1;
}
}
// Containers ==================================================================
// Containers
.list-group-item {
&:hover {
background-color: $gray-700;
color: $white;
}
&-action {
color: $gray-500;
.list-group-item-heading {
color: $gray-500;
}
}
&:hover .list-group-item-heading {
color: $white;
}
}
.card,
.list-group-item {
h1,
h2,
h3,
h4,
h5,
h6 {
color: inherit;
border-color: $primary;
}
}

View file

@ -1,6 +1,8 @@
// Cyborg 4.6.0
// Cyborg 5.0.2
// Bootswatch
$theme: "cyborg" !default;
//
// Color system
//
@ -17,7 +19,7 @@ $gray-800: #222 !default;
$gray-900: #212529 !default;
$black: #000 !default;
$blue: #2a9fd6 !default;
$blue: #105677 !default;
$indigo: #6610f2 !default;
$purple: #6f42c1 !default;
$pink: #e83e8c !default;
@ -37,7 +39,7 @@ $danger: $red !default;
$light: $gray-800 !default;
$dark: $gray-400 !default;
$yiq-contrasted-threshold: 175 !default;
$min-contrast-ratio: 2.25 !default;
// Body
@ -49,7 +51,6 @@ $body-color: $gray-400 !default;
// stylelint-disable-next-line value-keyword-case
$font-family-sans-serif: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !default;
$font-size-base: .875rem !default;
$h1-font-size: 4rem !default;
$h2-font-size: 3rem !default;
$h3-font-size: 2.5rem !default;
@ -66,6 +67,8 @@ $table-border-color: $gray-700 !default;
$table-dark-bg: $gray-500 !default;
$table-dark-border-color: darken($gray-500, 7.5%) !default;
$table-bg-scale: 0 !default;
// Buttons
$input-btn-padding-x: 1rem !default;
@ -73,12 +76,19 @@ $input-btn-padding-x: 1rem !default;
// Forms
$input-disabled-bg: $gray-400 !default;
$input-color: $gray-900 !default;
$input-border-color: $white !default;
$input-border-width: 0 !default;
$input-group-addon-color: $white !default;
$input-group-addon-bg: $gray-700 !default;
$input-group-addon-border-color: transparent !default;
$custom-file-color: $white !default;
$custom-file-border-color: $gray-700 !default;
$form-check-input-bg: $white !default;
$form-check-input-border: none !default;
$form-file-button-color: $white !default;
// Dropdowns
@ -111,11 +121,6 @@ $pagination-hover-border-color: $pagination-border-color !default;
$pagination-disabled-bg: $pagination-bg !default;
$pagination-disabled-border-color: $pagination-border-color !default;
// Jumbotron
$jumbotron-bg: $gray-700 !default;
// Cards
$card-bg: $gray-700 !default;
@ -149,21 +154,29 @@ $progress-bg: $gray-700 !default;
// List group
$list-group-color: $white !default;
$list-group-bg: $gray-800 !default;
$list-group-border-color: $gray-700 !default;
$list-group-hover-bg: $primary !default;
$list-group-disabled-bg: $gray-700 !default;
$list-group-action-color: $white !default;
$list-group-action-active-bg: $primary !default;
// Breadcrumbs
$breadcrumb-padding-y: .375rem !default;
$breadcrumb-padding-x: .75rem !default;
$breadcrumb-bg: $gray-700 !default;
$breadcrumb-border-radius: .25rem !default;
// Close
$close-color: $white !default;
$close-text-shadow: none !default;
$btn-close-color: $white !default;
$btn-close-opacity: .6 !default;
$btn-close-hover-opacity: 1 !default;
// Code
$pre-color: inherit !default;
$link-decoration: none !default;