-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.css
154 lines (134 loc) · 2.85 KB
/
styles.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
:root {
--text-color: #fff;
--primary-color: hsl(201, 100%, 17%);
--secondary-color: hsl(201, 100%, 27%);
}
body {
display: flex;
position: relative;
flex-direction: column;
gap: 1rem;
padding: 4rem 2rem;
background-color: var(--primary-color);
font-family: sans-serif;
}
.button-wrapper {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
justify-content: center;
gap: 2rem;
}
.tinput {
color: var(--text-color);
}
::placeholder {
/* Chrome, Firefox, Opera, Safari 10.1+ */
color: var(--text-color);
opacity: .5;
/* Firefox */
}
:-ms-input-placeholder {
/* Internet Explorer 10-11 */
color: var(--text-color);
}
::-ms-input-placeholder {
/* Microsoft Edge */
color: var(--text-color);
}
.character-input {
background: transparent;
width: 1.8ch;
padding: 5px 0;
text-align: center;
font-size: 3rem;
border: 0;
color: var(--text-color);
border-bottom: 2px solid var(--text-color);
outline: none;
}
.top-button {
font-family: inherit;
font-size: 2rem;
}
.top-buttons-container {
position: absolute;
top: 0;
left: 0;
padding: 0.5rem;
}
.wrapper {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: auto;
padding: 4rem 0;
gap: 2rem;
}
.flex-wrapper {
display: flex;
}
.word-wrapper {
display: flex;
gap: 0.5rem;
}
#sentence {
background: transparent;
border: none;
text-align: center;
font-size: 2rem;
outline: none;
resize: none;
}
#result {
font-size: 3rem;
color: var(--text-color);
display: none;
text-align: center;
}
.textarea-wrapper {
display: flex;
align-items: center;
gap: 2rem;
flex-direction: column;
}
#revealresult {
display: none;
}
/* CSS */
.btn {
appearance: button;
backface-visibility: hidden;
background-color: var(--secondary-color);
border-radius: 6px;
border-width: 0;
box-shadow: rgba(50, 50, 93, 0.1) 0 0 0 1px inset,
rgba(50, 50, 93, 0.1) 0 2px 5px 0, rgba(0, 0, 0, 0.07) 0 1px 1px 0;
box-sizing: border-box;
color: var(--text-color);
cursor: pointer;
font-family: -apple-system, system-ui, "Segoe UI", Roboto,
"Helvetica Neue", Ubuntu, sans-serif;
font-size: 100%;
height: 44px;
line-height: 1.15;
outline: none;
overflow: hidden;
padding: 0 25px;
position: relative;
text-align: center;
text-transform: none;
transform: translateZ(0);
transition: all 0.2s, box-shadow 0.08s ease-in;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
}
.btn:disabled {
cursor: default;
}
.btn:focus {
box-shadow: rgba(50, 50, 93, 0.1) 0 0 0 1px inset,
rgba(50, 50, 93, 0.2) 0 6px 15px 0, rgba(0, 0, 0, 0.1) 0 2px 2px 0,
rgba(50, 151, 211, 0.3) 0 0 0 4px;
}