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 @@
// Lux 4.6.0
// Lux 5.0.2
// Bootswatch
// Variables ===================================================================
// Variables
$web-font-path: "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&display=swap" !default;
@import url($web-font-path);
@if $web-font-path {
@import url($web-font-path);
}
// Navbar ======================================================================
// Navbar
.navbar {
font-size: $font-size-sm;
@ -43,10 +45,10 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;6
}
.nav-item {
margin-right: .5rem;
margin-right: 2rem;
}
// Buttons =====================================================================
// Buttons
.btn {
font-size: $font-size-sm;
@ -91,7 +93,13 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;6
border: 1px solid $gray-400 !important;
}
// Typography ==================================================================
.breadcrumb {
a {
text-decoration: none;
}
}
// Typography
body {
font-weight: 200;
@ -112,7 +120,7 @@ h6 {
color: $body-color !important;
}
// Tables ======================================================================
// Tables
th {
font-size: $font-size-sm;
@ -133,27 +141,14 @@ th {
}
}
// Forms =======================================================================
.custom-switch {
.custom-control-label {
&::after {
top: add(.15625rem, 2px);
left: add(-2.25rem, 2px);
width: subtract(1rem, 4px);
height: subtract(1rem, 4px);
}
}
}
// Navs ========================================================================
// Navs
.dropdown-menu {
font-size: $font-size-sm;
text-transform: none;
}
// Indicators ==================================================================
// Indicators
.badge {
padding-top: .28rem;
@ -161,9 +156,14 @@ th {
&-pill {
border-radius: 10rem;
}
&.bg-secondary,
&.bg-light {
color: $dark;
}
}
// Containers ==================================================================
// Containers
.list-group-item {
h1,

View file

@ -1,6 +1,8 @@
// Lux 4.6.0
// Lux 5.0.2
// Bootswatch
$theme: "lux" !default;
//
// Color system
//
@ -37,7 +39,7 @@ $danger: $red !default;
$light: $white !default;
$dark: $gray-800 !default;
$yiq-contrasted-threshold: 185 !default;
$min-contrast-ratio: 2.3 !default;
// Options
@ -51,7 +53,6 @@ $body-color: $gray-700 !default;
// stylelint-disable-next-line value-keyword-case
$font-family-sans-serif: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
$font-size-base: .875rem !default;
$h1-font-size: 2rem !default;
$h2-font-size: 1.75rem !default;
$h3-font-size: 1.5rem !default;
@ -71,7 +72,7 @@ $input-btn-border-width: 0 !default;
// Buttons
$btn-line-height: 1.5rem !default;
$btn-line-height: 1rem !default;
$input-btn-padding-y: .5rem !default;
$input-btn-padding-x: 1rem !default;
$input-btn-padding-y-sm: .25rem !default;
@ -82,20 +83,20 @@ $btn-font-weight: 600 !default;
// Forms
$input-line-height: 1.5 !default;
$input-line-height: 1 !default;
$input-bg: $gray-200 !default;
$input-disabled-bg: $gray-300 !default;
$input-group-addon-bg: $gray-300 !default;
// Navbar
$navbar-padding-y: .7rem !default;
$nav-link-padding-x: .75rem !default;
$navbar-padding-y: .75rem !default;
$navbar-dark-hover-color: $white !default;
$navbar-light-color: rgba($black, .3) !default;
$navbar-light-hover-color: $gray-900 !default;
$navbar-light-active-color: $gray-900 !default;
// Pagination
$pagination-border-color: transparent !default;
@ -104,4 +105,7 @@ $pagination-disabled-border-color: $pagination-border-color !default;
// Breadcrumbs
$breadcrumb-bg: transparent !default;
$breadcrumb-padding-y: .375rem !default;
$breadcrumb-padding-x: .75rem !default;
$link-decoration: none !default;