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 @@
// Minty 4.6.0
// Minty 5.0.2
// Bootswatch
// Variables ===================================================================
// Variables
$web-font-path: "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap" !default;
@import url($web-font-path);
@if $web-font-path {
@import url($web-font-path);
}
// Navbar ======================================================================
// Navbar
.navbar {
font-family: $headings-font-family;
@ -21,7 +23,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;50
border-color: $secondary !important;
}
// Buttons =====================================================================
// Buttons
.btn {
font-family: $headings-font-family;
@ -33,7 +35,7 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;50
&-light,
&-light:hover {
color: $gray-900;
color: $gray-700;
}
&-link,
@ -78,178 +80,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;50
}
}
// Tables ======================================================================
.table {
&-primary,
&-secondary,
&-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;
}
}
}
.thead-dark th {
background-color: $primary;
border-color: $table-border-color;
font-family: $headings-font-family;
}
}
// Forms =======================================================================
// Forms
legend {
font-family: $headings-font-family;
}
// Navs ========================================================================
// Navs
.dropdown-menu {
font-family: $font-family-sans-serif;
@ -258,6 +95,7 @@ legend {
.breadcrumb {
a {
color: $navbar-dark-color;
text-decoration: none;
}
a:hover {
@ -266,87 +104,15 @@ legend {
}
}
// Indicators ==================================================================
// Indicators
.alert {
color: $white;
h1,
h2,
h3,
h4,
h5,
h6 {
color: inherit;
}
a,
.alert-link {
color: $white;
}
&-primary {
&,
> th,
> td {
background-color: $primary;
}
}
&-secondary {
&,
> th,
> td {
background-color: $secondary;
}
}
&-success {
&,
> th,
> td {
background-color: $success;
}
}
&-info {
&,
> th,
> td {
background-color: $info;
}
}
&-danger {
&,
> th,
> td {
background-color: $danger;
}
}
&-warning {
&,
> th,
> td {
background-color: $warning;
}
}
&-dark {
&,
> th,
> td {
background-color: $dark;
}
}
&-light {
&,
> th,
> td {
background-color: $light;
}
&,
a:not(.btn),
@ -359,12 +125,12 @@ legend {
.badge {
color: $white;
&-light {
&.bg-light {
color: $gray-700;
}
}
// Containers ==================================================================
// Containers
.card,
.list-group-item {

View file

@ -1,6 +1,8 @@
// Minty 4.6.0
// Minty 5.0.2
// Bootswatch
$theme: "minty" !default;
//
// Color system
//
@ -37,7 +39,7 @@ $danger: $red !default;
$light: $primary !default;
$dark: $gray-800 !default;
$yiq-contrasted-threshold: 250 !default;
$min-contrast-ratio: 1.45 !default;
// Body
@ -59,6 +61,8 @@ $headings-color: $gray-700 !default;
$table-border-color: rgba(0, 0, 0, .05) !default;
$table-bg-scale: 0 !default;
// Dropdowns
$dropdown-link-hover-color: $white !default;
@ -87,8 +91,18 @@ $pagination-disabled-color: $white !default;
$pagination-disabled-bg: #cce8e0 !default;
$pagination-disabled-border-color: $pagination-disabled-bg !default;
// Alerts
$alert-color-scale: 0% !default;
$alert-bg-scale: 0 !default;
// Breadcrumbs
$breadcrumb-padding-y: .375rem !default;
$breadcrumb-padding-x: .75rem !default;
$breadcrumb-bg: $primary !default;
$breadcrumb-divider-color: $white !default;
$breadcrumb-active-color: $breadcrumb-divider-color !default;
$breadcrumb-border-radius: .25rem !default;
$link-decoration: none !default;