Skip to content

Commit 007c26f

Browse files
authored
Merge pull request #12 from doingmathwithpython/copilot/style-refresh
Refresh site theme with lighter yellow/white/blue visual system
2 parents c4095d6 + 51eadfa commit 007c26f

1 file changed

Lines changed: 32 additions & 23 deletions

File tree

‎theme/css/main.css‎

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
/***** Global *****/
1818
/* Body */
1919
body {
20-
background: #F5F4EF;
21-
color: #000305;
20+
background: #f7fbff;
21+
color: #173c5f;
2222
font-size: 87.5%; /* Base font size: 14px */
2323
font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
24-
line-height: 1.429;
24+
line-height: 1.6;
2525
margin: 0;
2626
padding: 0;
2727
text-align: left;
@@ -44,21 +44,21 @@ h1, h2, h3, h4, h5, h6 {
4444

4545
h3, h4, h5, h6 { margin-top: .8em; }
4646

47-
hr { border: 2px solid #EEEEEE; }
47+
hr { border: 2px solid #e3eff9; }
4848

4949
/* Anchors */
5050
a {outline: 0;}
5151
a img {border: 0px; text-decoration: none;}
5252
a:link, a:visited {
53-
color: #C74350;
53+
color: #1f7fbf;
5454
padding: 0 1px;
5555
text-decoration: underline;
5656
}
5757
a:hover, a:active {
58-
background-color: #C74350;
58+
background-color: #ffdd75;
5959
color: #fff;
6060
text-decoration: none;
61-
text-shadow: 1px 1px 1px #333;
61+
text-shadow: none;
6262
}
6363

6464
h1 a:hover {
@@ -104,12 +104,15 @@ dl {margin: 0 0 1.5em 0;}
104104
dt {font-weight: bold;}
105105
dd {margin-left: 1.5em;}
106106

107-
pre{background-color: rgb(238, 238, 238); padding: 10px; margin: 10px; overflow: auto;}
107+
pre{background-color: #eff7ff; padding: 10px; margin: 10px; overflow: auto;}
108108

109109
/* Quotes */
110110
blockquote {
111111
margin: 20px;
112112
font-style: italic;
113+
border-left: 4px solid #ffdd75;
114+
background: #fffef6;
115+
padding: 0.75em 1em;
113116
}
114117
cite {}
115118

@@ -183,23 +186,23 @@ div.figure p.caption, figure p.caption { /* margin provided by figure */
183186
}
184187

185188
#banner h1 a:link, #banner h1 a:visited {
186-
color: #000305;
189+
color: #173c5f;
187190
display: block;
188191
font-weight: bold;
189192
margin: 0 0 0 .2em;
190193
text-decoration: none;
191194
}
192195
#banner h1 a:hover, #banner h1 a:active {
193196
background: none;
194-
color: #C74350;
197+
color: #1f7fbf;
195198
text-shadow: none;
196199
}
197200

198201
#banner h1 strong {font-size: 0.36em; font-weight: normal;}
199202

200203
/* Main Nav */
201204
#banner nav {
202-
background: #000305;
205+
background: #e8f3fc;
203206
font-size: 1.143em;
204207
overflow: auto;
205208
line-height: 30px;
@@ -208,6 +211,7 @@ div.figure p.caption, figure p.caption { /* margin provided by figure */
208211
text-align: center;
209212
max-width: 800px;
210213

214+
border: 1px solid #d0e4f5;
211215
border-radius: 5px;
212216
-moz-border-radius: 5px;
213217
-webkit-border-radius: 5px;
@@ -217,15 +221,15 @@ div.figure p.caption, figure p.caption { /* margin provided by figure */
217221
#banner nav li {float: left; display: inline; margin: 0;}
218222

219223
#banner nav a:link, #banner nav a:visited {
220-
color: #fff;
224+
color: #173c5f;
221225
display: inline-block;
222226
height: 30px;
223227
padding: 5px 1.5em;
224228
text-decoration: none;
225229
}
226230
#banner nav a:hover, #banner nav a:active,
227231
#banner nav .active a:link, #banner nav .active a:visited {
228-
background: #C74451;
232+
background: #1f7fbf;
229233
color: #fff;
230234
text-shadow: none !important;
231235
}
@@ -250,20 +254,22 @@ div.figure p.caption, figure p.caption { /* margin provided by figure */
250254
padding: 20px;
251255
max-width: 760px;
252256

257+
border: 1px solid #dcecf9;
258+
box-shadow: 0 10px 30px rgba(23, 60, 95, 0.06);
253259
border-radius: 10px;
254260
-moz-border-radius: 10px;
255261
-webkit-border-radius: 10px;
256262
}
257263

258264
#featured figure {
259-
border: 2px solid #eee;
265+
border: 2px solid #e7f2fb;
260266
float: right;
261267
margin: 0.786em 2em 0 5em;
262268
max-width: 248px;
263269
}
264270
#featured figure img {display: block; float: right;}
265271

266-
#featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;}
272+
#featured h2 {color: #1f7fbf; font-size: 1.714em; margin-bottom: 0.333em;}
267273
#featured h3 {font-size: 1.429em; margin-bottom: .5em;}
268274

269275
#featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;}
@@ -279,6 +285,8 @@ div.figure p.caption, figure p.caption { /* margin provided by figure */
279285
padding: 20px 20px;
280286
max-width: 760px;
281287

288+
border: 1px solid #dcecf9;
289+
box-shadow: 0 10px 30px rgba(23, 60, 95, 0.05);
282290
border-radius: 10px;
283291
-moz-border-radius: 10px;
284292
-webkit-border-radius: 10px;
@@ -292,16 +300,16 @@ div.figure p.caption, figure p.caption { /* margin provided by figure */
292300
#extras ul {list-style: none; margin: 0;}
293301
#extras li {border-bottom: 1px solid #fff;}
294302
#extras h2 {
295-
color: #C74350;
303+
color: #1f7fbf;
296304
font-size: 1.429em;
297305
margin-bottom: .25em;
298306
padding: 0 3px;
299307
}
300308

301309
#extras a:link, #extras a:visited {
302-
color: #444;
310+
color: #173c5f;
303311
display: block;
304-
border-bottom: 1px solid #F4E3E3;
312+
border-bottom: 1px solid #e6f1fb;
305313
text-decoration: none;
306314
padding: .3em .25em;
307315
}
@@ -367,6 +375,7 @@ div.figure p.caption, figure p.caption { /* margin provided by figure */
367375
text-align: left;
368376
max-width: 760px;
369377

378+
border: 1px solid #dcecf9;
370379
border-radius: 10px;
371380
-moz-border-radius: 10px;
372381
-webkit-border-radius: 10px;
@@ -390,7 +399,7 @@ div.figure p.caption, figure p.caption { /* margin provided by figure */
390399
.hentry {
391400
display: block;
392401
clear: both;
393-
border-top: 1px solid #eee;
402+
border-top: 1px solid #e6f1fb;
394403
padding: 1.5em 0;
395404
}
396405
li:first-child .hentry, #content > .hentry {border: 0; margin: 0;}
@@ -421,7 +430,7 @@ li:first-child .hentry, #content > .hentry {border: 0; margin: 0;}
421430

422431
/* About the Author */
423432
#about-author {
424-
background: #f9f9f9;
433+
background: #f5faff;
425434
clear: both;
426435
font-style: normal;
427436
margin: 2em 0;
@@ -433,7 +442,7 @@ li:first-child .hentry, #content > .hentry {border: 0; margin: 0;}
433442
}
434443

435444
#about-author strong {
436-
color: #C64350;
445+
color: #1f7fbf;
437446
clear: both;
438447
display: block;
439448
font-size: 1.429em;
@@ -444,7 +453,7 @@ li:first-child .hentry, #content > .hentry {border: 0; margin: 0;}
444453
/* Comments */
445454
#comments-list {list-style: none; margin: 0 1em;}
446455
#comments-list blockquote {
447-
background: #f8f8f8;
456+
background: #f6fbff;
448457
clear: both;
449458
font-style: normal;
450459
margin: 0;
@@ -456,7 +465,7 @@ li:first-child .hentry, #content > .hentry {border: 0; margin: 0;}
456465
}
457466
#comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;}
458467

459-
#comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
468+
#comments-list li:nth-child(2n) blockquote {background: #fffef6;}
460469

461470
/* Add a Comment */
462471
#add-comment label {clear: left; float: left; text-align: left; max-width: 150px;}

0 commit comments

Comments
 (0)