User:Star0/common.css:修订间差异

来自Rotaeno中文维基
无编辑摘要
无编辑摘要
第1行: 第1行:
.rotable table {
.rotable {
    width: 100%;
    width: 100%;
    border-collapse: collapse;
    border-collapse: collapse;
}
}


.rotable table caption {
.rotable caption {
    font-size: 2em;
    font-size: 2em;
    font-weight: bold;
    font-weight: bold;
第17行: 第17行:
}
}


.rotable table th {
.rotable th {
   background-color: #dfe3f3;
   background-color: #dfe3f3;
   color: #fff;
   color: #fff;
}
}


.rotable table tr:first-child th {
.rotable tr:first-child th {
    background-color: #bac3ed;
    background-color: #bac3ed;
    color: #fff;
    color: #fff;
}
}


.rotable table tbody tr:nth-child(odd) {
.rotable tbody tr:nth-child(odd) {
    background-color: #eee;
    background-color: #eee;
}
}


.rotable table tbody tr:hover {
.rotable tbody tr:hover {
    background-color: #ccc;
    background-color: #ccc;
}
}


.rotable table tbody tr td:first-child {
.rotable tbody tr td:first-child {
    color: #f40;
    color: #f40;
}
}

2022年7月21日 (四) 20:41的版本

.rotable {
    width: 100%;
    border-collapse: collapse;
}

.rotable caption {
    font-size: 2em;
    font-weight: bold;
    margin: 1em 0;
}

.rotable th,
.rotable td {
    border: 1px solid #999;
    text-align: center;
    padding: 20px 0;
}

.rotable th {
   background-color: #dfe3f3;
   color: #fff;
}

.rotable tr:first-child th {
    background-color: #bac3ed;
    color: #fff;
}

.rotable tbody tr:nth-child(odd) {
    background-color: #eee;
}

.rotable tbody tr:hover {
    background-color: #ccc;
}

.rotable tbody tr td:first-child {
    color: #f40;
}