Шаблон:FunnyTable.css: различия между версиями
Перейти к навигации
Перейти к поиску
Пробуем вайбкодинг |
Отмена версии 31858, сделанной Richard Jones (обсуждение) Метка: отмена |
||
| Строка 1: | Строка 1: | ||
/* Todo: use some unique class, not "wrap" */ | |||
.wrap table { | .wrap table { | ||
width: 100%; | width: 100%; | ||
height: 1px; | height: 1px; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
box-shadow: 0 3px 20px -5px | box-shadow: 0 3px 20px -5px grey; | ||
margin-bottom: 40px; | margin-bottom: 40px; | ||
} | } | ||
| Строка 9: | Строка 11: | ||
.wrap table, | .wrap table, | ||
.wrap th, | .wrap th, | ||
.wrap td { | .wrap td { border: 1px solid grey; } | ||
} | |||
.wrap th { | .wrap th { border-color: black; } | ||
} | |||
.wrap td { | .wrap td { | ||
| Строка 24: | Строка 22: | ||
.wrap td:hover { | .wrap td:hover { | ||
box-shadow: inset 0 2px 20px -5px | box-shadow: inset 0 2px 20px -5px black; | ||
border: 0; | border: 0; | ||
} | } | ||
| Строка 52: | Строка 50: | ||
position: relative; | position: relative; | ||
transition: font-size linear 0.15s; | transition: font-size linear 0.15s; | ||
color: | color: black; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| Строка 61: | Строка 59: | ||
font-size: 1rem; | font-size: 1rem; | ||
position: relative; | position: relative; | ||
color: | color: black; | ||
text-decoration: none; | |||
padding-bottom: 3px; | padding-bottom: 3px; | ||
} | } | ||
| Строка 72: | Строка 71: | ||
bottom: 0; | bottom: 0; | ||
left: 0; | left: 0; | ||
background-color: | background-color: black; | ||
visibility: hidden; | visibility: hidden; | ||
transform: scaleX(0); | transform: scaleX(0); | ||
| Строка 89: | Строка 88: | ||
} | } | ||
.table-elementary { background-color: #C2CCDB; color: #000000 !important; } | |||
.table-elementary th { background-color: #2C5697; color: #FFFFFF !important; } | |||
.table-elementary td a { color: #000000 !important; } | |||
.table- | .table-engineering { background-color: #E5D3BF; color: #000000 !important; } | ||
.table-engineering th { background-color: #9B6834; color: #FFFFFF !important; } | |||
.table-engineering td a { color: #000000 !important; } | |||
} | |||
.table- | |||
} | |||
.table- | |||
.table- | .table-medicine { background-color: #C7D7EA; color: #000000 !important; } | ||
.table-medicine th { background-color: #336EAE; color: #FFFFFF !important; } | |||
} | .table-medicine td a { color: #000000 !important; } | ||
.table- | |||
} | |||
.table- | |||
.table- | .table-science { background-color: #E3D0EB; color: #000000 !important; } | ||
.table-science th { background-color: #9147B1; color: #FFFFFF !important; } | |||
} | .table-science td a { color: #000000 !important; } | ||
.table- | |||
} | |||
.table- | |||
.table- | .table-security { background-color: #EAC3BB; color: #000000 !important; } | ||
.table-security th { background-color: #B03013; color: #FFFFFF !important; } | |||
.table-security td a { color: #000000 !important; } | |||
} | |||
.table-security th { | |||
} | |||
.table-security td a { color: | |||
.table-civil { | .table-civil { background-color: #C8E1CB; color: #000000 !important; } | ||
.table-civil th { background-color: #3A8A45; color: #FFFFFF !important; } | |||
} | .table-civil td a { color: #000000 !important; } | ||
.table-civil th { | |||
} | |||
.table-civil td a { color: | |||
.table-civil td { width: 20%; } | .table-civil td { width: 20%; } | ||
.table-antagonists { | .table-antagonists { background-color: #E5E5E5; color: #000000 !important; } | ||
.table-antagonists th { background-color: #000000; color: #B03013 !important; } | |||
} | .table-antagonists td a { color: #000000 !important; } | ||
.table-antagonists th { | |||
} | |||
.table-antagonists td a { color: | |||
.table-antagonists td { width: 20%; } | .table-antagonists td { width: 20%; } | ||
.table-other { | .table-other { background-color: #D3D2D1; color: #000000 !important; } | ||
.table-other th { background-color: #524F4D; color: #FFFFFF !important; } | |||
} | .table-other td a { color: #000000 !important; } | ||
.table-other th { | |||
} | |||
.table-other td a { color: | |||
.table-technical { | .table-technical { background-color: #EED2C0; color: #000000 !important; } | ||
.table-technical th { background-color: #BD4F11; color: #FFFFFF !important; } | |||
} | .table-technical td a { color: #000000 !important; } | ||
.table-technical th { | |||
} | |||
.table-technical td a { color: | |||
.wrap table { width: 100%; border-collapse: collapse; margin-bottom: 10px; } | |||
.wrap th { padding: 10px; font-size: 1.2em; text-align: center; } | |||
.wrap td { padding: 10px; text-align: center; vertical-align: middle; } | |||
.tlp { | .tlp { | ||
| Строка 190: | Строка 137: | ||
} | } | ||
.tlp.tlp-warning { color: | .tlp.tlp-warning { color: red; } | ||
.tlp.tlp-warning:before { content: " | .tlp.tlp-warning:before { content: " ❗"; } | ||
.tlp.tlp-notice { color: | .tlp.tlp-notice { color: black; } | ||
.tlp.tlp-notice:before { content: " | .tlp.tlp-notice:before { content: " ❓"; } | ||
.tlp > span { | .tlp > span { | ||
position: absolute; | position: absolute; | ||
background-color: | background-color: gold; | ||
color: | color: black; | ||
border-radius: 7px; | border-radius: 7px; | ||
box-shadow: 4px 4px 7px -3px | box-shadow: 4px 4px 7px -3px grey; | ||
padding: 4px; | padding: 4px; | ||
min-width: 140px; | min-width: 140px; | ||
| Строка 211: | Строка 158: | ||
.tlp > span:before { | .tlp > span:before { | ||
content: ""; | content: " "; | ||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
left: -14px; | left: -14px; | ||
width: 0; | |||
height: 0; | |||
margin-top: -6px; | margin-top: -6px; | ||
border: 8px solid transparent; | border: 8px solid transparent; | ||
border-right-color: | border-right-color: gold; | ||
} | } | ||
| Строка 225: | Строка 174: | ||
} | } | ||
.wrap .hidden-anchor { display: none; } | .wrap .hidden-anchor { | ||
.wrap h1 { border-bottom: initial; } | display: none; | ||
} | |||
.wrap h1 { | |||
border-bottom: initial; | |||
} | |||
Версия от 21:51, 6 января 2026
/* Todo: use some unique class, not "wrap" */
.wrap table {
width: 100%;
height: 1px;
border-collapse: collapse;
box-shadow: 0 3px 20px -5px grey;
margin-bottom: 40px;
}
.wrap table,
.wrap th,
.wrap td { border: 1px solid grey; }
.wrap th { border-color: black; }
.wrap td {
padding: 0;
height: 100%;
transition: box-shadow linear 0.15s;
}
.wrap td:hover {
box-shadow: inset 0 2px 20px -5px black;
border: 0;
}
.wrap td > span {
width: 100%;
height: 100%;
}
.wrap td > span > a > img {
max-width: 32px !important;
max-height: 32px !important;
transition: transform linear 0.15s;
margin-top: 6px;
}
.wrap td:hover > span > a > img {
transform: scale(0.9);
}
.wrap td > span > a {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
position: relative;
transition: font-size linear 0.15s;
color: black;
text-decoration: none;
}
.wrap td > span > a::after {
display: block;
content: attr(title);
font-size: 1rem;
position: relative;
color: black;
text-decoration: none;
padding-bottom: 3px;
}
.wrap td > span > a::before {
content: "";
position: absolute;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: black;
visibility: hidden;
transform: scaleX(0);
transition: all ease-in-out 0.3s;
}
.wrap td > span > a:hover::before {
visibility: visible;
transform: scaleX(1);
}
.wrap th,
.wrap td {
width: 25%;
text-align: center;
}
.table-elementary { background-color: #C2CCDB; color: #000000 !important; }
.table-elementary th { background-color: #2C5697; color: #FFFFFF !important; }
.table-elementary td a { color: #000000 !important; }
.table-engineering { background-color: #E5D3BF; color: #000000 !important; }
.table-engineering th { background-color: #9B6834; color: #FFFFFF !important; }
.table-engineering td a { color: #000000 !important; }
.table-medicine { background-color: #C7D7EA; color: #000000 !important; }
.table-medicine th { background-color: #336EAE; color: #FFFFFF !important; }
.table-medicine td a { color: #000000 !important; }
.table-science { background-color: #E3D0EB; color: #000000 !important; }
.table-science th { background-color: #9147B1; color: #FFFFFF !important; }
.table-science td a { color: #000000 !important; }
.table-security { background-color: #EAC3BB; color: #000000 !important; }
.table-security th { background-color: #B03013; color: #FFFFFF !important; }
.table-security td a { color: #000000 !important; }
.table-civil { background-color: #C8E1CB; color: #000000 !important; }
.table-civil th { background-color: #3A8A45; color: #FFFFFF !important; }
.table-civil td a { color: #000000 !important; }
.table-civil td { width: 20%; }
.table-antagonists { background-color: #E5E5E5; color: #000000 !important; }
.table-antagonists th { background-color: #000000; color: #B03013 !important; }
.table-antagonists td a { color: #000000 !important; }
.table-antagonists td { width: 20%; }
.table-other { background-color: #D3D2D1; color: #000000 !important; }
.table-other th { background-color: #524F4D; color: #FFFFFF !important; }
.table-other td a { color: #000000 !important; }
.table-technical { background-color: #EED2C0; color: #000000 !important; }
.table-technical th { background-color: #BD4F11; color: #FFFFFF !important; }
.table-technical td a { color: #000000 !important; }
.wrap table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.wrap th { padding: 10px; font-size: 1.2em; text-align: center; }
.wrap td { padding: 10px; text-align: center; vertical-align: middle; }
.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;
}