Skip to content

Commit

Permalink
Merge pull request #29 from viivue/1.1.10
Browse files Browse the repository at this point in the history
1.1.10
  • Loading branch information
vuquangpham authored May 31, 2023
2 parents 37d5bdc + b9d7225 commit 47f59a1
Show file tree
Hide file tree
Showing 8 changed files with 143 additions and 13 deletions.
15 changes: 15 additions & 0 deletions css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,18 @@ ul.list-style-none > li,
.list-style-none ul > li {
padding:0;
}

/*
* Visually hidden
* https://www.joshwcomeau.com/snippets/react-components/visually-hidden/
*/
.visually-hidden {
position:absolute;
overflow:hidden;
clip:rect(0 0 0 0);
width:1px;
height:1px;
margin:-1px;
padding:0;
border:0;
}
44 changes: 37 additions & 7 deletions css/transitions.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,53 @@
*/
/* transition */
.t {
transition-duration:.25s;
transition-property:all;
transition-timing-function:ease;
transition-delay:0s;
transition-duration:.25s;
transition-property:all;
transition-timing-function:ease;
transition-delay:0s;
}

/* slow */
.t-slow {
transition-duration:.6s;
transition-duration:.6s;
}

/* fast */
.t-fast {
transition-duration:.1s;
transition-duration:.1s;
}

/* opacity */
.t-opacity {
transition-property:opacity;
transition-property:opacity;
}

/* opacity-color */
.t-opacity-color {
transition-property:opacity, color;
}

/* transform */
.t-transform {
transition-property:transform;
}

/* transform-opacity */
.t-transform-opacity {
transition-property:transform, opacity;
}

/* transform-opacity-color */
.t-transform-opacity-color {
transition-property:transform, opacity, color;
}

/* transform-color */
.t-transform-color {
transition-property:transform, color;
}

/* color */
.t-color {
transition-property:color;
}
47 changes: 46 additions & 1 deletion dist/atomic.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Atomic CSS 1.1.9
* Atomic CSS 1.1.10
* https://github.com/viivue/atomic-css
*/
/**
Expand Down Expand Up @@ -647,6 +647,36 @@
transition-property:opacity;
}

/* opacity-color */
.t-opacity-color {
transition-property:opacity, color;
}

/* transform */
.t-transform {
transition-property:transform;
}

/* transform-opacity */
.t-transform-opacity {
transition-property:transform, opacity;
}

/* transform-opacity-color */
.t-transform-opacity-color {
transition-property:transform, opacity, color;
}

/* transform-color */
.t-transform-color {
transition-property:transform, color;
}

/* color */
.t-color {
transition-property:color;
}

/**
* Object fit
* https://stackoverflow.design/product/base/object-fit/
Expand Down Expand Up @@ -1034,3 +1064,18 @@ ul.list-style-none > li,
.list-style-none ul > li {
padding:0;
}

/*
* Visually hidden
* https://www.joshwcomeau.com/snippets/react-components/visually-hidden/
*/
.visually-hidden {
position:absolute;
overflow:hidden;
clip:rect(0 0 0 0);
width:1px;
height:1px;
margin:-1px;
padding:0;
border:0;
}
4 changes: 2 additions & 2 deletions dist/atomic.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viivue/atomic-css",
"version": "1.1.9",
"version": "1.1.10",
"description": "⚛️ Customizable Atomic CSS Framework.",
"main": "./dist/atomic.min.css",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion scss/_defs.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Definitions
/// DO NOT EDIT!

$version: "1.1.9";
$version: "1.1.10";
$info: ();

// axes
Expand Down
16 changes: 16 additions & 0 deletions scss/extra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,20 @@ ul.list-style-none,
ul.list-style-none > li,
.list-style-none ul > li {
padding: 0;
}


/*
* Visually hidden
* https://www.joshwcomeau.com/snippets/react-components/visually-hidden/
*/
.visually-hidden {
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
border: 0;
}
26 changes: 25 additions & 1 deletion scss/transitions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,31 @@ $dataset: (
opacity:(
selectors:'.t-opacity',
inline:'transition-property: opacity'
)
),
opacity-color:(
selectors:'.t-opacity-color',
inline:'transition-property: opacity, color'
),
transform :(
selectors:'.t-transform',
inline:'transition-property: transform'
),
transform-opacity :(
selectors:'.t-transform-opacity ',
inline:'transition-property: transform, opacity'
),
transform-opacity-color:(
selectors:'.t-transform-opacity-color',
inline:'transition-property: transform, opacity, color'
),
transform-color:(
selectors:'.t-transform-color',
inline:'transition-property: transform, color'
),
color :(
selectors:'.t-color',
inline:'transition-property: color'
),
);

// print
Expand Down

0 comments on commit 47f59a1

Please sign in to comment.