Skip to content

Commit 1383e98

Browse files
committed
working on css
1 parent c549c6b commit 1383e98

1 file changed

Lines changed: 35 additions & 47 deletions

File tree

README.md

Lines changed: 35 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -11,75 +11,63 @@ link: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css
1111
1212
@style
1313
:root {
14-
--tubaf-blue: #00305e;
15-
--tubaf-light-blue: #e6ebf0;
16-
--tubaf-grey: #adb5bd;
17-
--tubaf-text: #333333;
14+
--tubaf-blue-dark: #00497f;
15+
--tubaf-blue-uni: #0069b4;
16+
--tubaf-grey-light: #f0f2f5;
17+
--tubaf-silver: #adb5bd;
18+
--tubaf-holiday-bg: #fff5f5; /* Light red for holidays */
19+
--tubaf-holiday-text: #b02a37;
1820
}
1921
22+
/* Base table styling */
2023
table {
2124
border-collapse: collapse;
2225
width: 100%;
23-
font-family: "Open Sans", Arial, sans-serif;
24-
color: var(--tubaf-text);
25-
margin: 20px 0;
26+
font-family: sans-serif;
2627
}
2728
2829
thead th {
29-
text-align: left;
30-
padding: 14px 12px;
31-
background-color: var(--tubaf-blue);
32-
color: #ffffff;
33-
font-weight: 600;
34-
text-transform: uppercase;
35-
letter-spacing: 0.05em;
36-
border-bottom: 4px solid var(--tubaf-grey);
37-
}
38-
39-
td {
30+
background-color: var(--tubaf-blue-dark);
31+
color: white;
4032
padding: 12px;
41-
border-bottom: 1px solid #dee2e6;
33+
text-align: left;
34+
border-bottom: 3px solid var(--tubaf-blue-uni);
4235
}
4336
44-
tbody tr:nth-child(4n+1),
37+
/* Row grouping logic (Every 2 rows) */
38+
tbody tr:nth-child(4n+1),
4539
tbody tr:nth-child(4n+2) {
46-
background-color: var(--tubaf-light-blue);
40+
background-color: var(--tubaf-grey-light);
4741
}
4842
43+
/* The vertical "Join" indicator */
44+
tbody tr td:first-child {
45+
border-left: 5px solid transparent;
46+
}
4947
tbody tr:nth-child(2n+1) td:first-child,
5048
tbody tr:nth-child(2n) td:first-child {
51-
border-left: 5px solid var(--tubaf-blue);
49+
border-left-color: var(--tubaf-blue-uni);
5250
}
5351
54-
tbody tr:nth-child(2n+1) td:first-child {
55-
font-weight: bold;
56-
color: var(--tubaf-blue);
57-
}
58-
59-
tbody tr:hover {
60-
background-color: #d1d9e0 !important;
61-
}
62-
63-
.icon-event::before {
64-
font-family: "Font Awesome 6 Free";
65-
font-weight: 900;
52+
/* Icon Classes using UTF-8 */
53+
.icon::before {
6654
margin-right: 8px;
67-
color: #00305e;
55+
font-style: normal;
6856
display: inline-block;
69-
width: 20px;
70-
text-align: center;
57+
color: var(--tubaf-blue-dark);
7158
}
7259
73-
.icon-easter::before { content: "\f706"; color: #d4a017; }
74-
.icon-mayday::before { content: "\f06c"; color: #c0392b; }
75-
.icon-pentecost::before { content: "\f6d9"; color: #5dade2; }
76-
.icon-exercise::before { content: "\f303"; }
77-
.icon-joined::before { content: "\f0c1"; font-size: 0.8em; }
78-
79-
.holiday {
80-
color: #777;
81-
font-style: italic;
82-
background-color: #fff5f5 !important;
60+
.icon-easter::before { content: "🥚"; } /* Egg */
61+
.icon-mayday::before { content: "🌿"; } /* Leaf/Maypole vibe */
62+
.icon-pentecost::before { content: "🕊️"; } /* Dove (Pfingsten/Pentecost) */
63+
.icon-exercise::before { content: "✍️"; } /* Writing hand */
64+
.icon-joined::before { content: "🔗"; } /* Link for conjoined */
65+
66+
/* 1. Target the TD or TR that contains a holiday class */
67+
/* This colors the entire row if any cell has a holiday span */
68+
tbody tr:has(.holiday) {
69+
background-color: var(--tubaf-holiday-bg) !important;
70+
color: var(--tubaf-holiday-text);
8371
}
8472
@end
8573

0 commit comments

Comments
 (0)