Skip to content

Commit

Permalink
feat: Add object-fit module with its main classes
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton225 committed Nov 30, 2024
1 parent 0fafaa6 commit 0261c30
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
13 changes: 13 additions & 0 deletions css/tachyons.css
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,19 @@ code, .code { font-family: Consolas, monaco, monospace; }
.nested-links a { color: #357edd; transition: color .15s ease-in; }
.nested-links a:hover { color: #96ccff; transition: color .15s ease-in; }
.nested-links a:focus { color: #96ccff; transition: color .15s ease-in; }
/*
OBJECT FIT
Base
object = object-fit
*/
.object-contain { -o-object-fit: contain; object-fit: contain; }
.object-cover { -o-object-fit: cover; object-fit: cover; }
.object-fill { -o-object-fit: fill; object-fit: fill; }
.object-none { -o-object-fit: none; object-fit: none; }
.object-scale-down { -o-object-fit: scale-down; object-fit: scale-down; }
/*
STYLES
Expand Down
2 changes: 1 addition & 1 deletion css/tachyons.min.css

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions src/_object-fit.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
OBJECT FIT
Base
object = object-fit
*/

.object-contain { object-fit: contain; }

.object-cover { object-fit: cover; }

.object-fill { object-fit: fill; }

.object-none { object-fit: none; }

.object-scale-down { object-fit: scale-down; }
1 change: 1 addition & 0 deletions src/tachyons.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
@import './_hovers';
@import './_z-index';
@import './_nested';
@import './_object-fit';
@import './_styles';

/* Variables */
Expand Down

0 comments on commit 0261c30

Please sign in to comment.