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,29 +1,25 @@
// Cerulean 4.6.0
// Cerulean 5.0.2
// Bootswatch
// Variables ===================================================================
// Variables
$text-shadow: 0 1px 0 rgba(0, 0, 0, .05) !default;
// Mixins ======================================================================
// Mixins
@mixin btn-shadow($color){
@include gradient-y-three-colors(lighten($color, 8%), $color, 60%, darken($color, 4%));
@include gradient-y-three-colors(tint-color($color, 16%), $color, 60%, shade-color($color, 6%));
}
// Navbar ======================================================================
// Navbar
.bg-primary {
@include btn-shadow($primary);
}
.bg-dark {
@include btn-shadow($blue);
}
.bg-light {
@include gradient-y-three-colors(lighten($gray-200, 8%), $gray-200, 60%, darken($gray-200, 2%));
.navbar {
@each $color, $value in $theme-colors {
&.bg-#{$color} {
@include btn-shadow($value);
}
}
}
.navbar-brand,
@ -31,47 +27,23 @@ $text-shadow: 0 1px 0 rgba(0, 0, 0, .05) !default;
text-shadow: $text-shadow;
}
// Buttons =====================================================================
// Buttons
.btn {
text-shadow: $text-shadow;
}
.btn-primary {
@include btn-shadow($primary);
}
.btn-secondary {
@include btn-shadow($secondary);
color: $gray-700;
}
.btn-success {
@include btn-shadow($success);
@each $color, $value in $theme-colors {
.btn-#{$color} {
@include btn-shadow($value);
}
}
.btn-info {
@include btn-shadow($info);
}
.btn-warning {
@include btn-shadow($warning);
}
.btn-danger {
@include btn-shadow($danger);
}
.btn-light {
@include btn-shadow($light);
}
.btn-dark {
@include btn-shadow($dark);
}
// Typography ==================================================================
// Typography
.text-secondary {
color: $gray-500 !important;
@ -93,10 +65,25 @@ $text-shadow: 0 1px 0 rgba(0, 0, 0, .05) !default;
}
}
// Navs ========================================================================
// Navs
.dropdown-menu {
.dropdown-header {
color: $gray-600;
}
}
// Indicators
.badge {
&.bg-secondary,
&.bg-light {
color: $dark;
}
}
.breadcrumb {
a {
text-decoration: none;
}
}

View file

@ -1,6 +1,8 @@
// Cerulean 4.6.0
// Cerulean 5.0.2
// Bootswatch
$theme: "cerulean" !default;
//
// Color system
//
@ -37,6 +39,8 @@ $danger: $red !default;
$light: $gray-100 !default;
$dark: $gray-800 !default;
$min-contrast-ratio: 2.75 !default;
// Body
$body-color: $gray-700 !default;
@ -55,3 +59,8 @@ $dropdown-link-hover-bg: $primary !default;
$navbar-dark-color: rgba($white, .8) !default;
$navbar-dark-hover-color: $white !default;
// Breadcrumbs
$breadcrumb-padding-y: .375rem !default;
$breadcrumb-padding-x: .75rem !default;