MediaWiki: Tweeki.css
From Serenes Forest - A Fire Emblem Resource
Line 63: | Line 63: | ||
} | } | ||
− | panel-default>.panel-heading { | + | .panel-default>.panel-heading { |
background-image: -webkit-linear-gradient(top,#63863f 0,#485f30 100%); | background-image: -webkit-linear-gradient(top,#63863f 0,#485f30 100%); | ||
background-image: -o-linear-gradient(top,#63863f 0,#485f30 100%); | background-image: -o-linear-gradient(top,#63863f 0,#485f30 100%); |
Revision as of 06:11, 30 October 2020
.table { width: auto; height: auto; max-width: 100vw; position: relative; display: inline-block; } .table table { position: relative; border-collapse: collapse; margin: 0; } td, th { padding: 0.25em; width: auto; text-align: center; } td { z-index: -2; position: relative; } tr:nth-child(n+2) th { position: -webkit-sticky; /* for Safari */ position: sticky; left: 0; background: #FFF; z-index: -1; } tr:nth-child(n+2) th span { display: block; height: 100%; width: 1px; position: absolute; top: 0; right: 0; background: #CCC; } tr:first-child th { position: -webkit-sticky; /* for Safari */ position: sticky; top: 50px; background: #000; color: #FFF; } tr:nth-child(n+2) td:first-child { border-left: 1px solid #CCC; } .panel-footer { background-color: #507529; } body { background-color: #effbe3; } .panel-default>.panel-heading { background-image: -webkit-linear-gradient(top,#63863f 0,#485f30 100%); background-image: -o-linear-gradient(top,#63863f 0,#485f30 100%); background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#63863f),to(#485f30)); background-image: linear-gradient(to bottom,#63863f 0,#485f30 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='#ffe8e8e8',GradientType=0); background-repeat: repeat-x; }