1- /*
2- * This is a manifest file that'll be compiled into application.css, which will include all the files
3- * listed below.
4- *
5- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7- *
8- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9- * compiled file so the styles you add here take precedence over styles defined in any styles
10- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11- * file per style scope.
12- *
13- *= require_tree .
14- *= require_self
15- */
16-
171// Bulma variable overrides
18- $primary : #ff7f00 ;
19- $radius-small : 8px ;
20- $radius : 8px ;
21- $card-radius : 16px ;
22- $card-background-color : #fff ;
23- $link : $primary ;
24- $modal-card-head-background-color : white ;
25- $modal-card-head-border-bottom : 2px solid whitesmoke ;
26- $modal-card-foot-border-top : 2px solid whitesmoke ;
272
283// Custom variables
29- $logo-height : 155px ;
30-
31- // Include Bulma SCSS
32- @import " bulma" ;
33-
34- // Incluse Font Awesome SCSS
35- @import " font-awesome-sprockets" ;
36- @import " font-awesome" ;
4+ $tap-primary : #ff7f00 ;
5+ $tap-logo-height : 155px ;
6+
7+ @use " bulma/sass" with (
8+ $primary : $tap-primary ,
9+ $radius-small : 8px ,
10+ $radius : 8px ,
11+ $card-radius : 16px ,
12+ $card-background-color : white ,
13+ $link : $tap-primary ,
14+ $modal-card-head-background-color : white ,
15+ // $modal-card-head-border-bottom: 2px solid whitesmoke,
16+ // $modal-card-foot-border-top: 2px solid whitesmoke,
17+ );
18+ @use " bulma/sass" as * ;
19+ @use " bulma/sass/utilities/mixins" as * ;
20+
21+ @use " @fortawesome/fontawesome-free/scss/variables" with (
22+ $font-path : " ." ,
23+ );
24+ @use " @fortawesome/fontawesome-free/scss/fontawesome" ;
25+ @use " @fortawesome/fontawesome-free/scss/fa" as fa ;
26+ @use " @fortawesome/fontawesome-free/scss/solid" as fa-solid ;
3727
3828html {
3929 max-height : 100vh ;
@@ -83,11 +73,9 @@ body {
8373.back {
8474 margin-bottom : 0.5rem ;
8575
86- & ::before {
87- content : " \f104 " ;
88- font-family : " Font Awesome 5 Free" ;
89- font-weight : 900 ;
90- color : $primary ;
76+ ::before {
77+ @include fa-solid .icon (fa .$var-angle-left );
78+ content : fa .fa-content (fa .$var-angle-left );
9179 margin-right : 0.2rem ;
9280 }
9381}
@@ -473,7 +461,7 @@ body {
473461 & -logo {
474462 display : flex ;
475463 justify-content : center ;
476- height : $logo-height ;
464+ height : $tap- logo-height ;
477465 }
478466
479467 & -title {
@@ -1049,7 +1037,7 @@ body {
10491037
10501038 .modal-card-body {
10511039 background-color : black ;
1052- border-color : lighten (black , 10% );
1040+ border-color : bulmaLighten (black , 10% );
10531041 }
10541042 }
10551043
@@ -1141,7 +1129,7 @@ body {
11411129
11421130 // Better contrast between background and elements
11431131 body {
1144- background-color : darken ($white , 5% );
1132+ background-color : bulmaDarken ($white , 5% );
11451133 }
11461134
11471135 // Modal background should not be white
@@ -1173,7 +1161,7 @@ body {
11731161 border-color : $grey ;
11741162
11751163 & :hover {
1176- border-color : darken ($grey , 20% );
1164+ border-color : bulmaDarken ($grey , 20% );
11771165 }
11781166 }
11791167
@@ -1197,7 +1185,7 @@ body {
11971185 @extend .theme-no-blend ;
11981186 font-size : $size-7 ;
11991187 color : $grey ;
1200- color : darken ($primary , 20% );
1188+ color : bulmaDarken ($primary , 20% );
12011189 }
12021190 }
12031191
0 commit comments