Skip to content

Commit 2041d2c

Browse files
committed
responsive and sidebar styles
1 parent 17a362e commit 2041d2c

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

docs/.vuepress/theme/components/Breadcrumbs.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,19 @@ export default {
4646
nav
4747
border-bottom 1px solid #eaecef
4848
font-size 0.9em
49-
padding: 2em 0
50-
margin: 0 2.5em
49+
padding: 1.5rem 2rem
50+
51+
@media (min-width: $MQMobile)
52+
padding: 1.5rem 0
53+
margin: 0 2.5em
54+
5155
&.fixed
5256
position fixed
53-
z-index 10
57+
z-index 5
5458
background-color #fff
5559
width 100%
5660
max-width 740px
5761
display flex
58-
5962
.breadcrumb
6063
margin-right: 0.5em
6164
&:not(:first-child)::before

docs/.vuepress/theme/styles/index.styl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77

88
// stop sidebar taking up horizontal width and adjusting layout position
99
html {
10-
margin-left: calc(100vw - 100%);
10+
@media (min-width: $MQMobile) {
11+
margin-left: calc(100vw - 100%);
12+
}
13+
14+
-webkit-font-smoothing: antialiased;
15+
-moz-osx-font-smoothing: grayscale;
1116
}
1217

1318
// apply scrolling by default excluding firefox due to trigger issues

docs/.vuepress/theme/styles/sidebar.styl

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,16 @@ header.navbar .nav-links {
2121
}
2222

2323
.sidebar-heading {
24-
font-weight: 700 !important;
24+
font-weight: bold !important;
2525
}
2626

2727
.sidebar-group.is-sub-group a.sidebar-link {
2828
margin-bottom: 0.2rem;
2929
}
3030

31-
.sidebar-group.is-sub-group {
32-
margin-bottom: 0.5rem;
33-
}
34-
35-
.sidebar-links.sidebar-group-items li:last-child .sidebar-group.is-sub-group {
36-
margin-bottom: 0;
37-
}
38-
3931
.sidebar-group.is-sub-group > .sidebar-heading:not(.clickable) {
40-
opacity: 1;
41-
font-weight: bold;
4232
text-transform: uppercase;
4333
font-size: 0.8rem;
44-
letter-spacing: 0.05em;
4534
line-height: 2em;
4635
}
4736
}
@@ -80,6 +69,13 @@ header.navbar .nav-links {
8069
overflow: hidden;
8170

8271
> .sidebar-links {
72+
opacity: 0.5;
73+
transition: opacity 0.5s;
74+
75+
&:hover {
76+
opacity: 1;
77+
}
78+
8379
overflow: auto;
8480
padding-bottom: 6em;
8581
}
@@ -95,7 +91,6 @@ header.navbar .nav-links {
9591
.nav-item > a:not(.external) {
9692
&:hover, &.router-link-active {
9793
margin-bottom: 0px;
98-
// background: lighten($accentColor, 95%);
9994
border-bottom: none;
10095
color: $accentColor;
10196
}

0 commit comments

Comments
 (0)