Skip to content

Commit 61d4a7b

Browse files
author
Jordan McCullough
committed
Merge pull request #48 from github/refactor-sass
Refactor and cleanup Sass and stylesheets
2 parents 6a139d6 + dd64c10 commit 61d4a7b

File tree

11 files changed

+216
-692
lines changed

11 files changed

+216
-692
lines changed

_layouts/bare.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
{% endif %}
1212
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
1313

14+
<link rel="stylesheet" media="all" href=
15+
{% if page.theme %}
16+
"../_stylesheets/page.css"
17+
{% endif %}
18+
"_stylesheets/page.css"
19+
/>
20+
1421
<link rel="stylesheet"
1522
media="screen"
1623
href=

_stylesheets/core.scss

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ nav{
254254
}
255255
}
256256

257+
258+
/* Colorization */
257259
.colorful{
258260
background: $color-dark;
259261
color: $mono-bright;
@@ -265,3 +267,86 @@ nav{
265267
color: $mono-bright;
266268
}
267269
}
270+
271+
.invert{
272+
background: $mono-dark;
273+
border-bottom: solid 1px $mono-light;
274+
color: $mono-bright;
275+
h2,h3,p{
276+
color: darken($mono-light, 10%);
277+
}
278+
279+
a{
280+
color: $mono-bright;
281+
}
282+
}
283+
284+
.grey{
285+
background: lighten($mono-light, 5%);
286+
border-top: solid 1px $mono-light;
287+
border-bottom: solid 1px $mono-light;
288+
}
289+
290+
/* Alignment */
291+
.left{
292+
float:left;
293+
clear:left;
294+
}
295+
.right{
296+
float:right;
297+
clear:right;
298+
}
299+
300+
/* Layout */
301+
section{
302+
& .container{
303+
&.hero{
304+
margin: 70px auto 70px auto;
305+
306+
p{
307+
font-size: 125%;
308+
color: lighten($color-dark, 40%);
309+
margin: 20px 0;
310+
}
311+
}
312+
}
313+
}
314+
315+
.segment-content{
316+
width: $width-desktop*.66;
317+
display: inline-block;
318+
}
319+
320+
.segment-icon{
321+
width: $width-desktop*0.31;
322+
padding: $width-desktop*0.01;
323+
display: inline-block;
324+
text-align: center;
325+
font-size: 80%;
326+
color: lighten($mono-dark, 20%);
327+
328+
a{
329+
display: block;
330+
border-radius: 3px;
331+
box-shadow: 0 0 0 1px $color-bright;
332+
padding: 20px;
333+
-webkit-transition: box-shadow 150ms, color 150ms, background 150ms;
334+
transition: box-shadow 150ms, color 150ms, background 150ms;
335+
336+
&:hover{
337+
box-shadow: 0 0 0 2px $color-dark;
338+
color: $mono-bright;
339+
background: $color-dark;
340+
}
341+
342+
color: $color-bright;
343+
}
344+
345+
.octicon{
346+
height: 50px;
347+
width: 50px;
348+
font-size: 30px;
349+
border-radius: 50%;
350+
text-align: center;
351+
}
352+
}

_stylesheets/default.css

Lines changed: 0 additions & 212 deletions
This file was deleted.

_stylesheets/default.scss

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)