@colijnit/homedecorator 262.1.5 → 262.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  @import '../../../../style/variables';
2
2
  :host {
3
- color: $hd-color-primary;
3
+ color: $hd-color-font;
4
4
  .dialog-overlay {
5
5
  display: flex;
6
6
  position: fixed;
@@ -0,0 +1,117 @@
1
+ @import '../../../../../style/variables';
2
+
3
+ $co-homedecorator-input-slider-background: rgba(218, 152, 3, 0.3);
4
+
5
+ .setting-part-container {
6
+ display: flex;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ margin-bottom: 5px;
10
+
11
+ .form-field {
12
+ position: relative;
13
+ display: flex;
14
+ flex-direction: column;
15
+
16
+ .form-field-label {
17
+ font-size: 10px;
18
+ color: $hd-color-font;
19
+ margin-bottom: 5px;
20
+ }
21
+
22
+ .form-field-input {
23
+ border: none;
24
+ border-bottom: 1px solid rgba(0, 0, 0, 0.42);
25
+ background: transparent;
26
+ font-size: 16px;
27
+ padding: 4px 0;
28
+ outline: none;
29
+ width: 100%;
30
+ box-sizing: border-box;
31
+ transition: border-color 0.2s ease;
32
+
33
+ &:focus {
34
+ border-bottom: 2px solid $hd-color-main;
35
+ margin-bottom: -1px;
36
+ }
37
+
38
+ &::-webkit-outer-spin-button,
39
+ &::-webkit-inner-spin-button {
40
+ -webkit-appearance: none;
41
+ margin: 0;
42
+ }
43
+
44
+ &[type='number'] {
45
+ -moz-appearance: textfield;
46
+ }
47
+ }
48
+ }
49
+
50
+ .third-width {
51
+ width: 32%
52
+ }
53
+
54
+ .setting-part-buttons {
55
+ .amount-button {
56
+ float: none;
57
+ box-sizing: border-box;
58
+ padding: 2px;
59
+ background: none;
60
+ cursor: pointer;
61
+ border: none;
62
+ width: 25px;
63
+ height: 25px;
64
+ margin: 0 5px;
65
+
66
+ co-icon {
67
+ display: block;
68
+ width: 25px;
69
+ height: 25px;
70
+
71
+ svg {
72
+ fill: $hd-color-font;
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ .setting-part-slider {
79
+ .value-slider {
80
+ width: 100%;
81
+ appearance: none;
82
+ height: 2px;
83
+ background: $co-homedecorator-input-slider-background;
84
+ outline: none;
85
+ cursor: pointer;
86
+
87
+ &::-webkit-slider-thumb {
88
+ appearance: none;
89
+ width: 16px;
90
+ height: 16px;
91
+ border-radius: 50%;
92
+ background: $hd-color-main;
93
+ cursor: pointer;
94
+ }
95
+
96
+ &::-moz-range-thumb {
97
+ width: 16px;
98
+ height: 16px;
99
+ border-radius: 50%;
100
+ background: $hd-color-main;
101
+ border: none;
102
+ cursor: pointer;
103
+ }
104
+
105
+ &::-moz-range-track {
106
+ height: 2px;
107
+ background: $co-homedecorator-input-slider-background;
108
+ }
109
+ }
110
+ }
111
+ }
112
+
113
+
114
+
115
+
116
+
117
+
@@ -5,12 +5,14 @@ $border-color: #dda73f;
5
5
 
6
6
  .render-container {
7
7
  position: relative;
8
+ min-width: 375px;
8
9
  //background: #fff;
9
10
  //margin: 0 10px 0 0;
10
11
  //border-radius: 50px;
11
12
  //box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
12
13
 
13
14
  .render-popup-container {
15
+ box-sizing: border-box;
14
16
  background: rgba(255, 255, 255, 0.7);
15
17
  padding: 10px 25px 25px;
16
18
  border-radius: 5px;
@@ -89,9 +91,9 @@ $border-color: #dda73f;
89
91
  background-color: #fff;
90
92
  min-height: 150px;
91
93
  min-width: 275px;
92
- margin: 5px 0;
94
+ margin: 5px auto;
93
95
  position: relative;
94
- width: 275px;
96
+ width: 340px;
95
97
  height: 150px;
96
98
 
97
99
  .render-popup-preview-placeholder {
@@ -169,44 +171,6 @@ $border-color: #dda73f;
169
171
  }
170
172
  }
171
173
 
172
- .setting-part-container {
173
- display: flex;
174
- justify-content: space-between;
175
- align-items: center;
176
- margin-bottom: 5px;
177
- .third-width {
178
- width: 32%
179
- }
180
- .setting-part-buttons {
181
-
182
- .amount-button {
183
- float: none;
184
- box-sizing: border-box;
185
- padding: 2px;
186
- background: none;
187
- cursor: pointer;
188
- border: none;
189
- width: 25px;
190
- height: 25px;
191
- margin: 0 5px;
192
- co-icon {
193
- display: block;
194
- width: 25px;
195
- height: 25px;
196
- ::ng-deep svg {
197
- fill: #5b6875;
198
- }
199
- }
200
- }
201
- }
202
- .setting-part-slider {
203
- /*TODO(mdc-migration): The following rule targets internal classes of slider that may no longer apply for the MDC version.*/
204
- .mat-slider-horizontal {
205
- min-width: 110px;
206
- height: 28px;
207
- }
208
- }
209
- }
210
174
  }
211
175
  }
212
176
 
@@ -63,7 +63,7 @@
63
63
  .progress-bar-text {
64
64
  position: absolute;
65
65
  inset: 0;
66
- color: $hd-color-primary;
66
+ color: $hd-color-font;
67
67
  display: flex;
68
68
  align-items: center;
69
69
  justify-content: center;
@@ -84,7 +84,7 @@
84
84
  width: 4px;
85
85
  height: 4px;
86
86
  border-radius: 50%;
87
- background-color: $hd-color-primary;
87
+ background-color: $hd-color-font;
88
88
  opacity: 0.25;
89
89
  animation: loading-dot 1.2s infinite ease-in-out;
90
90
  }
@@ -1,289 +1,192 @@
1
- .model-preview {
2
- display: flex;
3
- flex-direction: row;
4
- font-size: 14px;
5
- position: relative;
1
+ @import "../../../../../style/variables";
6
2
 
7
- .model-preview-window {
8
- .model-preview-window-bottom {
9
- display: flex;
10
- flex-direction: row;
11
- justify-content: space-between;
12
- align-items: center;
13
-
14
- .disclaimer-text-container {
15
- padding-right: 20px;
16
- text-align: right;
17
- font-style: italic;
18
- font-size: 12px;
19
- }
20
- }
21
- }
22
-
23
- .model-preview-actions {
24
- min-width: 350px;
25
- box-sizing: border-box;
26
- padding: 10px 20px;
27
- border-left: 1px solid #5b6875;
28
-
29
- #heightArticle {
30
- max-width: 160px;
31
- }
32
-
33
- .units-select-form {
34
- width: 80px;
35
- margin: 0 5px;
36
- }
37
-
38
- .model-preview-info-container {
39
- margin-bottom: 10px;
40
-
41
- .model-preview-info-left {
42
- font-weight: bolder;
43
- }
44
-
45
- .model-preview-info-right {
3
+ :host {
4
+ ::ng-deep .form-input, ::ng-deep .co-input-text:not(.no-style):not(.read-only):not(.no-hover-line) {
5
+ .co-button {
6
+ background-color: transparent;
7
+ &:hover {
8
+ background-color: $hd-color-main;
46
9
  }
47
10
  }
48
-
49
- .model-preview-info {
50
- margin-top: 80px;
11
+ &:hover:before {
12
+ box-shadow: inset 0 0 0 2px $hd-color-main;
51
13
  }
52
14
  }
53
-
54
- .exportButton {
55
- cursor: pointer;
56
- color: #fff;
57
- background: #da9803;
58
- border: 1px solid #da9803;
59
- border-radius: 3px;
60
- box-sizing: border-box;
61
- padding: 5px;
15
+ .model-preview-header {
62
16
  display: flex;
17
+ justify-content: space-between;
63
18
  align-items: center;
64
-
65
- &:hover {
66
- background: #da9803;
67
- color: #fff;
68
- }
69
- }
70
-
71
- input {
72
- border: 1px solid #5b6875;
73
- box-sizing: border-box;
74
- padding: 3px 10px;
75
- border-radius: 3px;
76
- line-height: 30px;
77
- width: 100%;
19
+ margin-bottom: 15px;
78
20
  }
79
-
80
- }
81
-
82
- /* TODO(mdc-migration): The following rule targets internal classes of radio that may no longer apply for the MDC version.*/
83
- .mat-radio-wrapper {
84
- margin: 10px 0;
85
- }
86
-
87
- /* TODO(mdc-migration): The following rule targets internal classes of radio that may no longer apply for the MDC version.*/
88
- mat-radio-group {
89
- /* TODO(mdc-migration): The following rule targets internal classes of radio that may no longer apply for the MDC version.*/
90
- mat-radio-button {
91
- display: block;
21
+ .header-wrapper {
22
+ display: flex;
23
+ align-items: center;
24
+ gap: 20px;
25
+ .header-title-icon-wrapper {
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ background-color: $hd-color-main-light;
30
+ width: 50px;
31
+ height: 50px;
32
+ border-radius: 50%;
33
+ ::ng-deep .co-icon {
34
+ svg { // for fontawesome icons
35
+ fill: $hd-color-main;
36
+ }
37
+ & [fill] { // for own icons
38
+ fill: $hd-color-main;
39
+ }
40
+ }
41
+ }
42
+ .header-title-wrapper {
43
+ display: flex;
44
+ flex-direction: column;
45
+ gap: 15px;
46
+ }
47
+ .header-title {
48
+ font-size: 16px;
49
+ font-weight: bold;
50
+ }
51
+ .header-sub-title {
52
+ font-size: 12px;
53
+ }
92
54
  }
93
- }
94
-
95
- .base-button {
96
- cursor: pointer;
97
- color: #fff;
98
- background: #da9803;
99
- border: 1px solid #da9803;
100
- border-radius: 3px;
101
- box-sizing: border-box;
102
- padding: 4px 10px;
103
- line-height: 30px;
104
-
105
- &:hover {
106
- background: #da9803;
107
- color: #fff;
55
+ .model-preview {
56
+ display: grid;
57
+ grid-template-columns: 60% 1fr;
58
+ grid-gap: 20px;
59
+ font-size: 14px;
60
+ position: relative;
108
61
  }
109
- }
110
-
111
- .model-placement-container {
112
- div {
62
+ .preview-section {
113
63
  display: flex;
114
- justify-content: space-between;
115
- margin: 5px 0;
116
- align-items: center;
64
+ flex-direction: column;
65
+ gap: 10px;
66
+ background: #FAF8F7;
67
+ border-radius: 10px;
68
+ border: 1px solid $hd-color-border;
69
+ padding: 20px;
117
70
  }
118
- }
119
71
 
120
-
121
- .rotation-button-container {
122
- div {
72
+ .canvas-settings {
123
73
  display: flex;
124
- justify-content: space-between;
125
- margin-bottom: 5px;
74
+ gap: 20px;
75
+ }
126
76
 
127
- p {
128
- margin: 0;
129
- padding: 0;
77
+ .settings-wrapper {
78
+ display: grid;
79
+ //grid-template-rows: 50% 1fr;
80
+ gap: 20px;
81
+ .settings-header-wrapper {
82
+ display: flex;
83
+ justify-content: space-between;
84
+ align-items: center;
85
+ flex-wrap: wrap;
130
86
  }
131
-
132
- button {
87
+ .settings-header-title {
133
88
  display: flex;
134
- justify-content: center;
135
89
  align-items: center;
136
- margin: 0 0 0 10px;
90
+ gap: 10px;
91
+ font-weight: bold;
92
+ font-size: 16px;
93
+ }
94
+ .settings-section {
95
+ display: flex;
96
+ gap: 20px;
97
+ }
98
+ .properties-wrapper {
99
+ display: flex;
100
+ gap: 20px;
101
+ .property-wrapper {
102
+ flex-basis: 100%;
103
+ }
104
+ }
105
+ .properties-options-wrapper {
106
+ display: flex;
107
+ align-items: center;
108
+ justify-content: space-between;
109
+ }
110
+ ::ng-deep .info-icon {
111
+ width: 15px;
112
+ height: 15px;
137
113
  cursor: pointer;
138
- color: #5b6875;
139
- background: #fff;
140
- border: 2px solid #5b6875;
114
+ border: 3px solid $hd-color-border-dark;
141
115
  border-radius: 50%;
142
- box-sizing: border-box;
143
- padding: 0;
144
- height: 22px;
145
- width: 22px;
146
- font-size: 18px;
147
-
148
- svg [fill] {
149
- fill: #5b6875;
150
- }
151
-
152
- &:hover {
153
- background: #da9803;
154
- color: #fff;
116
+ svg { // for fontawesome icons
117
+ fill: $hd-color-border-dark;
155
118
  }
156
- }
157
-
158
- .button-as-link {
159
- color: #da9803;
160
- border: none;
161
- width: 100%;
162
- height: 100%;
163
- font-size: 14px;
164
- position: relative;
165
- top: -15px;
166
-
167
- ::ng-deep mat-icon {
168
- width: 25px;
169
- height: 25px;
170
- position: relative;
171
- top: 8px;
172
-
173
- svg {
174
- path {
175
- fill: #da9803;
176
- }
177
- }
119
+ & [fill] { // for own icons
120
+ fill: $hd-color-border-dark;
178
121
  }
179
-
180
122
  &:hover {
181
- background: none;
182
- color: #da9803;
123
+ border: 3px solid $hd-color-main;
124
+ svg { // for fontawesome icons
125
+ fill: $hd-color-main;
126
+ }
127
+ & [fill] { // for own icons
128
+ fill: $hd-color-main;
129
+ }
183
130
  }
184
131
  }
185
132
  }
186
- }
187
-
188
- .error-container {
189
- position: relative;
190
- padding: .75rem 1.25rem;
191
- margin-bottom: 1rem;
192
- border: 1px solid #f5c6cb;
193
- border-radius: .25rem;
194
- color: #721c24;
195
- background-color: #f8d7da;
196
- max-width: 190px;
197
- }
198
-
199
- .exportButton, .exportButtonDark {
200
- display: inline-block !important;
201
- margin-right: 10px;
202
- }
203
-
204
- .exportButtonDark {
205
- background: #5b6875;
206
- border-color: #5b6875;
207
-
208
- &:hover {
209
- background: #5b6875;
210
- color: #fff;
211
- }
212
- }
213
-
214
- .model-close-preview {
215
- text-align: right;
216
- cursor: pointer;
217
- }
218
-
219
- .model-error-background {
220
- position: absolute;
221
- // make sure it fits the mat-dialog
222
- top: -52px;
223
- right: -24px;
224
- bottom: -24px;
225
- left: -24px;
226
- z-index: 99;
227
- background: rgba(0, 0, 0, 0.6);
228
- }
229
-
230
- .model-error-container {
231
- position: relative;
232
- background: #fff;
233
- box-sizing: border-box;
234
- padding: 10px 25px;
235
- border: 1px solid #5b6875;
236
- top: 30%;
237
- left: 50%;
238
- width: 400px;
239
- margin-left: -200px;
240
-
241
- .model-error-header {
242
- display: flex;
243
- justify-content: space-between;
244
- }
245
- }
246
-
247
- :host {
248
- ::ng-deep .mat-mdc-form-field-wrapper {
249
- padding-bottom: 0;
250
- border: 1px solid #5b6875;
251
- border-radius: 4px;
252
- }
253
-
254
- ::ng-deep .mat-mdc-form-field-appearance-legacy .mat-mdc-form-field-infix {
255
- padding: 0;
256
- border: none;
257
- }
258
- /* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version.*/
259
- ::ng-deep .mat-select-value {
260
- padding-left: 5px;
133
+ ::ng-deep .co-input-checkbox {
134
+ .checkbox {
135
+ border-radius: 5px;
136
+ }
137
+ .label {
138
+ user-select: none;
139
+ }
140
+ .checkbox.checked {
141
+ border-color: $hd-color-main;
142
+ background-color: $hd-color-main;
143
+ }
261
144
  }
262
-
263
- ::ng-deep .mat-mdc-form-field-appearance-legacy .mat-mdc-form-field-underline {
264
- height: 0;
145
+ .reset-button {
146
+ font-size: 16px;
147
+ background: white;
148
+ border: 1px solid $hd-color-border;
149
+ color: $hd-color-font;
150
+ ::ng-deep .co-icon {
151
+ height: 50%;
152
+ }
265
153
  }
266
- /* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version.*/
267
- ::ng-deep .mat-select-trigger {
268
- line-height: 36px;
154
+ .canvas-container {
155
+ width: 100%;
156
+ height: 100%;
157
+ border-radius: 10px;
158
+ overflow: hidden;
159
+ max-height: 500px;
160
+ > * {
161
+ width: 100%;
162
+ height: 100%;
163
+ }
269
164
  }
270
-
271
- ::ng-deep mat-icon {
272
- width: 18px;
273
- height: 18px;
274
-
275
- svg {
276
- path {
277
- fill: #5b6875;
165
+ .model-preview-button-wrapper {
166
+ display: flex;
167
+ align-items: center;
168
+ gap: 20px;
169
+ justify-content: center;
170
+ border-color: $hd-color-border;
171
+ border-width: 1px 0 0 0;
172
+ border-style: solid;
173
+ margin-top: 20px;
174
+ padding: 20px;
175
+ .preview-cancel-button {
176
+ color: $hd-color-font;
177
+ background: white;
178
+ border: 1px solid $hd-color-border;
179
+ }
180
+ .preview-save-button {
181
+ background: $hd-color-main;
182
+ ::ng-deep .co-icon {
183
+ svg { // for fontawesome icons
184
+ fill: white;
185
+ }
186
+ & [fill] { // for own icons
187
+ fill: white;
188
+ }
278
189
  }
279
190
  }
280
191
  }
281
- /* TODO(mdc-migration): The following rule targets internal classes of slide-toggle that may no longer apply for the MDC version.*/
282
- ::ng-deep .mat-slide-toggle-content {
283
- width: calc(100% - 36px);
284
- min-width: 300px;
285
- }
286
192
  }
287
-
288
-
289
-