Skip to content

Commit 869dd43

Browse files
committed
added styles file
1 parent 86d4d98 commit 869dd43

2 files changed

Lines changed: 62 additions & 63 deletions

File tree

README.md

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -7,69 +7,8 @@ language: de
77
version: 2026.1
88
icon: https://tu-freiberg.de/sites/default/files/styles/crop_landscape_1300/public/2023-08/Bild2.png
99
10-
link: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
11-
12-
@style
13-
:root {
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;
20-
}
21-
22-
/* Base table styling */
23-
table {
24-
border-collapse: collapse;
25-
width: 100%;
26-
font-family: sans-serif;
27-
}
28-
29-
thead th {
30-
background-color: var(--tubaf-blue-dark);
31-
color: white;
32-
padding: 12px;
33-
text-align: left;
34-
border-bottom: 3px solid var(--tubaf-blue-uni);
35-
}
36-
37-
/* Row grouping logic (Every 2 rows) */
38-
tbody tr:nth-child(4n+1),
39-
tbody tr:nth-child(4n+2) {
40-
background-color: var(--tubaf-grey-light);
41-
}
42-
43-
/* The vertical "Join" indicator */
44-
tbody tr td:first-child {
45-
border-left: 5px solid transparent;
46-
}
47-
tbody tr:nth-child(2n+1) td:first-child,
48-
tbody tr:nth-child(2n) td:first-child {
49-
border-left-color: var(--tubaf-blue-uni);
50-
}
51-
52-
/* Icon Classes using UTF-8 */
53-
.icon::before {
54-
margin-right: 8px;
55-
font-style: normal;
56-
display: inline-block;
57-
color: var(--tubaf-blue-dark);
58-
}
59-
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);
71-
}
72-
@end
10+
link: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css
11+
link: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/refs/heads/master/css/styles.css
7312
7413
-->
7514

css/styles.css

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
:root {
2+
--tubaf-blue-dark: #00497f;
3+
--tubaf-blue-uni: #0069b4;
4+
--tubaf-grey-light: #f0f2f5;
5+
--tubaf-silver: #adb5bd;
6+
--tubaf-holiday-bg: #fff5f5; /* Light red for holidays */
7+
--tubaf-holiday-text: #b02a37;
8+
}
9+
10+
/* Base table styling */
11+
table {
12+
border-collapse: collapse;
13+
width: 100%;
14+
font-family: sans-serif;
15+
}
16+
17+
thead th {
18+
background-color: var(--tubaf-blue-dark);
19+
color: white;
20+
padding: 12px;
21+
text-align: left;
22+
border-bottom: 3px solid var(--tubaf-blue-uni);
23+
}
24+
25+
/* Row grouping logic (Every 2 rows) */
26+
tbody tr:nth-child(4n+1),
27+
tbody tr:nth-child(4n+2) {
28+
background-color: var(--tubaf-grey-light);
29+
}
30+
31+
/* The vertical "Join" indicator */
32+
tbody tr td:first-child {
33+
border-left: 5px solid transparent;
34+
}
35+
tbody tr:nth-child(2n+1) td:first-child,
36+
tbody tr:nth-child(2n) td:first-child {
37+
border-left-color: var(--tubaf-blue-uni);
38+
}
39+
40+
/* Icon Classes using UTF-8 */
41+
.icon::before {
42+
margin-right: 8px;
43+
font-style: normal;
44+
display: inline-block;
45+
color: var(--tubaf-blue-dark);
46+
}
47+
48+
.icon-easter::before { content: "🥚 "; } /* Egg */
49+
.icon-mayday::before { content: "🌿 "; } /* Leaf/Maypole vibe */
50+
.icon-pentecost::before { content: "🕊️ "; } /* Dove (Pfingsten/Pentecost) */
51+
.icon-exercise::before { content: "✍️ "; } /* Writing hand */
52+
.icon-joined::before { content: "🔗 "; } /* Link for conjoined */
53+
54+
/* 1. Target the TD or TR that contains a holiday class */
55+
/* This colors the entire row if any cell has a holiday span */
56+
tbody tr:has(.holiday) {
57+
background-color: var(--tubaf-holiday-bg) !important;
58+
color: var(--tubaf-holiday-text);
59+
}
60+

0 commit comments

Comments
 (0)