Eldad Test
+Joined: June 11, 2022
+diff --git a/.changeset/dirty-hounds-do.md b/.changeset/dirty-hounds-do.md new file mode 100644 index 0000000000..9dce89ad76 --- /dev/null +++ b/.changeset/dirty-hounds-do.md @@ -0,0 +1,6 @@ +--- +"@appwrite.io/pink-icons": patch +"@appwrite.io/pink": patch +--- + +patch bump diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 0000000000..c680668d2f --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,14 @@ +{ + "mode": "pre", + "tag": "sl10", + "initialVersions": { + "@appwrite.io/kitchensink": "0.0.0", + "@appwrite.io/pink-design": "0.0.0-rc1", + "@appwrite.io/fonts": "0.0.0", + "@appwrite.io/pink-icons": "0.0.6", + "@appwrite.io/pink": "0.0.6" + }, + "changesets": [ + "dirty-hounds-do" + ] +} diff --git a/apps/kitchensink/cover-frame-2.html b/apps/kitchensink/cover-frame-2.html new file mode 100644 index 0000000000..2b5c2f0c2c --- /dev/null +++ b/apps/kitchensink/cover-frame-2.html @@ -0,0 +1,364 @@ + + +
+ + +Joined: June 11, 2022
+Free text in here
+Free text
++ Enter a new password. A password must contain + at least 8 characters. +
++ You can update your user preferences by storing information + on the user's objects so they can easily be shared across + devices and sessions. +
++ The user will be permanently deleted, including all data + associated with this user. This action is irreversible. +
+eldad@appwrite.io
+Building
+
+
+ blahFunction = {
+
+
+ firstName: "hello"
+
+
+ }
+
+
+
+ blahFunction = {
+
+
+ firstName: "hello"
+
+
+ }
+
+ this text will now have cursor
diff --git a/apps/pink/src/pages/utilities/display.mdx b/apps/pink/src/pages/utilities/display.mdx index 6246c11517..cf88829c36 100644 --- a/apps/pink/src/pages/utilities/display.mdx +++ b/apps/pink/src/pages/utilities/display.mdx @@ -3,116 +3,112 @@ title: Display description: Display controls how an element is displayed, including its alignment, spacing and size. --- -| Class | Scss Definition | Compiled CSS | -| -------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `u-block` | `display: block;` | Stays the same | -| `u-inline` | `display: inline;` | Stays the same | -| `u-grid` | `display: grid;` | Stays the same | -| `u-flex` | `display: flex;` | Stays the same | -| `u-inline-flex` | `display: inline-flex;` | Stays the same | -| `u-contents` | `display: contents;` | Stays the same | -| `u-contents-mobile` | `@media #{$break1} { {display: contents;} }` | `@media (max-width:767.99px) { display: contents; }` | -| | | | -| `u-box-sizing-content` | `box-sizing: content-box;` | Stays the same | -| | | | -| `u-sep-inline-start` | `border-inline-start: solid pxToRem(1) hsl(var(--color-border)) !important;` | `border-inline-start: solid 0.0625rem hsl(var(--color-border)) !important;` | -| `u-sep-block-start` | `border-block-start: solid pxToRem(1) hsl(var(--color-border)) !important;` | `border-block-start: solid 0.0625rem hsl(var(--color-border)) !important;` | -| `u-sep-block-end` | `border-block-end: solid pxToRem(1) hsl(var(--color-border)) !important;` | `border-block-end: solid 0.0625rem hsl(var(--color-border)) !important;` | -| | | | -| `u-gap-2` | `gap: pxToRem(2);` | `gap: 0.125rem;` | -| `u-gap-4` | `gap: pxToRem(4);` | `gap: 0.25rem;` | -| `u-gap-8` | `gap: pxToRem(8);` | `gap: 0.5rem;` | -| `u-gap-12` | `gap: pxToRem(12);` | `gap: 0.75rem;` | -| `u-gap-16` | `gap: pxToRem(16);` | `gap: 1rem;` | -| `u-gap-24` | `gap: pxToRem(24);` | `gap: 1.5rem;` | -| `u-gap-32` | `gap: pxToRem(32);` | `gap: 2eem;` | -| | | | -| `u-column-gap-2` | `column-gap: pxToRem(2);` | `column-gap: 0.125rem;` | -| `u-column-gap-4` | `column-gap: pxToRem(4);` | `column-gap: 0.25rem;` | -| `u-column-gap-8` | `column-gap: pxToRem(8);` | `column-gap: 0.5rem;` | -| `u-column-gap-12` | `column-gap: pxToRem(12);` | `column-gap: 0.75rem;` | -| `u-column-gap-16` | `column-gap: pxToRem(16);` | `column-gap: 1rem;` | -| `u-column-gap-24` | `column-gap: pxToRem(24);` | `column-gap: 1.5rem;` | -| `u-column-gap-32` | `column-gap: pxToRem(32);` | `column-gap: 2rem;` | -| | | | -| `u-row-gap-2` | `row-gap: pxToRem(2);` | `row-gap: 0.125rem;` | -| `u-row-gap-4` | `row-gap: pxToRem(4);` | `row-gap: 0.25rem;` | -| `u-row-gap-8` | `row-gap: pxToRem(8);` | `row-gap: 0.5rem;` | -| `u-row-gap-12` | `row-gap: pxToRem(12);` | `row-gap: 0.75rem;` | -| `u-row-gap-16` | `row-gap: pxToRem(16);` | `row-gap: 1rem;` | -| `u-row-gap-24` | `row-gap: pxToRem(24);` | `row-gap: 1.5rem;` | -| `u-row-gap-32` | `row-gap: pxToRem(32);` | `row-gap: 2rem;` | -| | | | -| `u-row-gap-8` | `row-gap: pxToRem(8);` | `row-gap: 0.5rem;` | -| `u-row-gap-12` | `row-gap: pxToRem(12);` | `row-gap: 0.75rem;` | -| `u-row-gap-16` | `row-gap: pxToRem(16);` | `row-gap: 1rem;` | -| `u-row-gap-24` | `row-gap: pxToRem(24);` | `row-gap: 1.5rem;` | -| | | | -| `u-flex-vertical` | `display:flex; flex-direction: column;` | Stays the same | -| `u-flex-vertical-mobile` | `@media #{$break1} { flex-direction:column; }` | `@media (max-width:767.99px) { flex-direction:column; }` | -| `u-flex-wrap` | `flex-wrap: wrap;` | Stays the same | -| `u-stretch` | `flex: 1;` | Stays the same | -| `u-flex-basis-140` | `flex-basis: pxToRem(140);` | `flex-basis: 8.75rem` | -| `u-flex-basis-250` | `flex-basis: pxToRem(250);` | `flex-basis: 15.625rem` | -| `u-flex-basis-500` | `flex-basis: pxToRem(500);` | `flex-basis: 31.25rem` | -| `u-flex-basis-50-percent` | `flex-basis: 50%;` | Stays the same | -| `u-flex-basis-100-percent` | `flex-basis: 100%;` | Stays the same | -| `u-flex-shrink-0` | `flex-shrink: 0;` | Stays the same | -| `u-flex-basis-auto` | `flex-basis: auto;` | Stays the same | -| | | | -| `u-grid-columns-auto-1fr` | `grid-template-columns: auto 1fr;` | Stays the same | -| | | | -| `u-width-full-line` | `inline-size: 100%;` | Stays the same | -| `u-width-140` | `inline-size: pxToRem(140);` | `inline-size: 8.75rem;` | -| `u-width-150` | `inline-size: pxToRem(150);` | `inline-size: 9.375rem;` | -| `u-width-200` | `inline-size: pxToRem(200);` | `inline-size: 12.5rem;` | -| `u-width-250` | `inline-size: pxToRem(250);` | `inline-size: 15.625rem;` | -| `u-width-600` | `inline-size: pxToRem(600);` | `inline-size: 37.5rem;` | -| `u-width-280-desktop` | `@media #{$break3open} { inline-size: pxToRem(280); }` | `@media (min-width:1199px) { inline-size: 17.25rem; }` | -| | | | -| `u-min-width-0` | `min-inline-size: 0; /_use to solve flexbox un-shrink problem;_/` | Stays the same | -| `u-min-width-200` | `min-inline-size: pxToRem(200); ` | `min-inline-size: 25rem;` | -| `u-min-width-100-percent` | `min-inline-size: 100%;` | Stays the same | -| | | | -| `u-max-width-250` | `max-inline-size: pxToRem(250);` | `max-inline-size: 15.625rem;` | -| `u-max-width-300` | `max-inline-size: pxToRem(300);` | `max-inline-size: 18.75rem;` | -| `u-max-width-350` | `max-inline-size: pxToRem(350);` | `max-inline-size: 21.875rem;` | -| `u-max-width-400` | `max-inline-size: pxToRem(400);` | `max-inline-size: 25rem;` | -| `u-max-width-450` | `max-inline-size: pxToRem(450);` | `max-inline-size: 28.125rem;` | -| `u-max-width-500` | `max-inline-size: pxToRem(500);` | `max-inline-size: 31.25rem;` | -| `u-max-width-600` | `max-inline-size: pxToRem(600);` | `max-inline-size: 37.5rem;` | -| `u-max-width-650` | `max-inline-size: pxToRem(650);` | `max-inline-size: 40.625rem;` | -| `u-max-width-700` | `max-inline-size: pxToRem(700);` | `max-inline-size: 43.75rem;` | -| `u-max-width-100-percent` | `max-inline-size: 100%;` | Stays the same | -| | | | -| `u-height-100-percent` | `block-size: 100%;` | Stays the same | -| `u-height-auto` | `block-size: auto !important;` | Stays the same | -| `u-full-screen-height` | `block-size: 100vh; block-size: 100lvh;` | Stays the same | -| | | | -| `u-min-height-100` | `min-block-size: pxToRem(100);` | `min-block-size: 6.25rem;` | -| `u-min-height-184` | `min-block-size: pxToRem(184);` | `min-block-size: 11.5rem;` | -| `u-min-height-100-percent` | `min-block-size:100%;` | Stays the same | -| | | | -| `u-max-height-200` | `max-block-size: pxToRem(200);` | `max-block-size: 12.5rem;` | +| Class | Scss Definition | Compiled CSS | +| -------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `u-block` | `display: block!important;` | Stays the same | +| `u-inline` | `display: inline!important;` | Stays the same | +| `u-grid` | `display: grid!important;` | Stays the same | +| `u-flex` | `display: flex!important;` | Stays the same | +| `u-inline-flex` | `display: inline-flex!important;` | Stays the same | +| `u-contents` | `display: contents!important;` | Stays the same | +| `u-contents-mobile` | `@media #{$break1} { {display: contents!important;} }` | `@media (max-width:767.99px) { display: contents!important; }` | +| | | | +| `u-box-sizing-content` | `box-sizing: content-box!important;` | Stays the same | +| | | | +| `u-sep-inline-start` | `border-inline-start: solid pxToRem(1) hsl(var(--color-border))!important;` | `border-inline-start: solid 0.0625rem hsl(var(--color-border))!important;` | +| `u-sep-block-start` | `border-block-start: solid pxToRem(1) hsl(var(--color-border))!important;` | `border-block-start: solid 0.0625rem hsl(var(--color-border))!important;` | +| `u-sep-block-end` | `border-block-end: solid pxToRem(1) hsl(var(--color-border))!important;` | `border-block-end: solid 0.0625rem hsl(var(--color-border))!important;` | +| | | | +| `u-gap-2` | `gap: pxToRem(2)!important;` | `gap: 0.125rem!important;` | +| `u-gap-4` | `gap: pxToRem(4)!important;` | `gap: 0.25rem!important;` | +| `u-gap-8` | `gap: pxToRem(8)!important;` | `gap: 0.5rem!important;` | +| `u-gap-12` | `gap: pxToRem(12)!important;` | `gap: 0.75rem!important;` | +| `u-gap-16` | `gap: pxToRem(16)!important;` | `gap: 1rem!important;` | +| `u-gap-24` | `gap: pxToRem(24)!important;` | `gap: 1.5rem!important;` | +| `u-gap-32` | `gap: pxToRem(32)!important;` | `gap: 2eem!important;` | +| | | | +| `u-column-gap-2` | `column-gap: pxToRem(2)!important;` | `column-gap: 0.125rem!important;` | +| `u-column-gap-4` | `column-gap: pxToRem(4)!important;` | `column-gap: 0.25rem!important;` | +| `u-column-gap-8` | `column-gap: pxToRem(8)!important;` | `column-gap: 0.5rem!important;` | +| `u-column-gap-12` | `column-gap: pxToRem(12)!important;` | `column-gap: 0.75rem!important;` | +| `u-column-gap-16` | `column-gap: pxToRem(16)!important;` | `column-gap: 1rem!important;` | +| `u-column-gap-24` | `column-gap: pxToRem(24)!important;` | `column-gap: 1.5rem!important;` | +| `u-column-gap-32` | `column-gap: pxToRem(32)!important;` | `column-gap: 2rem!important;` | +| | | | +| `u-row-gap-2` | `row-gap: pxToRem(2)!important;` | `row-gap: 0.125rem!important;` | +| `u-row-gap-4` | `row-gap: pxToRem(4)!important;` | `row-gap: 0.25rem!important;` | +| `u-row-gap-8` | `row-gap: pxToRem(8)!important;` | `row-gap: 0.5rem!important;` | +| `u-row-gap-12` | `row-gap: pxToRem(12)!important;` | `row-gap: 0.75rem!important;` | +| `u-row-gap-16` | `row-gap: pxToRem(16)!important;` | `row-gap: 1rem!important;` | +| `u-row-gap-24` | `row-gap: pxToRem(24)!important;` | `row-gap: 1.5rem!important;` | +| `u-row-gap-32` | `row-gap: pxToRem(32)!important;` | `row-gap: 2rem!important;` | +| | | | +| `u-flex-vertical` | `display:flex!important; flex-direction:column!important;` | Stays the same | +| `u-flex-vertical-mobile` | `@media #{$break1} { flex-direction:column!important; }` | `@media (max-width:767.99px) { flex-direction:column!important; }` | +| `u-flex-wrap` | `flex-wrap: wrap!important;` | Stays the same | +| `u-stretch` | `flex: 1!important;` | Stays the same | +| `u-flex-basis-140` | `flex-basis: pxToRem(140)!important;` | `flex-basis: 8.75rem!important;` | +| `u-flex-basis-250` | `flex-basis: pxToRem(250)!important;` | `flex-basis: 15.625rem!important;` | +| `u-flex-basis-500` | `flex-basis: pxToRem(500)!important;` | `flex-basis: 31.25rem!important;` | +| `u-flex-basis-50-percent` | `flex-basis: 50%!important;` | Stays the same | +| `u-flex-basis-100-percent` | `flex-basis: 100%!important;` | Stays the same | +| `u-flex-shrink-0` | `flex-shrink: 0!important;` | Stays the same | +| `u-flex-basis-auto` | `flex-basis: auto!important;` | Stays the same | +| | | | +| `u-grid-columns-auto-1fr` | `grid-template-columns: auto 1fr!important;` | Stays the same | +| | | | +| `u-width-fit-content` | `inline-size:fit-content!important;` | Stays the same | +| `u-width-full-line` | `inline-size: 100%!important;` | Stays the same | +| `u-width-140` | `inline-size: pxToRem(140)!important;` | `inline-size: 8.75rem!important;` | +| `u-width-150` | `inline-size: pxToRem(150)!important;` | `inline-size: 9.375rem!important;` | +| `u-width-200` | `inline-size: pxToRem(200)!important;` | `inline-size: 12.5rem;!important` | +| `u-width-250` | `inline-size: pxToRem(250)!important;` | `inline-size: 15.625rem!important;` | +| `u-width-600` | `inline-size: pxToRem(600)!important;` | `inline-size: 37.5rem!important;` | +| `u-width-280-desktop` | `@media #{$break3open} { inline-size: pxToRem(280)!important; }` | `@media (min-width:1199px) { inline-size: 17.25rem!important; }` | +| | | | +| `u-min-width-0` | `min-inline-size: 0!important; /_use to solve flexbox un-shrink problem;_/` | Stays the same | +| `u-min-width-200` | `min-inline-size: pxToRem(200)!important; ` | `min-inline-size: 25rem!important;` | +| `u-min-width-100-percent` | `min-inline-size: 100%!important;` | Stays the same | +| | | | +| `u-max-width-250` | `max-inline-size: pxToRem(250)!important;` | `max-inline-size: 15.625rem!important;` | +| `u-max-width-300` | `max-inline-size: pxToRem(300)!important;` | `max-inline-size: 18.75rem!important;` | +| `u-max-width-350` | `max-inline-size: pxToRem(350)!important;` | `max-inline-size: 21.875rem!important;` | +| `u-max-width-400` | `max-inline-size: pxToRem(400)!important;` | `max-inline-size: 25rem!important;` | +| `u-max-width-450` | `max-inline-size: pxToRem(450)!important;` | `max-inline-size: 28.125rem!important;` | +| `u-max-width-500` | `max-inline-size: pxToRem(500)!important;` | `max-inline-size: 31.25rem!important;` | +| `u-max-width-600` | `max-inline-size: pxToRem(600)!important;` | `max-inline-size: 37.5rem!important;` | +| `u-max-width-650` | `max-inline-size: pxToRem(650)!important;` | `max-inline-size: 40.625rem!important;` | +| `u-max-width-700` | `max-inline-size: pxToRem(700)!important;` | `max-inline-size: 43.75rem!important;` | +| `u-max-width-100-percent` | `max-inline-size: 100%!important;` | Stays the same | +| | | | +| `u-height-100-percent` | `block-size: 100%!important;` | Stays the same | +| `u-height-auto` | `block-size: auto!important;` | Stays the same | +| `u-full-screen-height` | `block-size: 100vh!important; block-size: 100lvh!important;` | Stays the same | +| | | | +| `u-min-height-100` | `min-block-size: pxToRem(100)!important;` | `min-block-size: 6.25rem!important;` | +| `u-min-height-184` | `min-block-size: pxToRem(184)!important;` | `min-block-size: 11.5rem!important;` | +| `u-min-height-100-percent` | `min-block-size:100%!important;` | Stays the same | +| | | | +| `u-max-height-200` | `max-block-size: pxToRem(200)!important;` | `max-block-size: 12.5rem!important;` | ## Alignments In the Appwrite console we control alignments by using: -| Class | CSS | -| ---------------------- | --------------------------------- | -| `u-main-center` | `justify-content: center;` | -| `u-main-space-between` | `justify-content: space-between;` | -| `u-main-end` | `justify-content: end;` | -| | | -| `u-cross-start` | `align-items: start;` | -| `u-cross-baseline` | `align-items: baseline;` | -| `u-cross-center` | `align-items: center;` | -| `u-cross-end` | `align-items: end;` | -| | | -| `u-cross-child-start` | `align-self: start;` | -| `u-cross-child-center` | `align-self: center;` | -| `u-cross-child-end` | `align-self: end;` | +| Class | CSS | +| ---------------------- | ------------------------------------------- | +| `u-main-center` | `justify-content: center!important;` | +| `u-main-space-between` | `justify-content: space-between!important;` | +| `u-main-end` | `justify-content: end!important;` | +| | | +| `u-cross-start` | `align-items: start!important;` | +| `u-cross-baseline` | `align-items: baseline!important;` | +| `u-cross-center` | `align-items: center!important;` | +| `u-cross-end` | `align-items: end!important;` | +| | | +| `u-cross-child-start` | `align-self: start!important;` | +| `u-cross-child-center` | `align-self: center!important;` | +| `u-cross-child-end` | `align-self: end!important;` |I'm visible on mobile
diff --git a/apps/pink/src/pages/utilities/text.mdx b/apps/pink/src/pages/utilities/text.mdx index 03184525af..29ab6ea1b9 100644 --- a/apps/pink/src/pages/utilities/text.mdx +++ b/apps/pink/src/pages/utilities/text.mdx @@ -3,24 +3,25 @@ title: Text description: Text ensures consistent text size, weight, line height and breaks across our products. --- -| Class | Scss Define | Compiled CSS | -| -------------------- | ------------------------------------------------- | ------------------------------- | -| `u-x-small` | `font-size: pxToRem(12)!important;` | `font-size: 0.75rem!important;` | -| `u-small` | `font-size: pxToRem(14)!important;` | `font-size: 0.875rem!important;`| -| `u-medium` | `font-size: pxToRem(16)!important;` | `font-size: 1rem!important;` | -| `u-font-size-32` | `font-size: pxToRem(32)!important;` | `font-size: 2rem!important;` | -| `u-bold` | `font-weight: 600;` | Stays the same | -| `u-normal` | `font-weight: normal;` | Stays the same | -| `u-underline` | `text-decoration: underline;` | Stays the same | -| `u-text-start` | `text-align: start;` | Stays the same | -| `u-text-center` | `text-align: center;` | Stays the same | -| `u-text-end` | `text-align: end;` | Stays the same | -| `u-line-height-0-7` | `line-height: 0.7;` | Stays the same | -| `u-line-height-1` | `line-height: 1;` | Stays the same | -| `u-line-height-1-25` | `line-height: 1.25;` | Stays the same | -| `u-line-height-1-5` | `line-height: 1.5;` | Stays the same | -| `u-line-height-2` | `line-height: 2;` | Stays the same | -| | | | +| Class | Scss Define | Compiled CSS | +| -------------------- | ----------------------------------------------------------- | ------------------------------- | +| `u-x-small` | `font-size: pxToRem(12)!important;` | `font-size: 0.75rem!important;` | +| `u-small` | `font-size: pxToRem(14)!important;` | `font-size: 0.875rem!important;` | +| `u-medium` | `font-size: pxToRem(16)!important;` | `font-size: 1rem!important;` | +| `u-font-size-20` | `font-size: pxToRem(20)!important;` | `font-size: 1.25rem!important;` | +| `u-font-size-32` | `font-size: pxToRem(32)!important;` | `font-size: 2rem!important;` | +| `u-bold` | `font-weight: 600!important;` | Stays the same | +| `u-normal` | `font-weight: normal!important;` | Stays the same | +| `u-underline` | `text-decoration: underline!important;` | Stays the same | +| `u-text-start` | `text-align: start!important;` | Stays the same | +| `u-text-center` | `text-align: center!important;` | Stays the same | +| `u-text-end` | `text-align: end!important;` | Stays the same | +| `u-line-height-0-7` | `line-height: 0.7!important;` | Stays the same | +| `u-line-height-1` | `line-height: 1!important;` | Stays the same | +| `u-line-height-1-25` | `line-height: 1.25!important;` | Stays the same | +| `u-line-height-1-5` | `line-height: 1.5!important;` | Stays the same | +| `u-line-height-2` | `line-height: 2!important;` | Stays the same | +| | | | | `u-break-word` | `@include break-word; white-space: initial;` | Full browser fallbacks | | `u-break-all` | `@include break-all; white-space: initial;` | Full browser fallbacks | | | | | @@ -42,13 +43,13 @@ description: Text ensures consistent text size, weight, line height and breaks a | | | `overflow: hidden;` | | | | `word-break: break-all;` | | | | | -| `u-un-break-text` | `white-space: nowrap !important;` | Stays the same | -| `u-capitalize` | `text-transform: capitalize;` | Stays the same | -| `u-icon-small` | `font-size: var(--icon-size-small);` | Stays the same | -| | | | -| `u-font-heading` | `font-family: var(--heading-font);` | Stays the same | -| `u-font-content` | `font-family: var(--content-font);` | Stays the same | -| `u-font-code` | `font-family: var(--code-font);` | Stays the same | +| `u-un-break-text` | `white-space: nowrap!important;` | Stays the same | +| `u-capitalize` | `text-transform: capitalize!important;` | Stays the same | +| `u-icon-small` | `font-size: var(--icon-size-small)!important;` | Stays the same | +| | | | +| `u-font-heading` | `font-family: var(--heading-font)!important;` | Stays the same | +| `u-font-content` | `font-family: var(--content-font)!important;` | Stays the same | +| `u-font-code` | `font-family: var(--code-font)!important;` | Stays the same |x-small
diff --git a/apps/pink/src/pages/utilities/theme.mdx b/apps/pink/src/pages/utilities/theme.mdx index 3e3042c474..fd9ebbcdcf 100644 --- a/apps/pink/src/pages/utilities/theme.mdx +++ b/apps/pink/src/pages/utilities/theme.mdx @@ -3,9 +3,9 @@ title: Theme description: Theme shows or hides elements depending on the selected theme (light or dark). --- -| Selector | Properties | -| ---------------------------------------- | ----------------- | -| `.u-only-light` | `display: none;` | -| `.u-only-dark` | `display: none;` | -| `#{$theme-dark} .u-only-dark` | `display: block;` | -| `body:not(#{$theme-dark}) .u-only-light` | `display: block;` | +| Selector | Properties | +| ---------------------------------------- | --------------------------- | +| `.u-only-light` | `display: none!important;` | +| `.u-only-dark` | `display: none!important;` | +| `#{$theme-dark} .u-only-dark` | `display: block!important;` | +| `body:not(#{$theme-dark}) .u-only-light` | `display: block!important;` | diff --git a/apps/pink/src/pages/utilities/visibility.mdx b/apps/pink/src/pages/utilities/visibility.mdx index f5de35fa8b..2d074699da 100644 --- a/apps/pink/src/pages/utilities/visibility.mdx +++ b/apps/pink/src/pages/utilities/visibility.mdx @@ -3,16 +3,16 @@ title: Visibility description: An element's visibility, opacity and overflow are controlled by the classes below. --- -| Class | Properties | -| -------------------- | ------------------------------- | -| `u-hide` | `display: none !important;` | -| `u-opacity-0` | `opacity: 0 !important;` | -| `u-opacity-20` | `opacity: 0.2 !important;` | -| `u-opacity-50` | `opacity: 0.5 !important;` | -| `u-overflow-hidden` | `overflow: hidden !important;` | -| `u-overflow-visible` | `overflow: visible !important;` | -| `u-overflow-x-auto` | `overflow-x: auto !important;` | -| `u-overflow-y-auto` | `overflow-y: auto !important;` | +| Class | Properties | +| -------------------- | ------------------------------ | +| `u-hide` | `display: none!important;` | +| `u-opacity-0` | `opacity: 0!important;` | +| `u-opacity-20` | `opacity: 0.2!important;` | +| `u-opacity-50` | `opacity: 0.5!important;` | +| `u-overflow-hidden` | `overflow: hidden!important;` | +| `u-overflow-visible` | `overflow: visible!important;` | +| `u-overflow-x-auto` | `overflow-x: auto!important;` | +| `u-overflow-y-auto` | `overflow-y: auto!important;` |