-
Notifications
You must be signed in to change notification settings - Fork 6
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
Adjust trigger padding #102
Conversation
What do you think, @andrewpbray? Before: After: |
_extensions/closeread/closeread.scss
Outdated
@@ -132,7 +140,7 @@ | |||
.narrative { | |||
background-color: rgba(17, 17, 17, .85); | |||
color: white; | |||
padding: 5px; | |||
padding: 5px; // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO meaning consider revisiting if you want to tweak?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: don't get distracted halfway through writing a TODO 😂
I think I originally modified this property, realised this was inside the mobile layout, intended to decide whether this property was needed at all and then got distracted 😬 I think 0.75rem is a good bit of padding for all layouts though tbh, so I'm tempted to remove this altogether!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're looking at that index closeread... I used a very similar approach to line highlighting as the one used by revealjs. Essentially all non-highlighted lines in a block of lines with highlighting get hit with a
In a setting like this, where the whole cr-section div has a blue background color, some of that bleeds through since its opaque. Do you know of an easy way to fix this? Essentially I want a white mask on the code block, not really an opacity, or an opacity that sees past the blue background to the white beneath it... |
I think the blue is bleeding through because the
|
Oh that's very interesting! Yes, a good thing to override manually for now but I wouldn't be surprised if other users run into this. If we see it crop up again, we can consider a more systematic fix. Fundamentally, Quarto html styling probably (and sensibly) wasn't designed imagining that these elements were going to be put into a stack. |
Hmm, I'm noticing some strange behavior on a narrow screen on the index at closeread.dev: mobile-index-sm.movThis was on Chrome on my laptop but this is the same thing I see on my (tiny) phone running Safari. When I check the ones in the Gallery, they don't seem to have this issue. How does it work on your end? Maybe this is just an issue with |
There are two things happening here, I think:
|
You can briefly catch the re-rasterisation in Safari when changing highlights (not worried about it here since it's kicking in at the end of the transition, but you can at least see the un-re-rasterised state): Screen.Recording.2024-10-20.at.21.16.15.mov |
Did you add these changes to #107 instead of this branch? I still get the overflow issue when I try it locally on this branch. |
Oh jeez, I did 🤦🏻♂️ Lemme cherry pick them over to here! |
Should be good to test now, @andrewpbray! (I tried to fix the conflict with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Makes a small adjustment to padding for narrative blocks so that the padding is more reliable and gives the text more room to breathe by default