Skip to content

Commit 1aeab31

Browse files
committed
refactored scss
1 parent 37dd049 commit 1aeab31

File tree

9 files changed

+127
-241
lines changed

9 files changed

+127
-241
lines changed

drupal/accordion/sass/3.components/_accordion.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
//
1212

1313
.l-page main.l-content .paragraph.paragraph--type--accordion {
14-
@include container-reading;
14+
// @include container-reading;
1515

1616
> .field--name-field-title {
17-
color: $color--blue2;
17+
color: $blue;
1818
font-weight: bold;
1919
font-size: 1.25rem;
2020
}
2121
}
2222

2323
.paragraph--type--accordion-item {
24-
background-color: $color--gray-lt;
24+
background-color: $gray;
2525
border-radius: 4px;
2626

2727
&.accordion--collapsed {
2828
box-shadow: $box-shadow;
29-
background-color: $color--white;
29+
background-color: $white;
3030
}
3131
}
3232

@@ -64,7 +64,7 @@
6464
.accordion__toggle-icon-horizontal,
6565
.accordion__toggle-icon-vertical {
6666
position: absolute;
67-
background-color: $color--teal;
67+
background-color: $blue;
6868
transition: background-color 0.2s linear;
6969
}
7070

@@ -94,7 +94,7 @@
9494
&.accordion--collapsed .accordion__toggle {
9595
.accordion__toggle-icon-horizontal,
9696
.accordion__toggle-icon-vertical {
97-
background-color: $color--blue2;
97+
background-color: $blue;
9898
}
9999

100100
.accordion__toggle-icon {
+10-84
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
//_____________________________________________
2-
//
1+
// ---
32
// Card
4-
//_____________________________________________
3+
// ---
54

65
.paragraph--type--card-layout {
76
background: #fff;
87
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.16);
98
padding-bottom: 0.75em;
109

11-
@media only screen and (min-width: $bp-layout-builder) {
10+
@media only screen and (min-width: $width--m) {
1211
height: 100%;
1312
}
1413

1514
.field--name-field-card-tag {
16-
background: $blue-secondary;
15+
background: $blue;
1716
border-radius: 0 0 100% 0;
1817
color: #fff;
1918
max-width: 110px;
@@ -25,12 +24,6 @@
2524
.field--name-field-card-image {
2625
height: 300px;
2726
overflow: hidden;
28-
29-
@media only screen and (min-width: $bp-layout-builder) {
30-
}
31-
32-
@media only screen and (min-width: 750px) {
33-
}
3427
}
3528

3629
.field--name-field-card-title,
@@ -42,7 +35,7 @@
4235
}
4336

4437
.field--name-field-card-title {
45-
color: $gray-heading;
38+
color: $gray;
4639
font-size: 1.2em;
4740
font-weight: bold;
4841
line-height: 1.2;
@@ -56,7 +49,7 @@
5649

5750
.field--name-field-card-cta {
5851
a {
59-
background: $blue-secondary;
52+
background: $blue;
6053
color: #fff;
6154
display: inline-block;
6255
margin-bottom: 1em;
@@ -68,7 +61,7 @@
6861

6962
a:hover,
7063
a:focus {
71-
background: $blue-primary;
64+
background: $blue;
7265
}
7366
}
7467

@@ -100,78 +93,11 @@
10093
height: 600px;
10194
margin-bottom: -375px;
10295

103-
@media only screen and (min-width: $bp-layout-builder) {
96+
@media only screen and (min-width: $width--m) {
10497
background-size: contain;
10598
}
106-
}
107-
108-
.node--type-home-page {
109-
.card__image-background {
110-
@media only screen and (min-width: 950px) {
111-
background-size: cover;
112-
}
113-
}
114-
}
11599

116-
.node--type-landing-page {
117-
.card__image-background {
118-
@media only screen and (min-width: $bp-mobile-menu) {
119-
background-size: cover;
120-
}
121-
}
122-
}
123-
124-
.card__image-position--,
125-
.card__image-position--center {
126-
.field--name-field-card-image {
127-
img {
128-
clip-path: circle(120px at center 80px);
129-
}
130-
}
131-
}
132-
133-
.card__image-position--left {
134-
.field--name-field-card-image {
135-
img {
136-
clip-path: circle(120px at 40% 80px);
137-
}
138-
}
139-
}
140-
141-
.card__image-position--right {
142-
.field--name-field-card-image {
143-
img {
144-
clip-path: circle(120px at 66% 80px);
145-
}
146-
}
147-
}
148-
149-
.block-field-blocknodehome-pagefield-layout-builder {
150-
@media only screen and (min-width: $bp-layout-builder) {
151-
width: 104%;
152-
}
153-
154-
@media only screen and (min-width: 768px) {
155-
width: 103%;
156-
}
157-
158-
@media only screen and (min-width: $bp-mobile-menu) {
159-
width: 100%;
160-
}
161-
162-
.paragraph--type--erl-section:last-child {
163-
.layout--fourcol-section > .layout__region {
164-
@media only screen and (min-width: $bp-layout-builder) {
165-
flex: 0 1 21%;
166-
}
167-
168-
@media only screen and (min-width: 768px) {
169-
flex: 0 1 23%;
170-
}
171-
172-
@media only screen and (min-width: 1000px) {
173-
flex: 0 1 25%;
174-
}
175-
}
100+
@media only screen and (min-width: $width--l) {
101+
background-size: cover;
176102
}
177103
}

drupal/carousel/sass/3.components/_carousel.scss

+5-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Component: carousel
33

44
.carousel {
5-
@include layout-breakout();
5+
// @include layout-breakout();
66
background-image: url();
77
background-color: transparent;
88
background-position: center center;
@@ -51,7 +51,7 @@
5151
margin: 0 0 1.5rem;
5252
padding: 0;
5353

54-
@media (max-width: $bp-small) {
54+
@media (max-width: $width--s) {
5555
font-size: 1.5rem;
5656
}
5757
}
@@ -65,7 +65,7 @@
6565
vertical-align: middle;
6666
display: inline-block;
6767

68-
@media (max-width: 900px) {
68+
@media (max-width: $width--m) {
6969
display: none;
7070
}
7171
}
@@ -78,13 +78,12 @@
7878
margin: 0 0 0 1rem;
7979
}
8080

81-
8281
.carousel__link {
8382
margin-top: 1rem;
8483
}
8584

8685
.carousel__link > a {
87-
@include button-arrow-light;
86+
// @include button-arrow-light;
8887
}
8988

9089
.carousel__slides {
@@ -93,7 +92,7 @@
9392
}
9493

9594
button {
96-
@include button-clean();
95+
// @include button-clean();
9796
}
9897

9998
svg {
@@ -137,7 +136,6 @@
137136
transform: rotate(-180deg);
138137
}
139138

140-
141139
.carousel-control__pagination-icon {
142140
display: block;
143141
height: 12px;
@@ -160,7 +158,6 @@
160158
}
161159
}
162160

163-
164161
.carousel-item--is-active .carousel-control__pagination-icon svg {
165162
fill: $white;
166163
}

drupal/cta/sass/3.components/_paragraph--cta-section.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.paragraph.paragraph--type--internal-cta-section {
2-
@include lazyloadBase;
2+
// @include lazyloadBase;
33
margin-top: 3rem;
44

55
&.in-view {
6-
@include lazyloaded;
6+
// @include lazyloaded;
77
}
88

99
h3 {
10-
@include responsive-font(3em, .83, 4rem, 1);
10+
// @include responsive-font(3em, .83, 4rem, 1);
1111
}
1212
}
1313

@@ -34,7 +34,7 @@
3434
padding: 0 2.5em;
3535
padding-top: 9.5%;
3636
padding-bottom: 5.25%;
37-
border: 1px solid rgba($color--midgray, .75);
37+
border: 1px solid rgba($gray, .75);
3838
border-left-width: 0;
3939

4040
@media screen and (max-width: 1100px) {
@@ -43,7 +43,7 @@
4343
}
4444

4545
p {
46-
color: $color--darkgray;
46+
color: $gray;
4747
}
4848

4949
.field--name-field-single-cta {
@@ -81,4 +81,4 @@
8181
margin-left: 0;
8282
}
8383
}
84-
}
84+
}

0 commit comments

Comments
 (0)