Skip to content

Commit 616e7a3

Browse files
committed
edit css
1 parent e817013 commit 616e7a3

File tree

1 file changed

+229
-1
lines changed

1 file changed

+229
-1
lines changed

css/app.css

Lines changed: 229 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ html { font-size: 100%; }
2323

2424
.container {
2525
margin: 0 auto;
26-
max-width: 48rem;
26+
max-width: 60rem;
2727
width: 90%;
2828
}
2929

@@ -68,4 +68,232 @@ body {
6868
font-size: 0.8em;
6969
}
7070

71+
#sidebar {
72+
position: fixed;
73+
height: 100%;
7174

75+
overflow-y: scroll;
76+
overflow: -moz-scrollbars-vertical;
77+
78+
margin-right: 20px;
79+
margin-top: 0;
80+
padding-left: 25px;
81+
padding-top: 0;
82+
83+
box-shadow: 0 0 40px #CCC;
84+
-webkit-box-shadow: 0 0 40px #CCC;
85+
-moz-box-shadow: 0 0 40px #CCC;
86+
border-right: 1px solid #BBB;
87+
}
88+
89+
#sidebar h1 {
90+
font-size: 25px;
91+
margin-bottom: 0px;
92+
padding-bottom: 0px;
93+
}
94+
95+
#sidebar h1 a:link, #sidebar h1 a:visited {
96+
color: #333;
97+
}
98+
99+
#sidebar h2 {
100+
font-size: 15px;
101+
}
102+
103+
#sidebar h5 {
104+
margin-top: 20px;
105+
margin-bottom: 0;
106+
}
107+
108+
#sidebar a:visited, #sidebar a:link {
109+
color: #4682BE;
110+
text-decoration: none;
111+
}
112+
113+
#sidebar ul {
114+
list-style-type: none;
115+
margin: 0;
116+
padding-left: 10px;
117+
padding-top: 0;
118+
}
119+
120+
#sidebar ul li:before { /* a hack to have dashes as a list style */
121+
content: "-";
122+
position: relative;
123+
left: -5px;
124+
}
125+
126+
#sidebar ul li {
127+
margin-top: 0;
128+
margin-bottom: 2px;
129+
margin-left: 10px;
130+
padding: 0;
131+
132+
text-indent: -5px; /* to compensate for the padding for the dash */
133+
font-size: 12px;
134+
}
135+
136+
#content {
137+
padding-top: 10px;
138+
padding-bottom: 150px;
139+
140+
text-align: justify;
141+
font-size: 16px;
142+
143+
/* border: 1px solid black; */
144+
}
145+
146+
#content pre {
147+
margin-left: auto;
148+
margin-right: auto;
149+
padding-top: 10px;
150+
padding-bottom: 10px;
151+
padding-left: 13px;
152+
153+
color: #FFF;
154+
155+
background: #444;
156+
border-radius: 5px;
157+
}
158+
159+
#content code {
160+
padding-left: 5px;
161+
padding-right: 5px;
162+
163+
color: #FFF;
164+
font-size: 10px;
165+
font-weight: normal;
166+
font-family: Consolas, monospace;
167+
168+
background: #444;
169+
border-radius: 2px;
170+
}
171+
172+
#content h2 {
173+
margin-top: 50px;
174+
margin-bottom: 0px;
175+
176+
padding-top: 20px;
177+
padding-bottom: 0px;
178+
179+
font-size: 18px;
180+
text-align: left;
181+
182+
border-top: 2px solid #666;
183+
}
184+
185+
#content h3 {
186+
margin-top: 50px;
187+
margin-bottom: 0px;
188+
189+
padding-top: 20px;
190+
padding-bottom: 0px;
191+
192+
text-align: left;
193+
border-top: 1px dotted #777;
194+
}
195+
196+
#content img {
197+
max-width: 90%;
198+
display: block;
199+
200+
margin-left: auto;
201+
margin-right: auto;
202+
margin-top: 40px;
203+
margin-bottom: 40px;
204+
205+
border-radius: 5px;
206+
}
207+
208+
#content ul {
209+
display: block;
210+
list-style-type: none;
211+
}
212+
213+
#content ul li:before { /* a hack to have dashes as a list style */
214+
content: "-";
215+
position: relative;
216+
left: -5px;
217+
}
218+
219+
#content ul li {
220+
text-indent: -5px; /* to compensate for the padding for the dash */
221+
font-size: 13px;
222+
}
223+
224+
#content ul li.link {
225+
color: #4682BE;
226+
text-decoration: none;
227+
font-size: 13px;
228+
font-weight: bold;
229+
cursor: pointer;
230+
}
231+
232+
#content a:link, #content a:visited {
233+
color: #4682BE;
234+
text-decoration: none;
235+
}
236+
237+
#back_to_top {
238+
display: none;
239+
position: fixed;
240+
241+
height: 20px;
242+
width: 70px;
243+
top: 20px;
244+
245+
margin-left: 890px;
246+
margin-top: 0px;
247+
248+
color: #FFF;
249+
line-height: 20px;
250+
text-align: center;
251+
font-size: 10px;
252+
253+
254+
border-radius: 5px;
255+
background-color: #AAA;
256+
}
257+
258+
#back_to_top:hover {
259+
background-color: #444;
260+
cursor: pointer;
261+
}
262+
263+
#edit {
264+
display: none;
265+
position: fixed;
266+
267+
height: 17px;
268+
width: 70px;
269+
top: 45px;
270+
271+
margin-left: 890px;
272+
margin-top: 0px;
273+
274+
color: #FFF;
275+
line-height: 17px;
276+
text-align: center;
277+
font-size: 10px;
278+
279+
280+
border-radius: 5px;
281+
background-color: #AAA;
282+
}
283+
284+
#edit:hover {
285+
background-color: #444;
286+
cursor: pointer;
287+
}
288+
289+
#loading, #error {
290+
display: none;
291+
position: fixed;
292+
293+
height: 17px;
294+
top: 45%;
295+
296+
margin-left: 560px;
297+
298+
font-size: 14px;
299+
}

0 commit comments

Comments
 (0)