Skip to content

Commit ea8e425

Browse files
committed
fix scoped styles broken inside docs
1 parent 102ad74 commit ea8e425

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+268
-293
lines changed

build/webpack/prod-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default merge(baseConfig, {
2121
vue: {
2222
loaders: {
2323
css: ExtractTextPlugin.extract('css'),
24-
scss: ExtractTextPlugin.extract(['css', 'sass'])
24+
scss: ExtractTextPlugin.extract('css!sass')
2525
},
2626
postcss: [
2727
autoprefixer({

build/webpack/prod-lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default merge(baseConfig, {
3838
vue: {
3939
loaders: {
4040
css: ExtractTextPlugin.extract('css'),
41-
scss: ExtractTextPlugin.extract(['css', 'sass'])
41+
scss: ExtractTextPlugin.extract('css!sass')
4242
},
4343
postcss: [
4444
autoprefixer({

docs/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
</div>
187187
</template>
188188

189-
<style lang="scss">
189+
<style lang="sass">
190190
@import '../../src/core/stylesheets/variables.scss';
191191
192192
$sizebar-size: 280px;

docs/src/components/ApiTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</div>
2525
</template>
2626

27-
<style lang="scss" scoped>
27+
<style lang="sass" scoped>
2828
.api-table + .api-table {
2929
margin-top: 42px;
3030
}

docs/src/components/CodeBlock.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
</template>
1414

15-
<style lang="scss" scoped>
15+
<style lang="sass" scoped>
1616
@import '../../../src/core/stylesheets/variables.scss';
1717
1818
.code-block {
@@ -118,7 +118,7 @@
118118
}
119119
</style>
120120

121-
<style lang="scss">
121+
<style lang="sass">
122122
@import '../../../src/core/stylesheets/variables.scss';
123123
124124
.code-block {

docs/src/components/DocsComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</div>
2323
</template>
2424

25-
<style lang="scss" scoped>
25+
<style lang="sass" scoped>
2626
.component-docs {
2727
position: relative;
2828
z-index: 1;

docs/src/components/ExampleBox.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var App = new Vue({
4848
</div>
4949
</template>
5050

51-
<style lang="scss">
51+
<style lang="sass">
5252
.example-box .code-content {
5353
.code-block {
5454
margin: -16px;
@@ -64,7 +64,7 @@ var App = new Vue({
6464
}
6565
</style>
6666

67-
<style lang="scss" scoped>
67+
<style lang="sass" scoped>
6868
.example-box {
6969
margin-bottom: 16px;
7070
}

docs/src/components/PageContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</div>
2424
</template>
2525

26-
<style lang="scss" scoped>
26+
<style lang="sass" scoped>
2727
.page-content {
2828
min-height: 100%;
2929
max-height: 100%;

docs/src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ router.beforeEach((to, from, next) => {
6868

6969
Docs.closeSidenav();
7070

71-
handleSectionTheme(to);
72-
7371
next();
7472
});
7573
});
74+
75+
router.afterEach((to) => {
76+
handleSectionTheme(to);
77+
});

docs/src/pages/About.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</page-content>
7171
</template>
7272

73-
<style lang="scss" scoped>
73+
<style lang="sass" scoped>
7474
section {
7575
max-width: 960px;
7676

0 commit comments

Comments
 (0)