This repository was archived by the owner on Dec 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.css
More file actions
174 lines (147 loc) · 3.16 KB
/
Copy pathmain.css
File metadata and controls
174 lines (147 loc) · 3.16 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
/* The main stylesheet for most pages. (Overridable) */
/* Gotta have CSS3 (and above) support to get these styles working */
body {
margin: 0px;
/* these native fonts are much faster than the online fonts */
font-family: 'Microsoft YaHei', 'Microsoft Sans Serif', Arial, Helvetica, sans-serif;
}
#navbar {
/* necessary for float */
overflow: hidden;
list-style-type: none;
background-color: #7ca7eb;
padding: 0px;
margin: 0;
width: 100%;
position: relative;
/* couting paddings in! */
-webkit-box-sizing: border-box;
/* backward -webkit-* compat (Chromium doesn't need it but some does...) */
box-sizing: border-box;
/* ...but I'm too lazy to add full compat
* like these (-o-*, -webkit-*...) in everything
* so I'm not doing this in other styles.
* Plus, the teacher's using Chrome anyway.
*/
display: block;
}
#nav, #nav * {
transition: all 220ms;
}
#footer {
display: block;
overflow: hidden;
background-color: rgb(0, 31, 255); /* blue */;
width: 100%; /* full parent width (or, in this case, screen width (100vw) */
color: cyan;
margin: 0px;
padding: 16px 0px;
font-size: small;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* the navigation bar's styles */
/* the icon's dimensions
* should be equal (a square)
* and has a transparent background.
* I'm probably gonna need Paint.NET...
*/
.gasm-icon-img {
box-sizing: border-box;
height: 100%;
width: auto;
margin: 0px;
padding: 0px;
}
/* the container for the icon */
.nav-icon {
position: absolute;
height: 100%;
vertical-align: middle;
float: left;
transition: background-color 450ms; /* smooth! */
}
.nav-icon > a {
box-sizing: border-box;
display: inline-block;
height: 100%;
}
/* each menu item container */
.nav-item {
float: right;
}
/* the links in the menu's style */
.nav-link {
display: block;
color: white;
text-align: center;
padding: 32px;
/* Removing stubborn underline */
text-decoration: none;
transition: background 450ms;
}
/* the menu item corresponding
* with the current page (if exists)
*/
.nav-link-current {
background-color: #8eb1eb;
box-sizing: border-box;
}
.nav-link:hover, .nav-icon:hover {
background-color: #337ef5;
}
/* the footer's styles */
.footer-left {
float: left;
text-align: left;
padding-left: 32px;
}
.footer-right {
float: right;
text-align: right;
padding-right: 32px;
}
#footer a {
display: inline;
transition: color 250ms;
color: skyblue;
}
#footer a:hover {
color: white;
}
/* "The Green Button" styles */
.green-button {
border: none;
color: white;
background-color: rgb(0, 120, 0);
transition: all 0.35s;
}
.green-button:hover {
background-color: rgb(0, 200, 0);
cursor: pointer;
}
.green-button:focus {
background-color: green;
outline: yellowgreen;
}
.green-button:active {
background-color: yellowgreen;
}
.orange-button {
border: none;
/*outline: 2px solid white;*/
background-color: #f56200; /* rgb(221, 255, 249); */
color: white; /* black; */
font-weight: lighter;
}
.orange-button:hover {
background-color: #f59433;
cursor: pointer;
}
img.block {
margin: 1em;
display: block;
}
::selection {
background-color: #f5943388; /* also have alpha in hex (newer CSS feature) */
}