la tablelike funciona con un grid

This commit is contained in:
Markines16 2021-05-27 20:26:58 +02:00 committed by GitHub
parent 6e18e93fc2
commit cfd65e645a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,17 +67,21 @@ table.seat td:first-child {
background-color: #791515;
}
/*lists like tables*/
.tablelist{
list-style-type: none;
width: 100%;
padding: 0;
margin: 0;
display: grid;
list-style-type: none;
}
.tablelist a
{
.tablelist li {
border-bottom: 1px solid black;
padding: 10px;
font-size: 20px;
text-align: center;
}
.tablelist a {
color: #000000;
width: 33%
}
.tablelist a:hover li{
@ -85,29 +89,81 @@ table.seat td:first-child {
background: rgba(0, 3, 255, 0.25);
}
.tablelist li
{
border-bottom: 1px solid #000;
float: left;
width: 33%;
white-space: pre;
padding: 10px;
text-align:center;
.tablelist li.title{
font-weight: bold;
}
.tablelist li.title
{
font-weight: bold;
pointer-events: none;
/*3columns*/
.col3{
grid-template-columns: repeat(3,1fr);
}
.tablelist li:nth-child(3n)
{
clear: both;
.col3 .odd{
background: rgba(144, 144, 144, 0.25);
display: grid;
grid-column-start: 1;
grid-column-end: 4;
grid-template-columns: repeat(3,1fr);
}
.tablelist .odd li
{
background-color:rgba(144, 144, 144, 0.25);
.col3 .even{
display: grid;
grid-column-start: 1;
grid-column-end: 4;
grid-template-columns: repeat(3,1fr);
}
.tablelist.col3 a.h2long
{
display: grid;
grid-column-start: 1;
grid-column-end: 3;
grid-template-columns: repeat(2,1fr);
}
.tablelist.col3 a
{
display: grid;
grid-column-start: 3;
grid-column-end: 4;
grid-template-columns: repeat(1,1fr);
}
/*5 columns*/
.col5{
grid-template-columns: repeat(5,1fr);
}
.col5 .odd{
background: green;
display: grid;
grid-column-start: 1;
grid-column-end: 6;
grid-template-columns: repeat(5,auto);
}
.col5 .even{
background: pink;
display: grid;
grid-column-start: 1;
grid-column-end: 6;
grid-template-columns: repeat(5,auto);
}
.tablelist.col5 a.h4long
{
display: grid;
grid-column-start: 1;
grid-column-end: 5;
grid-template-columns: repeat(4,auto);
}
.tablelist.col5 a
{
display: grid;
grid-column-start: 5;
grid-column-end: 6;
grid-template-columns: auto;
}