Skip to content

Commit 197f739

Browse files
committed
Separate css into own file and remove extra files
1 parent 5aeb9dc commit 197f739

3 files changed

Lines changed: 26 additions & 119 deletions

File tree

03 - CSS Variables/index-FINISHED.html

Lines changed: 0 additions & 84 deletions
This file was deleted.
Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Scoped CSS Variables and JS</title>
6+
<link rel="stylesheet" href="style.css" media="screen" title="no title">
67
</head>
78
<body>
89
<h2>Update CSS Variables with <span class='hl'>JS</span></h2>
@@ -19,41 +20,7 @@ <h2>Update CSS Variables with <span class='hl'>JS</span></h2>
1920
</div>
2021

2122
<img src="https://source.unsplash.com/7bwQXzbF6KE/800x500">
22-
23-
<style>
24-
25-
/*
26-
misc styles, nothing to do with CSS variables
27-
*/
28-
29-
body {
30-
text-align: center;
31-
}
32-
33-
body {
34-
background: #193549;
35-
color: white;
36-
font-family: 'helvetica neue', sans-serif;
37-
font-weight: 100;
38-
font-size: 50px;
39-
}
40-
41-
.controls {
42-
margin-bottom: 50px;
43-
}
44-
45-
a {
46-
color: var(--base);
47-
text-decoration: none;
48-
}
49-
50-
input {
51-
width:100px;
52-
}
53-
</style>
54-
55-
<script>
56-
</script>
23+
<script type="text/javascript" src="main.js"></script>
5724

5825
</body>
5926
</html>

03 - CSS Variables/style.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
body {
2+
text-align: center;
3+
}
4+
5+
body {
6+
background: #193549;
7+
color: white;
8+
font-family: 'helvetica neue', sans-serif;
9+
font-weight: 100;
10+
font-size: 50px;
11+
}
12+
13+
.controls {
14+
margin-bottom: 50px;
15+
}
16+
17+
a {
18+
color: var(--base);
19+
text-decoration: none;
20+
}
21+
22+
input {
23+
width:100px;
24+
}

0 commit comments

Comments
 (0)