-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmobile.css
52 lines (38 loc) · 1.21 KB
/
mobile.css
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
/* mobile overwrites! this is an !important document, huh? */
@media (max-width: 980px) /* code below will be used when device's width is less than 768px */
{
h1 { font-size: 1.8em; } /* shorten h1 font size a little */
th
{
/* set block display */
display: block;
/* set full width */
width: 100% !important;
/* set padding and margin */
padding: 0;
margin: 7.5vh 0;
/* centering text */
text-align: center !important;
}
.whitespace { height: 10vh; } /* change whitespace height */
.title { font-size: 1.8em; } /* shorten title size a little */
#header {height: 7.5% !important;}
#header #header_logo
{
/* horizontally aligning */
padding-left: 60% !important;
transform: translateX(-50%);
}
#header .nav_links a { display: none;} /* hide navigation links */
/* events have to appear when mobile */
.nav_links .event
{
display: block !important;
position: absolute !important;
top: 25px !important;
left: 55% !important;
}
#about p { width: 85% !important; } /* increase about text width */
#wiki, #calendar, #media { padding: 10px 50px !important;} /* change padding for better readability */
#wiki img, #calendar img { display: none; } /* hide wiki and calendar images */
}