Skip to content

Instantly share code, notes, and snippets.

@sam-b-rose
Created February 19, 2020 17:12
Show Gist options
  • Save sam-b-rose/ff3cd8819d42a368c39b127b2968ff8d to your computer and use it in GitHub Desktop.
Save sam-b-rose/ff3cd8819d42a368c39b127b2968ff8d to your computer and use it in GitHub Desktop.
My very own CSS framework.
* {box-sizing: border-box}
[hidden] {display: none !important}
[disabled] {pointer-events:none; opacity: 0.3}
.horizontal {display: flex; flex-direction: row; justify-content: space-between}
.vertical {display: flex; flex-direction: column}
.center {justify-content: center; align-items: center}
.top {align-items: flex-start}
.flex {flex: 1}
html {
--spacing-xs: 8px;
--spacing: 24px;
--spacing-s: 12px;
--spacing-m: 36px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment