Skip to content

Commit

Permalink
responsive design
Browse files Browse the repository at this point in the history
  • Loading branch information
AakashGfude committed Nov 14, 2023
1 parent b12bd3d commit 8e898ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/quantecon_book_theme/assets/styles/_margin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $margin-offset: -$margin-width-relative-to-content;
margin-left: 0.5rem;

// Wide screens and printing should force margin behavior
@media (min-width: $breakpoint-lg), print {
@media (min-width: $breakpoint-xl), print {
width: $margin-width-width-gutter;
margin: 0 $margin-offset 0 0;

Expand Down Expand Up @@ -69,7 +69,7 @@ label.margin-toggle {
sup {
user-select: none;
}
@media (max-width: $breakpoint-lg) {
@media (max-width: $breakpoint-xl) {
cursor: pointer;
color: rgb(0, 113, 188);
&.marginnote-label {
Expand All @@ -83,7 +83,7 @@ label.margin-toggle {

input.margin-toggle {
display: none;
@media (max-width: $breakpoint-lg) {
@media (max-width: $breakpoint-xl) {
&:checked + .sidenote,
&:checked + .marginnote {
display: block;
Expand All @@ -107,7 +107,7 @@ input.margin-toggle {
}
@include margin-content();
border-left: none;
@media (max-width: $breakpoint-lg) {
@media (max-width: $breakpoint-xl) {
display: none;
}
}
Expand Down Expand Up @@ -150,7 +150,7 @@ input.margin-toggle {
}
}

@media (min-width: $breakpoint-lg) {
@media (min-width: $breakpoint-xl) {
// No border for margin sidebars on wide screen
border: none;

Expand Down Expand Up @@ -205,7 +205,7 @@ input.margin-toggle {
div.full-width {
z-index: 2;
position: relative;
@media (min-width: $breakpoint-lg) {
@media (min-width: $breakpoint-xl) {
max-width: $content-fullwidth-width;
width: $content-fullwidth-width;
}
Expand Down

1 comment on commit 8e898ab

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.