Skip to content

Commit

Permalink
Try a different design for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 22, 2024
1 parent 9340aaf commit 6df11a3
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,38 @@
.copy {
display: none;
}

@media (max-width: 520px) {
.limit>td:first-child,
.feature>td:first-child,
.worker>td:first-child {
padding-left: 0em;
}
.limit>td:nth-child(2),
.feature>td:nth-child(2),
.worker>td:nth-child(2) {
text-align: right;
}
.adapters,
.adapter,
table {
width: 100%;
}
tr {
display: flex;
max-width: 100%;
flex-wrap: wrap;
justify-content: space-between;
}
tr>td {
flex: 1 1 auto;
}
td[colspan]>div {
width: 100%;
}
}


</style>
<style id="dynamic-style"></style>
</head>
Expand Down Expand Up @@ -206,7 +238,7 @@ <h1><img src="webgpu-notext.svg" class="logo">WebGPU Report <div class="hide-on-
top: auto;
}

@media screen and (min-width: 400px){
@media screen and (min-width: 420px){
#forkongithub{
position: fixed;
display: block;
Expand Down

0 comments on commit 6df11a3

Please sign in to comment.