Skip to content

Commit cc746ea

Browse files
styles to make the wall o' text more readable
1 parent 5f5150b commit cc746ea

2 files changed

Lines changed: 32 additions & 23 deletions

File tree

assets/index.scss

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$black: #333;
1+
$black: #555;
22
$green: #0FD482;
33
$white: #fff;
44
$dark-green: #09784a;
@@ -27,6 +27,7 @@ a {
2727
$margin-small: 10px;
2828
$margin-big: 20px;
2929
$margin-flex: 5%;
30+
$text-indent: 25px;
3031

3132
.jumbotron {
3233
padding: $margin-big $margin-flex;
@@ -73,7 +74,7 @@ $margin-flex: 5%;
7374
background: #f3f3f3 url("/images/white-gradient.png") repeat-x left top;
7475

7576
h2 {
76-
font-weight: bold;
77+
font-weight: normal;
7778
font-size: 40px;
7879
margin: $margin-small 0;
7980

@@ -85,13 +86,17 @@ $margin-flex: 5%;
8586
h3 {
8687
font-weight: bold;
8788
font-size: 20px;
88-
margin: $margin-small 0;
89+
margin-bottom: $margin-small;
90+
padding-top: 2px;
91+
border-top: 1px solid $white;
92+
box-shadow: 0 -1px 0 #ccc;
93+
text-transform: uppercase;
94+
letter-spacing: 3px;
8995
}
9096

9197
.cities {
9298
h2 {
9399
margin-left: $margin-small;
94-
font-weight: normal;
95100
color: #777;
96101
}
97102
ul {
@@ -103,7 +108,7 @@ $margin-flex: 5%;
103108
overflow: hidden;
104109
background-color: $white;
105110
margin-bottom: $margin-big * 2;
106-
box-shadow: 0 1px 0 #fff;
111+
box-shadow: 0 1px 0 $white;
107112

108113
li {
109114
font-size: $city-size;
@@ -151,30 +156,30 @@ $margin-flex: 5%;
151156
}
152157

153158
.main {
154-
$para-size: 16px;
159+
$para-size: 15px;
155160

156161
p, li {
157162
font-size: $para-size;
158-
line-height: $para-size + 8px;
163+
line-height: $para-size + 6px;
159164
}
160165

161166
p {
162-
margin: 15px 0;
167+
margin: 0 0 $margin-big $text-indent;
163168
}
164169
ul, ol {
165-
padding-left: $margin-big;
170+
margin-left: $text-indent + 17px;
166171
}
167172
li {
168173
margin: $margin-small 0;
169174
}
170175

171176
img {
172-
max-width: 80%;
177+
max-width: 100%;
173178
}
174179

175180
code {
176181
border: 1px solid #aaa;
177-
background: #fff;
182+
background: $white;
178183
padding: 1px 3px;
179184
border-radius: 4px;
180185
white-space: nowrap;

stylesheets/index.css

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
body {
22
font-family: Helvetica, Arial, sans-serif;
3-
color: #333333;
3+
color: #555555;
44
position: relative;
55
background: #ddd;
66
padding: 0 !important; }
@@ -49,7 +49,7 @@ a {
4949
border-bottom: solid 1px #c3c3c3;
5050
background: #f3f3f3 url("/images/white-gradient.png") repeat-x left top; }
5151
.wrapper h2 {
52-
font-weight: bold;
52+
font-weight: normal;
5353
font-size: 40px;
5454
margin: 10px 0; }
5555
@media (max-width: 480px) {
@@ -58,10 +58,14 @@ a {
5858
.wrapper h3 {
5959
font-weight: bold;
6060
font-size: 20px;
61-
margin: 10px 0; }
61+
margin-bottom: 10px;
62+
padding-top: 2px;
63+
border-top: 1px solid white;
64+
box-shadow: 0 -1px 0 #cccccc;
65+
text-transform: uppercase;
66+
letter-spacing: 3px; }
6267
.wrapper .cities h2 {
6368
margin-left: 10px;
64-
font-weight: normal;
6569
color: #777; }
6670
.wrapper .cities ul {
6771
list-style: none;
@@ -70,7 +74,7 @@ a {
7074
overflow: hidden;
7175
background-color: white;
7276
margin-bottom: 40px;
73-
box-shadow: 0 1px 0 #fff; }
77+
box-shadow: 0 1px 0 white; }
7478
.wrapper .cities ul li {
7579
font-size: 18px;
7680
margin: 0; }
@@ -93,24 +97,24 @@ a {
9397
background-repeat: no-repeat, repeat-x;
9498
background-position: right center, left top; }
9599
.wrapper .cities ul li a small {
96-
color: #333333;
100+
color: #555555;
97101
font-size: 9px; }
98102
.wrapper .cities ul li:first-child a {
99103
border: none; }
100104
.wrapper .main p, .wrapper .main li {
101-
font-size: 16px;
102-
line-height: 24px; }
105+
font-size: 15px;
106+
line-height: 21px; }
103107
.wrapper .main p {
104-
margin: 15px 0; }
108+
margin: 0 0 20px 25px; }
105109
.wrapper .main ul, .wrapper .main ol {
106-
padding-left: 20px; }
110+
margin-left: 42px; }
107111
.wrapper .main li {
108112
margin: 10px 0; }
109113
.wrapper .main img {
110-
max-width: 80%; }
114+
max-width: 100%; }
111115
.wrapper .main code {
112116
border: 1px solid #aaa;
113-
background: #fff;
117+
background: white;
114118
padding: 1px 3px;
115119
border-radius: 4px;
116120
white-space: nowrap; }

0 commit comments

Comments
 (0)