-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
160 lines (139 loc) · 2.4 KB
/
style.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
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
155
156
157
158
159
160
html,
body {
font: 14px/1.21 "Helvetica Neue", arial, sans-serif;
font-weight: 400;
height: 100%;
margin: 0;
padding: 0;
}
.header {
text-align: center;
}
.header h1 {
margin: 0;
}
.wordle {
max-width: 500px;
width: 100%;
height: 100%;
margin: auto;
padding: 10px;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
box-sizing: border-box;
position: relative;
}
.board {
flex-grow: 1;
}
.board__tiles {
display: flex;
gap: 4px;
justify-content: center;
padding: 2px 0;
}
.board__tile {
font-size: 30px;
font-weight: bold;
line-height: 50px;
height: 50px;
width: 50px;
border-style: solid;
border-width: 2px;
border-color: black;
text-align: center;
text-transform: uppercase;
transition: all 300ms ease-in-out;
}
.board__tile.empty {
border-color: darkgray;
}
.keyboard__key.answered,
.board__tile.answered {
background-color: gray;
}
.keyboard__key.correct,
.board__tile.correct {
background-color: #fbff00;
}
.keyboard__key.exact,
.board__tile.exact {
background-color: #c9e265;
}
.keyboard {
padding: 10px 0;
}
.keyboard__row {
display: flex;
width: 100%;
gap: 4px;
padding: 2px 0;
justify-content: center;
}
.keyboard__key {
line-height: 40px;
font-weight: bolder;
margin: 0;
padding: 0;
flex-grow: 1;
background-color: lightgray;
border-width: 1px;
border-style: solid;
border-color: gray;
cursor: pointer;
}
.keyboard__key.special {
border-color: black;
background-color: darkgrey;
}
@media (prefers-color-scheme: dark) {
html,
body {
background-color: black;
color: white;
}
.board__tile,
.keyboard__key.special {
border-color: white;
}
}
.toast {
position: absolute;
margin: 20px auto;
background: rgba(201, 226, 101, 0.9);
color: white;
padding: 10px;
border-radius: 10px;
opacity: 0;
transition: all 300ms ease-in-out;
text-align: center;
left: 50%;
transform: translate(-50%, -100%);
}
.toast.show {
opacity: 1;
transform: translate(-50%, -20px);
}
.share {
padding: 20px 0;
display: flex;
gap: 20px;
}
.share__button {
background: none;
border: 2px solid rgba(201, 226, 101, 0.9);
color: #c9e265;
display: block;
margin: auto;
font-size: 30px;
padding: 10px 30px;
text-decoration: none;
text-align: center;
cursor: pointer;
transition: all 300ms ease-in-out;
}
.share__button:hover {
background-color: #c9e265;
color: white;
}