-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
111 lines (93 loc) · 1.92 KB
/
Copy pathstyle.css
File metadata and controls
111 lines (93 loc) · 1.92 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
/* Mobile fixes for hello-friend theme (phone width and below) */
.wiki-single,
.wiki-tree-page {
padding: 1rem 0;
}
@media (max-width: 683.98px) {
.post {
width: 100%;
max-width: 100%;
margin: 20px auto;
padding: 20px 15px;
}
h1,
.post-title {
font-size: 1.5rem;
}
/* Wide tables scroll inside their container instead of overflowing */
table:not(.js-file-line-container) {
display: block;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
table-layout: auto;
width: max-content;
min-width: 100%;
max-width: 100%;
}
td,
th {
font-size: 0.9rem;
padding: 8px;
}
.wiki-single,
.wiki-tree-page {
padding: 1rem 12px;
}
}
/* Clone the wiki created-at style for post and til dates */
.post-meta {
font-size: 0.95rem;
color: #888;
margin: -0.75rem 0 1.25rem;
}
/* Keep the read-more link on one line (theme caps .button at 40% width) */
a.read-more.button {
max-width: 100%;
white-space: nowrap;
}
/* Voz emojis: scale to the surrounding text and align with the line */
img.emoji {
height: 1.1em;
width: auto;
vertical-align: -0.15em;
display: inline;
margin: 0;
}
/* Desktop only: underline post titles on hover */
@media (min-width: 684px) {
.post-title a:hover {
text-decoration: underline;
}
/* Less blank space between the header and the first card */
.content {
margin-top: 30px;
}
}
/* Mobile only: show at most 3 tags per list card */
@media (max-width: 683.98px) {
.post.on-list .post-tags a:nth-of-type(n+4) {
display: none;
}
.post.on-list .post-tags {
font-size: 0.85rem;
}
}
/* Tighter list cards */
.post.on-list {
margin: 16px auto;
}
.post.on-list .post-title {
margin-bottom: 12px;
}
.post.on-list .post-meta {
margin-bottom: 12px;
}
.post.on-list .post-tags {
margin-bottom: 14px;
}
.post.on-list .post-content {
margin-top: 0;
}
.post.on-list a.read-more {
margin: 12px 0;
}