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

Материал из Tau Ceti Station Wiki
Перейти к навигации Перейти к поиску
Нет описания правки
Richard Jones (обсуждение | вклад)
Нет описания правки
(не показано 28 промежуточных версий 2 участников)
Строка 2: Строка 2:


.wrap table {
.wrap table {
    width: 100%;
  width: 100%;
    border-collapse: collapse;
  height: 1px;
    margin-bottom: 20px;
  border-collapse: collapse;
  box-shadow: 0 3px 20px -5px grey;
  margin-bottom: 40px;
}
}


.wrap table td {
.wrap table,
    text-align: center !important;
.wrap th,
    vertical-align: top !important;
.wrap td { border: 1px solid grey; }
    padding: 12px 5px !important;
 
    width: 25%;
.wrap th { border-color: black; }
    border: 1px solid #ccc;
 
.wrap td {
  padding: 0;
  height: 100%;
  transition: box-shadow linear 0.15s;
}
}


.wrap table td img {
.wrap td:hover {
    display: block !important;
  box-shadow: inset 0 2px 20px -5px black;
    margin: 0 auto 8px auto !important;
  border: 0;
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
}
}


.wrap table td a {
.wrap td > span {
    display: block !important;
  width: 100%;
    line-height: 1.2;
  height: 100%;
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95em;
}
}


.wrap table td a:hover {
.wrap td > span > a > img {
    text-decoration: underline;
  max-width: 32px !important;
    color: #004499;
  max-height: 32px !important;
  transition: transform linear 0.15s;
  margin-top: 6px;
}
}


.table-elementary th,
.wrap td:hover > span > a > img {
.table-engineering th,
  transform: scale(0.9);
.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; }
.wrap td > span > a {
.table-elementary th { background-color: #BDBDFF; }
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  transition: font-size linear 0.15s;
  text-decoration: none;
}


/* Todo: use css vars */
.wrap td > span > a::after {
/*
  display: block;
.table-engineering { background-color: {{ColorPalette|Engineering|Light}}; }
  content: attr(title);
.table-engineering th { background-color: {{ColorPalette|Engineering|Secondary}}; }
  font-size: 1rem;
  position: relative;
  color: var(--color-base, black);
  text-decoration: none;
  padding-bottom: 3px;
}


.table-medicine { background-color: {{ColorPalette|Medical|Light}}; }
.wrap td > span > a::before {
.table-medicine th { background-color: {{ColorPalette|Medical|Secondary}}; }
  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;
}


.table-science { background-color: {{ColorPalette|Science|Light}}; }
.wrap td > span > a:hover::before {
.table-science th { background-color: {{ColorPalette|Science|Secondary}}; }
  visibility: visible;
  transform: scaleX(1);
}


.table-security { background-color: {{ColorPalette|Security|Light}}; }
.wrap th,
.table-security th { background-color: {{ColorPalette|Security|Secondary}}; }
.wrap td {
  width: 25%;
  text-align: center;
}
 
.table-elementary { background-color: hsla(220, 30%, 80%, 0.4); }
.table-elementary th { background-color: #2C5697; color: #FFFFFF !important; }
 
.table-engineering { background-color: hsla(28, 40%, 82%, 0.4); }
.table-engineering th { background-color: #9B6834; color: #FFFFFF !important; }
 
.table-medicine { background-color: hsla(210, 40%, 82%, 0.4); }
.table-medicine th { background-color: #336EAE; color: #FFFFFF !important; }
 
.table-science { background-color: hsla(280, 40%, 82%, 0.4); }
.table-science th { background-color: #9147B1; color: #FFFFFF !important; }
 
.table-security { background-color: hsla(12, 50%, 82%, 0.4); }
.table-security th { background-color: #B03013; color: #FFFFFF !important; }


.table-civil { background-color: {{ColorPalette|Service|Light}}; }
.table-civil { background-color: hsla(125, 30%, 78%, 0.4); }
.table-civil th { background-color: {{ColorPalette|Service|Primary}}; }
.table-civil th { background-color: #3A8A45; color: #FFFFFF !important; }
.table-civil td { width: 20%; }
.table-civil td { width: 20%; }


.table-antagonists { background-color: {{ColorPalette|Antagonist|Transparent}}; }
.table-antagonists { background-color: hsla(0, 0%, 90%, 0.4); }
.table-antagonists th { background-color: #000000; color: #B03013 !important; }
.table-antagonists td { width: 20%; }
.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 { background-color: hsla(60, 5%, 82%, 0.4); }
.table-other th { background-color: {{ColorPalette||Secondary}}; }
.table-other th { background-color: #524F4D; color: #FFFFFF !important; }
 
.table-technical { background-color: hsla(20, 70%, 85%, 0.4); }
.table-technical th { background-color: #BD4F11; color: #FFFFFF !important; }


.table-technical { background-color: {{ColorPalette|Special|Light}}; }
.wrap table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.table-technical th { background-color: {{ColorPalette|Special|Secondary}}; }
.wrap th { padding: 10px; font-size: 1.2em; text-align: center; }
*/
.wrap td { padding: 10px; text-align: center; vertical-align: middle; }


.tlp {
.tlp {
Строка 121: Строка 155:
   height: 0;
   height: 0;
   margin-top: -6px;
   margin-top: -6px;
  color: var(--color-base);
   border: 8px solid transparent;
   border: 8px solid transparent;
   border-right-color: gold;
   border-right-color: gold;

Версия от 22:23, 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;
  text-decoration: none;
}

.wrap td > span > a::after {
  display: block;
  content: attr(title);
  font-size: 1rem;
  position: relative;
  color: var(--color-base, 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: hsla(220, 30%, 80%, 0.4); }
.table-elementary th { background-color: #2C5697; color: #FFFFFF !important; }

.table-engineering { background-color: hsla(28, 40%, 82%, 0.4); }
.table-engineering th { background-color: #9B6834; color: #FFFFFF !important; }

.table-medicine { background-color: hsla(210, 40%, 82%, 0.4); }
.table-medicine th { background-color: #336EAE; color: #FFFFFF !important; }

.table-science { background-color: hsla(280, 40%, 82%, 0.4); }
.table-science th { background-color: #9147B1; color: #FFFFFF !important; }

.table-security { background-color: hsla(12, 50%, 82%, 0.4); }
.table-security th { background-color: #B03013; color: #FFFFFF !important; }

.table-civil { background-color: hsla(125, 30%, 78%, 0.4); }
.table-civil th { background-color: #3A8A45; color: #FFFFFF !important; }
.table-civil td { width: 20%; }

.table-antagonists { background-color: hsla(0, 0%, 90%, 0.4); }
.table-antagonists th { background-color: #000000; color: #B03013 !important; }
.table-antagonists td { width: 20%; }

.table-other { background-color: hsla(60, 5%, 82%, 0.4); }
.table-other th { background-color: #524F4D; color: #FFFFFF !important; }

.table-technical { background-color: hsla(20, 70%, 85%, 0.4); }
.table-technical th { background-color: #BD4F11; color: #FFFFFF !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;
  color: var(--color-base);
  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;
}