-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
35 lines (30 loc) · 743 Bytes
/
styles.css
File metadata and controls
35 lines (30 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Basic styles for the Git & JS assignment
*
* This file defines some default styling for the HTML elements. An external
* stylesheet like this can be linked to multiple pages. Feel free to
* customise colours, fonts and spacing. You can also add classes (e.g.
* .even and .odd) that you toggle from JavaScript to change the look of
* elements based on conditions.
*/
body {
font-family: sans-serif;
margin: 2rem;
line-height: 1.5;
}
#result {
margin-top: 1rem;
font-size: 1.2rem;
}
/* Classes to colour results based on their value. You can apply these classes
* from JavaScript using element.classList.add() and classList.remove().
*/
.even {
color: blue;
}
.odd {
color: green;
}
.error {
color: red;
}