Skip to content

Commit 00063f2

Browse files
authored
Merge pull request #13 from datosgobes/develop
Mejorados SHACL NTI-RISP (2013)
2 parents 5416b49 + 33a3424 commit 00063f2

17 files changed

+448
-291
lines changed

docs/assets/css/style.css

Lines changed: 98 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:root {
2-
--primary-color: #00a99d;
2+
--primary-color: #DCE0E7;
33
--secondary-color: #c9e2df;
44
--hover-color: #45a049;
55
--button-color: #4CAF50;
@@ -14,6 +14,12 @@
1414
--red-aporta-light: #f5d0d6;
1515
--blue-aporta: #154481;
1616

17+
/* Table colors */
18+
--table-header-bg: #17305F;
19+
--table-first-column-bg: #DCE0E7;
20+
--table-row-odd-bg: #E8EAEF;
21+
--table-row-even-bg: #F3F5F7;
22+
1723
/* Admonition Icons */
1824
--md-admonition-icon--must: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="red" d="M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm0 120c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32s32-14.3 32-32v-96c0-17.7-14.3-32-32-32zm0 240c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"/></svg>');
1925
--md-admonition-icon--should: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path fill="green" d="M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM226.1 338.6L348.2 216.4c6.2-6.2 6.2-16.4 0-22.6l-22.6-22.6c-6.2-6.2-16.4-6.2-22.6 0L216 273.4l-35-35c-6.2-6.2-16.4-6.2-22.6 0l-22.6 22.6c-6.2 6.2-6.2 16.4 0 22.6l78.6 78.6c6.2 6.2 16.4 6.2 22.7 0z"/></svg>');
@@ -53,68 +59,66 @@
5359
text-align: justify;
5460
}
5561

56-
td {
57-
padding: 0.5em;
58-
text-align: left;
62+
/* Table base styles - sin bordes */
63+
.md-typeset table:not([class]) {
64+
border: none !important;
65+
border-collapse: collapse;
5966
}
6067

61-
td:first-child:not(.code) {
62-
border-bottom: 2px solid var(--primary-color);
63-
border-left: 2px solid var(--primary-color);
64-
background-color: var(--secondary-color) !important;
68+
.md-typeset table:not([class]) td,
69+
.md-typeset table:not([class]) th {
70+
border: none !important;
71+
padding: 0.6em 0.8em;
6572
}
6673

67-
td:not(:first-child):not(.code):not(.linenos) {
68-
border-bottom: 2px solid var(--primary-color);
69-
border-right: 2px solid var(--primary-color);
74+
td {
75+
padding: 0.6em 0.8em;
76+
text-align: left;
7077
}
7178

72-
/* Reglas base para celdas */
79+
/* Table header - color #17305F */
80+
th {
81+
background-color: var(--table-header-bg) !important;
82+
color: var(--header-text-color);
83+
text-align: center !important;
84+
border: none !important;
85+
}
86+
87+
/* Primera columna completa - color #DCE0E7 */
7388
td:first-child:not(.code):not(.linenos) {
74-
border-bottom: 2px solid var(--primary-color);
75-
border-left: 2px solid var(--primary-color);
76-
background-color: var(--secondary-color) !important;
89+
background-color: var(--table-first-column-bg) !important;
7790
}
7891

92+
/* Filas alternadas - solo para celdas que NO son primera columna */
7993
td:not(:first-child):not(.code):not(.linenos) {
80-
border-bottom: 2px solid var(--primary-color);
81-
border-right: 2px solid var(--primary-color);
94+
/* Las filas pares (2, 4, 6...) tienen color #E8EAEF */
95+
background-color: var(--table-row-odd-bg);
8296
}
8397

84-
/* Mantener el borde izquierdo para todas las primeras celdas */
85-
td:first-child {
86-
border-left: 2px solid var(--primary-color);
98+
tr:nth-child(even) td:not(:first-child):not(.code):not(.linenos) {
99+
/* Las filas impares (3, 5, 7...) tienen color #F3F5F7 */
100+
background-color: var(--table-row-even-bg);
87101
}
88102

89-
/* Sin borde inferior para celdas de código y números de línea */
103+
/* Sin borde para celdas de código y números de línea */
90104
td.code, td.linenos {
91-
border-bottom: none !important;
92-
}
93-
94-
/* Mantén el borde izquierdo para la primera celda */
95-
td:first-child {
96-
border-left: 2px solid var(--primary-color);
97-
}
98-
99-
/* Add border to first cell in each row for consistent left border */
100-
td:first-child {
101-
border-left: 2px solid var(--primary-color);
102-
}
103-
104-
td:nth-child(2n+1) {
105-
background-color: var(--alternate-bg-color);
105+
border: none !important;
106106
}
107107

108108
.md-typeset abbr {
109109
border-bottom: 0.05rem dotted #00000036;
110110
cursor: help;
111111
text-decoration: none;
112-
}
112+
}
113113

114114
.md-typeset table:not([class]) tbody tr:hover {
115115
background-color: var(--alternate-table-color--light);
116116
}
117117

118+
.md-typeset table:not([class]) tbody tr:hover td:first-child {
119+
background-color: var(--table-first-column-bg) !important;
120+
}
121+
118122
.js .md-typeset .tabbed-labels:before {
119123
background: #00a99d;
120124
bottom: 0;
@@ -188,12 +192,6 @@ table.codehilitetable {
188192
}
189193
}
190194

191-
th {
192-
background-color: var(--header-bg-color);
193-
text-align: center !important;
194-
color: var(--header-text-color);
195-
}
196-
197195
a {
198196
color: var(--link-color);
199197
text-decoration: none;
@@ -205,6 +203,63 @@ a:hover, a:focus {
205203
text-decoration: underline;
206204
}
207205

206+
/* Responsive: adjust first column width on smaller screens (only for cells with code) */
207+
@media screen and (max-width: 768px) {
208+
th:first-child:has(code),
209+
td:first-child:has(code) {
210+
width: 150px;
211+
min-width: 150px;
212+
max-width: 150px;
213+
}
214+
}
215+
216+
@media screen and (max-width: 480px) {
217+
th:first-child:has(code),
218+
td:first-child:has(code) {
219+
width: 120px;
220+
min-width: 120px;
221+
max-width: 120px;
222+
font-size: 0.85em;
223+
}
224+
}
225+
226+
/* Conventions */
227+
228+
/* First column: auto width by default (allows wrapping for text) */
229+
th:first-child,
230+
td:first-child {
231+
min-width: fit-content;
232+
}
233+
234+
/* First column with code: fixed width and no wrapping */
235+
th:first-child:has(code),
236+
td:first-child:has(code) {
237+
white-space: nowrap;
238+
width: 200px;
239+
min-width: 200px;
240+
max-width: 200px;
241+
}
242+
243+
/* Responsive: adjust first column width on smaller screens (only for cells with code) */
244+
@media screen and (max-width: 768px) {
245+
th:first-child:has(code),
246+
td:first-child:has(code) {
247+
width: 150px;
248+
min-width: 150px;
249+
max-width: 150px;
250+
}
251+
}
252+
253+
@media screen and (max-width: 480px) {
254+
th:first-child:has(code),
255+
td:first-child:has(code) {
256+
width: 120px;
257+
min-width: 120px;
258+
max-width: 120px;
259+
font-size: 0.85em;
260+
}
261+
}
262+
208263
/* Conventions */
209264
.md-typeset .must > .admonition-title::after,
210265
.md-typeset .should > .admonition-title::after,

0 commit comments

Comments
 (0)