Comments (3)
I think the problem is due to the CSS rule width: fit-content
in the wrapper div. I'll take a look into it and fix it
from no-style-please.
hello, I just tried it and its works fine on my side too
I just use the code blocks for the way they look on the page haha, but i apreacciated it
thanks for fixing it, this is a great theme
gracias
from no-style-please.
I investigated a bit and that's what I found.
First of all, the problem has nothing to do with dark mode since it also occurs in light mode. Moreover, in my tests this problem occured only in Chrome and Safari.
It has to do with <code>
tags that don't seem to work as expected. All other elements (images, blockquotes, tables, ...) respect the size of the parent wrapper div (<div class="w">
), but <code>
doesn't. It takes up all the width necessary to render its longest line, up to a max width of 640px (defined again in the wrapper div).
This surely has something to do with the wrapper div style: width: fit-content
. Removing that line solves the problem, but brings some inconveniences so I don't want to change it.
Instead I added white-space: pre-wrap
to the style of <code>
elements. This solves the problem but has the incovenience that now lines in blocks wrap if they're too long. Not the best imo but it's okay for now.
from no-style-please.
Related Issues (20)
- Formatting HOT 1
- [Question] Why no-css? HOT 2
- Fix HTML issues to fit standard HOT 2
- Darkmode inverts the colors of emoji HOT 3
- Code blocks horizontal scrolling
- Posts by category archive is not visible HOT 1
- Could not find 'no-style-please' HOT 3
- everything is a hyperlink? HOT 1
- No-Style-please theme question HOT 3
- Titles converted to links and layouts do not exist. HOT 1
- This is a great theme, any plans to port it to hexo?
- Social links in no-style-please theme
- jekyll-feed & jekyll-seo-tag is not neccessary?
- codeblocks are weird HOT 1
- Add button to switch between dark and light theme HOT 1
- date showing in post list without any post error? HOT 1
- "mailto" does not work
- Long linline highlighted code breaks dark theme HOT 1
- KaTeX Support HOT 8
- How do I register for Google Analytics?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from no-style-please.