File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // @use "../theme/settings" as general;
2- // @use "uswds-core" as *;
3- // $theme-sam-hero-image: "#{$theme-image-path}/landing-hero.jpg" !default;
1+ @use " uswds-core" as * ;
2+ @use " src/packages/theme/variables" as * ;
3+
4+ @mixin adjust-responsive-site-margins {
5+ margin-left : - (units ($theme-site-margins-mobile-width ));
6+ margin-right : - (units ($theme-site-margins-mobile-width ));
7+ padding-left : (units ($theme-site-margins-mobile-width ));
8+ padding-right : (units ($theme-site-margins-mobile-width ));
9+
10+ @include at-media ($theme-site-margins-breakpoint ) {
11+ margin-left : - (units ($theme-site-margins-width ));
12+ margin-right : - (units ($theme-site-margins-width ));
13+ padding-left : (units ($theme-site-margins-width ));
14+ padding-right : (units ($theme-site-margins-width ));
15+ }
16+ }
17+
418
519.sds-hero {
620 @include u-height (' full' );
721 background-position : 100% 100% ;
822 background-repeat : no-repeat ;
9- @include sam . adjust-responsive-site-margins ;
23+ @include adjust-responsive-site-margins ;
1024 @include u-padding-y (4 );
1125
1226 & --image {
13- // background: ('/landing-hero.png');
14- background : url (' ../src/packages/images/landing-hero.png' );
15- // background-image: url("#{general.$theme-sam-image-path}/landing-hero.png");
16- // Hero
17- // $theme-hero-image: "#{$theme-image-path}/hero.jpg" !default;
18-
27+ background-image : url (" #{$sam-image-path } /landing-hero.png" );
1928 }
2029 }
2130 .sds-hero .sds-seal {
Original file line number Diff line number Diff line change 1+
2+ $sam-font-path : " ../node_modules/@uswds/uswds/dist/fonts" !default ;
3+ $sam-image-path : " ../node_modules/@uswds/uswds/dist/img" !default ;
4+
15@use " uswds-core" with (
26
3- $theme-font-path : " ../node_modules/@uswds/uswds/dist/fonts " ,
4- $theme-image-path : " ../node_modules/@uswds/uswds/dist/img " ,
7+ $theme-font-path : $sam-font-path ,
8+ $theme-image-path : $sam-image-path ,
59
610/*
711----------------------------------------
@@ -189,19 +193,3 @@ Values
189193 $margin-palettes : (' palette-units-em' ,' palette-margin-default' ),
190194
191195);
192-
193- $theme-sam-image-path : " ../src/packages/images" !default ;
194-
195- @mixin adjust-responsive-site-margins {
196- margin-left : - (units ($theme-site-margins-mobile-width ));
197- margin-right : - (units ($theme-site-margins-mobile-width ));
198- padding-left : (units ($theme-site-margins-mobile-width ));
199- padding-right : (units ($theme-site-margins-mobile-width ));
200-
201- @include at-media ($theme-site-margins-breakpoint ) {
202- margin-left : - (units ($theme-site-margins-width ));
203- margin-right : - (units ($theme-site-margins-width ));
204- padding-left : (units ($theme-site-margins-width ));
205- padding-right : (units ($theme-site-margins-width ));
206- }
207- }
Original file line number Diff line number Diff line change 1+ $sam-image-path : " ../src/packages/images" !default ;
You can’t perform that action at this time.
0 commit comments