Skip to content

Commit 4d43e46

Browse files
committed
Add mobile support, general css improvement
1 parent 2aafedc commit 4d43e46

File tree

1 file changed

+119
-0
lines changed

1 file changed

+119
-0
lines changed

css/mobile.css

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
.left .nav-trigger {
2+
display: none; }
3+
.left .menu-icon {
4+
display: none; }
5+
@media screen and (max-width: 1000px) {
6+
.right {
7+
max-width: 650px;
8+
}
9+
.post .body pre code {
10+
max-width: 600px;
11+
}
12+
}
13+
@media screen and (max-width: 750px) {
14+
body, html {height: 100%;}
15+
code {max-width: 100%;}
16+
html, body, p, th, td, li {
17+
font-size: medium !important;
18+
}
19+
.right {
20+
width: 95%;
21+
max-width: 100%;
22+
margin-left: 0px;
23+
padding-right: 10px;
24+
padding-left: 10px;
25+
}
26+
.editable-edit {
27+
position: absolute;
28+
margin-left: -40px;
29+
padding: 8px 40px;
30+
}
31+
.editable {
32+
width: 100% !important;
33+
}
34+
.editbg {
35+
z-index: 0 !important;
36+
}
37+
.left {
38+
position: fixed;
39+
left: -300px;
40+
height: 100%;
41+
z-index: 1;
42+
margin-left: -20px;
43+
margin-top: 0px;
44+
}
45+
.left label[for="nav-trigger"] {
46+
display: block;
47+
cursor: pointer;
48+
position: absolute;
49+
z-index: 24;
50+
margin-top: 10px;
51+
margin-left: 310px;
52+
}
53+
.left .menu-icon {
54+
background-color: #333;
55+
display: block;
56+
float: left;
57+
border: 1px solid #e8e8e8;
58+
border-radius: 5px;
59+
width: 36px;
60+
height: 26px;
61+
line-height: 0;
62+
padding-top: 10px;
63+
text-align: center; }
64+
.left .menu-icon > svg path {
65+
fill: #ccc; }
66+
.left input ~ .trigger {
67+
background-color: #eee;
68+
overflow: auto;
69+
position: absolute;
70+
width: 100%;
71+
left: 0px;
72+
padding-top: 100px;
73+
margin-top: -100px;
74+
z-index: 20;
75+
clear: both;
76+
display: block;
77+
height: 100%;
78+
padding-left: 25px;
79+
padding-right: 30px;
80+
transition: 0.3s all cubic-bezier(0.77, 0, 0.175, 1);
81+
border-right: 2px solid #eee;
82+
}
83+
.left input:checked ~ .trigger {
84+
box-shadow: 0px 0px 30px #999;
85+
left: 310px;
86+
}
87+
.lastcomments {
88+
background-color: transparent;
89+
}
90+
.lastcomments .lastcomment {
91+
font-size: 85% !important;
92+
}
93+
.ae-ui .ae-toolbar-add {
94+
left: 0px !important;
95+
}
96+
.post {
97+
min-width: 300px;
98+
}
99+
.post .body pre {
100+
width: 100%;
101+
}
102+
.post .body pre code {
103+
max-width: 100%;
104+
padding: 5px 5px;
105+
white-space: pre-wrap;
106+
}
107+
.post .body code {
108+
max-width: 100%;
109+
white-space: pre-wrap;
110+
}
111+
112+
}
113+
114+
/* Fix publish bar */
115+
@media screen and (max-width: 410px) {
116+
.publishbar small {
117+
display: none;
118+
}
119+
}

0 commit comments

Comments
 (0)