Template:Striped table.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 2: Line 2:
border: 2px solid #bbbbbb;
border: 2px solid #bbbbbb;
}
}
.striped-table > .bodyRow:nth-of-type(2n + 1) {
.headerRow {background-color: #f5f5f5;}
.striped-table .bodyRow:nth-of-type(2n + 2) {
background-color: #f5f5f5;
background-color: #f5f5f5;
}
}
.table-title {
 
font-size: 1.1rem;
}
.headerRow {
.headerRow {
text-align: center;
text-align: center;
Line 13: Line 12:
.headerRow th {
.headerRow th {
font-size: 1rem;
font-size: 1rem;
}
.headerRow .table-title {
font-size: 1.1rem;
border-bottom: 1px solid #a2a9b1;
}
}
.bodyRow td {
.bodyRow td {
Line 26: Line 29:


/* Darkmode */
/* Darkmode */
html.skin-citizen-dark .striped-table > .bodyRow:nth-of-type(2n + 1) {
html.skin-citizen-dark .striped-table .bodyRow:nth-of-type(2n + 1) {
background-color: #262626;
background-color: #262626;
}
}
html.skin-citizen-dark .striped-table > .bodyRow:nth-of-type(2n + 2) {
html.skin-citizen-dark .striped-table .bodyRow:nth-of-type(2n + 2) {
background-color: #343434
background-color: #343434
}
}

Revision as of 10:42, 30 September 2022

.striped-table {
	border: 2px solid #bbbbbb;
}
.headerRow {background-color: #f5f5f5;}
.striped-table .bodyRow:nth-of-type(2n + 2) {
	background-color: #f5f5f5;
}

.headerRow {
	text-align: center;
}
.headerRow th {
	font-size: 1rem;
}
.headerRow .table-title {
	font-size: 1.1rem;
	border-bottom: 1px solid #a2a9b1;
}
.bodyRow td {
	border-top: 1px solid #a2a9b1;
	padding: 5px;
}

.linkID {
	padding: 0 10px 0 5px;
	font-weight: bold;
}


/* Darkmode */
html.skin-citizen-dark .striped-table .bodyRow:nth-of-type(2n + 1) {
	background-color: #262626;
}
html.skin-citizen-dark .striped-table .bodyRow:nth-of-type(2n + 2) {
	background-color: #343434
}