1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 05:04:21 +00:00

améliorations et corrections diverses

This commit is contained in:
Maxime Moraine 2022-02-21 20:56:20 +01:00
parent 65ac9b531f
commit 530399d55e
10 changed files with 285 additions and 10 deletions

View file

@ -0,0 +1,22 @@
<template>
<div>
{{contents}}
</div>
</template>
<script>
export default {
name: 'HomeTableOfContents',
data () {
return {
contents: null
}
},
mounted () {
console.log(this.$site.themeConfig)
this.contents = this.$site.themeConfig.sidebar
}
}
</script>

View file

@ -415,6 +415,37 @@ export default {
//
// console.log(json)
// let json = []
// for (var spell of results) {
// let s = {}
// s.title = spell.frontmatter.title
// let classes = []
// const EQUIVALENTS = {
// 'Barde': 'bard',
// 'Barbare': 'barbarian',
// 'Clerc': 'cleric',
// 'Druide': 'druid',
// 'Guerrier': 'figther',
// 'Moine': 'monk',
// 'Paladin': 'paladin',
// 'Rôdeur': 'ranger',
// 'Roublard': 'rogue',
// 'Ensorceleur/Sorcelame': 'sorcerer',
// 'Magicien': 'wizard',
// 'Sorcier': 'warlock',
// 'Ombrelame': 'shadowblade',
// }
// for (var classe of spell.frontmatter.classes) {
// if (EQUIVALENTS[classe]) {
// classes.push(EQUIVALENTS[classe])
// }
// }
// s.classes = classes
// s.slug = spell.path.split('/')[2]
// json.push(s)
// }
// console.log(json)
return results
}
},

View file

@ -230,3 +230,81 @@ ul, ol {
margin-right: 0.5rem;
}
}
.home-toc {
background: #fff;
margin: 0 -15px;
padding: 15px;
ul, ol {
padding-left: 0;
margin-bottom: 10px;
li {
list-style: none;
ul, ol {
padding-left: 10px;
margin-bottom: 0;
}
}
}
ol {
margin-bottom: 0;
li {
list-style: numeric;
list-style-position: inside;
}
}
h2 {
margin-bottom: 0;
color: $color-hero !important;
}
h3 {
border: none;
margin-bottom: 0;
color: $color-hero !important;
}
a {
text-decoration: none;
color: $color-dragon !important;
&:hover {
color: $color-hero !important;
}
}
}
.home-toc-header {
background-color: $color-dragon;
margin: 0 -15px;
padding: 15px;
h2 {
margin: 0;
padding: 0;
color: #fff;
}
}
.theme--dark .home-toc {
background-color: #222;
// a {
// color: #fff !important;
// &:hover {
// color: lighten($color-dragon, 20) !important;
// }
// }
h2, h3 {
color: #fff !important;
a {
color: #fff !important;
&:hover {
color: lighten($color-dragon, 20) !important;
}
}
}
}