Switch main to flex box.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Captain ALM 2022-07-26 22:13:09 +01:00
parent 1fce0a6cf4
commit 98b1380d2a
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1
3 changed files with 70 additions and 53 deletions

View File

@ -79,6 +79,28 @@ main{
transform: rotate(45deg); transform: rotate(45deg);
top:0; top:0;
} }
.main-box{
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-orient: vertical;
-moz-box-orient: vertical;
-webkit-box-direction: normal;
-moz-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-align-content: center;
align-content: center;
width: 100%;
}
.main-box > div{
margin: 3px 0;
padding: 2px;
box-sizing: content-box;
}
.main-table{ .main-table{
display: table; display: table;
width: 100%; width: 100%;
@ -114,7 +136,7 @@ main{
padding: 2px; padding: 2px;
} }
.item-table-caption{ .item-table-caption{
display: table-caption; display: table-caption !important;
caption-side: bottom; caption-side: bottom;
} }
.item-table-full, .item-table-360, .item-table-caption{ .item-table-full, .item-table-360, .item-table-caption{
@ -156,6 +178,9 @@ main{
margin: 2px; margin: 2px;
} }
@media (min-width: 480px){ @media (min-width: 480px){
.main-box > div{
margin: 5px;
}
.main-table > div > div > div{ .main-table > div > div > div{
margin: 5px; margin: 5px;
} }

View File

@ -27,7 +27,7 @@ a{
.hmb-line, .hmb-line::before, .hmb-line::after{ .hmb-line, .hmb-line::before, .hmb-line::after{
background: #e0e0e0; background: #e0e0e0;
} }
.main-table{ .main-table, .main-box{
background-color: #0f0f0f; background-color: #0f0f0f;
} }
.item-table > div > div, .item-table-caption{ .item-table > div > div, .item-table-caption{

View File

@ -26,9 +26,7 @@
</ul> </ul>
</nav> </nav>
</header> </header>
<main class="main-table"> <main class="main-box">
<div>
<div>
<div> <div>
<div class="item-table"> <div class="item-table">
<div> <div>
@ -49,11 +47,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
{{ range .Data.Entries }} {{ range .Data.Entries }}
<div>
<div>
<div> <div>
<div class="item-table"> <div class="item-table">
<div> <div>
@ -89,8 +83,6 @@
{{ end }} {{ end }}
</div> </div>
</div> </div>
</div>
</div>
{{ end }} {{ end }}
</main> </main>
</body> </body>