forked from ofalvai/speed-reader
-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.css
178 lines (172 loc) · 4.14 KB
/
app.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
body {
background: #f2f1ef;
color: #3d3c37;
font-family: 'Crete Round', 'Georgia', 'Times New Roman';
font-size: 16px;
}
h1 {
font-size: 26px;
text-align: center;
margin-bottom: 15px;
}
p {
line-height: 1.5em;
margin: 10px 0;
padding: 0 5px;
}
em {
font-weight: normal;
color: #4BA9A9;
}
#container {
width: 560px;
margin: 0 auto;
margin-top: 30px;
padding: 20px;
background: #fbfbfb;
border-radius: 3px;
box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
#other {
width: 560px;
margin: 20px auto;
padding: 20px;
}
#text-to-read {
width: 538px;
height: 300px;
padding: 10px;
border-radius: 3px;
border: 1px solid #3d3c37;
background: #fff;
font-family: 'Consolas', monospace;
font-size: 14px;
color: #3d3c37;
line-height: 1.5em;
resize: vertical;
}
#reading-screen {
display: none;
width: 560px;
height: 322px;
position: relative;
}
#word {
width: 100%;
height: 300px;
text-align: center;
font-size: 72px;
word-break: break-all;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
height: 30%;
}
#options {
margin: 10px 0;
}
.row {
height: 30px;
}
#wpm {
float: left;
}
#reading-speed {
width: 70px;
margin: 0;
margin-left: 10px;
margin-top: -3px;
}
#text-info {
float: right;
}
input[type="checkbox"] {
position: relative;
top: 1px;
}
#text-progress {
width: 100%;
position: absolute;
bottom: 0;
}
#new {
display: none;
}
.btn {
width: 100px;
padding: 7px 20px;
margin-right: 20px;
border: 1px solid #265757;
border-radius: 3px;
background: -webkit-linear-gradient(#5EB8B8, #4BA9A9);
background: -moz-linear-gradient(#5EB8B8, #4BA9A9);
background: -o-linear-gradient(#5EB8B8, #4BA9A9);
background: linear-gradient(#5EB8B8, #4BA9A9);
box-shadow: 0 1px 0 #265757, inset 0 0px 2px #fff, 0 0 7px rgba(0, 0, 0, 0.25);
color: #fff;
text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
cursor: pointer;
font-family: 'Crete Round', 'Georgia', 'Times New Roman';
}
.btn:hover {
background: -webkit-linear-gradient(#75c2c2, #4BA9A9);
background: -moz-linear-gradient(#75c2c2, #4BA9A9);
background: -o-linear-gradient(#75c2c2, #4BA9A9);
background: linear-gradient(#75c2c2, #4BA9A9);
}
.btn:active {
background: -webkit-linear-gradient(#4BA9A9, #5EB8B8);
background: -moz-linear-gradient(#4BA9A9, #5EB8B8);
background: -o-linear-gradient(#4BA9A9, #5EB8B8);
background: linear-gradient(#4BA9A9, #5EB8B8);
}
li {
margin-left: 30px;
list-style-type: circle;
line-height: 1.5em;
}
/* Night mode */
body.night {
background-color: #111;
color: #ddd;
}
.night #container {
background-color: #000;
}
.night #text-to-read {
background: #111;
color: #ddd;
}
.night #word {
color: #fff;
}
.night #reading-speed {
background-color: #222;
color: #ddd;
border-width: 1px;
}
/* Responsive styles */
@media (max-width: 650px) {
#container {
width: auto;
margin-top: 0;
border-radius: 0;
}
#text-to-read, #reading-screen {
box-sizing: border-box;
-moz-box-sizing: border-box;
width: 100%;
}
#other {
width: auto;
margin: 0;
}
#word {
font-size: 50px;
}
}