Fix center issue

This commit is contained in:
2020-03-31 14:02:10 +02:00
parent f62ff0fdf4
commit c07f0d639a
3 changed files with 33 additions and 3 deletions

View File

@@ -77,11 +77,24 @@ input[type=color] {
/* Table elements */ /* Table elements */
table { table {
width: 100%; width: 100%;
display: table;
}
tbody {
display: table-row-group;
width: auto;
}
tr {
display: table-row;
width: auto;
} }
td, th { td, th {
border: 1px solid white; border: 1px solid white;
padding: 8px; padding: 8px;
display: table-cell;
width: auto;
} }
th { th {
@@ -114,6 +127,10 @@ tr:hover {
margin: auto; margin: auto;
} }
.center > :not(table) {
display: block;
}
.center canvas { .center canvas {
border: 5px solid black; border: 5px solid black;
} }

View File

@@ -7,9 +7,9 @@
height: max-content; height: max-content;
border-radius: $radius; border-radius: $radius;
* { * { margin: auto;}
margin: auto;
} &>:not(table){ display: block;}
canvas { canvas {
border: 5px solid black; border: 5px solid black;

View File

@@ -94,11 +94,24 @@ input[type=submit] {
table { table {
width: 100%; width: 100%;
display: table;
}
tbody {
display: table-row-group;
width: auto;
}
tr {
display: table-row;
width: auto;
} }
td, th { td, th {
border: 1px solid $border-color; border: 1px solid $border-color;
padding: 8px; padding: 8px;
display: table-cell;
width: auto;
} }
th { th {