improve styling
This commit is contained in:
@@ -23,6 +23,14 @@ module.exports = {
|
|||||||
plugins: [
|
plugins: [
|
||||||
'@gridsome/remark-prismjs',
|
'@gridsome/remark-prismjs',
|
||||||
],
|
],
|
||||||
|
remark: {
|
||||||
|
autolinkHeadings: {
|
||||||
|
content: {
|
||||||
|
type: 'text',
|
||||||
|
value: '#'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
:to="previousPage.link"
|
:to="previousPage.link"
|
||||||
v-if="previousPage"
|
v-if="previousPage"
|
||||||
>
|
>
|
||||||
← {{ previousPage.title }}
|
← {{ previousPage.title }}
|
||||||
</g-link>
|
</g-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-navigation__next">
|
<div class="page-navigation__next">
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
:to="nextPage.link"
|
:to="nextPage.link"
|
||||||
v-if="nextPage"
|
v-if="nextPage"
|
||||||
>
|
>
|
||||||
{{ nextPage.title }} →
|
{{ nextPage.title }} →
|
||||||
</g-link>
|
</g-link>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ code {
|
|||||||
padding: 0.1rem 0.5rem;
|
padding: 0.1rem 0.5rem;
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
color: rgba($colorBlack, 0.7);
|
color: rgba($colorBlack, 0.7);
|
||||||
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-active {
|
.is-active {
|
||||||
|
|||||||
@@ -26,13 +26,16 @@
|
|||||||
padding: 0.1rem 0.5rem;
|
padding: 0.1rem 0.5rem;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: rgba($colorBlack, 0.7);
|
color: rgba($colorBlack, 0.6);
|
||||||
margin-bottom: 0.2rem;
|
margin-bottom: 0.2rem;
|
||||||
margin-left: -0.5rem;
|
margin-left: -0.5rem;
|
||||||
|
|
||||||
&.active,
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $colorBlack;
|
color: $colorBlack;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
color: $colorBlack;
|
||||||
background-color: rgba($colorBlack, 0.05);
|
background-color: rgba($colorBlack, 0.05);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,49 @@
|
|||||||
.doc-page {
|
.doc-page {
|
||||||
&__markdown ::v-deep {
|
&__markdown ::v-deep {
|
||||||
|
|
||||||
h1 {
|
h1,
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
h4,
|
h4,
|
||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
|
position: relative;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
a {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
a {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 100%;
|
||||||
|
color: rgba($colorBlack, 0.4);
|
||||||
|
font-weight: 400;
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.1s $ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover a {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
> * + * {
|
> * + * {
|
||||||
margin-top: 1.5em;
|
margin-top: 1.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user