Skip to content

Commit

Permalink
New util classes
Browse files Browse the repository at this point in the history
- items-baseline (flexbox)
- cursor-pointer
- min-height

Co-Authored-By: Claudia Romano <claudia-romano@users.noreply.github.com>
  • Loading branch information
sebastiano-guerriero and claudia-romano committed Mar 3, 2020
1 parent 821b586 commit b977f6e
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 7 deletions.
30 changes: 27 additions & 3 deletions main/assets/css/base/_util.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }

// --------------------------------

Expand Down Expand Up @@ -363,6 +364,14 @@

// --------------------------------

// Cursor

// --------------------------------

.cursor-pointer { cursor: pointer; }

// --------------------------------

// Color

// --------------------------------
Expand Down Expand Up @@ -497,6 +506,16 @@
.min-width-66\% { min-width: calc(100% / 1.5); }
.min-width-75\% { min-width: 75%; }
.min-width-100\% { min-width: 100%; }
.min-width-100vw { min-width: 100vw; }

// --------------------------------

// min-height

// --------------------------------

.min-height-100\% { min-height: 100%; }
.min-height-100vh { min-height: 100vh; }

// --------------------------------

Expand All @@ -520,9 +539,9 @@

// --------------------------------

.zindex-1 { z-index: 1; }
.zindex-2 { z-index: 2; }
.zindex-3 { z-index: 3; }
.zindex-1, .z-index-1 { z-index: 1; }
.zindex-2, .z-index-2 { z-index: 2; }
.zindex-3, .z-index-3 { z-index: 3; }

// --------------------------------

Expand Down Expand Up @@ -781,6 +800,7 @@ $media-wrapper-aspect-ratios: (
.items-center\@xs { align-items: center; }
.items-start\@xs { align-items: flex-start; }
.items-end\@xs { align-items: flex-end; }
.items-baseline\@xs { align-items: baseline; }

// order
.order-1\@xs { order: 1; }
Expand Down Expand Up @@ -1041,6 +1061,7 @@ $media-wrapper-aspect-ratios: (
.items-center\@sm { align-items: center; }
.items-start\@sm { align-items: flex-start; }
.items-end\@sm { align-items: flex-end; }
.items-baseline\@sm { align-items: baseline; }

// order
.order-1\@sm { order: 1; }
Expand Down Expand Up @@ -1301,6 +1322,7 @@ $media-wrapper-aspect-ratios: (
.items-center\@md { align-items: center; }
.items-start\@md { align-items: flex-start; }
.items-end\@md { align-items: flex-end; }
.items-baseline\@md { align-items: baseline; }

// order
.order-1\@md { order: 1; }
Expand Down Expand Up @@ -1561,6 +1583,7 @@ $media-wrapper-aspect-ratios: (
.items-center\@lg { align-items: center; }
.items-start\@lg { align-items: flex-start; }
.items-end\@lg { align-items: flex-end; }
.items-baseline\@lg { align-items: baseline; }

// order
.order-1\@lg { order: 1; }
Expand Down Expand Up @@ -1821,6 +1844,7 @@ $media-wrapper-aspect-ratios: (
.items-center\@xl { align-items: center; }
.items-start\@xl { align-items: flex-start; }
.items-end\@xl { align-items: flex-end; }
.items-baseline\@xl { align-items: baseline; }

// order
.order-1\@xl { order: 1; }
Expand Down
6 changes: 6 additions & 0 deletions main/assets/css/base/_visibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@

.is-hidden {
display: none !important;
}

html:not(.js) {
.no-js\:is-hidden {
display: none !important;
}
}
4 changes: 2 additions & 2 deletions main/assets/css/style-fallback.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main/assets/css/style.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": "codyhouse-framework",
"version": "2.5.1",
"version": "2.5.2",
"description": "A lightweight front-end framework for building accessible, bespoke interfaces.",
"main": "index.js",
"keywords": [
Expand Down

0 comments on commit b977f6e

Please sign in to comment.