-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.proposal.pcss
67 lines (56 loc) · 1.01 KB
/
style.proposal.pcss
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
/*
- proposal in #7834
*/
.block {
color: green;
box-sizing: border-box;
height: auto;
padding-left: 1.25rem;
padding-right: 1.25rem;
position: relative;
width: 100%;
z-index: 1;
@media (min-width: 48rem) {
padding-left: 2rem;
padding-right: 2rem;
}
@media (min-width: 80rem) {
padding-left: 3rem;
padding-right: 3rem;
}
@media (prefers-color-scheme: dark) {
color: lime;
}
&:hover {
outline: 2px solid currentColor;
}
&.block--orange {
color: orange;
@media (prefers-color-scheme: dark) {
color: yellow;
}
}
.block__element {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
right: 2rem;
text-align: center;
top: 50%;
transform: translate(-5px, calc(-50% - 1.625rem));
z-index: 2;
@media (min-width: 48rem) {
right: 3rem;
}
@media (min-width: 80rem) {
right: 4rem;
}
.block--orange & {
text-decoration-color: black;
@media (prefers-color-scheme: dark) {
text-decoration-color: white;
}
}
}
}