1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-21 10:04:51 +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;
}
}