Шаблон:FunnyTable.css

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

.wrap table {

 width: 100%;
 height: 1px;
 border-collapse: collapse;
 box-shadow: 0px 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;
 -webkit-transition: box-shadow linear 0.15s;
 -o-transition: box-shadow linear 0.15s;
 -moz-transition: box-shadow linear 0.15s;

}

.wrap td:hover {

 box-shadow: inset 0px 2px 20px -5px black;
 border: 0;

}

.wrap td > a > img {

 max-width: 32px;
 max-height: 32px;
 transition: transform linear 0.15s;
 -webkit-transition: transform linear 0.15s;
 -o-transition: transform linear 0.15s;
 -moz-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;
 -webkit-transition: font-size linear 0.15s;
 -o-transition: font-size linear 0.15s;
 -moz-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;
 -webkit-transition: all ease-in-out 0.3s;
 -o-transition: all ease-in-out 0.3s;
 -moz-transition: all ease-in-out 0.3s;

}

.wrap td > a:hover::before {

 visibility: visible;
 -webkit-transform: scaleX(1);
 transform: scaleX(1);

}

.wrap th, .wrap td {

 width: 25%;
 text-align: center;

}

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

.table-engineering { background-color: hsla(35, 62%,55%,calc(25/100)); } .table-engineering th { background-color: hsla(35, 62%,55%,calc(50/100)); }

.table-medicine { background-color: hsla(205, 70%,50%,calc(25/100)); } .table-medicine th { background-color: hsla(205, 70%,50%,calc(50/100)); }

.table-science { background-color: hsla(283, 40%,55%,calc(25/100)); } .table-science th { background-color: hsla(283, 40%,55%,calc(50/100)); }

.table-security { background-color: hsla(15, 70%,55%,calc(25/100)); } .table-security th { background-color: hsla(15, 70%,55%,calc(50/100)); }

.table-civil { background-color: hsla(129, 35%,50%,calc(25/100)); } .table-civil th { background-color: hsla(129, 35%,50%,calc(75/100)); } .table-civil td { width: 20%; }

.table-antagonists { background-color: hsla(17, 8%,17%,calc(10/100)); } .table-antagonists td { width: 20%; } .table-antagonists th {

 background-color: hsla(0, 8%,13%,calc(75/100));
 color: hsla(2, 95%,56%,calc(100/100));

}

.table-other { background-color: hsla(28, 6%,46%,calc(25/100)); } .table-other th { background-color: hsla(28, 6%,46%,calc(50/100)); }

.table-technical { background-color: hsla(20, 88%,53%,calc(25/100)); } .table-technical th { background-color: hsla(20, 88%,53%,calc(50/100)); }

.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;
 -webkit-transition: opacity linear 0.15s;
 -o-transition: opacity linear 0.15s;
 -moz-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;

}