Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning sass import rules #6307

Merged
merged 3 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/button.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-creator-popup.sv-popup--modal {
.sd-btn.sv-popup__button {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-carry-forward-panel-wrapper {
width: 100%;
Expand Down
18 changes: 9 additions & 9 deletions packages/survey-creator-core/src/components/creator.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@import "../variables.scss";
@import "./notifier.scss";
@import "./popup.scss";
@import "./button.scss";
@import "./surface-placeholder.scss";
@import "../lbr-font-sizes.scss";
@import "../lbr-sizes.scss";
@import "../ctr-font-sizes.scss";
@import "../ctr-sizes.scss";
@use "../variables" as *;
@use "./notifier.scss";
@use "./popup.scss";
@use "./button.scss";
@use "./surface-placeholder.scss";
@use "../lbr-font-sizes.scss";
@use "../lbr-sizes.scss";
@use "../ctr-font-sizes.scss";
@use "../ctr-sizes.scss";

survey-creator,
.svc-creator {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-designer-header .sd-container-modern__title {
gap: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-image-item-value-wrapper {
display: inline-block;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-item-value-wrapper {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-link__button {
@include ctrDefaultBoldFont;
Expand Down
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/list.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-list {
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

// .svc-question__content {
// .sd-table {
Expand Down
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/notifier.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-notifier.svc-notifier--shown {
visibility: visible;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

svc-page-navigator-item,
.svc-page-navigator-item {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

svc-page-navigator,
.svc-page-navigator {
Expand Down
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/page.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

svc-page {
display: block;
Expand Down
2 changes: 2 additions & 0 deletions packages/survey-creator-core/src/components/popup.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "../variables" as *;

.svc-creator-popup {
&.sv-popup--modal {
background-color: var(--ctr-popup-haze-background-color, $background-semitransparent);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-property-panel__item {
margin: calcSize(2) 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-property-grid-placeholder {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import "../variables.scss";

@use "../variables" as *;

.svc-question__dropdown-choices {
margin-top: calcSize(2);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-image-question-controls {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-rating-question-controls {
position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions packages/survey-creator-core/src/components/question.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../variables.scss";
@import "./carry-forward-panel.scss";
@use "../variables" as *;
@use "./carry-forward-panel.scss" as *;

svc-question {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/results.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svd-test-results {
border-radius: 4px;
Expand Down
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/row.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-row {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/scroll.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-scroll__wrapper {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/search.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;
.svc-search {
// TODO remove v2
--sjs-general-forecolor: rgba(0, 0, 0, 0.91);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

$side-bar-enter-duration: var(--svc-side-bar-enter-duration, 500ms);
$side-bar-leave-duration: var(--svc-side-bar-leave-duration, 500ms);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-sidebar-tabs {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/simulator.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svd-simulator {
position: relative;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.sd-element__header {
.svc-string-editor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.svc-surface-placeholder {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-switcher.spg-action-button {
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-tabbed-menu-item {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-tabbed-menu {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

svc-tab-designer {
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

svc-tab-json-editor-ace {
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

svc-tab-json-editor-textarea {
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-tab-logic-edit {
width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions packages/survey-creator-core/src/components/tabs/logic.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../variables.scss";
@import "../../colors.scss";
@use "../../variables" as *;
@use "../../colors.scss" as *;

.sl-table {
width: 50%;
Expand Down
2 changes: 1 addition & 1 deletion packages/survey-creator-core/src/components/tabs/test.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

svc-tab-test {
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-tab-translation {
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;
$svc-toolbox-fade-in-duration: var(--sjs-svc-toolbox-fade-in-duration, 250ms);
$svc-toolbox-move-in-duration: var(--sjs-svc-toolbox-move-in-duration, 250ms);
$svc-toolbox-fade-in-delay: var(--sjs-svc-toolbox-fade-in-delay, 100ms);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;
.svc-creator__toolbox--right,
[dir="rtl"],
[style*="direction:rtl"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-toolbox {
.svc-search {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../variables.scss";
@import "../../variables-layer.scss";
@use "../../variables" as *;
@use "../../variables-layer.scss" as *;

.svc-toolbox__item {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../variables.scss";
@use "../../variables" as *;

.svc-toolbox {
--dft-toolbox-item-padding-top: calc(1 * #{$base-unit});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "../variables" as *;

.svc-action-button {
@include ctrDefaultBoldFont;
display: inline-block;
Expand Down
2 changes: 2 additions & 0 deletions packages/survey-creator-core/src/creator-theme/button.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "../variables" as *;

.svc-btn {
display: flex;
padding: var(--ctr-button-padding-vertical, calcSize(2)) var(--ctr-button-padding-horizontal, calcSize(6));
Expand Down
5 changes: 2 additions & 3 deletions packages/survey-creator-core/src/creator-theme/creator.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@import "../variables.scss";
@import "./button.scss";
@import "./action-button.scss";
@use "./button.scss";
@use "./action-button.scss";
2 changes: 2 additions & 0 deletions packages/survey-creator-core/src/ctr-font-sizes.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "./ctr-variables.scss" as *;

.svc-creator {
--sjs-font-size-x05: calc(#{$font-unit} * 0.5);
--sjs-font-size-x075: calc(#{$font-unit} * 0.75);
Expand Down
2 changes: 2 additions & 0 deletions packages/survey-creator-core/src/ctr-sizes.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "./ctr-variables.scss" as *;

.svc-creator {
--sjs-spacing-x2: calc(#{$spacing-unit} * 2);
--sjs-spacing-x3: calc(#{$spacing-unit} * 3);
Expand Down
19 changes: 10 additions & 9 deletions packages/survey-creator-core/src/ctr-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ $corner-radius-unit: var(--ctr-corner-radius-unit, 8px);
$stroke-unit: var(--ctr-stroke-unit, 1px);
$font-unit: var(--ctr-font-unit, 8px);
$line-height-unit: var(--ctr-line-height-unit, 8px);
$font-family: var(--ctr-font-family, var(--sjs-font-family, var(--font-family)));
$-font-family: var(--ctr-font-family, var(--sjs-font-family, var(--font-family)));
$-base-unit: var(--sjs-base-unit, var(--base-unit, 8px));

@mixin ctrLargeFont {
font-family: $font-family;
font-family: $-font-family;
font-size: var(--ctr-font-large-size, 32px);
font-style: normal;
font-weight: 400;
Expand All @@ -20,10 +21,10 @@ $font-family: var(--ctr-font-family, var(--sjs-font-family, var(--font-family)))
}

@mixin ctrMediumFont {
--thm-medium-bold-font-size: calc(3 * #{$base-unit});
--thm-medium-bold-line-height: calc(4 * #{$base-unit});
--thm-medium-bold-font-size: calc(3 * #{$-base-unit});
--thm-medium-bold-line-height: calc(4 * #{$-base-unit});

font-family: $font-family;
font-family: $-font-family;
font-size: var(--ctr-font-medium-size, var(--thm-medium-bold-font-size, 24px));
font-style: normal;
font-weight: 400;
Expand All @@ -36,10 +37,10 @@ $font-family: var(--ctr-font-family, var(--sjs-font-family, var(--font-family)))
}

@mixin ctrDefaultFont {
--thm-default-font-size: var(--sjs-font-size, calc(2 * #{$base-unit}));
--thm-default-font-size: var(--sjs-font-size, calc(2 * #{$-base-unit}));
--thm-default-line-height: calc(1.5 * var(--thm-default-font-size));

font-family: $font-family;
font-family: $-font-family;
font-size: var(--ctr-font-default-size, var(--thm-default-font-size, 16px));
font-style: normal;
font-weight: 400;
Expand Down Expand Up @@ -70,11 +71,11 @@ $font-family: var(--ctr-font-family, var(--sjs-font-family, var(--font-family)))
}

@mixin ctrSmallFont {
--small-bold-font-size: var(--sjs-font-size, calc(2 * #{$base-unit}));
--small-bold-font-size: var(--sjs-font-size, calc(2 * #{$-base-unit}));
--ctr-small-bold-font-size: calc(0.75 * var(--small-bold-font-size));
--ctr-small-bold-line-height: var(--small-bold-font-size);

font-family: $font-family;
font-family: $-font-family;
font-size: var(--ctr-font-small-size, var(--ctr-small-bold-font-size, 12px));
font-style: normal;
font-weight: 400;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../variables.scss";
@use "../variables" as *;

.spg-boolean-switch,
.spg-boolean-switch * {
Expand Down
2 changes: 2 additions & 0 deletions packages/survey-creator-core/src/lbr-font-sizes.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "./lbr-variables.scss" as *;

.svc-creator {
--lbr-line-height-x8: calc(#{$lbr-line-height-unit} * 8);
--lbr-line-height-x7: calc(#{$lbr-line-height-unit} * 7);
Expand Down
2 changes: 2 additions & 0 deletions packages/survey-creator-core/src/lbr-sizes.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "./lbr-variables.scss" as *;

.svc-creator {
--lbr-spacing-x16: calc(#{$lbr-spacing-unit} * 16);
--lbr-spacing-x15: calc(#{$lbr-spacing-unit} * 15);
Expand Down
Loading
Loading