blob: 805e57b847f8b8a869292326e4dfc044dfe90b00 [file] [log] [blame]
Adrià Vilanova Martínez5af86512023-12-02 20:44:16 +01001/*
2 * hores
3 * Copyright (c) 2023 Adrià Vilanova Martínez
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public
16 * License along with this program.
17 * If not, see http://www.gnu.org/licenses/.
18 */
Copybara botbe50d492023-11-30 00:16:42 +010019:root {
20 --material-green: rgb(76,175,80);
21}
22
23body {
24 font-family: "Roboto", "Helvetica", "Arial", sans-serif;
25}
26
27.main {
28 position: relative;
29 display: block;
30 width: Calc(100% - 64px);
31 max-width: 1024px;
32 margin: 20px auto;
33 padding: 16px 16px 32px 16px;
34 border-radius: 2px;
35 background: #FFFFFF;
36}
37
38.main.withfab {
39 padding: 16px 16px 64px 16px!important;
40}
41
42.delete, .icon {
43 color: black!important;
44 vertical-align: middle;
45}
46
47.icon-no-black {
48 vertical-align: middle;
49}
50
51a.backbtn {
52 text-decoration: none;
53 color: #424242;
54}
55
56a.backbtn .material-icons {
57 vertical-align: middle;
58}
59
60.mdl-tabs__panel {
61 padding-top: 16px;
62}
63
64.mdl-navigation__link span {
65 vertical-align: middle;
66}
67
68dynscript {
69 display: none;
70}
71
72details.debug summary {
73 color: rgb(255, 64, 129);
74 font-size: 12px;
75 cursor: pointer;
76}
77
78.overflow-wrapper {
79 max-width: 100%;
80 overflow-x: auto;
81 -webkit-overflow-scrolling: touch;
82}
83
84.overflow-wrapper.overflow-wrapper--for-table {
85 padding: 4px;
86 margin: -4px;
87}
88
89details.debug pre {
90 margin: 0;
91 max-width: 100%;
92 overflow: auto;
93}
94
95.margintop {
96 margin-top: 16px;
97}
98
99i.help {
100 vertical-align: middle;
101 cursor: help;
102}
103
104.mdl-data-table__cell--centered {
105 text-align: center!important;
106}
107
108.mdl-dialog .mdl-dialog__content, .copyto {
109 overflow-y: auto;
110 background: linear-gradient(white 30%, rgba(255, 255, 255, 0)), linear-gradient(rgba(255, 255, 255, 0), white 70%) 0 100%, radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) 0 100%;
111 background-repeat: no-repeat;
112 background-color: white;
113 background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
114 background-attachment: local, local, scroll, scroll;
115}
116
117.mdl-dialog .mdl-dialog__content {
118 max-height: Calc(100vh - 232px);
119}
120
121.copyto {
122 max-height: 300px;
123}
124
125.mdl-dialog .mdl-dialog__title {
126 margin-bottom: 4px; /* Otherwise sometimes the title is not entirely shown */
127}
128
129a.mdl-js-ripple-effect {
130 position: relative;
131}
132
133.always-focused {
134 font-size: 12px;
135 top: 4px;
136 visibility: visible;
137}
138
139.clicky-container {
140 text-decoration: none!important;
141 color: black!important;
142}
143
144.clicky {
145 position: relative;
146 display: block;
147 width: Calc(100% - 10px);
148 margin-bottom: 5px;
149 overflow-x: hidden;
150 overflow-y: hidden;
151 padding: 5px;
152 border-left: 4px solid #212121;
153}
154
155.clicky:hover {
156 background-color: #EEE;
157}
158
159.clicky .icon {
160 float: left;
161 margin-right: 8px;
162}
163
164.clicky .material-icons {
165 font-size: 40px;
166}
167
168.clicky .title {
169 font-weight: bold;
170}
171
172.clicky .description {
173 color: rgba(0, 0, 0, .54);
174 font-weight: 400;
175}
176
177main .actions {
178 margin: 16px 0 16px 16px;
179 float: right;
180}
181
182.mdl-menu a {
183 text-decoration: none;
184}
185
186.oneline {
187 overflow: hidden;
188 white-space: nowrap;
189 text-overflow: ellipsis;
190}
191
192.icon-text {
193 font-size: 14px!important;
194 vertical-align: middle;
195}
196
197.pagination {
198 margin: 16px 0;
199}
200
201.pagination .page {
202 padding: 0 4px;
203}
204
205.mdl-button .material-icons {
206 vertical-align: middle;
207}
208
209[data-dyndialog-href] {
210 cursor: pointer;
211}
212
213.mdl-dialog__actions .mdl-button.mdl-button--icon {
214 height: 32px!important;
215 margin-top: 2px;
216}
217
218
219.mdl-layout__drawer>span.mdl-layout-title {
220 line-height: 20px!important;
221 margin-top: 22px;
222}
223
224body.dark-background header, body.dark-background header .material-icons {
225 color: white!important;
226}
227
228.mdl-layout__drawer .logo {
229 max-height: 32px;
230}
231
232option:disabled {
233 color: graytext!important;
234}
235
236.subtitle {
237 display: inline-block;
238 padding-top: 8px;
239 padding-left: 40px;
240 padding-right: 40px;
241}
242
243.help-btn--top-right {
244 float: right;
245 margin: 16px 0;
246}
247
248.help-btn--top-right.help-btn--top-right-margin {
249 margin: 16px;
250}
251
252.mdl-button .material-icons, .mdl-button span {
253 vertical-align: middle;
254}
255
256/* Multiselect custom element stylings */
257.mdl-custom-multiselect__item {
258 line-height: normal;
259 height: auto;
260 padding: 0;
261}
262
263.mdl-custom-multiselect__item .mdl-checkbox {
264 height: auto;
265 padding: 4px 16px 4px 40px;
266}
267
268.mdl-custom-multiselect__item .mdl-checkbox__focus-helper, .mdl-custom-multiselect__item .mdl-checkbox__box-outline {
269 top: Calc(3px + 4px);
270 left: 16px;
271}
272
273.mdl-custom-multiselect__item {
274 line-height: normal;
275 height: auto;
276 padding: 0;
277}
278
279.mdl-custom-multiselect__item, .mdl-custom-multiselect__item .mdl-checkbox {
280 cursor: pointer!important;
281}
282
283.mdl-custom-selectfield__select {
284 user-select: none;
285}
286
287/* mdlext-selectfield color fix */
288.mdlext-selectfield__label::after {
289 background-color: var(--material-green);
290}
291
292.mdlext-selectfield.is-focused .mdlext-selectfield__label {
293 color: var(--material-green)!important;
294}
295
296/* Date-picker polyfill fixes */
297dialog {
298 z-index: 10;
299}
300
301/* Limit change */
302.limit-change-container {
303 margin: 4px 0;
304 padding: 4px 0 4px 8px;
305 border-left: 2px solid #212121;
306}
307
308/* Left actions above table */
309.left-actions {
310 position: sticky;
311 z-index: 10;
312 background: white;
313 top: 0;
314 padding: 8px 0;
315 border-top: 1px solid rgba(0,0,0,.12);
316 border-bottom: 1px solid rgba(0,0,0,.12);
317}
318
319.highlighted {
320 font-weight: 500;
321}
322
323@media (max-width: 700px) {
324 .main {
325 width: Calc(100% - 40px);
326 }
327}
328
329@media screen and (max-width: 1024px) {
330 .mdl-layout__drawer>span.mdl-layout-title {
331 margin-top: 18px;
332 }
333
334 .subtitle {
335 padding-left: 16px;
336 padding-right: 16px;
337 }
338}