Перейти к содержанию

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

Материал из Horny Jail WIKI
TauCeti>Udokun
Нет описания правки
 
Увеличена высота
 
(не показано 13 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Todo: use some unique class, not "wrap" */
/* Общие стили для всех таблиц внутри .wrap */
 
.wrap table {
.wrap table {
   width: 100%;
   width: 100%;
  height: 1px;
   border-collapse: separate;
   border-collapse: collapse;
   border-spacing: 10px;           /* расстояние между кнопками */
   box-shadow: 0 3px 20px -5px grey;
   margin-bottom: 40px;
   margin-bottom: 40px;
  table-layout: fixed;            /* одинаковая ширина ячеек */
  background-color: transparent;
}
}


/* Убираем стандартные границы */
.wrap table,
.wrap table,
.wrap th,
.wrap th,
.wrap td { border: 1px solid grey; }
.wrap td {
 
  border: none;
.wrap th { border-color: black; }
}


/* Оформляем ячейки как кнопки */
.wrap td {
.wrap td {
   padding: 0;
  border: 1px solid grey;
   height: 100%;
  border-radius: 12px;
   transition: box-shadow linear 0.15s;
   padding: 35px 8px;             /* увеличен вертикальный padding для высоты */
   min-height: 60px;              /* минимальная высота */
  background-color: transparent;
   transition: box-shadow linear 0.15s, border-color linear 0.15s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
}


.wrap td:hover {
.wrap td:hover {
   box-shadow: inset 0 2px 20px -5px black;
   box-shadow: inset 0 2px 20px -5px black, 0 4px 8px rgba(0,0,0,0.2);
  border: 0;
   border-color: #aaa;
}
 
.wrap td > span {
  width: 100%;
  height: 100%;
}
 
.wrap td > span > a > img {
  max-width: 32px;
  max-height: 32px;
  transition: transform linear 0.15s;
   margin-top: 6px;
}
 
.wrap td:hover > span > a > img {
  transform: scale(0.9);
}
}


.wrap td > span > a {
/* Стили для ВСЕХ ссылок внутри ячеек */
  height: 100%;
.wrap td a,
.wrap td a:link,
.wrap td a:visited,
.wrap td a:hover,
.wrap td a:active {
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: 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%;
   width: 100%;
   height: 2px;
   height: 100%;
   bottom: 0;
   color: white !important;       /* белый цвет для любого состояния */
   left: 0;
   text-decoration: none !important;
   background-color: black;
   text-shadow: 0 0 2px rgba(0,0,0,0.5); /* лёгкая тень для читаемости */
  visibility: hidden;
   font-size: 20px;               /* увеличен размер шрифта до 20px */
  transform: scaleX(0);
   transition: all ease-in-out 0.3s;
}
}


.wrap td > span > a:hover::before {
/* Заголовки таблиц (если используются) */
   visibility: visible;
.wrap th {
   transform: scaleX(1);
   padding: 10px;
}
   font-size: 1.2em;
*/
.wrap th,
.wrap td {
  width: 25%;
   text-align: center;
   text-align: center;
  background-color: transparent;
  color: inherit;
}
}


.table-elementary { background-color: hsla(220, 30%, 80%, 0.4); }
/* Для таблицы .table-elementary задаём ячейкам ширину 50% (по две в ряду) */
.table-elementary th { background-color: #2C5697; color: #FFFFFF !important; }
.table-elementary td {
 
   width: 50%;
.table-world { background-color: hsla(220, 30%, 80%, 0.4); }
.table-world th { background-color: #2C5697; color: #FFFFFF !important; }
.table-world td > span > a { height: 50%;}
.table-world td > span > a > img { max-width: 100%; max-height: 100%;}
 
.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;
.table-elementary{
   background-color: transparent !important;
}
}

Текущая версия от 16:37, 16 февраля 2026

/* Общие стили для всех таблиц внутри .wrap */
.wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px;           /* расстояние между кнопками */
  margin-bottom: 40px;
  table-layout: fixed;            /* одинаковая ширина ячеек */
  background-color: transparent;
}

/* Убираем стандартные границы */
.wrap table,
.wrap th,
.wrap td {
  border: none;
}

/* Оформляем ячейки как кнопки */
.wrap td {
  border: 1px solid grey;
  border-radius: 12px;
  padding: 35px 8px;              /* увеличен вертикальный padding для высоты */
  min-height: 60px;               /* минимальная высота */
  background-color: transparent;
  transition: box-shadow linear 0.15s, border-color linear 0.15s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wrap td:hover {
  box-shadow: inset 0 2px 20px -5px black, 0 4px 8px rgba(0,0,0,0.2);
  border-color: #aaa;
}

/* Стили для ВСЕХ ссылок внутри ячеек */
.wrap td a,
.wrap td a:link,
.wrap td a:visited,
.wrap td a:hover,
.wrap td a:active {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white !important;        /* белый цвет для любого состояния */
  text-decoration: none !important;
  text-shadow: 0 0 2px rgba(0,0,0,0.5); /* лёгкая тень для читаемости */
  font-size: 20px;                /* увеличен размер шрифта до 20px */
}

/* Заголовки таблиц (если используются) */
.wrap th {
  padding: 10px;
  font-size: 1.2em;
  text-align: center;
  background-color: transparent;
  color: inherit;
}

/* Для таблицы .table-elementary задаём ячейкам ширину 50% (по две в ряду) */
.table-elementary td {
  width: 50%;
}

/* Обнуляем фоновые цвета у всех цветовых классов таблиц */
.table-elementary{
  background-color: transparent !important;
}