-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
193 lines (163 loc) · 4.06 KB
/
style.css
File metadata and controls
193 lines (163 loc) · 4.06 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/* This sets all h1 elements to have a blue colour and be centered on the page relative to the body */
h1 {
color: #392e6d;
margin-bottom: 30px;
text-align: center;
}
/* This sets all h2 elements to have a blue colour and be centered on the page relative to the body */
h2 {
color: #392e6d;
margin-bottom: 30px;
text-align: center;
}
/* This sets all h3 elements to have a blue colour and be centered on the page relative to the body */
h3 {
color: #392e6d;
margin-bottom: 30px;
text-align: center;
}
/* This applies 10 pixels of padding to the left of all p elements */
p {
padding-left: 10px;
}
/* This increases the margin on the left of all the button elements by 20 pixels */
button {
margin-left: 20px;
}
/* This sets the footer's background colour to grey, and adds 30 pixels of padding on all directions */
footer {
background: #3c3c3c;
padding: 30px;
color: #ccc;
}
/* This is the css for the picture on the index page, it sets the width to 15% of the page, aligns it to the middle of the page, and adds 15 pixels of padding all around the image */
#profile {
width: 15%;
display: block;
margin: 0 auto;
padding: 15px;
}
.break{
background-color: #392e6d;
color: white;
}
.head{
background-color: #392e6d;
padding-bottom: 10px;
}
.nav {
max-width: 740px;
margin: 0 auto;
text-align: right;
padding: 30px;
}
/* This in combination with the .navlist css ensures that the navigation links in the navigation bar at the top of each page are all in line with each other */
button {
text-align: center;
}
.navlist{
display: inline;
margin: 0;
padding: 0;
}
.navlink {
padding: 6px 8px;
color: white;
}
.navli {
display: inline;
}
.themelist{
display: inline;
margin: 0;
padding: 0;
text-align: center;
}
.themelink {
padding: 6px 8px;
color: white;
}
.themeli {
display: inline;
}
.theme {
text-align: center;
}
.name {
color: white;
text-align: center;
}
/* This text both sets up some properties for later CSS, and changes the text in all of the pages to center in case the screen size is smaller than a specific size */
html,
body{
text-align: center;
margin:0;
padding:0;
height:100%;
}
/* Any element with this class applied to them will have whitespace the size of 20% of the page between itself and both sides of the screen */
.lorem {
margin-left: 20%;
margin-right: 20%;
text-align: left;
font-size: 1em;
}
/* This CSS ensures that when the mouse cursor hovers over a link in the navbar, it changes to a dark blue colour temporarily */
.navlink:hover{
color: #003264;
text-decoration: none;
}
/* Work */
.exampleimg {
margin-left: 21%;
width: 30%;
margin-bottom: 5px;
}
/* About */
/* This CSS sets the secret link in the navbar on the About page to have a default colour that matches with the background of the navbar, to make it blend in */
#easterlink {
color: #392e6d;
}
/* This CSS changes the colour of the secret link to white whenever a user hovers over it, so that it becomes revealed */
#easterlink:hover{
color: white;
}
.easterimg {
display: block;
margin: 0 auto;
}
/* Keeping Footer Down */
/* This is all CSS put in place to ensure that the footer element is always at the bottom of the page, no matter how large or small they are */
#container {
min-height:100%;
position:relative;
}
#header {
background:#392e6d;
padding:10px;
}
#body {
padding:10px;
padding-bottom:60px; /* Height of the footer */
}
#footer {
position:absolute;
bottom:0;
width:100%;
height:60px; /* Height of the footer */
background:#3c3c3c;
}
/* Default settings for website pages */
/* These are the settings for when the screen size is above 600 pixels, the upper size of most phone screens */
@media (min-width: 600px) {
body{
text-align: left;
margin:0;
padding:0;
height:100%;
}
.contactform{
margin-left: 5px;
margin-bottom: 5px;
}
}