Compare commits
5 Commits
feature/ex
...
4ca5500e5f
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ca5500e5f | |||
| d5d1cd7874 | |||
| bae76ed030 | |||
| 871e42f4ba | |||
| cf37d8a257 |
@ -23,11 +23,20 @@ $green: #28a745;
|
|||||||
$teal: #20c997;
|
$teal: #20c997;
|
||||||
$cyan: #17a2b8;
|
$cyan: #17a2b8;
|
||||||
|
|
||||||
$primary: $blue;
|
|
||||||
$secondary: $gray-600;
|
|
||||||
$success: $green;
|
$success: $green;
|
||||||
$info: $cyan;
|
$info: $cyan;
|
||||||
$warning: #ff9a52;
|
$warning: #ff9a52;
|
||||||
$danger: $red;
|
$danger: $red;
|
||||||
$light: $gray-100;
|
$light: $gray-100;
|
||||||
$dark: $gray-800;
|
$dark: $gray-800;
|
||||||
|
|
||||||
|
$primary: $blue;
|
||||||
|
$secondary: $gray-600;
|
||||||
|
|
||||||
|
// Map for utility classes
|
||||||
|
$theme-colors: (
|
||||||
|
"primary": $primary,
|
||||||
|
"secondary": $secondary,
|
||||||
|
//"tertiary": $tertiary,
|
||||||
|
//"quaternary": $quaternary,,
|
||||||
|
);
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
// Made this more like the breakpoints used in Bootstrap 5
|
||||||
|
$grid-breakpoints: (
|
||||||
|
xs: 0,
|
||||||
|
sm: 576px,
|
||||||
|
md: 768px,
|
||||||
|
lg: 992px,
|
||||||
|
xl: 1200px,
|
||||||
|
xxl: 1400px,
|
||||||
|
);
|
||||||
|
|
||||||
|
$container-max-widths: (
|
||||||
|
sm: 540px,
|
||||||
|
md: 720px,
|
||||||
|
lg: 960px,
|
||||||
|
xl: 1140px,
|
||||||
|
xxl: 1320px,
|
||||||
|
);
|
||||||
|
|
||||||
$grid-columns: 12;
|
$grid-columns: 12;
|
||||||
$grid-gutter-width: rem-calc(20px);
|
$grid-gutter-width: rem-calc(20px);
|
||||||
$grid-row-columns: 6;
|
$grid-row-columns: 6;
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
//Abstracts: Things used throughout the site such as utility classes and generic overrides.
|
//Abstracts: Things used throughout the site such as utility classes and generic overrides.
|
||||||
//@import "abstracts/base";
|
//@import "abstracts/base";
|
||||||
|
@import "abstracts/functions";
|
||||||
|
@import "abstracts/mixins";
|
||||||
//@import "abstracts/utilities";
|
//@import "abstracts/utilities";
|
||||||
|
|
||||||
// Components: parts of the theme itself that are not associated with a module.
|
// Components: parts of the theme itself that are not associated with a module.
|
||||||
|
|||||||
17
falcon/_dev/css/theme/custom/abstracts/_functions.scss
Normal file
17
falcon/_dev/css/theme/custom/abstracts/_functions.scss
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@use "sass:math";
|
||||||
|
|
||||||
|
// Font size utility classes generator
|
||||||
|
// Generates utility classes like .fs-14, .fs-16, etc.
|
||||||
|
@for $i from 8 through 72 {
|
||||||
|
.fs-#{$i} {
|
||||||
|
font-size: rem-calc($i * 1px) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// gap size utility classes generator
|
||||||
|
// Generates utility classes like .gap-4
|
||||||
|
@for $i from 1 through 35 {
|
||||||
|
.gap-#{$i} {
|
||||||
|
gap: rem-calc($i * 1px) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
44
falcon/_dev/css/theme/custom/abstracts/_mixins.scss
Normal file
44
falcon/_dev/css/theme/custom/abstracts/_mixins.scss
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
// Bootstrap 5-style responsive mixins (more intuitive than Bootstrap 4)
|
||||||
|
// Learn the difference here https://getbootstrap.com/docs/5.0/migration/#sass
|
||||||
|
|
||||||
|
@mixin bs5-media-breakpoint-up($name) {
|
||||||
|
$min: map-get($grid-breakpoints, $name);
|
||||||
|
@if $min and $min > 0 {
|
||||||
|
@media (min-width: $min) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin bs5-media-breakpoint-down($name) {
|
||||||
|
$max: map-get($grid-breakpoints, $name);
|
||||||
|
@if $max {
|
||||||
|
@media (max-width: calc(#{$max} - 0.02px)) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
} @else {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin bs5-media-breakpoint-between($lower, $upper) {
|
||||||
|
$min: map-get($grid-breakpoints, $lower);
|
||||||
|
$max: map-get($grid-breakpoints, $upper);
|
||||||
|
@if $min and $max {
|
||||||
|
@media (min-width: $min) and (max-width: calc(#{$max} - 0.02px)) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin bs5-media-breakpoint-only($name) {
|
||||||
|
$breakpoint-names: map-keys($grid-breakpoints);
|
||||||
|
$index: index($breakpoint-names, $name);
|
||||||
|
$next-name: nth($breakpoint-names, $index + 1);
|
||||||
|
|
||||||
|
@include bs5-media-breakpoint-between($name, $next-name) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
12
falcon/_dev/css/theme/custom/abstracts/_utilities.scss
Normal file
12
falcon/_dev/css/theme/custom/abstracts/_utilities.scss
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// Color utility classes
|
||||||
|
@each $name, $color in $theme-colors {
|
||||||
|
.bg-#{$name} {
|
||||||
|
background-color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $name, $color in $theme-colors {
|
||||||
|
.text-#{$name} {
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user