Comments (2)
There is no need to create plugins and other complicated setups for such a simple task. You can easily achieve this by creating a mixin.
<style>
:root {
--line-clamp--mixin: "overflow:hidden; display:-webkit-box; box-orient:vertical; line-clamp:${0=1}";
}
</style>
Now you can use the newly created mixin.
<div x-style="w:120px; ^line-clamp:4">
Any veggie can belong on your menu, so choose what you love and use the rest for future meals and snacks you can enjoy in flavorful ways.
</div>
box-orient
and line-clamp
are supported starting with the newly released v0.5.0 version of AssemblerCSS. This version also brings users the ability to register new assembler properties.
from assembler.
Okey, what about a little bit more complex things?
btw: I have create this plugin/mixin: https://github.com/Awilum/asmcss-mixin-w
from assembler.
Related Issues (14)
- Prerendering support HOT 3
- SM breakpoint applied for all breakpoints HOT 1
- Included plugins? HOT 2
- Idea: Assembler Functions HOT 5
- Add Pseudo-elements support HOT 1
- x-style is not a valid HTML5 attribute HOT 1
- Question
- [bug] Render bug HOT 1
- Explain the way of working
- Can't register property? HOT 2
- Ideas HOT 3
- Assembler CSS Play? HOT 6
- Turn on discussions HOT 2
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 assembler.