Шаблон:FunnyTable.css: различия между версиями
Перейти к навигации
Перейти к поиску
Maleyvich (обсуждение | вклад) Нет описания правки |
Maleyvich (обсуждение | вклад) Нет описания правки |
||
| Строка 18: | Строка 18: | ||
display: block !important; | display: block !important; | ||
margin: 0 auto 8px auto !important; | margin: 0 auto 8px auto !important; | ||
width: | width: 32px !important; | ||
height: | height: 32px !important; | ||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
Версия от 20:10, 23 декабря 2025
/* Todo: use some unique class, not "wrap" */
.wrap table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
.wrap table td {
text-align: center !important;
vertical-align: top !important;
padding: 12px 5px !important;
width: 25%;
border: 1px solid #ccc;
}
.wrap table td img {
display: block !important;
margin: 0 auto 8px auto !important;
width: 32px !important;
height: 32px !important;
object-fit: contain;
}
.wrap table td a {
display: block !important;
line-height: 1.2;
font-weight: bold;
color: #0066cc;
text-decoration: none;
font-size: 0.95em;
}
.wrap table td a:hover {
text-decoration: underline;
color: #004499;
}
.table-elementary th,
.table-engineering th,
.table-medicine th,
.table-science th,
.table-security th,
.table-civil th,
.table-antagonists th,
.table-other th,
.table-technical th {
background-color: #d1d1ff;
padding: 5px;
font-weight: bold;
}
.table-elementary { background-color: #F5F5FF; }
.table-elementary th { background-color: #BDBDFF; }
/* 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;
}