A bit of CSS

n.t.s./reminder to use this CSS bit from Monica D. the next time I make something.

* {
  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;
}
.flex {
  flex: 1;
}
html {
  --spacing-xs: 8px;
  --spacing: 24px;
  --spacing-s: 12px;
  --spacing-m: 36px;
}
  • css
  • meowni.ca