Skip to content

Commit f412cec

Browse files
committed
Moves inline styles into separate files #194
1 parent ef5bb3b commit f412cec

File tree

5 files changed

+85
-84
lines changed

5 files changed

+85
-84
lines changed

examples/assets/css/layout.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
html, body {
2+
position: relative;
3+
height: 100%;
4+
}
5+
6+
body {
7+
margin: 0;
8+
padding: 0;
9+
overflow: hidden;
10+
}

examples/assets/css/style.css

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
html, body {
2+
position: relative;
3+
height: 100%;
4+
margin:0;
5+
padding: 0;
6+
overflow: hidden;
7+
background: #262C38;
8+
}
9+
10+
div.sidebar {
11+
width: 300px;
12+
float: left;
13+
position: relative;
14+
height: 100%;
15+
overflow: auto;
16+
}
17+
18+
.sidebar h1 {
19+
font-family: 'Montserrat', sans-serif;
20+
color: white;
21+
text-align: center;
22+
}
23+
24+
ul {
25+
color: white;
26+
list-style: none;
27+
}
28+
29+
li.h {
30+
color: white;
31+
text-decoration: none;
32+
font-family: 'Oxygen', sans-serif;
33+
font-size: 14pt;
34+
font-weight: bold;
35+
line-height: 2;
36+
padding-top: 15px;
37+
}
38+
39+
li a {
40+
color: white;
41+
text-decoration: none;
42+
font-family: 'Oxygen', sans-serif;
43+
}
44+
45+
li a:hover {
46+
text-decoration: underline;
47+
}
48+
49+
iframe {
50+
width: calc(100% - 300px);
51+
float: right;
52+
height: 100%;
53+
border: none;
54+
}
55+
56+
a.source {
57+
position: fixed;
58+
bottom: 50px;
59+
right: 50px;
60+
color: white;
61+
border: 2px solid white;
62+
padding: 5px 10px;
63+
border-radius: 5px;
64+
text-decoration: none;
65+
font-family: 'Oxygen', sans-serif;
66+
transition: all 0.1s linear;
67+
}
68+
69+
a.source:hover {
70+
background: #fff;
71+
color: #078BDA;
72+
}

examples/index.pug

Lines changed: 1 addition & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,9 @@
11
html
22
head
33
include meta.pug
4+
include style.pug
45
style.
56
@import url('https://fonts.googleapis.com/css?family=Cabin|Fjalla+One|Montserrat|Oxygen');
6-
7-
html, body {
8-
position: relative;
9-
height: 100%;
10-
margin:0;
11-
padding: 0;
12-
overflow: hidden;
13-
background: #262C38;
14-
}
15-
16-
div.sidebar {
17-
width: 300px;
18-
float: left;
19-
position: relative;
20-
height: 100%;
21-
overflow: auto;
22-
}
23-
24-
.sidebar h1 {
25-
font-family: 'Montserrat', sans-serif;
26-
color: white;
27-
text-align: center;
28-
}
29-
30-
ul {
31-
color: white;
32-
list-style: none;
33-
}
34-
35-
li.h {
36-
color: white;
37-
text-decoration: none;
38-
font-family: 'Oxygen', sans-serif;
39-
font-size: 14pt;
40-
font-weight: bold;
41-
line-height: 2;
42-
padding-top: 15px;
43-
}
44-
45-
li a {
46-
color: white;
47-
text-decoration: none;
48-
font-family: 'Oxygen', sans-serif;
49-
}
50-
51-
li a:hover {
52-
text-decoration: underline;
53-
}
54-
55-
iframe {
56-
width: calc(100% - 300px);
57-
float: right;
58-
height: 100%;
59-
border: none;
60-
}
61-
62-
a.source {
63-
position: fixed;
64-
bottom: 50px;
65-
right: 50px;
66-
color: white;
67-
border: 2px solid white;
68-
padding: 5px 10px;
69-
border-radius: 5px;
70-
text-decoration: none;
71-
font-family: 'Oxygen', sans-serif;
72-
transition: all 0.1s linear;
73-
}
74-
75-
a.source:hover {
76-
background: #fff;
77-
color: #078BDA;
78-
}
797
body
808
div.sidebar
819
h1 Examples

examples/layout.pug

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,7 @@ html
33
title Example
44
include meta.pug
55
block head
6-
style(type='text/css').
7-
html, body {
8-
position: relative;
9-
height: 100%;
10-
}
11-
12-
body {
13-
margin: 0;
14-
padding: 0;
15-
overflow: hidden;
16-
}
6+
link(rel='stylesheet', href='../../assets/css/layout.css', type='text/css' )
177
body
188
block body
199

examples/style.pug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link(rel='stylesheet', href='assets/css/style.css', type='text/css' )

0 commit comments

Comments
 (0)