Skip to content

Commit 799ea35

Browse files
committed
glossary style updates
1 parent ed2ad92 commit 799ea35

2 files changed

Lines changed: 36 additions & 9 deletions

File tree

src/html-model-glossary/fragments/header.xsl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
<meta name="author" content="Publications Office of the European Union"/>
2222
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2323

24+
<!-- Google Fonts - Roboto -->
25+
<link rel="preconnect" href="https://fonts.googleapis.com"/>
26+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/>
27+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&amp;display=swap" rel="stylesheet"/>
28+
2429
<!-- Bootstrap 5 CSS -->
2530
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"/>
2631

src/static/css/glossary.css

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
body {
1313
background-color: var(--epo-gray-light);
14-
font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
14+
font-family: Roboto, sans-serif;
1515
color: var(--epo-text);
1616
font-size: 1rem;
1717
}
@@ -137,7 +137,7 @@ table.display {
137137
margin-top: 20px;
138138
margin-left: auto;
139139
margin-right: auto;
140-
width: 100% !important;
140+
width: 115%;
141141
border: 1px solid var(--epo-gray-border) !important;
142142
border-radius: 6px;
143143
overflow: hidden;
@@ -150,17 +150,16 @@ table.display th {
150150
background-color: var(--epo-main);
151151
color: #fbfbfb;
152152
border-bottom: 1px solid var(--epo-gray-border) !important;
153-
154-
border-right: none !important;
155-
}
156-
157-
table.display th {
158-
border-color: var(--epo-gray-border) !important;
159-
border-bottom: 1px solid var(--epo-gray-border) !important;
160153
border-right: none !important;
161154
word-wrap: break-word;
162155
overflow-wrap: break-word;
163156
word-break: break-word;
157+
text-align: left !important;
158+
}
159+
160+
/* Override Bootstrap text-center class on table headers */
161+
table.display thead.text-center th {
162+
text-align: left !important;
164163
}
165164

166165
table.display td {
@@ -171,6 +170,7 @@ table.display td {
171170
overflow-wrap: break-word;
172171
word-break: break-all;
173172
hyphens: auto;
173+
text-align: left !important;
174174
}
175175

176176
/* Enforce width on definition columns */
@@ -198,6 +198,28 @@ table.display td:nth-child(3) {
198198
width: 35% !important;
199199
}
200200

201+
/* For 3rd table (Predicates) - Column widths: 20% (Predicate name), 50% (Definition), 30% (Domain/Range) */
202+
/* Using DataTables ID for higher specificity to override inline styles */
203+
#DataTables_Table_2 th:nth-child(1),
204+
#DataTables_Table_2 td:nth-child(1) {
205+
width: 20% !important;
206+
max-width: none !important;
207+
min-width: 0 !important;
208+
}
209+
210+
#DataTables_Table_2 th:nth-child(2),
211+
#DataTables_Table_2 td:nth-child(2) {
212+
width: 50% !important;
213+
max-width: none !important;
214+
min-width: 0 !important;
215+
}
216+
217+
#DataTables_Table_2 th:nth-child(3),
218+
#DataTables_Table_2 td:nth-child(3) {
219+
width: 30% !important;
220+
max-width: none !important;
221+
min-width: 0 !important;
222+
}
201223

202224
/* Disable DataTables box-shadow on striped rows */
203225
table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * {

0 commit comments

Comments
 (0)