1
0
mirror of https://github.com/vrana/adminer.git synced 2025-09-02 19:02:36 +02:00

Use CSS to highlight odd rows

This commit is contained in:
Jakub Vrana
2025-02-21 21:27:41 +01:00
parent db75be9ba7
commit b29767dcfb
28 changed files with 53 additions and 72 deletions

File diff suppressed because one or more lines are too long

View File

@@ -175,8 +175,8 @@
background: var(--color-darkPurple);
}
.odd th,
.odd td {
.odds tbody tr:nth-child(2n) th,
.odds tbody tr:nth-child(2n) td {
background: var(--color-darkDraculaVSCode);
}

View File

@@ -133,11 +133,11 @@ th {
background:white;
}
tr.odd td {
.odds tbody tr:nth-child(2n) td {
background:#fcfaf5;
}
#content tbody tr.checked td, tr.checked.odd td {
#content tbody tr.checked td, .odds tbody tr.checked:nth-child(2n) td {
background:#fbe2e2;
color:red;
}

View File

@@ -347,11 +347,11 @@ td{
border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.odd th{
.odds tbody tr:nth-child(2n) th{
background: #222;
}
.odd td{
.odds tbody tr:nth-child(2n) td{
background: #000;
}

View File

@@ -72,7 +72,7 @@ tr:first-child th {padding-right: 30px;}
td:first-child, th:first-child {border-left-width: 0;}
thead td, thead th {background-color: #DFDFDF; border: none; border-bottom: 1px #BBB solid;}
thead tr:hover td, thead tr:hover th {background-color: #DDD !important;}
tr:nth-child(2n) td, tr:nth-child(2n) th, .odd td, .odd th, tr.odd {background-color: #F1F1F1;}
tr:nth-child(2n) td, tr:nth-child(2n) th, .odds tbody tr:nth-child(2n) td, .odds tbody tr:nth-child(2n) th, .odds tbody tr:nth-child(2n) {background-color: #F1F1F1;}
tr:hover td, tr:hover th {background-color: #BCD;}
fieldset {display: inline; vertical-align: top; padding: 2px 12px; margin: 25px 12px 12px 0; border: none; background-color: #F1F1F1; border: 1px solid #E3E3E3; position: relative;}
fieldset, x:-moz-any-link {padding-top: 4px;}

View File

@@ -377,11 +377,11 @@ td{
border-bottom: 1px solid #777;
}
.odd th{
.odds tbody tr:nth-child(2n) th{
background: #33394d;
}
.odd td{
.odds tbody tr:nth-child(2n) td{
background: #33394d;
}

View File

@@ -378,7 +378,7 @@ thead td abbr, thead td sup, thead th acronym, thead th sup {
color: #cdf
}
tr.odd td {
.odds tbody tr:nth-child(2n) td {
background: #fcfaf5
}
@@ -735,7 +735,7 @@ table tbody input ~ a[href*="&edit="][href*="&where"] {
color: #000
}
#content tbody tr.checked td, tr.checked.odd td {
#content tbody tr.checked td, .odds tbody tr.checked:nth-child(2n) td {
background: #fbe2e2;
color: red
}

View File

@@ -153,7 +153,7 @@ th, td {
vertical-align: top;
}
.odd th, .odd td {
.odds tbody tr:nth-child(2n) th, .odds tbody tr:nth-child(2n) td {
background: #FCFAF5;
}

View File

@@ -132,11 +132,11 @@ th {
background:white;
}
tr.odd td {
.odds tbody tr:nth-child(2n) td {
background:#fcfaf5;
}
#content tbody tr.checked td, tr.checked.odd td {
#content tbody tr.checked td, .odds tbody tr:nth-child(2n).checked td {
background:#fbe2e2;
color:red;
}

View File

@@ -187,7 +187,7 @@ td.nowrap {
.binary {
color: red;
}
.odd td {
.odds tbody tr:nth-child(2n) td {
background: transparent;
}
.js .checkable .checked td,

View File

@@ -169,7 +169,7 @@ th {
background:white;
}
tr.odd td {
.odds tbody tr:nth-child(2n) td {
background:#fcfaf5;
}
@@ -181,7 +181,7 @@ tr.odd td {
background: #f2f2f2;
}
#content tbody tr.checked td, tr.checked.odd td {
#content tbody tr.checked td, .odds tbody tr:nth-child(2n).checked td {
background:#fbe2e2;
color:red;
}
@@ -748,7 +748,7 @@ input[type=submit] {
label { margin: 0 8px;}
thead td, thead th{color:#fff;}
#content tbody tr.checked td, tr.checked.odd td {
#content tbody .odds tbody tr:nth-child(2n).checked td, .odds tbody tr:nth-child(2n).checked td {
background: #c8edff;
color: #03A9F4;
}

View File

@@ -65,7 +65,7 @@ thead td, thead th {
border-bottom: 1px #DDD solid; }
.nowrap tr:nth-child(2n) td, .nowrap tr:nth-child(2n) th {
background-color: #DEF; }
.odd td, .odd th {
.odds tbody tr:nth-child(2n) td, .odds tbody tr:nth-child(2n) th {
background-color: #DEF; } /* IEx */
tr.selected td, tr.selected th {
background-color: #ABC !important; }

View File

@@ -136,8 +136,8 @@ table.checkable tbody tr:hover th {
background: #bfb008;
}
.odd th,
.odd td {
.odds tbody tr:nth-child(2n) th,
.odds tbody tr:nth-child(2n) td {
background: #f5f5f5;
}

View File

@@ -58,7 +58,7 @@ table{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-ri
td,th{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;border-color:-moz-use-text-color #999 #999 -moz-use-text-color;border-image:none;border-style:none solid solid none;border-width:0 1px 1px 0;padding:.2em .3em}
thead td,thead th{background:#eee;background:-moz-linear-gradient(top,#eee 0,#ccc 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#eee),color-stop(100%,#ccc));background:-webkit-linear-gradient(top,#eee 0,#ccc 100%);background:-o-linear-gradient(top,#eee 0,#ccc 100%);background:-ms-linear-gradient(top,#eee 0,#ccc 100%);background:linear-gradient(to bottom,#eee 0,#ccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee',endColorstr='#cccccc',GradientType=0)}
td{background-color:#f4f8ff}
.odd td{background-color:#fff}
.odds tbody tr:nth-child(2n) td{background-color:#fff}
tbody tr:hover td,tbody tr:hover th{background-color:#FFE}
p.tabs{margin:0 20px 0 0}
.jush-sql{background:0}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long