Skip to content

Commit 9bb03e7

Browse files
author
jordanmccullough
committed
Refactor selectors out of page-specific scss files
1 parent 6459c70 commit 9bb03e7

File tree

5 files changed

+296
-335
lines changed

5 files changed

+296
-335
lines changed

_stylesheets/core.scss

Lines changed: 65 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@ p{
3232
border: solid 1px $mono-light;
3333
border-radius: 5px;
3434
}
35+
3536
section{
3637
width: 100%;
3738
float: left;
39+
40+
& .container{
41+
padding: 20px 0;
42+
}
3843
}
3944

4045
code{
@@ -78,6 +83,54 @@ ul{
7883
margin: 0 0 0 1.5em
7984
}
8085

86+
nav{
87+
hgroup{
88+
float: left;
89+
}
90+
91+
.logo-training-materials{
92+
display: inline-block;
93+
height: 26px;
94+
width: 237px;
95+
96+
&:before{
97+
content: "";
98+
background: url(../images/training-materials-dark-2x.png) no-repeat top left;
99+
background-size: contain;
100+
height: 32px;
101+
width: 237px;
102+
display: block;
103+
}
104+
}
105+
106+
ul{
107+
float: right;
108+
margin: 0;
109+
padding: 0;
110+
height: 26px;
111+
font-size: 14px;
112+
line-height: 26px;
113+
114+
li{
115+
display: inline-block;
116+
margin-left: 16px;
117+
}
118+
119+
a{
120+
color: inherit;
121+
font-weight: 500;
122+
123+
&:hover{
124+
color: $mono-bright;
125+
border-bottom: solid 2px $mono-bright;
126+
}
127+
&.button:hover{
128+
border: solid 1px $color-bright;
129+
}
130+
}
131+
}
132+
}
133+
81134
.container{
82135
width: $width-desktop;
83136
margin: 0 auto auto;
@@ -92,20 +145,6 @@ ul{
92145
text-align: center;
93146
}
94147

95-
.logo-group{
96-
height: 25px;
97-
overflow: hidden;
98-
99-
.description{
100-
line-height: 32px;
101-
}
102-
}
103-
104-
.logo{
105-
-webkit-transition: margin 600ms, opacity 300ms;
106-
transition: margin 600ms, opacity 300ms;
107-
}
108-
109148
.license{
110149
color: $color-bright;
111150
font-size: 12px;
@@ -214,3 +253,15 @@ ul{
214253
}
215254
}
216255
}
256+
257+
.colorful{
258+
background: $color-dark;
259+
color: $mono-bright;
260+
p{
261+
// color: darken($mono-light, 10%);
262+
}
263+
264+
a{
265+
color: $mono-bright;
266+
}
267+
}

0 commit comments

Comments
 (0)