-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmobile.css
101 lines (86 loc) · 1.87 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
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
#main-nav .social i {
display: none;
}
/* #showcase .showcase-container {
grid-template-columns: 1fr;
} */
#home-articles .articles-container {
grid-template-columns: repeat(2, 1fr);
}
#home-articles .articles-container > *:first-child,
#home-articles .articles-container > *:last-child {
grid-template-columns: 1fr;
}
#home-articles .articles-container > *:last-child {
grid-column: 2 / span 1;
}
#main-footer .footer-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
#main-footer .footer-container > *:last-child {
grid-column: 1 / span 2;
}
@media (min-width: 545px) and (max-width: 730px) {
/* article page */
aside .list li a {
font-size: 14px;
}
}
@media (max-width: 535px) {
/* navbar */
#main-nav .container {
grid-template-columns: 3fr 2fr 1fr;
grid-gap: 8px;
}
#main-nav .logo {
width: 110px;
}
#main-nav ul li a {
padding: 5px;
font-size: 0.8rem;
margin: 0 3px;
}
/* showcase */
#showcase .showcase-container {
grid-template-columns: 1fr;
}
/* home-articles */
#home-articles h2 {
font-size: 18px;
}
#home-articles .articles-container {
grid-template-columns: 1fr;
grid-gap: 1rem;
}
#home-articles .articles-container > *:first-child,
#home-articles .articles-container > *:last-child {
grid-template-columns: 1fr;
grid-column: 1 / span 1;
}
/* footer */
#main-footer .footer-container {
grid-template-columns: 1fr;
grid-gap: 2.5rem;
}
#main-footer .footer-container > *:last-child {
grid-column: 1 / span 1;
}
/* about page */
.page-container {
grid-template-columns: 1fr;
}
#article .page-container h1 {
font-size: 25px;
}
#article .meta {
flex-direction: column;
justify-content: center;
text-align: center;
}
#article .meta div {
width: 53%;
align-self: center;
margin: 5px 0;
}
}