Comments (5)
The jquery function? I really can't see how things would be impossible without it, I've never even seen it before.
from elm-ui.
I am referring to prop
from style-elements
, the precursor to this library. In the specific case that prompted this ticket, I haven't found a way to use relative font sizes without it, which is how I like to do fluid typography.
from elm-ui.
You can do inline styles using Element.htmlAttribute (Html.style "font-size" "1.2rem")
.
What do you usually do for fluid typography? Do you mean using em/rem
or are you talking about scaling the font with the window size?
from elm-ui.
I was referring to fluid typography using em/rem
as described here – but I'm thinking I might be able to accomplish something very similar by subscribing to the window dimensions and recalculating font sizes that way.
from elm-ui.
Ah, ok cool. Yeah, that's the way to go!
from elm-ui.
Related Issues (20)
- scrollbarX makes the container element disappear. HOT 1
- clipX adds a white box to the end of a line on Chrome
- Docs' paragraph example image 404s
- Element content not rendered when using Element.scrollbarY inside of an Element.inFront attribute HOT 4
- Some elements don't get style applied HOT 2
- Tooltips? HOT 1
- Element.modular math is wrong (easy fix provided)
- Input.slider doesn't respond to mouseOver HOT 1
- Why are some of the events functions like onMouseCoords not exported?
- Feature request: from Html.Styled HOT 1
- Make text unselectable? HOT 2
- CSP nonce support (to be able to protect against XSS attacks)
- Feature request: batch attributes together HOT 2
- Feature request: add attributes retroactively HOT 1
- Feature request: attribute 'none' HOT 1
- Add a function similar to ZStack in SwiftUI HOT 3
- Canvas inside Element HOT 1
- Below attribute adds a z-index of 20 and thus jumps in front of everything
- Enable custom styling for elements which are both focused and hovered
- Serialize elm-ui to json
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 elm-ui.