Skip to content

Commit

Permalink
feat(utils): extend the package
Browse files Browse the repository at this point in the history
Added the first part utilities including Layout, Flex & Grid, Spacing, Typography, Backgrounds,
Effects, Filters, Interactivity and Svg.
  • Loading branch information
magdalenaan authored and Juveniel committed Mar 21, 2023
1 parent 2db5442 commit 472b728
Show file tree
Hide file tree
Showing 25 changed files with 621 additions and 154 deletions.
127 changes: 109 additions & 18 deletions packages/utils/docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,97 @@ This is equivalent to `aspect-ratio: 16 / 9;`. The box's preferred aspect ratio



### `.k-columns-1`

This is equivalent to `columns: 1;`. Element's content is displayed into 1 column.




### `.k-columns-2`

This is equivalent to `columns: 2;`. Element's content is broken into 2 columns.




### `.k-columns-3`

This is equivalent to `columns: 3;`. Element's content is broken into 3 columns.




### `.k-columns-4`

This is equivalent to `columns: 4;`. Element's content is broken into 4 columns.




### `.k-columns-5`

This is equivalent to `columns: 5;`. Element's content is broken into 5 columns.




### `.k-columns-6`

This is equivalent to `columns: 6;`. Element's content is broken into 6 columns.




### `.k-columns-7`

This is equivalent to `columns: 7;`. Element's content is broken into 7 columns.




### `.k-columns-8`

This is equivalent to `columns: 8;`. Element's content is broken into 8 columns.




### `.k-columns-9`

This is equivalent to `columns: 9;`. Element's content is broken into 9 columns.




### `.k-columns-10`

This is equivalent to `columns: 10;`. Element's content is broken into 10 columns.




### `.k-columns-11`

This is equivalent to `columns: 11;`. Element's content is broken into 11 columns.




### `.k-columns-12`

This is equivalent to `columns: 12;`. Element's content is broken into 12 columns.




### `.k-columns-auto`

This is equivalent to `columns: auto;`.The number of columns is determined by other CSS properties, such as column-width.




### `.k-d-none`

This is equivalent to `display: none;`. Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.
Expand Down Expand Up @@ -447,65 +538,65 @@ This is equivalent to `pointer-events: auto;`. The element behaves as it would i



### `.k-pos-static`
### `.k-pos-top`

This is equivalent to `position: static;`. The element is positioned according to the normal flow of the document. The top, right, bottom, left, and z-index properties have no effect. This is the default value.
This is equivalent to `top: 0;`.




### `.k-pos-relative`
### `.k-pos-right`

This is equivalent to `position: relative;`. The element is positioned according to the normal flow of the document, and then offset relative to itself based on the values of top, right, bottom, and left. The offset does not affect the position of any other elements; thus, the space given for the element in the page layout is the same as if position were static.
This is equivalent to `right: 0;`.




### `.k-pos-absolute`
### `.k-pos-bottom`

This is equivalent to `position: absolute;`. The element is removed from the normal document flow, and no space is created for the element in the page layout. It is positioned relative to its closest positioned ancestor, if any; otherwise, it is placed relative to the initial containing block. Its final position is determined by the values of top, right, bottom, and left.
This is equivalent to `bottom: 0;`.




### `.k-pos-fixed`
### `.k-pos-left`

This is equivalent to `position: fixed;`. The element is removed from the normal document flow, and no space is created for the element in the page layout. It is positioned relative to the initial containing block established by the viewport, except when one of its ancestors has a transform, perspective, or filter property set to something other than none (see the CSS Transforms Spec), in which case that ancestor behaves as the containing block. (Note that there are browser inconsistencies with perspective and filter contributing to containing block formation.) Its final position is determined by the values of top, right, bottom, and left.
This is equivalent to `left: 0;`.




### `.k-pos-sticky`
### `.k-pos-static`

This is equivalent to `position: sticky;`. The element is positioned according to the normal flow of the document, and then offset relative to its nearest scrolling ancestor and containing block (nearest block-level ancestor), including table-related elements, based on the values of top, right, bottom, and left. The offset does not affect the position of any other elements.
This is equivalent to `position: static;`. The element is positioned according to the normal flow of the document. The top, right, bottom, left, and z-index properties have no effect. This is the default value.




### `.k-pos-top`
### `.k-pos-relative`

This is equivalent to `top: 0;`.
This is equivalent to `position: relative;`. The element is positioned according to the normal flow of the document, and then offset relative to itself based on the values of top, right, bottom, and left. The offset does not affect the position of any other elements; thus, the space given for the element in the page layout is the same as if position were static.




### `.k-pos-right`
### `.k-pos-absolute`

This is equivalent to `right: 0;`.
This is equivalent to `position: absolute;`. The element is removed from the normal document flow, and no space is created for the element in the page layout. It is positioned relative to its closest positioned ancestor, if any; otherwise, it is placed relative to the initial containing block. Its final position is determined by the values of top, right, bottom, and left.




### `.k-pos-bottom`
### `.k-pos-fixed`

This is equivalent to `bottom: 0;`.
This is equivalent to `position: fixed;`. The element is removed from the normal document flow, and no space is created for the element in the page layout. It is positioned relative to the initial containing block established by the viewport, except when one of its ancestors has a transform, perspective, or filter property set to something other than none (see the CSS Transforms Spec), in which case that ancestor behaves as the containing block. (Note that there are browser inconsistencies with perspective and filter contributing to containing block formation.) Its final position is determined by the values of top, right, bottom, and left.




### `.k-pos-left`
### `.k-pos-sticky`

This is equivalent to `left: 0;`.
This is equivalent to `position: sticky;`. The element is positioned according to the normal flow of the document, and then offset relative to its nearest scrolling ancestor and containing block (nearest block-level ancestor), including table-related elements, based on the values of top, right, bottom, and left. The offset does not affect the position of any other elements.



Expand Down
Loading

0 comments on commit 472b728

Please sign in to comment.