|
1 | 1 | @use 'variables' as *; |
2 | 2 |
|
3 | | -/** Override Bulma's generic variables **/ |
4 | | -$body-family: "Source Sans Pro", "Public Sans Web", sans-serif; |
5 | | - |
6 | | -/** Override Bulma's derived variables **/ |
7 | | -$text: black; // primary navbar text & body text color |
8 | | -$body-background-color: $cve-theme-page-background; |
9 | | -$body-font-size: 1rem; |
10 | | -$link: $theme-color-primary; |
11 | | -$link-visited: $theme-color-violet-vivid; |
12 | | -$family-primary: "Source Sans Pro", "Public Sans Web", sans-serif; |
13 | | -$family-secondary: "Source Sans Pro", "Public Sans Web", sans-serif; |
14 | | -$family-code: sans-serif; |
15 | | -$size-small: 0.77rem; |
16 | | - |
17 | | -/** Override Bulma's element variables **/ |
18 | | -$icon-dimensions-large: 4rem; |
19 | | - |
20 | | - |
21 | | -/** Override Bulma's Element - Table variables **/ |
22 | | -$table-striped-row-even-background-color: $theme-color-base-lightest; |
23 | | - |
24 | | - |
25 | | -/** Override Bulma's form variables **/ |
26 | | -$input-placeholder-color: $theme-color-base; |
27 | | - |
28 | | -/** Override Bulma's Components - message variables **/ |
29 | | -$message-background-color: white; |
30 | | -$message-header-radius: $cve-border-radius; |
31 | | - |
32 | | -/** Override Bulma's Layout - footer variables **/ |
33 | | -$footer-background-color: $theme-color-base-lightest; |
34 | | - |
35 | | -/** Override Bulma's navbar variables **/ |
36 | | -$navbar-background-color: $theme-color-primary-darker; // background for application size below desktop |
37 | | -$navbar-item-hover-background-color: unset; // submenu background color for touchscreen |
38 | | -$navbar-item-color: white; |
39 | | -$navbar-item-hover-color: white; // sets submenu item for selected page & active link color |
40 | | -$navbar-burger-color: $theme-color-accent-warm; |
41 | | -$navbar-tab-hover-border-bottom-color: white; |
42 | | -$navbar-tab-active-color: white; |
43 | | -$navbar-dropdown-radius: $cve-border-radius; |
44 | | -$navbar-dropdown-background-color: $theme-color-primary-darker; |
45 | | -$navbar-dropdown-item-active-color: $theme-color-accent-cool-light; // desktop |
46 | | -$navbar-dropdown-item-hover-color: white; |
47 | | - |
48 | | -/** Override Bulma's pagination variables **/ |
49 | | -$pagination-margin: 0; |
| 3 | +// Keeping the same order as bulma/sass, which is: |
| 4 | +// |
| 5 | +// @forward "utilities"; |
| 6 | +// @forward "themes"; |
| 7 | +// @forward "base"; |
| 8 | +// @forward "elements"; |
| 9 | +// @forward "form"; |
| 10 | +// @forward "components"; |
| 11 | +// @forward "grid"; |
| 12 | +// @forward "layout"; |
| 13 | +// @forward "base/skeleton"; |
| 14 | +// @forward "helpers"; |
| 15 | + |
| 16 | +@forward 'bulma/sass/utilities' with ( |
| 17 | + /** Override Bulma's variables **/ |
| 18 | + // $primary: $theme-color-primary-darker, |
| 19 | + $text: black, // primary navbar text & body text color |
| 20 | + $family-sans-serif: '"Source Sans Pro", "Public Sans Web", sans-serif', |
| 21 | + $family-primary: '"Arial", "Source Sans Pro", "Public Sans Web", sans-serif, "Arial"', |
| 22 | + $family-secondary: '"Arial", "Source Sans Pro", "Public Sans Web", sans-serif, "Arial"', |
| 23 | + $family-code: sans-serif, |
| 24 | + $size-small: 0.77rem, |
| 25 | +); |
| 26 | + |
| 27 | +@use 'initial-variables' as *; |
| 28 | + |
| 29 | +@forward "bulma/sass/themes"; |
| 30 | + |
| 31 | +@forward 'bulma/sass/base' with ( |
| 32 | + $body-background-color: $cve-theme-page-background, |
| 33 | + $body-font-size: 1rem, |
| 34 | +); |
| 35 | + |
| 36 | +@forward 'bulma/sass/elements' with ( |
| 37 | + $content-heading-weight: $weight-semibold, |
| 38 | + $icon-dimensions-large: 4rem, |
| 39 | + $table-striped-row-even-background-color: $theme-color-base-lightest, |
| 40 | + $title-weight: $weight-semibold, |
| 41 | +); |
| 42 | + |
| 43 | +@forward 'bulma/sass/form' with ( |
| 44 | + $input-placeholder-color: $theme-color-base, |
| 45 | + |
| 46 | +); |
| 47 | + |
| 48 | +// Commented-out settings were used before Bulma 1.0, but are now not available. |
| 49 | +// They're kept here in case we need to investigate if the UI look & feel |
| 50 | +// changes in some way. |
| 51 | + |
| 52 | +@forward 'bulma/sass/components' with ( |
| 53 | +// $message-background-color: white, |
| 54 | + $message-header-radius: $cve-border-radius, |
| 55 | + $navbar-background-color: $theme-color-primary-darker, // background for application size below desktop |
| 56 | +// $navbar-item-hover-background-color: unset, // submenu background color for touchscreen |
| 57 | + $navbar-item-color: white, |
| 58 | +// $navbar-item-hover-color: white, // sets submenu item for selected page & active link color |
| 59 | + $navbar-burger-color: $theme-color-accent-warm, |
| 60 | + $navbar-tab-hover-border-bottom-color: white, |
| 61 | + $navbar-tab-active-color: white, |
| 62 | + $navbar-dropdown-radius: $cve-border-radius, |
| 63 | + $navbar-dropdown-background-color: $theme-color-primary-darker, |
| 64 | +// $navbar-dropdown-item-active-color: $theme-color-accent-cool-light, // desktop |
| 65 | +// $navbar-dropdown-item-hover-color: white, |
| 66 | + $pagination-margin: 0, |
| 67 | +); |
| 68 | + |
| 69 | +@forward "bulma/sass/grid"; |
| 70 | + |
| 71 | +@forward "bulma/sass/layout" with ( |
| 72 | + $footer-background-color: $theme-color-base-lightest |
| 73 | +); |
| 74 | + |
| 75 | +@forward "bulma/sass/base/skeleton"; |
| 76 | +@forward "bulma/sass/helpers"; |
| 77 | + |
| 78 | +@use 'buefy/src/scss/buefy' with ( |
| 79 | + $icon-svg-width: 1em |
| 80 | +); |
0 commit comments