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,7 +1,7 @@
// Litera 4.6.0
// Litera 5.0.2
// Bootswatch
// Navbar ======================================================================
// Navbar
.navbar {
font-size: $font-size-sm;
@ -24,7 +24,7 @@
}
}
// Typography ==================================================================
// Typography
p {
font-family: $font-family-serif;
@ -43,172 +43,14 @@ footer {
font-family: $font-family-sans-serif;
}
// Tables ======================================================================
// Tables
table,
.table {
font-size: $font-size-sm;
&-primary,
&-secondary,
&-success,
&-info,
&-warning,
&-danger {
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;
}
}
}
}
// Navs ========================================================================
// Navs
.nav,
.breadcrumb,
@ -220,7 +62,7 @@ table,
font-size: $font-size-sm;
}
// Indicators ==================================================================
// Indicators
.alert {
color: $white;
@ -258,11 +100,19 @@ table,
}
.badge {
vertical-align: bottom;
&.bg-light {
color: $dark;
}
}
// Containers ==================================================================
// Containers
.list-group {
font-size: $font-size-sm;
}
.breadcrumb {
a {
text-decoration: none;
}
}

View file

@ -1,6 +1,8 @@
// Litera 4.6.0
// Litera 5.0.2
// Bootswatch
$theme: "litera" !default;
//
// Color system
//
@ -37,7 +39,7 @@ $danger: $red !default;
$light: $gray-100 !default;
$dark: $gray-800 !default;
$yiq-contrasted-threshold: 190 !default;
$min-contrast-ratio: 1.85 !default;
// Body
@ -50,13 +52,15 @@ $font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Rob
$font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif !default;
// stylelint-enable
$font-size-base: 1.063rem !default;
$font-size-base: 1.1rem !default;
$headings-font-weight: 700 !default;
// Tables
$table-border-color: rgba(0, 0, 0, .1) !default;
$table-bg-scale: 0 !default;
// Buttons
$input-btn-padding-y: .5rem !default;
@ -94,3 +98,10 @@ $badge-padding-x: 1.2em !default;
// Alerts
$alert-border-width: 0 !default;
// Breadcrumbs
$breadcrumb-padding-y: .375rem !default;
$breadcrumb-padding-x: .75rem !default;
$link-decoration: none !default;