Repository navigation
Expand file tree
/
Copy pathphone-home.css
More file actions
154 lines (133 loc) · 2.78 KB
/
Copy pathphone-home.css
File metadata and controls
154 lines (133 loc) · 2.78 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
148
149
150
151
152
153
154
.phone-home {
min-height: 100dvh;
padding: calc(4px + env(safe-area-inset-top)) 8px
calc(24px + env(safe-area-inset-bottom));
background: var(--phone-bg);
}
.phone-home__preview {
margin-top: 4px;
padding: 26px 28px;
border-radius: 9px;
background: var(--phone-preview);
}
.phone-home__preview-slot {
position: relative;
aspect-ratio: 2 / 1;
overflow: hidden;
border: 1px solid var(--phone-preview-line);
border-radius: 5px;
background: var(--phone-preview-surface);
}
.phone-home__preview-slot .hud-frame {
width: 100%;
max-width: none;
aspect-ratio: 2 / 1;
margin: 0;
padding: 0;
border: 0;
background: var(--phone-preview-surface);
}
.phone-home__preview-slot .hud-frame::after {
display: none;
}
.phone-home__preview-slot .hud-frame canvas {
display: block;
width: 100%;
height: 100%;
filter: var(--phone-preview-filter);
opacity: var(--phone-preview-opacity);
mix-blend-mode: normal;
}
.phone-home__section-title {
margin: 28px 12px 16px;
font-size: 1.26rem;
font-weight: 500;
}
.phone-home__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.phone-home-card {
display: flex;
aspect-ratio: 1.28 / 1;
min-width: 0;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
padding: clamp(24px, 6.8vw, 36px);
color: var(--phone-text);
text-align: left;
border: 0;
border-radius: 8px;
background: var(--phone-card);
box-shadow: none;
}
.phone-home-card:active {
background: var(--phone-active);
}
.phone-home-card__icon {
flex: 0 0 auto;
}
.phone-home-card__copy {
display: grid;
min-width: 0;
gap: 5px;
}
.phone-home-card__copy strong {
overflow: hidden;
font-size: clamp(1.02rem, 3.7vw, 1.25rem);
font-weight: 500;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.phone-home-card__copy small {
overflow: hidden;
color: var(--phone-muted);
font-size: clamp(0.72rem, 2.7vw, 0.84rem);
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.phone-home__footer {
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 8px 14px;
margin: 26px 8px 0;
padding: 20px 4px 4px;
border-top: 1px solid var(--phone-line);
}
.phone-home__footer > div {
display: flex;
align-items: baseline;
gap: 8px;
}
.phone-home__footer strong {
font-size: 0.92rem;
}
.phone-home__footer span,
.phone-home__footer p {
color: var(--phone-muted);
font-size: 0.72rem;
}
.phone-home__footer p {
grid-column: 1 / -1;
margin: 0;
}
.phone-home__footer a {
display: grid;
width: 44px;
height: 44px;
color: var(--phone-text);
place-items: center;
}
@media (max-width: 350px) {
.phone-home-card {
padding: 21px;
}
.phone-home-card__copy strong {
font-size: 0.92rem;
}
}