Skip to content

Commit

Permalink
fix(docs) : Responsiveness of Document Design (#3380)
Browse files Browse the repository at this point in the history
* Fix Responsiveness of Document Design
  • Loading branch information
vivekjain23 authored Oct 23, 2024
1 parent ac0b643 commit df45633
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
33 changes: 32 additions & 1 deletion docs/site/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,17 @@ h4 {
}
}
@media screen and (max-width: 599px) {
.pagination-nav{
display: flex;
flex-direction: column;
align-items: center;
}
.pagination-nav__link{
width: 100%;
}
.backgroundImage{
background-size: 125%
}
h2,
.h2 {
font-size: 1.7rem;
Expand Down Expand Up @@ -418,7 +429,7 @@ h4 {

/** Globals **/
.button{
text-wrap: pretty;
text-wrap: wrap;
color: var(--iota-white);
background: var(--iota-hero-dark);
}
Expand Down Expand Up @@ -476,3 +487,23 @@ h4 {
.text-gray {
color: var(--iota-gray);
}

/* Ensure equations are scrollable on smaller screens */
.katex-display {
overflow-x: scroll;
white-space: nowrap;
}

/* Reduce font size for mobile screens */
@media screen and (max-width: 768px) {
.katex-display {
font-size: 0.9rem;
display: block;
}
}

/* Optional: Set a max-width for the math elements to prevent overflow */
.katex-display {
max-width: 100%;
overflow-wrap: break-word;
}
5 changes: 5 additions & 0 deletions docs/site/src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
background-size: 50% 100%;
margin-bottom: 2rem;
}
@media (max-width: 599px) {
.backgroundImage {
background-size: 125% 70% !important;
}
}

@media (max-width: 1000px) {
.backgroundImage {
Expand Down

0 comments on commit df45633

Please sign in to comment.