Шаблон:FunnyTable.css: различия между версиями
Перейти к навигации
Перейти к поиску
Maleyvich (обсуждение | вклад) Нет описания правки |
Maleyvich (обсуждение | вклад) Нет описания правки |
||
| Строка 4: | Строка 4: | ||
width: 100%; | width: 100%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
margin-bottom: | margin-bottom: 30px; | ||
border: 1px solid #a2a9b1; | |||
} | } | ||
.wrap table th { | |||
padding: 10px; | |||
font-size: 1.2em; | |||
font-weight: bold; | |||
color: #000; | |||
text-align: center; | |||
} | |||
.table-elementary th { background-color: #d1d1ff !important; } | |||
.table-engineering th { background-color: #ffe0b3 !important; } | |||
.table-medicine th { background-color: #e6ffec !important; } | |||
.table-science th { background-color: #e0f7fa !important; } | |||
.table-security th { background-color: #ffcccc !important; } | |||
.table-antagonists th { background-color: #333333 !important; color: #ffffff !important; } | |||
.wrap table td { | .wrap table td { | ||
text-align: center !important; | text-align: center !important; | ||
vertical-align: top !important; | vertical-align: top !important; | ||
padding: | padding: 15px 5px !important; | ||
width: 25%; | width: 25%; | ||
border: 1px solid # | border: 1px solid #f0f0f0; | ||
} | } | ||
| Строка 18: | Строка 34: | ||
display: block !important; | display: block !important; | ||
margin: 0 auto 8px auto !important; | margin: 0 auto 8px auto !important; | ||
width: | width: 48px !important; | ||
height: | height: 48px !important; | ||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
| Строка 29: | Строка 45: | ||
color: #0066cc; | color: #0066cc; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.wrap table td a:hover { | .wrap table td a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
/* Todo: use css vars */ | /* Todo: use css vars */ | ||
Версия от 20:15, 23 декабря 2025
/* Todo: use some unique class, not "wrap" */
.wrap table {
width: 100%;
border-collapse: collapse;
margin-bottom: 30px;
border: 1px solid #a2a9b1;
}
.wrap table th {
padding: 10px;
font-size: 1.2em;
font-weight: bold;
color: #000;
text-align: center;
}
.table-elementary th { background-color: #d1d1ff !important; }
.table-engineering th { background-color: #ffe0b3 !important; }
.table-medicine th { background-color: #e6ffec !important; }
.table-science th { background-color: #e0f7fa !important; }
.table-security th { background-color: #ffcccc !important; }
.table-antagonists th { background-color: #333333 !important; color: #ffffff !important; }
.wrap table td {
text-align: center !important;
vertical-align: top !important;
padding: 15px 5px !important;
width: 25%;
border: 1px solid #f0f0f0;
}
.wrap table td img {
display: block !important;
margin: 0 auto 8px auto !important;
width: 48px !important;
height: 48px !important;
object-fit: contain;
}
.wrap table td a {
display: block !important;
line-height: 1.2;
font-weight: bold;
color: #0066cc;
text-decoration: none;
}
.wrap table td a:hover {
text-decoration: underline;
}
/* Todo: use css vars */
/*
.table-engineering { background-color: {{ColorPalette|Engineering|Light}}; }
.table-engineering th { background-color: {{ColorPalette|Engineering|Secondary}}; }
.table-medicine { background-color: {{ColorPalette|Medical|Light}}; }
.table-medicine th { background-color: {{ColorPalette|Medical|Secondary}}; }
.table-science { background-color: {{ColorPalette|Science|Light}}; }
.table-science th { background-color: {{ColorPalette|Science|Secondary}}; }
.table-security { background-color: {{ColorPalette|Security|Light}}; }
.table-security th { background-color: {{ColorPalette|Security|Secondary}}; }
.table-civil { background-color: {{ColorPalette|Service|Light}}; }
.table-civil th { background-color: {{ColorPalette|Service|Primary}}; }
.table-civil td { width: 20%; }
.table-antagonists { background-color: {{ColorPalette|Antagonist|Transparent}}; }
.table-antagonists td { width: 20%; }
.table-antagonists th {
background-color: {{ColorPalette|Antagonist|Primary}};
color: {{ColorPalette|Antagonist|Header Text}};
}
.table-other { background-color: {{ColorPalette||Light}}; }
.table-other th { background-color: {{ColorPalette||Secondary}}; }
.table-technical { background-color: {{ColorPalette|Special|Light}}; }
.table-technical th { background-color: {{ColorPalette|Special|Secondary}}; }
*/
.tlp {
display: inline-block;
position: relative;
font-size: 80%;
font-weight: bold;
}
.tlp.tlp-warning { color: red; }
.tlp.tlp-warning:before { content: " ❗"; }
.tlp.tlp-notice { color: black; }
.tlp.tlp-notice:before { content: " ❓"; }
.tlp > span {
position: absolute;
background-color: gold;
color: black;
border-radius: 7px;
box-shadow: 4px 4px 7px -3px grey;
padding: 4px;
min-width: 140px;
top: -10px;
right: 9999px;
opacity: 0;
transition: opacity linear 0.15s;
}
.tlp > span:before {
content: " ";
position: absolute;
top: 50%;
left: -14px;
width: 0;
height: 0;
margin-top: -6px;
border: 8px solid transparent;
border-right-color: gold;
}
.tlp:hover > span {
right: -162px;
opacity: 1;
}
.wrap .hidden-anchor {
display: none;
}
.wrap h1 {
border-bottom: initial;
}