Skip to content

Commit 3b48a33

Browse files
committed
Update CSS imports to fix deprecation warnings
1 parent 1964a4d commit 3b48a33

File tree

12 files changed

+15
-15
lines changed

12 files changed

+15
-15
lines changed

src/Page.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import EventBusMixin from './components/EventBusMixin.js';
2020
import Utils from './utils';
2121
import ConnectForm from './components/ConnectForm.vue';
22+
import "fontsource-ubuntu/index.css";
2223
2324
export default {
2425
name: 'openeo-web-editor',
@@ -202,8 +203,7 @@ export default {
202203
</script>
203204

204205
<style lang="scss">
205-
@import "fontsource-ubuntu/index.css";
206-
@import '../theme.scss';
206+
@use '../theme' as *;
207207
208208
html, body, .container {
209209
height: 100%;

src/components/ConnectForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export default {
455455
</script>
456456

457457
<style lang="scss" scoped>
458-
@import '../../theme.scss';
458+
@use '../../theme' as *;
459459
460460
.connectPage {
461461
background-color: $mainColor;

src/components/DiscoveryToolbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export default {
221221
</style>
222222

223223
<style lang="scss" scoped>
224-
@import '../../theme.scss';
224+
@use '../../theme' as *;
225225
226226
.discovery-toolbar {
227227
width: 100%;

src/components/IDE.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ import { Job, Service, UserProcess } from '@openeo/js-client';
5858
import { Splitpanes, Pane } from 'splitpanes';
5959
import BButton from '@openeo/vue-components/components/internal/BButton.vue';
6060
import AsyncButton from '@openeo/vue-components/components/internal/AsyncButton.vue';
61+
import 'splitpanes/dist/splitpanes.css';
6162
6263
export default {
6364
name: 'IDE',
@@ -322,8 +323,7 @@ export default {
322323
</script>
323324

324325
<style lang="scss">
325-
@import '../../theme.scss';
326-
@import '~splitpanes/dist/splitpanes.css';
326+
@use '../../theme' as *;
327327
328328
.splitpanes.default-theme {
329329
.splitpanes__pane {

src/components/Logo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
</script>
2727

2828
<style lang="scss" scoped>
29-
@import '../../theme.scss';
29+
@use '../../theme' as *;
3030
3131
.logo {
3232
display: flex;

src/components/Parameters.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default {
150150
</style>
151151

152152
<style lang="scss">
153-
@import '../../theme.scss';
153+
@use '../../theme' as *;
154154
155155
.parameters {
156156
.fieldRow {

src/components/Tour.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import Utils from '../utils.js';
77
import VueTour from 'vue-tour';
88
import Vue from 'vue';
9+
import 'vue-tour/dist/vue-tour.css';
910
1011
Vue.use(VueTour);
1112
@@ -178,8 +179,7 @@ export default {
178179
</script>
179180

180181
<style lang="scss">
181-
@import '~vue-tour/dist/vue-tour.css';
182-
@import '../../theme.scss';
182+
@use '../../theme' as *;
183183
184184
.web-editor-tour {
185185
.v-step {

src/components/datatypes/SelectBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export default {
348348
<style src="vue-multiselect/dist/vue-multiselect.min.css"></style>
349349

350350
<style lang="scss">
351-
@import '../../../theme.scss';
351+
@use '../../../theme' as *;
352352
353353
.select-container {
354354
display: flex;

src/components/modals/Modal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default {
175175
</script>
176176

177177
<style lang="scss">
178-
@import '../../../theme.scss';
178+
@use '../../../theme' as *;
179179
180180
.modal {
181181
position: fixed;

src/components/modals/WizardModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export default {
367367
</script>
368368

369369
<style lang="scss">
370-
@import '../../../theme.scss';
370+
@use '../../../theme' as *;
371371
#WizardModal .modal-container {
372372
height: 90%;
373373
}

0 commit comments

Comments
 (0)