/
main.scss
194 lines (165 loc) · 3.78 KB
/
main.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
@import "./font";
@import "./theme";
@import "./layout";
@import "./elements";
@import "./search";
@import "./viewer";
@import "./ontology";
body {
font-family: Roboto, "Helvetica Neue", sans-serif;
margin: 0;
}
// material icons
.material-icons {
font-family: "Material Icons";
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: "liga";
}
// The following styles will override material design!
// jdnconvertiblecalendar main style
.mat-datepicker-content {
.mat-calendar {
height: auto !important;
}
}
.grid-card .mat-card-header > div.mat-card-header-text {
margin: 0 0 !important;
}
app-color-value {
.mat-form-field-flex,
.color-picker-input {
cursor: pointer !important;
}
.mat-form-field-label span {
display: block;
padding: 8px 4px;
margin: 0 auto;
}
}
// String literal input
// string literal textarea: overwrite material styling !important
.string-literal {
&.short-text {
.mat-form-field-infix {
margin-left: 12px;
}
}
&.long-text {
.mat-button-toggle-appearance-standard {
.mat-button-toggle-label-content {
line-height: 36px !important;
padding: 0 8px !important;
}
}
// textarea
.mat-form-field-wrapper {
width: 100%;
.mat-form-field-flex {
border-left: 1px solid rgba(0, 0, 0, 0.12);
min-height: calc(4 * 36px + 2px);
.mat-form-field-infix {
// negative values are not the best choice,
// but with this margin-top the placeholder is at the
// same position as in the short-text input
margin: -12px auto auto 12px;
}
}
}
}
}
.mat-menu-panel.res-share-menu {
max-width: 360px !important;
padding: 6px !important;
}
.info-tooltip {
white-space: pre-line;
}
// date picker adaption
.mat-menu-panel.date-picker {
max-width: 312px !important;
}
.year.withButtonToggle {
top: -0.05em;
.mat-form-field-suffix {
.suffix-toggle-group {
font-size: 12px;
border-radius: 0;
height: calc(36px - 0.25em);
.mat-button-toggle-label-content {
line-height: 36px !important;
}
}
}
}
.year,
.month {
// hide dropdown arrow
.mat-select-arrow {
border: none;
}
// hide number de- and increase buttons
// input[type="number"]::-webkit-inner-spin-button,
// input[type="number"]::-webkit-outer-spin-button {
// -webkit-appearance: none;
// }
// input[type="number"] {
// -moz-appearance: textfield;
// }
}
// our own date picker value does not need additional space at the bottom
// because of the combination with mat-menu which contains the date picker form
.mat-form-field.date-picker-value {
.mat-form-field-wrapper {
padding-bottom: 0 !important;
.mat-form-field-underline {
bottom: 0 !important;
}
}
}
.mat-form-field.without-border {
.mat-form-field-underline {
display: none;
}
}
.mat-caption.space-reducer {
margin-top: 0;
margin-bottom: 6px;
}
.project-actions {
border-left: 1px solid $primary_200;
padding: 0 12px;
.mat-caption.space-reducer {
margin-top: -6px;
margin-bottom: 6px;
}
}
button.space-reducer {
margin: 0;
}
// ckEditor
.ck-editor__editable_inline {
min-height: 256px;
}
// mat-menu with form element
.form-menu {
&.mat-menu-panel {
min-width: 320px !important;
max-width: 320px !important;
}
}