Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI revamp #16

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ body {

.category-item {
padding: 0 0.5rem;
color: var(--navbar-font-color);
color: #424242;
font-weight: 400;
font-size: calc(14 / var(--rem-base) * 1rem);
white-space: nowrap;
Expand Down
Loading