-
Notifications
You must be signed in to change notification settings - Fork 353
Expand file tree
/
Copy pathassets.module.scss
More file actions
147 lines (125 loc) · 2.93 KB
/
assets.module.scss
File metadata and controls
147 lines (125 loc) · 2.93 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
@use "@/libs/theme/styles/variables" as *;
@use "@/libs/theme/styles/mixins" as *;
.container {
@include Container;
}
.content {
display: flex;
width: calc(100% - 2rem);
max-width: 1312px;
margin: 0 auto;
flex-direction: column;
row-gap: 2rem;
@media #{$breakpoint-dimension-sm} {
width: calc(100% - 4rem);
grid-template-columns: repeat(12,minmax(0,1fr));
}
@media #{$breakpoint-dimension-lg} {
width: calc(100% - 128px);
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
grid-column-gap: 1rem;
column-gap: 1rem;
width: calc(100% - 2rem);
max-width: 1312px;
margin: 0 auto;
row-gap: 1rem;
}
}
.assets__column {
grid-column: span 1;
color: var(--color_fg_default);
display: flex;
flex-direction: column;
gap: 1.25rem;
border: 1px solid var(--color_border_default);
border-radius: 1rem;
padding: 2.5rem;
background-color: var(--color_bg_layer);
box-shadow: 0 2px 12px -4px rgba(0,0,0,.08),0 2px 1px -.5px rgba(0,0,0,.04),0 2px 4px -4px rgba(0,0,0,.05),inset -.5px -.5px 2px rgba(0,0,0,.04);
@media #{$breakpoint-dimension-sm} {
grid-column: span 4;
gap: 2rem;
}
}
.assets__title {
width: 100%;
margin: 0;
text-align: left;
font-size: 1.5rem;
line-height: 1.15;
font-weight: 500;
color: var(--color_fg_bold);
font-feature-settings: lining-nums proportional-nums;
font-variant-numeric: lining-nums proportional-nums;
font-style: normal;
@media #{$breakpoint-dimension-lg} {
font-size: 2.5rem;
}
}
.assets__description {
font-size: 1rem;
line-height: 1.5rem;
}
.asset__link {
width: fit-content;
display: flex;
padding: .25rem .75rem;
justify-content: center;
align-items: center;
gap: .25rem;
border-radius: 9999px;
background: var(--color_bg_layer);
border: 1px solid var(--color_border_default);
font-size: .875rem;
font-weight: 700;
line-height: 1.375rem;
font-weight: 500;
letter-spacing: -.2px;
transition: all .3s ease-in-out;
&:focus-visible {
outline: solid 1px var(--color_border_focus);
outline-offset: 0.125rem;
border-radius: 0.125rem;
}
&:hover {
border: 1px solid var(--color_border_bold);
box-shadow: 0 0 0 4px rgba(0,0,0,.12);
transition: all .2s ease-out;
}
@media #{$breakpoint-dimension-sm} {
margin-top: 40px;
}
}
.assets__content {
display: flex;
flex-direction: column;
gap: 1.5rem;
@media #{$breakpoint-dimension-sm} {
gap: 2rem;
}
}
.card {
display: flex;
justify-content: space-between;
padding: 1.5rem 1rem;
align-items: center;
gap: 1.5rem;
flex: 1 0 0;
border-radius: 0.5rem;
border: 1px solid var(--color_border_bold);
background: var(--color_bg_layer_alternate);
cursor: pointer;
transition: border 0.24s ease-out;
svg {
path {
stroke: var(--color_fg_default);
}
}
&:hover {
border: 1px solid #fbfbfb;
}
@media #{$breakpoint-dimension-sm} {
padding: 2rem 15px;
}
}