Coder Social home page Coder Social logo

Plugins development about assembler HOT 2 CLOSED

asmcss avatar asmcss commented on June 18, 2024
Plugins development

from assembler.

Comments (2)

msarca avatar msarca commented on June 18, 2024

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.

Awilum avatar Awilum commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.