improve styling
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = {
|
|||||||
options: {
|
options: {
|
||||||
typeName: 'DocPage',
|
typeName: 'DocPage',
|
||||||
baseDir: './src/data/posts',
|
baseDir: './src/data/posts',
|
||||||
template: './src/templates/DocPage.vue',
|
template: './src/templates/DocPage',
|
||||||
plugins: [
|
plugins: [
|
||||||
'@gridsome/remark-prismjs',
|
'@gridsome/remark-prismjs',
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ pre[class*="language-"] {
|
|||||||
position: relative;
|
position: relative;
|
||||||
color: $codeText;
|
color: $codeText;
|
||||||
background: $codeBg;
|
background: $codeBg;
|
||||||
margin: 0.5em 0;
|
|
||||||
padding: 1.2rem 1.5rem;
|
padding: 1.2rem 1.5rem;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<template>
|
|
||||||
<Layout>
|
|
||||||
<VueRemarkContent />
|
|
||||||
</Layout>
|
|
||||||
</template>
|
|
||||||
9
docs/src/templates/DocPage/index.vue
Normal file
9
docs/src/templates/DocPage/index.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<Layout>
|
||||||
|
<div class="doc-page">
|
||||||
|
<VueRemarkContent class="doc-page__markdown" />
|
||||||
|
</div>
|
||||||
|
</Layout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss" src="./style.scss" scoped></style>
|
||||||
17
docs/src/templates/DocPage/style.scss
Normal file
17
docs/src/templates/DocPage/style.scss
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
.doc-page {
|
||||||
|
&__markdown ::v-deep {
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
> * + * {
|
||||||
|
margin-top: 1.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user