Skip to content

Commit

Permalink
UI revamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Newman authored and Joseph Newman committed Feb 6, 2024
1 parent 675b335 commit adcf593
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ h1.page + aside.toc.embedded {
}

.doc table.home-card td {
border-radius: 1.5rem;
box-shadow: 0 2px 20px 0 rgb(0 0 0 / 20%);
}

Expand All @@ -230,6 +229,38 @@ h1.page + aside.toc.embedded {
}
}

/* Tableblock responsive code */

@media screen and (max-width: 767px) {
.doc table.home-card {
display: block;
}
}

@media screen and (max-width: 767px) {
.doc table.home-card col:nth-child(0),
.doc table.home-card col:nth-child(1),
.doc table.home-card col:nth-child(2),
.doc table.home-card col:nth-child(3) {
display: none;
}
}

@media screen and (max-width: 767px) {
.doc table.home-card tr {
display: block;
}
}

@media screen and (max-width: 767px) {
.doc table.home-card td {
display: block;
margin-bottom: 15px;
}
}

/* Tableblock responsive code */

.doc table.tableblock + * {
margin-top: 1.5rem;
}
Expand All @@ -238,10 +269,10 @@ h1.page + aside.toc.embedded {
margin-top: 0;
}

/* removed max-width: 150px; */
.doc table.tableblock th,
.doc table.tableblock td {
padding: 0.5rem;
max-width: 150px;
word-wrap: break-word;
}

Expand Down Expand Up @@ -388,13 +419,13 @@ h1.page + aside.toc.embedded {
text-align: center;
}

/* box-shadow: 0 8px 16px 0 rgb(14 30 37 / 12%); remove image shadow */
.doc .imageblock img,
.doc .image > img {
display: inline-block;
height: auto;
max-width: 100%;
vertical-align: middle;
box-shadow: 0 8px 16px 0 rgb(14 30 37 / 12%);
border-radius: 0.5rem;
}

Expand Down

0 comments on commit adcf593

Please sign in to comment.