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

Modularize styling, and improve breakpoint responsiveness to page layout #308

Merged
merged 2 commits into from
Jan 3, 2025
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
23 changes: 23 additions & 0 deletions docs/_static/scss/components/_article-meta.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@use "../breakpoints" as *;

.article-meta {
display: inline-block;
position: relative;
top: 30px;
font-size: 11px;
font-weight: 600;
opacity: 0.35;

&--updated {
opacity: 0.5;

&::after {
content: "";
padding-left: 5px;
}
}

@media (max-width: $breakpoint-mobile) {
font-size: 12px;
}
}
58 changes: 58 additions & 0 deletions docs/_static/scss/components/_breadcrumbs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
@use "../breakpoints" as *;

/* breadcrumbs*/
.wy-breadcrumbs {
max-width: 1500px;
padding: 0 21px;
margin: auto;

& li {
padding-top: initial;
}

@media (max-width: $breakpoint-landscape) {
padding: 0 20px 0 60px;
overflow: auto;
white-space: nowrap;
}

@media (max-width: $breakpoint-mobile) {
padding: 0 20px 0 65px;
}
}

.wy-breadcrumbs,
.wy-breadcrumbs li a,
.wy-breadcrumbs-aside a {
font-size: 11px;
}
.wy-breadcrumbs li.wy-breadcrumbs-aside {
@media (max-width: $breakpoint-portrait) {
display: none;
}
}

.wy-breadcrumbs li a:visited {
color: var(--light-orange);
}

li.wy-breadcrumbs-aside a {
padding: 10px;
}

.header {
height: 50px;
line-height: 50px;
width: 100%;
position: fixed;
top: 60px;
border-bottom: 1px solid var(--grey-border);
z-index:20;
background-color: white;

@media (max-width: $breakpoint-mobile) {
top: 90px;
}
}

/* header end */
Loading
Loading