Skip to content

Commit 39f5823

Browse files
authored
Merge pull request #6 from DarrianCZE/pirep-cards
Pirep cards
2 parents 7c38b41 + 5bead0a commit 39f5823

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ Download here: https://github.com/DarrianCZE/vamsys-v5-custom-css/releases
2929
- 1.2
3030
- Fixed Border color in the Flight Map filtering section in the Dark Mode - credits to Lukas for helping!
3131
- Fixed Text color "Start typing to search..." in the Flight Map filtering - credits to Lukas for helping!
32+
- 1.3
33+
- Early implementation of the PIREP cards styling
34+
- Alert - Danger styling

SW_Virtual_CSS_vAMSYS_v5.css

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
/*
22
SW Virtual CSS Config for vAMSYS v5
3-
Version: 1.2
3+
Version: 1.3
44
Author: Jan Podlipsky - jan.podlipsky@sw-virtual.eu
55
*/
66

77
:root{ /* Variable section of the CSS, edit your colors only here: */
88
--primary-rgb: 0,69,138; /* Primary VA Color in RGB format. Should be darker. */
99
--secondary-rgb: 241,144,1; /* Secondary VA Color in RGB format. Should be brighter. */
1010
--primary-darkmode-color: 255,255,255; /* Primary Dark mode color. In this case, it's white, but theoretically it can be any very bright color. */
11+
--danger-rgb: 241, 87, 118; /* Warning color, I recommend some shade of red. */
1112
}
1213

1314
/* Light mode section */
@@ -44,6 +45,11 @@ Author: Jan Podlipsky - jan.podlipsky@sw-virtual.eu
4445
background-color: rgba(var(--success)) !important;
4546
}
4647

48+
.alert.alert-danger {
49+
color: rgb(255,255,255,0.9) !important;
50+
background-color: rgba(var(--secondary-rgb)) !important;
51+
}
52+
4753
.alert.alert-warning {
4854
color: rgb(255,255,255,0.9) !important;
4955
}
@@ -204,6 +210,24 @@ Author: Jan Podlipsky - jan.podlipsky@sw-virtual.eu
204210
--tw-ring-color: rgb(var(--secondary-rgb)) !important
205211
}
206212

213+
.card.card-primary {
214+
background-color: rgb(var(--secondary-rgb)) !important;
215+
border-color: rgb(var(--secondary-rgb)) !important;
216+
--tw-ring-color: rgb(var(--secondary-rgb)) !important;
217+
}
218+
219+
.card.card-warning {
220+
background-color: rgb(var(--danger-rgb))!important;
221+
border-color: rgb(var(--danger-rgb)) !important;
222+
--tw-ring-color: rgb(var(--danger-rgb)) !important;
223+
}
224+
225+
.card.card-danger {
226+
background-color: rgb(var(--danger-rgb))!important;
227+
border-color: rgb(var(--danger-rgb)) !important;
228+
--tw-ring-color: rgb(var(--danger-rgb)) !important;
229+
}
230+
207231
/* Dark Mode section */
208232
:root:is(.dark) {
209233
--primary: var(--primary-darkmode-color) !important;
@@ -500,4 +524,22 @@ Author: Jan Podlipsky - jan.podlipsky@sw-virtual.eu
500524
}
501525
.choices__input:is(.dark *)::placeholder {
502526
color: var(--tw-body-color);
503-
}
527+
}
528+
529+
.card.card-primary:is(.dark *) {
530+
background-color: rgb(var(--secondary-rgb), 0.8) !important;
531+
border-color: rgb(var(--secondary-rgb), 0.8) !important;
532+
--tw-ring-color: rgb(var(--secondary-rgb), 0.8) !important;
533+
}
534+
535+
.card.card-warning:is(.dark *) {
536+
background-color: rgb(var(--danger-rgb), 0.8)!important;
537+
border-color: rgb(var(--danger-rgb), 0.8) !important;
538+
--tw-ring-color: rgb(var(--danger-rgb), 0.8) !important;
539+
}
540+
541+
.card.card-danger:is(.dark *) {
542+
background-color: rgb(var(--danger-rgb), 0.8)!important;
543+
border-color: rgb(var(--danger-rgb), 0.8) !important;
544+
--tw-ring-color: rgb(var(--danger-rgb)), 0.8 !important;
545+
}

0 commit comments

Comments
 (0)