Comments (2)
I think this would be helpful for a media query around font size to basically allow the author to say "font-size to fit contents into slide please" and avoid overflowing. At least that's what I was trying yesterday, I might have been barking up the wrong tree though.
from marpit.
@EdwardPrentice You already can test CSS container query by defining container-type: size
within the section
selector.
section {
container-type: size;
}
/* Container query */
@container (width > 1000px) {
h1 {
color: red;
}
}
h1 {
font-size: 5cqw; /* Container-based unit */
}
I'm wondering if should add CSS container query support at the framework level, or should leave container-type
declaration up to the theme/document author. We want more opinions from community.
from marpit.
Related Issues (20)
- Node.js 18 support
- Implement previews for every pull request HOT 1
- different font for different language HOT 2
- the footnote in markdown syntax[^1] does not working properly HOT 1
- Basic Usage Steps HOT 3
- Support multiple locales in the docs HOT 1
- Allow for fragmented list from a directive HOT 4
- Unexpected behavior of Marp when importing css in a scoped style HOT 1
- `paginate: hold` at the first page renders page number 0
- Alternative image attribute syntax HOT 2
- No alt text for 'bg' images HOT 3
- [FEATURE REQUEST]: Adding Stylesheet Directly in Markdown Via URL HOT 1
- Setting background without fill HOT 1
- Line continuations are not endorsed as paragraphs HOT 1
- Allow setting section id from markdown HOT 3
- Center a table in a slide HOT 2
- Render non-inline svg files HOT 2
- ESM build
- Support for CSS nesting
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 marpit.