Skip to content

Commit

Permalink
refactor(style): rename variables.scss to variables.module.scss
Browse files Browse the repository at this point in the history
- Update variable file name to use module convention
- Update import statements in index.scss and Vue components
- Adjust .stylelintignore file to reflect new variable file name
- More details see: vuejs/vue-cli#7458
  • Loading branch information
qiuzi committed Dec 10, 2024
1 parent fe3cddd commit 7494a04
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .stylelintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/src/assets/style/variables.scss
/src/assets/style/variables.module.scss
5 changes: 2 additions & 3 deletions src/assets/style/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "./common";
@import "./variables";
@import "./sidebar";

@import "./variables.module";
@import "./sidebar";
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ $side-bar-width: 210px;
subMenuHoverColor: $sub-menu-hover-color;
subMenuActiveText: $sub-menu-active-text-color;
subMenuBackgroundColor: $sub-menu-background-color;

sideBarWidth: $side-bar-width;
}
}
2 changes: 1 addition & 1 deletion src/layout/components/Sidebar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import { mapGetters } from 'vuex'
import SidebarLogo from './components/SidebarLogo'
import SidebarItem from './components/SidebarItem'
import variables from '@/assets/style/variables.scss'
import variables from '@/assets/style/variables.module.scss'
export default {
name: 'Sidebar',
Expand Down
2 changes: 1 addition & 1 deletion src/layout/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default {
</script>

<style lang="scss" scoped>
@import "@style/variables";
@import "@style/variables.module";
.app-wrapper {
position: relative;
Expand Down

0 comments on commit 7494a04

Please sign in to comment.