Skip to content

Commit 69701fe

Browse files
committed
Add 'downloads' SCSS class for download lists
In order for the downloads list to render differently from other 'ul's in the header while still making regular 'ul's easy to style, it is necessary for it to implement a separate class. Implement the 'downloads' class to represent this special type of list.
1 parent a6c325e commit 69701fe

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

_sass/jekyll-theme-minimal.scss

+11-11
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ header {
111111
-webkit-font-smoothing:subpixel-antialiased;
112112
}
113113

114-
header ul {
114+
ul.downloads {
115115
list-style:none;
116116
height:40px;
117117
padding:0;
@@ -121,22 +121,22 @@ header ul {
121121
width:270px;
122122
}
123123

124-
header li {
124+
.downloads li {
125125
width:89px;
126126
float:left;
127127
border-right:1px solid #e0e0e0;
128128
height:40px;
129129
}
130130

131-
header li:first-child a {
131+
.downloads li:first-child a {
132132
border-radius:5px 0 0 5px;
133133
}
134134

135-
header li:last-child a {
135+
.downloads li:last-child a {
136136
border-radius:0 5px 5px 0;
137137
}
138138

139-
header ul a {
139+
.downloads a {
140140
line-height:1;
141141
font-size:11px;
142142
color:#676767;
@@ -146,12 +146,12 @@ header ul a {
146146
height:34px;
147147
}
148148

149-
header ul a:hover, header ul a:focus {
149+
.downloads a:hover, .downloads a:focus {
150150
color:#675C5C;
151151
font-weight:bold;
152152
}
153153

154-
header ul a:active {
154+
.downloads ul a:active {
155155
background-color:#f0f0f0;
156156
}
157157

@@ -160,12 +160,12 @@ strong {
160160
font-weight:700;
161161
}
162162

163-
header ul li + li + li {
163+
.downloads li + li + li {
164164
border-right:none;
165165
width:89px;
166166
}
167167

168-
header ul a strong {
168+
.downloads a strong {
169169
font-size:14px;
170170
display:block;
171171
color:#222;
@@ -254,11 +254,11 @@ footer {
254254
padding:15px;
255255
}
256256

257-
header ul {
257+
.downloads {
258258
width:99%;
259259
}
260260

261-
header li, header ul li + li + li {
261+
.downloads li, .downloads li + li + li {
262262
width:33%;
263263
}
264264
}

0 commit comments

Comments
 (0)