Skip to content

Commit

Permalink
refactor: inject variables to scss and sass files
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Dec 7, 2023
1 parent 7dcf21d commit b07c098
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 16 deletions.
1 change: 0 additions & 1 deletion src/components/common/ManualProbeDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ export default class ManualProbeDialog extends Mixins(StateMixin, ToolheadMixin)
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
.bysect-row > .col {
Expand Down
1 change: 0 additions & 1 deletion src/components/layout/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,6 @@ export default class AppBar extends Mixins(StateMixin, ServicesMixin, FilesMixin
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
.toolbar-logo {
Expand Down
1 change: 0 additions & 1 deletion src/components/layout/AppNotificationMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ export default class AppNotificationMenu extends Mixins(BrowserMixin) {
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
:deep(.app-notifications .v-list-item__action.notification-suffix),
Expand Down
1 change: 0 additions & 1 deletion src/components/settings/VersionInformationDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ export default class VersionInformationDialog extends Vue {
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
ol.commit-history {
Expand Down
1 change: 0 additions & 1 deletion src/components/ui/AppBtnGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default class AppBtnGroup extends Vue {
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
@include theme(app-btn-group) using ($material) {
Expand Down
1 change: 0 additions & 1 deletion src/components/ui/AppCodeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export default class AppCodeView extends Vue {
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
.theme--light .code-view {
Expand Down
1 change: 0 additions & 1 deletion src/components/ui/AppColorPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ export default class AppColorPicker extends Vue {
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
.color-input div {
Expand Down
1 change: 0 additions & 1 deletion src/components/ui/AppNavItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export default class AppNavItem extends Mixins(StateMixin, BrowserMixin) {
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
button {
Expand Down
1 change: 0 additions & 1 deletion src/components/widgets/filesystem/FileSystemBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,6 @@ export default class FileSystemBrowser extends Mixins(FilesMixin) {
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
// Lighten up dark mode checkboxes.
Expand Down
1 change: 0 additions & 1 deletion src/components/widgets/job-queue/JobQueueBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export default class JobQueueBrowser extends Mixins(StateMixin) {
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
// Lighten up dark mode checkboxes.
Expand Down
1 change: 0 additions & 1 deletion src/components/widgets/thermals/TemperatureTargets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ export default class TemperatureTargets extends Mixins(StateMixin) {
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
.theme--light :deep(.v-data-table.temperature-table > .v-data-table__wrapper > table) {
Expand Down
1 change: 0 additions & 1 deletion src/components/widgets/toolhead/ToolheadControlCircle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,6 @@ export default class ToolheadControlCircle extends Mixins(StateMixin, ToolheadMi
</script>

<style lang="scss" scoped>
@import '@/scss/variables';
@import 'vuetify/src/styles/styles.sass';
@include theme(app-circle-control) using ($material) {
Expand Down
8 changes: 4 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ export default defineConfig({
css: {
preprocessorOptions: {
css: { charset: false },
scss: {
additionalData: '@import "@/scss/variables";\n'
},
sass: {
additionalData: [
'@import "@/scss/variables.scss"',
''
].join('\n')
additionalData: '@import "@/scss/variables.scss"\n'
}
}
},
Expand Down

0 comments on commit b07c098

Please sign in to comment.