Шаблон:FunnyTable.css: различия между версиями

Материал из Tau Ceti Station Wiki
Перейти к навигации Перейти к поиску
Нет описания правки
Нет описания правки
Строка 86: Строка 86:


.table-security { background-color: #EAC3BB; }
.table-security { background-color: #EAC3BB; }
.table-security th { background-color: #D59284; }
.table-security th { background-color: #D59284; color: #FFFFFF; }


.table-science { background-color: #E3D0EB; }
.table-science { background-color: #E3D0EB; }
.table-science th { background-color: #C8A2D8; }
.table-science th { background-color: #C8A2D8; color: #FFFFFF; }


.table-civil { background-color: #C8E1CB; }
.table-civil { background-color: #C8E1CB; }
.table-civil th { background-color: #69A571; }
.table-civil th { background-color: #69A571; color: #FFFFFF; }
.table-civil td { width: 20%; }
.table-civil td { width: 20%; }


.table-engineering { background-color: #E5D3BF; }
.table-engineering { background-color: #E5D3BF; }
.table-engineering th { background-color: #CDAF91; }
.table-engineering th { background-color: #CDAF91; color: #FFFFFF; }


.table-command { background-color: #C2CCDB; }
.table-command { background-color: #C2CCDB; }
.table-command th { background-color: #91A3C4; }
.table-command th { background-color: #91A3C4; color: #FFFFFF; }


.table-centcom { background-color: #CDCFD4; }
.table-centcom { background-color: #CDCFD4; }
.table-centcom th { background-color: #A2A4AE; }
.table-centcom th { background-color: #A2A4AE; color: #FFFFFF; }


.table-medical { background-color: #C7D7EA; }
.table-medical { background-color: #C7D7EA; }
.table-medical th { background-color: #96B3D6; }
.table-medical th { background-color: #96B3D6; color: #FFFFFF; }


.table-supply { background-color: #D9CECC; }
.table-supply { background-color: #D9CECC; }
.table-supply th { background-color: #B89F9B; }
.table-supply th { background-color: #B89F9B; color: #FFFFFF; }


.table-synthetic { background-color: #C9D8D1; }
.table-synthetic { background-color: #C9D8D1; }
.table-synthetic th { background-color: #98B3A7; }
.table-synthetic th { background-color: #98B3A7; color: #FFFFFF; }


.table-antagonists { background-color: #E5E5E5; }
.table-antagonists { background-color: #E5E5E5; }
Строка 121: Строка 121:


.table-technical { background-color: #EED2C0; }
.table-technical { background-color: #EED2C0; }
.table-technical th { background-color: #DEA684; }
.table-technical th { background-color: #DEA684; color: #FFFFFF; }


.table-clown { background-color: #E9C6D1; }
.table-clown { background-color: #E9C6D1; }
.table-clown th { background-color: #D398A8; }
.table-clown th { background-color: #D398A8; color: #FFFFFF; }


.table-other { background-color: #D3D2D1; }
.table-other { background-color: #D3D2D1; }
.table-other th { background-color: #A8A6A5; }
.table-other th { background-color: #A8A6A5; color: #FFFFFF; }


.tlp {
.tlp {

Версия от 19:30, 27 декабря 2025

/* 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 > a > img {
  max-width: 32px;
  max-height: 32px;
  transition: transform linear 0.15s;
  margin-top: 6px;
}

.wrap td:hover > a > img {
  transform: scale(0.9);
}

.wrap td > 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 > a::after {
  display: block;
  content: attr(title);
  position: relative;
  color: black;
  text-decoration: none;
  padding-bottom: 3px;
}

.wrap td > 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 > a:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

.wrap th,
.wrap td {
  width: 25%;
  text-align: center;
}

.table-elementary { background-color: #F5F5FF; }
.table-elementary th { background-color: #BDBDFF; }

.table-security { background-color: #EAC3BB; }
.table-security th { background-color: #D59284; color: #FFFFFF; }

.table-science { background-color: #E3D0EB; }
.table-science th { background-color: #C8A2D8; color: #FFFFFF; }

.table-civil { background-color: #C8E1CB; }
.table-civil th { background-color: #69A571; color: #FFFFFF; }
.table-civil td { width: 20%; }

.table-engineering { background-color: #E5D3BF; }
.table-engineering th { background-color: #CDAF91; color: #FFFFFF; }

.table-command { background-color: #C2CCDB; }
.table-command th { background-color: #91A3C4; color: #FFFFFF; }

.table-centcom { background-color: #CDCFD4; }
.table-centcom th { background-color: #A2A4AE; color: #FFFFFF; }

.table-medical { background-color: #C7D7EA; }
.table-medical th { background-color: #96B3D6; color: #FFFFFF; }

.table-supply { background-color: #D9CECC; }
.table-supply th { background-color: #B89F9B; color: #FFFFFF; }

.table-synthetic { background-color: #C9D8D1; }
.table-synthetic th { background-color: #98B3A7; color: #FFFFFF; }

.table-antagonists { background-color: #E5E5E5; }
.table-antagonists td { width: 20%; }
.table-antagonists th {
  background-color: #404040;
  color: #8B2B21;
}

.table-technical { background-color: #EED2C0; }
.table-technical th { background-color: #DEA684; color: #FFFFFF; }

.table-clown { background-color: #E9C6D1; }
.table-clown th { background-color: #D398A8; color: #FFFFFF; }

.table-other { background-color: #D3D2D1; }
.table-other th { background-color: #A8A6A5; color: #FFFFFF; }

.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;
}