Skip to content

Commit

Permalink
Fix dark-theme styling
Browse files Browse the repository at this point in the history
  • Loading branch information
joepavitt committed Jun 17, 2022
1 parent c446f2e commit 167485e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/DesignLanguage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<nav>
<nav :class="{'ff-bg-light': theme === 'light', 'ff-bg-dark': theme === 'dark'}">
<h2 class="">Components</h2>
<ul id="grouplist">
<li v-for="g in groups" :key="g.name">
Expand Down
18 changes: 16 additions & 2 deletions docs/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,26 @@ main {
}

nav {
background-color: $ff-grey-800;
color: $ff-white;
position: absolute;
width: 300px;
}

nav.ff-bg-light {
background-color: $ff-grey-800;
color: $ff-white;
h2, h3 {
color: $ff-white;
}
}

nav.ff-bg-dark {
background-color: $ff-grey-900;
color: $ff-white;
h2, h3 {
color: $ff-white;
}
}

p {
line-height: 1.5rem;
}
Expand Down
10 changes: 5 additions & 5 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module.exports = {
lintStyleOnBuild: true,
stylelint: {}
},
// pages: {
// index: {
// entry: 'docs/main.js'
// }
// },
pages: {
index: {
entry: 'docs/main.js'
}
},
outputDir: path.resolve(__dirname, 'dist/docs')
}

0 comments on commit 167485e

Please sign in to comment.