1.1.0 • Published 3 years ago

asmcss-mixin-w v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

asmcss-mixin-w

A mixin for Assembler CSS that provides extended functionality to set the width of an element.

Installation

Install the mixin from npm:

npm install asmcss-mixin-w

or use the mixin from CDN:

<script src="https://unpkg.com/asmcss-mixin-w@^1/dist/js/asmcss-mixin-w.min.js"></script>

Usage

<div x-style="flex;">
    <div x-style:"^w:6/12;">
        Dustin and Steve become like proud dads to each other in season 3. 
        They argue a lot, but they also praise each other's achievements. 
        For instance, when the Scoops Troop is left to their own devices, 
        it's Steve who has to step up and fight an evil Russian to get to where they need to go.
    </div>
    <div x-style:"^w:6/12;">
        Earlier in the season, Dustin teases Steve about losing fights all the time - first with
        Jonathan, then Billy. Steve realizes this is true, so when he defeats the Russian, Dustin
        jumps for joy, amazed.
    </div>
</div>

Documentation

valuecss properties
autowidth: auto;
1/2width: 50%
1/3width: 33.333333%;
2/3width: 66.666667%;
1/4width: 25%;
2/4width: 50%;
3/4width: 75%;
1/5width: 20%;
2/5width: 40%;
3/5width: 60%;
4/5width: 80%;
1/6width: 16.666667%;
2/6width: 33.333333%;
3/6width: 50%;
4/6width: 66.666667%;
5/6width: 83.333333%;
1/12width: 8.333333%;
2/12width: 16.666667%;
3/12width: 25%;
4/12width: 33.333333%;
5/12width: 41.666667%;
6/12width: 50%;
7/12width: 58.333333%;
8/12width: 66.666667%;
9/12width: 75%;
10/12width: 83.333333%;
11/12width: 91.666667%;
fullwidth: 100%;
screenwidth: 100vw;
minwidth: min-content;
maxwidth: max-content;

License

The MIT License (MIT) Copyright (c) 2021 Sergey Romanenko