Skip to content

Commit 280cc88

Browse files
authored
Merge pull request #308 from ByteInternet/feature/improve_responsive_styling
Modularize styling, and improve breakpoint responsiveness to page layout
2 parents 53f6806 + a524a23 commit 280cc88

File tree

10 files changed

+464
-457
lines changed

10 files changed

+464
-457
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@use "../breakpoints" as *;
2+
3+
.article-meta {
4+
display: inline-block;
5+
position: relative;
6+
top: 30px;
7+
font-size: 11px;
8+
font-weight: 600;
9+
opacity: 0.35;
10+
11+
&--updated {
12+
opacity: 0.5;
13+
14+
&::after {
15+
content: "";
16+
padding-left: 5px;
17+
}
18+
}
19+
20+
@media (max-width: $breakpoint-mobile) {
21+
font-size: 12px;
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
@use "../breakpoints" as *;
2+
3+
/* breadcrumbs*/
4+
.wy-breadcrumbs {
5+
max-width: 1500px;
6+
padding: 0 21px;
7+
margin: auto;
8+
9+
& li {
10+
padding-top: initial;
11+
}
12+
13+
@media (max-width: $breakpoint-landscape) {
14+
padding: 0 20px 0 60px;
15+
overflow: auto;
16+
white-space: nowrap;
17+
}
18+
19+
@media (max-width: $breakpoint-mobile) {
20+
padding: 0 20px 0 65px;
21+
}
22+
}
23+
24+
.wy-breadcrumbs,
25+
.wy-breadcrumbs li a,
26+
.wy-breadcrumbs-aside a {
27+
font-size: 11px;
28+
}
29+
.wy-breadcrumbs li.wy-breadcrumbs-aside {
30+
@media (max-width: $breakpoint-portrait) {
31+
display: none;
32+
}
33+
}
34+
35+
.wy-breadcrumbs li a:visited {
36+
color: var(--light-orange);
37+
}
38+
39+
li.wy-breadcrumbs-aside a {
40+
padding: 10px;
41+
}
42+
43+
.header {
44+
height: 50px;
45+
line-height: 50px;
46+
width: 100%;
47+
position: fixed;
48+
top: 60px;
49+
border-bottom: 1px solid var(--grey-border);
50+
z-index:20;
51+
background-color: white;
52+
53+
@media (max-width: $breakpoint-mobile) {
54+
top: 90px;
55+
}
56+
}
57+
58+
/* header end */

0 commit comments

Comments
 (0)