Skip to content

Commit c25737d

Browse files
Little bit of styling
1 parent a71702c commit c25737d

File tree

4 files changed

+71
-10
lines changed

4 files changed

+71
-10
lines changed

Diff for: index.html

+10
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@
44
<meta charset="UTF-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
8+
<link rel="preconnect" href="https://fonts.googleapis.com">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet">
711

12+
<link rel="stylesheet/less" type="text/css" href="style.less" />
813
<link rel="stylesheet" href="style.css">
14+
15+
<script src="https://cdn.jsdelivr.net/npm/less"></script>
916

1017
<title>GB Coding CLub</title>
1118
</head>
1219
<body>
20+
1321
<div id="nav">
1422
<div id="nav-title">GBHS Coding Club</div>
1523

@@ -20,6 +28,8 @@
2028
</div>
2129
</div>
2230

31+
<div id="nav-space"></div>
32+
2333
<h1>Hello, World!</h1>
2434

2535
</body>

Diff for: notes.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The webpage has a cool thing called "LessCss" added to it, which allows you to write better CSS files easier.
2+
3+
If you don't want to use it, you don't have to! It works with vanilla CSS so you won't even notice the difference.

Diff for: style.css

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
11

2-
#nav {
3-
display: flex;
4-
justify-content: space-between;
5-
}
6-
#nav-options {
7-
display: flex;
8-
justify-content: space-between;
9-
10-
flex-grow: 2;
11-
}
2+
/* Styles here still get used */

Diff for: style.less

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
2+
// I don't know what style the
3+
// website should be so I figured
4+
// why not make everything a variable!
5+
6+
// also https://lesscss.org/
7+
8+
@font-family: "Ubuntu", sans-serif;
9+
10+
@colors: {
11+
main : #EEE;
12+
secondary: #DDD;
13+
}
14+
15+
@padding: 20px;
16+
17+
html, body {
18+
width: 100%;
19+
height: 100%;
20+
21+
margin: 0px;
22+
padding: 0px;
23+
24+
font-family: @font-family;
25+
}
26+
27+
#nav {
28+
background-color: @colors[main];
29+
30+
position: fixed;
31+
top: 0px;
32+
left: 0px;
33+
right: 0px;
34+
35+
display: flex;
36+
justify-content: space-between;
37+
align-content: center;
38+
}
39+
#nav-title {
40+
padding: @padding;
41+
}
42+
#nav-options {
43+
display: flex;
44+
justify-content: space-between;
45+
46+
padding: @padding;
47+
48+
.nav-option{
49+
&:not(:last-child) {
50+
margin-right: 10px;
51+
}
52+
}
53+
}
54+
55+
#nav-space {
56+
height: 50px;
57+
}

0 commit comments

Comments
 (0)