Skip to content

Commit d4d136c

Browse files
author
OlgaLarina
committed
remove $background variables
1 parent bc3f58e commit d4d136c

14 files changed

+67
-86
lines changed

packages/survey-creator-core/src/components/creator.scss

+13-13
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,19 @@ survey-creator,
147147
text-align: center;
148148
}
149149

150-
.svc-item__banner {
151-
position: relative;
152-
max-width: 0;
153-
overflow: hidden;
154-
height: 100%;
155-
background-color: $background;
156-
/* Shadow / Medium */
157-
border-radius: calcSize(12.5);
158-
box-shadow: 0px 2px 6px 0px var(--ctr-shadow-medium-color, var(--sjs-special-glow, #004c441a));
159-
transition:
160-
max-width 0.1s ease-in-out,
161-
padding 0.2s ease-in-out;
162-
}
150+
// .svc-item__banner {
151+
// position: relative;
152+
// max-width: 0;
153+
// overflow: hidden;
154+
// height: 100%;
155+
// background-color: $background;
156+
// /* Shadow / Medium */
157+
// border-radius: calcSize(12.5);
158+
// box-shadow: 0px 2px 6px 0px var(--ctr-shadow-medium-color, var(--sjs-special-glow, #004c441a));
159+
// transition:
160+
// max-width 0.1s ease-in-out,
161+
// padding 0.2s ease-in-out;
162+
// }
163163

164164
.svc-creator__non-commercial-text {
165165
@include ctrDefaultBoldFont;

packages/survey-creator-core/src/components/item-value.scss

+5-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838

3939
.svc-item-value--dragging {
40-
background: $background;
40+
// background: $background;
4141
box-shadow: 0px 8px 16px 0px var(--ctr-shadow-large-color, var(--sjs-special-glow, #004c441a));
4242
border-radius: calcSize(12.5);
4343
padding-right: calcSize(3);
@@ -158,7 +158,7 @@
158158
.svc-item-value__item {
159159
.sd-item__control-label,
160160
.sv-ranking-item__text {
161-
color: $foreground-light;
161+
color: var(--ctr-survey-ranking-item-text-color-inactive, rgba(0, 0, 0, 0.5));
162162
}
163163

164164
.sd-item__decorator {
@@ -167,10 +167,11 @@
167167
}
168168

169169
.sv-ranking-item__index {
170-
background: $background-dim;
170+
border-radius: var(--lbr-ranking-item-number-corner-radius, 1024px);
171+
background: var(--ctr-survey-ranking-item-digit-background-color-inactive, #f4f4f4);
171172

172173
svg {
173-
fill: $foreground-light;
174+
fill: var(--ctr-survey-ranking-item-digit-text-color-inactive, var(--sjs-layer-3-foreground-50, #00000080));
174175
}
175176
}
176177
}

packages/survey-creator-core/src/components/list.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@
265265

266266
.svc-list__item--group-selected > .svc-list__item-body {
267267
@include ctrDefaultBoldFont;
268-
color: $primary-foreground;
269-
background-color: $primary;
268+
color: var(--ctr-list-item-text-color-selected, #fff);
269+
background: var(--ctr-list-item-background-color-selected, #19b394);
270270

271271
use {
272-
fill: $background;
272+
fill: var(--ctr-list-item-icon-color-selected, #ffffff);
273273
}
274274
}
275275
}

packages/survey-creator-core/src/components/popup.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145

146146
&.sv-dropdown-popup.sv-popup--dropdown-overlay {
147147
.sv-popup__body-footer {
148-
background-color: var(--ctr-contextual-menu-footer-background-color, $background-dim);
148+
background-color: var(--ctr-contextual-menu-footer-background-color, var(--sjs-layer-3-background-500, var(--background-dim, #f3f3f3)));
149149
}
150150
}
151151

packages/survey-creator-core/src/components/question-image.scss

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959

6060
.svc-image-question__loading-placeholder {
6161
position: relative;
62-
background-color: $background;
6362
width: 100%;
6463
height: calcSize(27.5);
6564
border: var(--ctr-survey-placeholder-border-width, var(--lbr-stroke-x1)) dashed var(--ctr-survey-placeholder-border-color, var(--sjs-border-25, #D4D4D4));

packages/survey-creator-core/src/components/question.scss

+11-11
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ svc-question {
3434
border: none;
3535

3636
&:active {
37-
opacity: 0.5;
38-
background-color: $background-dim;
37+
opacity: var(--ctr-survey-question-panel-toolbar-item-opacity-pressed, 0.5);
38+
background: var(--ctr-survey-question-panel-toolbar-item-background-color-pressed, #f5f5f5);
3939
}
4040
}
4141
}
@@ -1253,16 +1253,16 @@ svc-question,
12531253
padding: 0;
12541254
}
12551255

1256-
.sd-table__cell--actions {
1257-
.sv-action-bar-item:disabled {
1258-
background: $background;
1259-
opacity: 1;
1256+
// .sd-table__cell--actions {
1257+
// .sv-action-bar-item:disabled {
1258+
// background: $background;
1259+
// opacity: 1;
12601260

1261-
use {
1262-
fill: $foreground-light;
1263-
}
1264-
}
1265-
}
1261+
// use {
1262+
// fill: $foreground-light;
1263+
// }
1264+
// }
1265+
// }
12661266

12671267
.sd-table__row-disabled > .sd-table__cell {
12681268
opacity: 1;

packages/survey-creator-core/src/components/tabs/json-editor-ace.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@use "../../variables" as *;
22

3-
svc-tab-json-editor-ace {
4-
width: 100%;
5-
height: 100%;
6-
background: $background-dim;
7-
}
3+
// svc-tab-json-editor-ace {
4+
// width: 100%;
5+
// height: 100%;
6+
// background: $background-dim;
7+
// }
88

99
.svc-json-editor-tab__content {
1010
position: relative;

packages/survey-creator-core/src/components/tabs/logic-ui.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
outline: none;
5252
cursor: pointer;
5353

54-
option {
55-
background: $background;
56-
color: $foreground;
57-
}
54+
// option {
55+
// background: $background;
56+
// color: $foreground;
57+
// }
5858
}
5959

6060
.svc-logic-operator:focus {
@@ -328,7 +328,7 @@
328328
max-width: 100%;
329329
box-sizing: border-box;
330330
margin-top: calcSize(2);
331-
background: $background;
331+
// background: $background;
332332
box-shadow: 0px 1px 2px 0px var(--ctr-shadow-small-color, var(--sjs-special-shadow, #00000040));
333333
border-radius: calcSize(0.5);
334334
padding: calcSize(4) calcSize(5) calcSize(5);

packages/survey-creator-core/src/components/tabs/test.scss

+5-16
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
@use "../../variables" as *;
22

3-
svc-tab-preview {
4-
width: 100%;
5-
height: 100%;
6-
background: $background-dim;
7-
}
3+
// svc-tab-preview {
4+
// width: 100%;
5+
// height: 100%;
6+
// background: $background-dim;
7+
// }
88

99
.svc-test-tab__content {
1010
align-items: center;
1111
justify-content: center;
1212
}
1313

1414
.svc-test-tab__content .svc-plugin-tab__content {
15-
.sv-root-modern .sv-completedpage,
16-
.sv_default_css .sv_completed_page {
17-
margin: 0;
18-
border: 0;
19-
background-color: $background-dim;
20-
}
21-
22-
.sv_default_css .sv_body {
23-
border: 0;
24-
}
25-
2615
.svc-preview__test-again {
2716
width: calcSize(33);
2817
box-sizing: border-box;

packages/survey-creator-core/src/components/toolbox/toolbox-tool.scss

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
white-space: nowrap;
7676
color: var(--ctr-toolbox-item-text-color-hovered, var(--sjs-layer-1-foreground-100, #000000e6));
7777
transition: opacity $creator-transition-duration;
78-
background-color: $background;
7978
/* Shadow / Medium */
8079
border-radius: var(--ctr-tooltip-corner-radius, var(--sjs-corner-radius-x075));
8180
box-shadow:

packages/survey-creator-core/src/property-grid-theme/blocks/spg-color-editor.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
left: 50%;
4444
top: 50%;
4545
transform: translate(-50%, -50%);
46-
fill: $background;
46+
fill: var(--ctr-editor-color-swatch-icon-color-stroke, #00000040);
4747
}
4848
}
4949
.spg-question--disabled .spg-color-editor {

packages/survey-creator-core/src/property-grid-theme/blocks/spg-matrixdynamic.scss

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
@use "../../variables.scss" as *;
22

3-
.spg-matrixdynamic__drag-element {
4-
padding: calcSize(2);
5-
6-
&:hover {
7-
background-color: $background;
8-
}
9-
10-
&:after {
11-
content: " ";
12-
display: block;
13-
height: calcSize(0.5);
14-
}
15-
}
3+
// .spg-matrixdynamic__drag-element {
4+
// padding: calcSize(2);
5+
6+
// &:hover {
7+
// background-color: $background;
8+
// }
9+
10+
// &:after {
11+
// content: " ";
12+
// display: block;
13+
// height: calcSize(0.5);
14+
// }
15+
// }
1616

1717
.spg-drag-element__svg {
1818
width: var(--ctr-data-table-row-drag-area-icon-width, var(--sjs-font-size-x3));

packages/survey-creator-core/src/property-grid-theme/blocks/spg-table.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@
113113
}
114114
}
115115

116-
.spg-table__cell--actions > .spg-matrixdynamic__drag-element {
117-
display: inline-block;
118-
margin-top: calcSize(0.5);
119-
cursor: move;
120-
}
116+
// .spg-table__cell--actions > .spg-matrixdynamic__drag-element {
117+
// display: inline-block;
118+
// margin-top: calcSize(0.5);
119+
// cursor: move;
120+
// }
121121

122122
.spg-table__cell--header {
123123
background: var(--ctr-data-table-row-background-color-header, var(--sjs-layer-3-background-500, #f4f4f4ff));

packages/survey-creator-core/src/variables.scss

-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ $primary-background-dark: var(--sjs-primary-backcolor-dark, rgb(20, 164, 139));
77
$primary-foreground: var(--sjs-primary-forecolor, var(--primary-foreground, #fff));
88
$primary-foreground-disabled: var(--sjs-primary-forecolor-light, var(--primary-foreground-disabled, rgba(#fff, 0.25)));
99

10-
$background: var(--sjs-general-backcolor, var(--background, #fff));
11-
$background-dim: var(--sjs-general-backcolor-dim, var(--background-dim, #f3f3f3));
12-
$background-dim-light: var(--sjs-general-backcolor-dim-light, var(--background-dim-light, #f9f9f9));
13-
$background-semitransparent: var(--background-semitransparent, rgba(144, 144, 144, 0.5));
14-
$background-dark: var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)));
15-
$background-dim-dark: var(--sjs-editorpanel-hovercolor, var(--sjs-general-backcolor-dim-dark, rgb(243, 243, 243)));
16-
1710
$foreground: var(--sjs-general-forecolor, var(--foreground, #161616));
1811
$foreground-light: var(--sjs-general-forecolor-light, var(--foreground-light, #909090));
1912

0 commit comments

Comments
 (0)