Skip to content

Commit 3ed877b

Browse files
committed
Convert all raw CSS to idiomatic LESS
1 parent b4c203c commit 3ed877b

File tree

2 files changed

+375
-334
lines changed

2 files changed

+375
-334
lines changed

custom_components/maint/frontend/panel.css

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ h1 {
2323
.page-header h1 {
2424
margin: 0;
2525
}
26+
.page-header button {
27+
margin-left: auto;
28+
align-self: center;
29+
}
2630
.title-block {
2731
display: flex;
2832
flex-direction: column;
2933
gap: 6px;
3034
flex: 1;
3135
min-width: 240px;
3236
}
33-
.page-header button {
34-
margin-left: auto;
35-
align-self: center;
36-
}
3737
.subtext {
3838
color: var(--secondary-text-color);
3939
margin-bottom: 24px;
@@ -63,9 +63,6 @@ section {
6363
margin: 0;
6464
flex: 1;
6565
}
66-
.tasks-create-button {
67-
margin-left: auto;
68-
}
6966
.tasks-section-divider {
7067
height: 1px;
7168
width: 100%;
@@ -79,6 +76,9 @@ section {
7976
margin: 0;
8077
padding: 14px 20px;
8178
}
79+
.tasks-create-button {
80+
margin-left: auto;
81+
}
8282
select,
8383
input,
8484
textarea,
@@ -160,6 +160,7 @@ maint-task-row + maint-task-row .task-row {
160160
font-weight: 700;
161161
color: var(--text-primary-color);
162162
line-height: 1;
163+
background: var(--primary-color);
163164
}
164165
.pill-due {
165166
background: var(--warning-color);
@@ -269,6 +270,9 @@ maint-task-row + maint-task-row .task-row {
269270
flex-direction: column;
270271
gap: 10px;
271272
}
273+
.task-form > div.form-row {
274+
width: 100%;
275+
}
272276
label {
273277
display: block;
274278
margin-bottom: 0;
@@ -281,9 +285,6 @@ label {
281285
font-weight: 600;
282286
margin-bottom: 6px;
283287
}
284-
.task-form > div.form-row {
285-
width: 100%;
286-
}
287288
.grid-two-up {
288289
display: grid;
289290
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
@@ -458,13 +459,13 @@ label {
458459
.optional-config[open] summary::before {
459460
content: "▼";
460461
}
461-
.optional-body {
462+
.optional-config .optional-body {
462463
margin-top: 12px;
463464
display: flex;
464465
flex-direction: column;
465466
gap: 12px;
466467
}
467-
.optional-body label {
468+
.optional-config .optional-body label {
468469
display: block;
469470
}
470471
.help-text {
@@ -530,8 +531,8 @@ h2 {
530531
}
531532
.modal {
532533
background: var(--card-background-color);
533-
border: 1px solid var(--divider-color);
534534
border-radius: 12px;
535+
border: 1px solid var(--divider-color);
535536
padding: 20px;
536537
max-width: 420px;
537538
width: calc(100% - 32px);
@@ -549,19 +550,27 @@ h2 {
549550
margin: 0 0 16px;
550551
color: var(--secondary-text-color);
551552
}
552-
.modal-actions {
553+
.modal .modal-actions {
553554
display: flex;
554555
justify-content: flex-end;
555556
gap: 8px;
556557
}
557558
.button-secondary {
558-
background: none;
559+
background-color: var(--card-background-color);
559560
color: var(--primary-text-color);
561+
border: none;
562+
border-radius: 8px;
563+
padding: 10px 16px;
564+
cursor: pointer;
560565
border: 1px solid var(--divider-color);
561566
}
562567
.button-danger {
563-
background: var(--error-color);
568+
background-color: var(--error-color);
564569
color: var(--text-primary-color);
570+
border: none;
571+
border-radius: 8px;
572+
padding: 10px 16px;
573+
cursor: pointer;
565574
}
566575
@media (max-width: 720px) {
567576
:host {

0 commit comments

Comments
 (0)