/
gio-connector-list-option-layout.component.scss
91 lines (78 loc) · 2.01 KB
/
gio-connector-list-option-layout.component.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
@use 'sass:map';
@use '@angular/material' as mat;
@use '@gravitee/ui-particles-angular' as gio;
$typography: map.get(gio.$mat-theme, typography);
::ng-deep {
// ⚠️ Complete mat-selection-list & mat-radio-group styles to have custom style
mat-selection-list.gio-connector-list,
mat-radio-group.gio-connector-list {
display: flex;
flex-direction: column;
gap: 16px;
.gio-connector-list-option,
.mat-mdc-list-item.mat-mdc-list-option,
mat-radio-button.mat-mdc-radio-button,
// mat legacy
mat-radio-button.mat-radio-button {
padding: 0 16px;
height: auto;
display: flex;
flex-direction: row;
justify-content: space-between;
border: 2px solid mat.get-color-from-palette(gio.$mat-dove-palette, 'darker20');
border-radius: 4px;
}
.gio-connector-list-option {
padding: 0 16px;
}
.gio-connector__selected {
border: 2px solid mat.get-color-from-palette(gio.$mat-accent-palette, 'default') !important;
}
/**
mat-selection-list
*/
.mdc-list-item__start.mat-mdc-list-option-checkbox-before {
margin: 0;
}
/**
mat-radio-group
*/
.mdc-list-item__content,
.mdc-list-item__content > span {
overflow: unset;
}
mat-radio-button > .mdc-form-field {
width: 100%;
}
label {
cursor: pointer;
width: 100%;
}
}
}
:host {
display: flex;
flex-direction: row;
margin: 16px 0;
gap: 16px;
justify-content: space-between;
align-items: center;
}
.gio-connector {
&__description {
flex: 1 1 auto;
&__title {
@include mat.typography-level($typography, body-1);
margin-bottom: 8px;
text-transform: capitalize;
}
&__body {
@include mat.typography-level($typography, body-2);
// TODO: make available to module components + integrate in step 1, stepper html
color: mat.get-color-from-palette(gio.$mat-space-palette, 'lighter40');
margin: 0;
white-space: pre-line;
max-width: 600px;
}
}
}