Шаблон:FunnyTable.css: различия между версиями
Перейти к навигации
Перейти к поиску
Нет описания правки |
Пробуем вайбкодинг |
||
| Строка 1: | Строка 1: | ||
.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 hsla(0, 0%, 0%, 0.35); | ||
margin-bottom: 40px; | margin-bottom: 40px; | ||
} | } | ||
| Строка 11: | Строка 9: | ||
.wrap table, | .wrap table, | ||
.wrap th, | .wrap th, | ||
.wrap td { border: 1px solid | .wrap td { | ||
border: 1px solid hsla(0, 0%, 50%, 0.45); | |||
} | |||
.wrap th { border-color: | .wrap th { | ||
border-color: hsla(0, 0%, 20%, 0.6); | |||
} | |||
.wrap td { | .wrap td { | ||
| Строка 22: | Строка 24: | ||
.wrap td:hover { | .wrap td:hover { | ||
box-shadow: inset 0 2px 20px -5px | box-shadow: inset 0 2px 20px -5px hsla(0, 0%, 0%, 0.5); | ||
border: 0; | border: 0; | ||
} | } | ||
| Строка 50: | Строка 52: | ||
position: relative; | position: relative; | ||
transition: font-size linear 0.15s; | transition: font-size linear 0.15s; | ||
color: | color: hsla(0, 0%, 15%, 0.9); | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| Строка 59: | Строка 61: | ||
font-size: 1rem; | font-size: 1rem; | ||
position: relative; | position: relative; | ||
color: | color: hsla(0, 0%, 15%, 0.9); | ||
padding-bottom: 3px; | padding-bottom: 3px; | ||
} | } | ||
| Строка 71: | Строка 72: | ||
bottom: 0; | bottom: 0; | ||
left: 0; | left: 0; | ||
background-color: | background-color: hsla(0, 0%, 20%, 0.7); | ||
visibility: hidden; | visibility: hidden; | ||
transform: scaleX(0); | transform: scaleX(0); | ||
| Строка 88: | Строка 89: | ||
} | } | ||
/* ===== TABLE THEMES ===== */ | |||
.table- | .table-elementary { | ||
.table- | background-color: hsla(215, 30%, 85%, 0.9); | ||
.table- | color: hsla(0, 0%, 15%, 0.9) !important; | ||
} | |||
.table-elementary th { | |||
background-color: hsla(215, 55%, 40%, 0.95); | |||
color: hsla(0, 0%, 98%, 0.95) !important; | |||
} | |||
.table-elementary td a { color: hsla(0, 0%, 15%, 0.9) !important; } | |||
.table- | .table-engineering { | ||
.table- | background-color: hsla(30, 35%, 85%, 0.9); | ||
.table- | } | ||
.table-engineering th { | |||
background-color: hsla(30, 50%, 40%, 0.95); | |||
color: hsla(0, 0%, 98%, 0.95); | |||
} | |||
.table-engineering td a { color: hsla(0, 0%, 15%, 0.9) !important; } | |||
.table- | .table-medicine { | ||
.table- | background-color: hsla(210, 35%, 88%, 0.9); | ||
.table- | } | ||
.table-medicine th { | |||
background-color: hsla(210, 55%, 42%, 0.95); | |||
color: hsla(0, 0%, 98%, 0.95); | |||
} | |||
.table-medicine td a { color: hsla(0, 0%, 15%, 0.9) !important; } | |||
.table- | .table-science { | ||
.table-security th { background-color: | background-color: hsla(285, 30%, 88%, 0.9); | ||
.table-security td a { color: | } | ||
.table-science th { | |||
background-color: hsla(285, 45%, 42%, 0.95); | |||
color: hsla(0, 0%, 98%, 0.95); | |||
} | |||
.table-science td a { color: hsla(0, 0%, 15%, 0.9) !important; } | |||
.table-security { | |||
background-color: hsla(10, 35%, 88%, 0.9); | |||
} | |||
.table-security th { | |||
background-color: hsla(10, 65%, 42%, 0.95); | |||
color: hsla(0, 0%, 98%, 0.95); | |||
} | |||
.table-security td a { color: hsla(0, 0%, 15%, 0.9) !important; } | |||
.table-civil { background-color: | .table-civil { | ||
.table-civil th { background-color: | background-color: hsla(135, 30%, 88%, 0.9); | ||
.table-civil td a { color: | } | ||
.table-civil th { | |||
background-color: hsla(135, 45%, 38%, 0.95); | |||
color: hsla(0, 0%, 98%, 0.95); | |||
} | |||
.table-civil td a { color: hsla(0, 0%, 15%, 0.9) !important; } | |||
.table-civil td { width: 20%; } | .table-civil td { width: 20%; } | ||
.table-antagonists { background-color: | .table-antagonists { | ||
.table-antagonists th { background-color: | background-color: hsla(0, 0%, 88%, 0.9); | ||
.table-antagonists td a { color: | } | ||
.table-antagonists th { | |||
background-color: hsla(0, 0%, 10%, 0.95); | |||
color: hsla(10, 65%, 55%, 0.95) !important; | |||
} | |||
.table-antagonists td a { color: hsla(0, 0%, 15%, 0.9) !important; } | |||
.table-antagonists td { width: 20%; } | .table-antagonists td { width: 20%; } | ||
.table-other { background-color: | .table-other { | ||
.table-other th { background-color: | background-color: hsla(40, 5%, 85%, 0.9); | ||
.table-other td a { color: | } | ||
.table-other th { | |||
background-color: hsla(40, 5%, 30%, 0.95); | |||
color: hsla(0, 0%, 98%, 0.95); | |||
} | |||
.table-other td a { color: hsla(0, 0%, 15%, 0.9) !important; } | |||
.table-technical { background-color: | .table-technical { | ||
.table-technical th { background-color: | background-color: hsla(25, 40%, 85%, 0.9); | ||
.table-technical td a { color: | } | ||
.table-technical th { | |||
background-color: hsla(25, 70%, 40%, 0.95); | |||
color: hsla(0, 0%, 98%, 0.95); | |||
} | |||
.table-technical td a { color: hsla(0, 0%, 15%, 0.9) !important; } | |||
/* ===== COMMON ===== */ | |||
.wrap table { margin-bottom: 10px; } | |||
.wrap th { padding: 10px; font-size: 1.2em; } | |||
.wrap td { padding: 10px; vertical-align: middle; } | |||
/* ===== TOOLTIP ===== */ | |||
.tlp { | .tlp { | ||
| Строка 137: | Строка 190: | ||
} | } | ||
.tlp.tlp-warning { color: | .tlp.tlp-warning { color: hsla(0, 75%, 50%, 0.9); } | ||
.tlp.tlp-warning:before { content: " | .tlp.tlp-warning:before { content: " \u2757"; } | ||
.tlp.tlp-notice { color: | .tlp.tlp-notice { color: hsla(0, 0%, 20%, 0.9); } | ||
.tlp.tlp-notice:before { content: " | .tlp.tlp-notice:before { content: " \u2753"; } | ||
.tlp > span { | .tlp > span { | ||
position: absolute; | position: absolute; | ||
background-color: | background-color: hsla(45, 90%, 55%, 0.95); | ||
color: | color: hsla(0, 0%, 10%, 0.95); | ||
border-radius: 7px; | border-radius: 7px; | ||
box-shadow: 4px 4px 7px -3px | box-shadow: 4px 4px 7px -3px hsla(0, 0%, 0%, 0.4); | ||
padding: 4px; | padding: 4px; | ||
min-width: 140px; | min-width: 140px; | ||
| Строка 158: | Строка 211: | ||
.tlp > span:before { | .tlp > span:before { | ||
content: " "; | content: ""; | ||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
left: -14px; | left: -14px; | ||
margin-top: -6px; | margin-top: -6px; | ||
border: 8px solid transparent; | border: 8px solid transparent; | ||
border-right-color: | border-right-color: hsla(45, 90%, 55%, 0.95); | ||
} | } | ||
| Строка 174: | Строка 225: | ||
} | } | ||
.wrap .hidden-anchor { | .wrap .hidden-anchor { display: none; } | ||
.wrap h1 { border-bottom: initial; } | |||
} | |||
.wrap h1 { | |||
} | |||
Версия от 21:50, 6 января 2026
.wrap table {
width: 100%;
height: 1px;
border-collapse: collapse;
box-shadow: 0 3px 20px -5px hsla(0, 0%, 0%, 0.35);
margin-bottom: 40px;
}
.wrap table,
.wrap th,
.wrap td {
border: 1px solid hsla(0, 0%, 50%, 0.45);
}
.wrap th {
border-color: hsla(0, 0%, 20%, 0.6);
}
.wrap td {
padding: 0;
height: 100%;
transition: box-shadow linear 0.15s;
}
.wrap td:hover {
box-shadow: inset 0 2px 20px -5px hsla(0, 0%, 0%, 0.5);
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: hsla(0, 0%, 15%, 0.9);
text-decoration: none;
}
.wrap td > span > a::after {
display: block;
content: attr(title);
font-size: 1rem;
position: relative;
color: hsla(0, 0%, 15%, 0.9);
padding-bottom: 3px;
}
.wrap td > span > a::before {
content: "";
position: absolute;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: hsla(0, 0%, 20%, 0.7);
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 THEMES ===== */
.table-elementary {
background-color: hsla(215, 30%, 85%, 0.9);
color: hsla(0, 0%, 15%, 0.9) !important;
}
.table-elementary th {
background-color: hsla(215, 55%, 40%, 0.95);
color: hsla(0, 0%, 98%, 0.95) !important;
}
.table-elementary td a { color: hsla(0, 0%, 15%, 0.9) !important; }
.table-engineering {
background-color: hsla(30, 35%, 85%, 0.9);
}
.table-engineering th {
background-color: hsla(30, 50%, 40%, 0.95);
color: hsla(0, 0%, 98%, 0.95);
}
.table-engineering td a { color: hsla(0, 0%, 15%, 0.9) !important; }
.table-medicine {
background-color: hsla(210, 35%, 88%, 0.9);
}
.table-medicine th {
background-color: hsla(210, 55%, 42%, 0.95);
color: hsla(0, 0%, 98%, 0.95);
}
.table-medicine td a { color: hsla(0, 0%, 15%, 0.9) !important; }
.table-science {
background-color: hsla(285, 30%, 88%, 0.9);
}
.table-science th {
background-color: hsla(285, 45%, 42%, 0.95);
color: hsla(0, 0%, 98%, 0.95);
}
.table-science td a { color: hsla(0, 0%, 15%, 0.9) !important; }
.table-security {
background-color: hsla(10, 35%, 88%, 0.9);
}
.table-security th {
background-color: hsla(10, 65%, 42%, 0.95);
color: hsla(0, 0%, 98%, 0.95);
}
.table-security td a { color: hsla(0, 0%, 15%, 0.9) !important; }
.table-civil {
background-color: hsla(135, 30%, 88%, 0.9);
}
.table-civil th {
background-color: hsla(135, 45%, 38%, 0.95);
color: hsla(0, 0%, 98%, 0.95);
}
.table-civil td a { color: hsla(0, 0%, 15%, 0.9) !important; }
.table-civil td { width: 20%; }
.table-antagonists {
background-color: hsla(0, 0%, 88%, 0.9);
}
.table-antagonists th {
background-color: hsla(0, 0%, 10%, 0.95);
color: hsla(10, 65%, 55%, 0.95) !important;
}
.table-antagonists td a { color: hsla(0, 0%, 15%, 0.9) !important; }
.table-antagonists td { width: 20%; }
.table-other {
background-color: hsla(40, 5%, 85%, 0.9);
}
.table-other th {
background-color: hsla(40, 5%, 30%, 0.95);
color: hsla(0, 0%, 98%, 0.95);
}
.table-other td a { color: hsla(0, 0%, 15%, 0.9) !important; }
.table-technical {
background-color: hsla(25, 40%, 85%, 0.9);
}
.table-technical th {
background-color: hsla(25, 70%, 40%, 0.95);
color: hsla(0, 0%, 98%, 0.95);
}
.table-technical td a { color: hsla(0, 0%, 15%, 0.9) !important; }
/* ===== COMMON ===== */
.wrap table { margin-bottom: 10px; }
.wrap th { padding: 10px; font-size: 1.2em; }
.wrap td { padding: 10px; vertical-align: middle; }
/* ===== TOOLTIP ===== */
.tlp {
display: inline-block;
position: relative;
font-size: 80%;
font-weight: bold;
}
.tlp.tlp-warning { color: hsla(0, 75%, 50%, 0.9); }
.tlp.tlp-warning:before { content: " \u2757"; }
.tlp.tlp-notice { color: hsla(0, 0%, 20%, 0.9); }
.tlp.tlp-notice:before { content: " \u2753"; }
.tlp > span {
position: absolute;
background-color: hsla(45, 90%, 55%, 0.95);
color: hsla(0, 0%, 10%, 0.95);
border-radius: 7px;
box-shadow: 4px 4px 7px -3px hsla(0, 0%, 0%, 0.4);
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;
margin-top: -6px;
border: 8px solid transparent;
border-right-color: hsla(45, 90%, 55%, 0.95);
}
.tlp:hover > span {
right: -162px;
opacity: 1;
}
.wrap .hidden-anchor { display: none; }
.wrap h1 { border-bottom: initial; }