Skip to content

Commit

Permalink
Improve overlay narrative positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
James Goldie committed Oct 20, 2024
1 parent 276bc3e commit ed79c9c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
11 changes: 5 additions & 6 deletions _extensions/closeread/closeread.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _extensions/closeread/closeread.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions _extensions/closeread/closeread.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

.trigger {
padding-block: 45svh;
padding-inline: 1em;
padding-inline: 24px;

p {
margin-bottom: 0; // override bootstrap rule
Expand Down Expand Up @@ -115,7 +115,6 @@


/* mobile sizing (bootstrap: xs) is always overlay-center */
//@media (max-width: 575.98px) {
@media (max-width: 575.98px) {
.cr-section.sidebar-left,
.cr-section.sidebar-right,
Expand Down Expand Up @@ -155,6 +154,7 @@
grid-column: 1;
z-index: 1;
transition: opacity 0.5s ease-in-out;
max-width: 527.98px;

.narrative {
background-color: rgba(17, 17, 17, .85);
Expand All @@ -172,19 +172,17 @@
// ... with inline margins set for narrative content depending on side
.overlay-left {
.narrative-col {
margin-inline-start: 5%;
margin-inline-end: 65%;
justify-self: start;
}
}
.overlay-center {
.narrative-col {
margin-inline: 30%;
justify-self: center;
}
}
.overlay-right {
.narrative-col {
margin-inline-start: 65%;
margin-inline-end: 5%;
justify-self: end;
}
}

Expand Down

0 comments on commit ed79c9c

Please sign in to comment.