Skip to content

Commit c277499

Browse files
committed
Pixel decoration with CSS3 multiple backgrounds.
1 parent 4f4de6e commit c277499

File tree

1 file changed

+41
-17
lines changed

1 file changed

+41
-17
lines changed

public/css/style.css

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -165,31 +165,31 @@ a:hover { color: #036; }
165165
/**
166166
* Primary styles
167167
*
168-
* Author:
168+
* Authors: rpascal, loicfrering
169169
*/
170170

171171
/* ---- Fonts ---- */
172172

173173
@font-face {
174-
font-family: 'MavenProMedium';
175-
src: url('../fonts/maven_pro_medium-webfont.eot');
176-
src: url('../fonts/maven_pro_medium-webfont.eot?iefix') format('eot'),
177-
url('../fonts/maven_pro_medium-webfont.woff') format('woff'),
178-
url('../fonts/maven_pro_medium-webfont.ttf') format('truetype'),
179-
url('../fonts/maven_pro_medium-webfont.svg#webfontyQA0TEWF') format('svg');
180-
font-weight: normal;
181-
font-style: normal;
174+
font-family: 'MavenProMedium';
175+
src: url('../fonts/maven_pro_medium-webfont.eot');
176+
src: url('../fonts/maven_pro_medium-webfont.eot?iefix') format('eot'),
177+
url('../fonts/maven_pro_medium-webfont.woff') format('woff'),
178+
url('../fonts/maven_pro_medium-webfont.ttf') format('truetype'),
179+
url('../fonts/maven_pro_medium-webfont.svg#webfontyQA0TEWF') format('svg');
180+
font-weight: normal;
181+
font-style: normal;
182182
}
183183

184184
@font-face {
185-
font-family: 'CallunaSansRegular';
186-
src: url('../fonts/callunasansregular-webfont.eot');
187-
src: url('../fonts/callunasansregular-webfont.eot?#iefix') format('eot'),
188-
url('../fonts/callunasansregular-webfont.woff') format('woff'),
189-
url('../fonts/callunasansregular-webfont.ttf') format('truetype'),
190-
url('../fonts/callunasansregular-webfont.svg#webfontW850hM1B') format('svg');
191-
font-weight: normal;
192-
font-style: normal;
185+
font-family: 'CallunaSansRegular';
186+
src: url('../fonts/callunasansregular-webfont.eot');
187+
src: url('../fonts/callunasansregular-webfont.eot?#iefix') format('eot'),
188+
url('../fonts/callunasansregular-webfont.woff') format('woff'),
189+
url('../fonts/callunasansregular-webfont.ttf') format('truetype'),
190+
url('../fonts/callunasansregular-webfont.svg#webfontW850hM1B') format('svg');
191+
font-weight: normal;
192+
font-style: normal;
193193
}
194194

195195
/* ---- General ---- */
@@ -231,6 +231,30 @@ ul {
231231
border-bottom: none;
232232
}
233233

234+
/* ---- Pixel decoration ---- */
235+
236+
#content:before {
237+
content: '';
238+
background:
239+
url('../img/pixel-borders-left.gif') no-repeat left -36px,
240+
url('../img/pixel-borders-right.gif') no-repeat right -36px;
241+
display:block;
242+
height: 36px;
243+
position: relative;
244+
top: -34px;
245+
}
246+
247+
#content:after {
248+
content: '';
249+
background:
250+
url('../img/pixel-borders-left.gif') no-repeat left 0,
251+
url('../img/pixel-borders-right.gif') no-repeat right 0;
252+
display:block;
253+
height: 36px;
254+
position: relative;
255+
top: 34px;
256+
}
257+
234258
/* ---- Main ---- */
235259

236260
#main {

0 commit comments

Comments
 (0)