Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Moved variables from teamleader-ui to ui-utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
driesd committed Oct 20, 2017
1 parent 73c5e4e commit 9a406ed
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:root {
--unit: 10px;

--spacer-unit: 3px;
--spacer-smallest: calc(1 * var(--spacer-unit));
--spacer-smaller: calc(2 * var(--spacer-unit));
Expand All @@ -8,4 +10,49 @@
--spacer-big: calc(12 * var(--spacer-unit));
--spacer-bigger: calc(16 * var(--spacer-unit));
--spacer-biggest: calc(24 * var(--spacer-unit));

--standard-increment-mobile: calc(5.6 * var(--unit));
--standard-increment-desktop: calc(6.4 * var(--unit));

--z-index-higher: 200;
--z-index-high: 100;
--z-index-normal: 1;
--z-index-low: -100;
--z-index-lower: -200;
}

.reset {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
text-size-adjust: 100%;
}

/* Orientation */
@custom-media --portrait (orientation: portrait);
@custom-media --landscape (orientation: landscape);

/* Devices (defined by max width) */
@custom-media --xxs-viewport (max-width: 480px);
@custom-media --xs-viewport (max-width: 600px);
@custom-media --sm-tablet-viewport (max-width: 720px);
@custom-media --sm-viewport (max-width: 840px);
@custom-media --md-viewport (max-width: 960px);
@custom-media --lg-tablet-viewport (max-width: 1024px);
@custom-media --lg-viewport (max-width: 1280px);
@custom-media --xl-viewport (max-width: 1440px);
@custom-media --xxl-viewport (max-width: 1600px);
@custom-media --xxxl-viewport (max-width: 1920px);

/* Devices (defined by min-width) */
@custom-media --larger-than-xxs-viewport (min-width: 480px);
@custom-media --larger-than-xs-viewport (min-width: 600px);
@custom-media --larger-than-sm-tablet-viewport (min-width: 720px);
@custom-media --larger-than-sm-viewport (min-width: 840px);
@custom-media --larger-than-md-viewport (min-width: 960px);
@custom-media --larger-than-lg-tablet-viewport (min-width: 1024px);
@custom-media --larger-than-lg-viewport (min-width: 1280px);
@custom-media --larger-than-xl-viewport (min-width: 1440px);
@custom-media --larger-than-xxl-viewport (min-width: 1600px);
@custom-media --larger-than-xxxl-viewport (min-width: 1920px);

0 comments on commit 9a406ed

Please sign in to comment.