-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
126 lines (117 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
* { transition: .25s ease all; }
html {
padding: 4rem;
}
body {
font-family: 'Amiri' ;
background-color: #222;
height: 100%;
color: white;
text-align: center;
}
input#name { margin-top: 2rem; }
input#word {
margin: 0 2rem 2rem;
margin-left: auto;
margin-right: auto;
display: inline-block;
border: 0;
font-size: 1rem;
max-width: 80%;
padding: 1rem;
text-align: center;
border: 1px solid white;
border-radius: 5px 0 0 5px;
}
#submit {
padding: 1rem 1.5rem;
background: #e48800;
color: white;
text-transform: lowercase;
font-weight: 200;
border: 1px solid #e48800;
font-family: sans-serif;
border-radius: 0 5px 5px 0;
left: -5px;
top: -1px;
position: relative;
}
#submit:hover {
background-color: #4CAF50;;
border-color: #4CAF50;;
}
@media screen and (max-width: 575px) {
#submit, input#word { border-radius: 0;}
}
.subtitle{ color: #a0a0a0; }
.lead {
font-size: 2rem;
margin-top: 2rem;
}
#output {
font-size: 2rem;
}
#explanation-box {
color: transparent;
padding: 2rem;
max-width: 800px;
margin: 3rem;
margin-left: auto;
margin-right: auto;
text-align: left;
}
#explanation-box h4 {
font-weight: bold;
}
#explanation {
font-size: 1rem;
margin-bottom: 0;
}
.plus { display: none; }
.plus, .as-in,
.pronunciation .has-as:before {
color: #a0a0a0;
font-size: .75rem;
}
#output { padding-top: 1rem; }
#output p { margin-bottom: 0; }
#output p .plus:first-child,
#output p .plus:last-child,
#output .plus:last-of-type { display: none; }
#sharelink {
margin: 2rem;
font-size: .9rem;
color: #a0a0a0;
}
a { color: #e48800; }
a:hover { color: #4CAF50; }
.pronunciation {
display: inline-block;
position: relative;
}
.pronunciation .as-in {
display: none;
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 100px;
}
.pronunciation .has-as:before {
content: '?';
display: block;
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
}
.pronunciation:hover .has-as:before {
display: none;
}
.pronunciation:hover .as-in {
display: block;
}
.lefty { border-top: 1px solid white; padding-top: 1rem; }
@media screen and (min-width: 575px) {
.righty { text-align: right;}
.lefty { text-align: left; border-left: 1px solid white; border-top: 0; padding-top:0;}
}