forked from Shopify/dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsection-email-signup-banner.css
98 lines (80 loc) · 2.54 KB
/
section-email-signup-banner.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.email-signup-banner .newsletter-form,
.email-signup-banner .newsletter-form__field-wrapper {
display: inline-block;
}
@media only screen and (min-width: 750px) {
.email-signup-banner:not(.banner--desktop-transparent) .email-signup-banner__box {
width: 100%;
}
}
.email-signup-banner__box .email-signup-banner__heading {
margin-bottom: 0;
}
.email-signup-banner__box > * + .newsletter__subheading {
margin-top: 2rem;
}
.email-signup-banner__box .newsletter__subheading p {
margin: 0;
}
.email-signup-banner-background {
width: 100%;
height: 100%;
position: relative;
left: 50%;
transform: translateX(-50%);
}
@media screen and (max-width: 749px) {
.email-signup-banner:not(.banner--mobile-bottom) .banner__box:not(.email-signup-banner__box--no-image) {
background-color: transparent;
--color-foreground: 255, 255, 255;
--color-button: 255, 255, 255;
--color-button-text: 0, 0, 0;
}
}
@media only screen and (min-width: 750px) {
.banner--desktop-transparent .email-signup-banner__box--no-image * {
color: rgb(var(--color-foreground));
}
.banner--desktop-transparent .email-signup-banner__box .field__input {
background-color: transparent;
}
.banner--desktop-transparent .email-signup-banner__box--no-image .field__input {
box-shadow: 0 0 0 0.1rem rgba(var(--color-foreground), 0.55);
}
.banner--desktop-transparent .email-signup-banner__box--no-image .field__input:focus {
box-shadow: 0 0 0 0.2rem rgba(var(--color-foreground), 0.75);
}
.banner--desktop-transparent .email-signup-banner__box--no-image .field__button:focus-visible {
outline: 0.2rem solid rgba(var(--color-foreground), 0.5);
box-shadow: 0 0 0 0.3rem rgb(var(--color-background)), 0 0 0.5rem 0.4rem rgba(var(--color-foreground), 0.3);
}
}
@media only screen and (min-width: 750px) {
.email-signup-banner-background-mobile {
display: none;
}
}
@media only screen and (max-width: 749px) {
.email-signup-banner-background:not(.email-signup-banner-background-mobile) {
display: none;
}
}
.email-signup-banner .banner__media {
overflow: hidden;
}
@media screen and (max-width: 749px) {
.banner--mobile-content-align-left .newsletter-form__message {
justify-content: flex-start;
}
.banner--mobile-content-align-right .newsletter-form__message {
justify-content: right;
}
}
@media screen and (min-width: 750px) {
.banner--content-align-center .newsletter-form__message {
justify-content: center;
}
.banner--content-align-right .newsletter-form__message {
justify-content: right;
}
}