Шаблон:FunnyTable.css

Материал из Tau Ceti Station Wiki
Версия от 21:54, 6 января 2026; Richard Jones (обсуждение | вклад) (Навайбкодил в гроке чтобы цвета были прозрачные. Нужно для темной темы пока у нас нет css global vars)
Перейти к навигации Перейти к поиску
/* Todo: use some unique class, not "wrap" */
.wrap table {
  width: 100%;
  height: 1px;
  border-collapse: collapse;
  box-shadow: 0 3px 20px -5px hsla(0, 0%, 50%, 0.3);
  margin-bottom: 40px;
}
.wrap table,
.wrap th,
.wrap td { border: 1px solid hsla(0, 0%, 100%, 0.8); }
.wrap th { border-color: hsla(0, 0%, 100%, 1); }
.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.8);
  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%, 100%, 1);
  text-decoration: none;
}
.wrap td > span > a::after {
  display: block;
  content: attr(title);
  font-size: 1rem;
  position: relative;
  color: hsla(0, 0%, 100%, 1);
  text-decoration: none;
  padding-bottom: 3px;
}
.wrap td > span > a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: hsla(0, 0%, 100%, 1);
  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: hsla(220, 30%, 60%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-elementary th { background-color: hsla(216, 60%, 30%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-elementary td a { color: hsla(0, 0%, 100%, 1) !important; }
.table-engineering { background-color: hsla(28, 40%, 70%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-engineering th { background-color: hsla(28, 50%, 25%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-engineering td a { color: hsla(0, 0%, 100%, 1) !important; }
.table-medicine { background-color: hsla(210, 40%, 70%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-medicine th { background-color: hsla(210, 55%, 35%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-medicine td a { color: hsla(0, 0%, 100%, 1) !important; }
.table-science { background-color: hsla(280, 40%, 70%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-science th { background-color: hsla(280, 50%, 35%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-science td a { color: hsla(0, 0%, 100%, 1) !important; }
.table-security { background-color: hsla(12, 50%, 70%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-security th { background-color: hsla(12, 70%, 30%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-security td a { color: hsla(0, 0%, 100%, 1) !important; }
.table-civil { background-color: hsla(125, 30%, 65%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-civil th { background-color: hsla(125, 50%, 30%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-civil td a { color: hsla(0, 0%, 100%, 1) !important; }
.table-civil td { width: 20%; }
.table-antagonists { background-color: hsla(0, 0%, 80%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-antagonists th { background-color: hsla(0, 0%, 0%, 0.3); color: hsla(12, 70%, 40%, 1) !important; }
.table-antagonists td a { color: hsla(0, 0%, 100%, 1) !important; }
.table-antagonists td { width: 20%; }
.table-other { background-color: hsla(0, 0%, 70%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-other th { background-color: hsla(30, 5%, 30%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-other td a { color: hsla(0, 0%, 100%, 1) !important; }
.table-technical { background-color: hsla(20, 70%, 75%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-technical th { background-color: hsla(20, 80%, 30%, 0.3); color: hsla(0, 0%, 100%, 1) !important; }
.table-technical td a { color: hsla(0, 0%, 100%, 1) !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: hsla(0, 80%, 60%, 1); }
.tlp.tlp-warning:before { content: " ❗"; }
.tlp.tlp-notice { color: hsla(0, 0%, 100%, 1); }
.tlp.tlp-notice:before { content: " ❕"; }
.tlp > span {
  position: absolute;
  background-color: hsla(50, 80%, 50%, 0.3);
  color: hsla(0, 0%, 100%, 1);
  border-radius: 7px;
  box-shadow: 4px 4px 7px -3px hsla(0, 0%, 0%, 0.3);
  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: hsla(50, 80%, 50%, 0.3);
}
.tlp:hover > span {
  right: -162px;
  opacity: 1;
}
.wrap .hidden-anchor {
  display: none;
}
.wrap h1 {
  border-bottom: initial;
}