Skip to content

Commit 38ab01c

Browse files
committed
Migrate to latest Sass modules
1 parent 0b9314e commit 38ab01c

File tree

24 files changed

+112
-71
lines changed

24 files changed

+112
-71
lines changed

demo/core/templates/patterns/components/InfoBox/InfoBox.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
$spacing--mobile: 20px;
24
$spacing--desktop: 40px;
35

demo/core/templates/patterns/components/LoadingIndicator/LoadingIndicator.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
@keyframes spinner-animation {
24
0% {
35
opacity: 1;

demo/core/templates/patterns/components/accordion/accordion.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
// Note that these styles are also used by the streamfield faq block
24
.accordion {
35
$root: &;

demo/core/templates/patterns/components/banner/split_banner.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
.split-banner {
24
$root: &;
35
background-color: $color--light-blue;

demo/core/templates/patterns/components/button/button.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
.button {
24
background-color: transparent;
35
background-image: none;
@@ -11,7 +13,9 @@
1113
text-align: center;
1214
border: 1px solid transparent;
1315
font-weight: 600;
14-
transition: background-color $transition, color $transition;
16+
transition:
17+
background-color $transition,
18+
color $transition;
1519

1620
&--small {
1721
font-size: 0.75rem;

demo/core/templates/patterns/components/cta/call_to_action.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
.call-to-action {
24
$root: &;
35
@include pattern-bg($percentage: 32%, $size: auto, $direction: 320deg);

demo/core/templates/patterns/components/cta/cta_section.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
.cta-section {
24
$root: &;
35
@include pattern-bg($percentage: 35%, $size: auto, $direction: to top);

demo/core/templates/patterns/components/customers/customer-detail.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
.user-detail {
24
background-color: $color--white;
35
padding: 45px 20px;

demo/core/templates/patterns/components/customers/customers-header.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
.customers-header {
24
position: relative;
35
background-color: $color--pale-blue;
@@ -33,16 +35,14 @@
3335
}
3436

3537
input[type='search'] {
36-
@include placeholder-text() {
37-
color: $color--dark-grey;
38-
opacity: 1;
39-
}
4038
border-radius: 3px;
4139
border: 1px solid $color--mid-blue;
4240
padding: 7px 35px 7px 15px;
4341
color: $color--dark-grey;
4442
width: 100%;
45-
transition: border-color $transition, background-color $transition;
43+
transition:
44+
border-color $transition,
45+
background-color $transition;
4646

4747
@include media-query(tablet-portrait) {
4848
min-width: 300px;

demo/core/templates/patterns/components/customers/customers-table.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../../../../../static_src/sass/abstracts/tools' as *;
2+
13
$cl-table-pad: 35px;
24
$cl-cell-margin: 20px;
35

@@ -77,7 +79,9 @@ $cl-cell-margin: 20px;
7779
vertical-align: -1px;
7880
opacity: 0;
7981
transform: translateX(-1px);
80-
transition: opacity 150ms, transform $transition;
82+
transition:
83+
opacity 150ms,
84+
transform $transition;
8185
}
8286

8387
&:hover {

0 commit comments

Comments
 (0)