mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
The button field's two stylesheets sat in modules/core/assets/scss/components even though they are database specific, because the OSS frontend had no per-module scss tree. Premium and enterprise already have one, so this adopts that layout for modules/database rather than inventing something new. Unlike premium and enterprise, which replace nuxt.options.css[0] with a default.scss that imports core's wholesale, the database module adds its own entry. Its default.scss therefore imports only the core layers that emit no CSS, so core's stylesheet is not emitted twice. Follow-up from #5934.
11 lines
601 B
SCSS
11 lines
601 B
SCSS
// The database module adds its own entry to `nuxt.options.css` rather than
|
|
// replacing core's, the way premium and enterprise do. So only the core layers
|
|
// that emit no CSS are imported here, for the variables, placeholders and
|
|
// mixins the component styles below need. Importing core's `default` instead
|
|
// would emit the whole of it a second time.
|
|
@import '@baserow/modules/core/assets/scss/colors';
|
|
@import '@baserow/modules/core/assets/scss/variables';
|
|
@import '@baserow/modules/core/assets/scss/placeholders';
|
|
@import '@baserow/modules/core/assets/scss/mixins/all';
|
|
@import 'components/all';
|