Skip to content

Commit 8ca4612

Browse files
committed
ADD mixin for json-schema-component
Signed-off-by: Hamza Hamidi <[email protected]>
1 parent 51e0b3a commit 8ca4612

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

src/frontend/app/shared/components/add-service-instance/bind-apps-step/bind-apps-step.component.scss

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,28 @@
33
flex: 1;
44
}
55

6-
.display-json {
7-
white-space: -moz-pre-wrap;
8-
white-space: -pre-wrap;
9-
white-space: -o-pre-wrap;
10-
white-space: pre-wrap;
11-
word-wrap: break-word;
12-
}
13-
14-
.json-schema {
15-
display: flex;
16-
flex-direction: column;
17-
@include breakpoint(laptop) {
6+
@mixin json-schema-component() {
7+
.display-json {
8+
white-space: -moz-pre-wrap;
9+
white-space: -pre-wrap;
10+
white-space: -o-pre-wrap;
11+
white-space: pre-wrap;
12+
word-wrap: break-word;
13+
}
14+
.json-schema {
1815
display: flex;
19-
flex-direction: row;
16+
flex-direction: column;
17+
@include breakpoint(laptop) {
18+
flex-direction: row;
19+
}
2020
}
21-
}
22-
23-
.json-schema-data,
24-
.json-schema-form {
25-
width: 100%;
26-
@include breakpoint(laptop) {
27-
width: 50%;
21+
.json-schema-data,
22+
.json-schema-form {
23+
width: 100%;
24+
@include breakpoint(laptop) {
25+
width: 50%;
26+
}
2827
}
2928
}
29+
30+
@include json-schema-component();

src/frontend/app/shared/components/add-service-instance/specify-details-step/specify-details-step.component.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@import '../bind-apps-step/bind-apps-step.component';
12
:host {
23
flex: 1;
34
}
@@ -23,3 +24,5 @@
2324
}
2425
}
2526
}
27+
28+
@include json-schema-component();

0 commit comments

Comments
 (0)