2024-06-18 09:16:18 +02:00
|
|
|
@use "sass:math";
|
2024-07-04 11:07:29 +02:00
|
|
|
@import "../node_modules/bootstrap/scss/functions";
|
2024-05-28 13:11:00 +02:00
|
|
|
|
|
|
|
// override variables
|
|
|
|
|
2024-07-04 11:07:29 +02:00
|
|
|
@import "./bootstrap/variables";
|
|
|
|
@import "../node_modules/bootstrap/scss/variables";
|
|
|
|
@import "../node_modules/bootstrap/scss/variables-dark";
|
2024-05-28 13:11:00 +02:00
|
|
|
|
|
|
|
// override maps
|
2024-07-04 11:07:29 +02:00
|
|
|
@import "./bootstrap/maps";
|
2024-05-28 13:11:00 +02:00
|
|
|
|
2024-07-04 11:07:29 +02:00
|
|
|
@import "../node_modules/bootstrap/scss/maps";
|
|
|
|
@import "../node_modules/bootstrap/scss/mixins";
|
|
|
|
@import "../node_modules/bootstrap/scss/root";
|
2024-05-28 13:11:00 +02:00
|
|
|
|
2024-07-04 11:07:29 +02:00
|
|
|
@import "../node_modules/bootstrap/scss/utilities";
|
|
|
|
@import "../node_modules/bootstrap/scss/reboot";
|
2024-05-28 13:11:00 +02:00
|
|
|
|
|
|
|
// override typography
|
|
|
|
|
2024-07-04 11:07:29 +02:00
|
|
|
@import "./bootstrap/typography";
|
|
|
|
@import "./bootstrap/accordion";
|
|
|
|
@import "./bootstrap/nav";
|
|
|
|
@import "./bootstrap/navbar";
|
|
|
|
@import "./bootstrap/g-components/sidebar";
|
|
|
|
|
|
|
|
@import "../node_modules/bootstrap/scss/root";
|
|
|
|
@import "../node_modules/bootstrap/scss/reboot";
|
|
|
|
@import "../node_modules/bootstrap/scss/type";
|
|
|
|
@import "../node_modules/bootstrap/scss/images";
|
|
|
|
@import "../node_modules/bootstrap/scss/containers";
|
|
|
|
@import "../node_modules/bootstrap/scss/grid";
|
|
|
|
@import "../node_modules/bootstrap/scss/tables";
|
|
|
|
@import "../node_modules/bootstrap/scss/forms";
|
|
|
|
@import "../node_modules/bootstrap/scss/buttons";
|
|
|
|
@import "../node_modules/bootstrap/scss/transitions";
|
|
|
|
@import "../node_modules/bootstrap/scss/dropdown";
|
|
|
|
@import "../node_modules/bootstrap/scss/button-group";
|
|
|
|
|
|
|
|
@import "../node_modules/bootstrap/scss/card";
|
|
|
|
@import "../node_modules/bootstrap/scss/accordion";
|
|
|
|
@import "../node_modules/bootstrap/scss/breadcrumb";
|
|
|
|
@import "../node_modules/bootstrap/scss/pagination";
|
|
|
|
@import "./bootstrap/badge";
|
|
|
|
@import "../node_modules/bootstrap/scss/alert";
|
|
|
|
@import "../node_modules/bootstrap/scss/progress";
|
|
|
|
@import "../node_modules/bootstrap/scss/list-group";
|
|
|
|
@import "../node_modules/bootstrap/scss/close";
|
|
|
|
@import "../node_modules/bootstrap/scss/toasts";
|
|
|
|
@import "../node_modules/bootstrap/scss/modal";
|
|
|
|
@import "../node_modules/bootstrap/scss/tooltip";
|
|
|
|
@import "../node_modules/bootstrap/scss/popover";
|
|
|
|
@import "../node_modules/bootstrap/scss/carousel";
|
|
|
|
@import "../node_modules/bootstrap/scss/spinners";
|
|
|
|
@import "../node_modules/bootstrap/scss/offcanvas";
|
|
|
|
@import "../node_modules/bootstrap/scss/placeholders";
|
|
|
|
|
|
|
|
|
|
|
|
@import "../node_modules/bootstrap/scss/helpers";
|
|
|
|
|
|
|
|
@import "./bootstrap/utilities";
|
2024-05-28 13:11:00 +02:00
|
|
|
|
|
|
|
@function contrast-ratio($color1, $color2) {
|
2024-07-04 11:07:29 +02:00
|
|
|
$luminance1: luminance($color1);
|
|
|
|
$luminance2: luminance($color2);
|
|
|
|
|
|
|
|
@return if(
|
|
|
|
$luminance1 > $luminance2,
|
|
|
|
math.div($luminance1 + 0.05, $luminance2 + 0.05),
|
|
|
|
math.div($luminance2 + 0.05, $luminance1 + 0.05)
|
|
|
|
);
|
2024-05-28 13:11:00 +02:00
|
|
|
}
|
|
|
|
|
2024-06-18 09:16:18 +02:00
|
|
|
@function get-contrasting-text-color(
|
2024-07-04 11:07:29 +02:00
|
|
|
$background-color,
|
|
|
|
$light: #fff9e5,
|
|
|
|
$dark: #33322e,
|
|
|
|
$min-contrast-ratio: 4.5
|
2024-06-18 09:16:18 +02:00
|
|
|
) {
|
2024-07-04 11:07:29 +02:00
|
|
|
$light-contrast: contrast-ratio($light, $background-color);
|
|
|
|
$dark-contrast: contrast-ratio($dark, $background-color);
|
|
|
|
|
|
|
|
@if ($dark-contrast >= $min-contrast-ratio) {
|
|
|
|
@return $dark;
|
|
|
|
} @else if ($light-contrast >= $min-contrast-ratio) {
|
|
|
|
@return $light;
|
|
|
|
} @else {
|
|
|
|
@return if($light-contrast < $dark-contrast, #000000, #ffffff);
|
|
|
|
}
|
2024-05-28 13:11:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@each $color, $hex in $all-colors {
|
2024-07-04 11:07:29 +02:00
|
|
|
.bg-#{$color} {
|
|
|
|
background-color: $hex;
|
|
|
|
color: get-contrasting-text-color($hex);
|
|
|
|
}
|
|
|
|
.bg-gradient-x-#{$color} {
|
|
|
|
--#{$prefix}gradient-start: 0%;
|
|
|
|
--#{$prefix}gradient-end: 100%;
|
|
|
|
--#{$prefix}gradient-to: transparent;
|
|
|
|
|
|
|
|
@include gradient-x(
|
|
|
|
$start-color: $hex,
|
|
|
|
$end-color: var(--#{$prefix}gradient-to),
|
|
|
|
$start-percent: var(--#{$prefix}gradient-start),
|
|
|
|
$end-percent: var(--#{$prefix}gradient-end)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
.bg-gradient-y-#{$color} {
|
|
|
|
--#{$prefix}gradient-start: 0%;
|
|
|
|
--#{$prefix}gradient-end: 100%;
|
|
|
|
--#{$prefix}gradient-to: transparent;
|
|
|
|
|
|
|
|
@include gradient-y(
|
|
|
|
$start-color: $hex,
|
|
|
|
$end-color: var(--#{$prefix}gradient-to),
|
|
|
|
$start-percent: var(--#{$prefix}gradient-start),
|
|
|
|
$end-percent: var(--#{$prefix}gradient-end)
|
|
|
|
);
|
|
|
|
}
|
2024-05-28 13:11:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@each $color, $hex in $theme-colors {
|
2024-07-04 11:07:29 +02:00
|
|
|
.bg-gradient-#{$color} {
|
|
|
|
--#{$prefix}gradient-start: 0%;
|
|
|
|
--#{$prefix}gradient-end: 100%;
|
|
|
|
--#{$prefix}gradient-to: transparent;
|
|
|
|
|
|
|
|
@include gradient-x(
|
|
|
|
$start-color: $hex,
|
|
|
|
$end-color: var(--#{$prefix}gradient-to),
|
|
|
|
$start-percent: var(--#{$prefix}gradient-start),
|
|
|
|
$end-percent: var(--#{$prefix}gradient-end)
|
|
|
|
);
|
|
|
|
}
|
2024-05-28 13:11:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@each $color, $hex in $all-colors {
|
2024-07-04 11:07:29 +02:00
|
|
|
.border-#{$color} {
|
|
|
|
--#{$prefix}border-color: #{$hex};
|
|
|
|
}
|
2024-05-28 13:11:00 +02:00
|
|
|
}
|
|
|
|
|
2024-07-04 11:07:29 +02:00
|
|
|
@import "../node_modules/bootstrap/scss/utilities/api";
|
2024-05-28 13:11:00 +02:00
|
|
|
|
|
|
|
* {
|
2024-07-04 11:07:29 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
scroll-behavior: smooth;
|
2024-05-28 13:11:00 +02:00
|
|
|
}
|
|
|
|
|
2024-06-12 19:31:18 +02:00
|
|
|
i {
|
2024-07-04 11:07:29 +02:00
|
|
|
font-size: 1.5rem;
|
2024-06-12 19:31:18 +02:00
|
|
|
}
|
|
|
|
|
2024-05-28 13:11:00 +02:00
|
|
|
html,
|
|
|
|
body {
|
2024-07-04 11:07:29 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
gap: 0;
|
2024-05-28 13:11:00 +02:00
|
|
|
}
|
2024-06-12 19:31:18 +02:00
|
|
|
|
|
|
|
a {
|
2024-07-04 11:07:29 +02:00
|
|
|
text-decoration-thickness: 2px;
|
2024-06-18 09:16:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 992px) {
|
2024-07-04 11:07:29 +02:00
|
|
|
.toc-margin {
|
|
|
|
max-width: 70%;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2024-06-18 09:16:18 +02:00
|
|
|
}
|