mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-06 15:16:57 -06:00
Improve inline code wrapping on mobile viewports, fix weird overflow issue with codeblocks
This commit is contained in:
@@ -22,9 +22,14 @@ h6 {
|
||||
padding: 0.1rem 0.27rem;
|
||||
border-radius: 3px;
|
||||
border: 1px solid rgba(white, 0.4);
|
||||
|
||||
// On really small viewports, word wrapping can be pretty bad with monospaced codeblocks; this allows them to wrap with impunity.
|
||||
word-break: break-all;
|
||||
@screen sm {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[data-highlighted-chars] {
|
||||
&[data-chars-id='purple'] {
|
||||
@@ -49,6 +54,7 @@ div[data-rehype-pretty-code-fragment] {
|
||||
background-color: #161616 !important;
|
||||
> pre {
|
||||
> code {
|
||||
overflow-x: auto;
|
||||
padding: 0.5em 0;
|
||||
|
||||
> span[data-line] {
|
||||
|
||||
Reference in New Issue
Block a user