examples/react/app.scss
:root {
  --color-red-hue: 2;
  --color-red: hsl(var(--color-red-hue, 0), 69%, 54%);
  --color-purple-hue: 300;
  --color-purple: hsl(var(--color-purple-hue, 0), 100%, 39%);
  --color-main: var(--color-purple);
}

* {
  box-sizing: border-box;
}

@mixin smallLink {
  color: #48d;
  text-decoration: none;
  border-bottom: 1px dashed #48d;
  margin-right: 0.5rem;
}

@mixin panel {
  border-radius: 5px;
  // background: rgba(255,255,255,0.5);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 1rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  & > h2:first-child {
    margin-top: 0;
  }
}

body {
  font-family: sans-serif;
  min-height: 100vh;
  background: #fcfcfc;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #444;
  margin-top: 0;
}

.App {
  > ul {
    margin: 0;
    padding: 0;
  }
}

.Header-Bar {
  background: black;
  height: 2rem;
  // margin: 0 0 1rem 0;
  margin: 0;
  padding: 0;
  color: #eee;
  display: flex;
  > * {
    display: block;
    vertical-align: center;
    line-height: 2rem;
  }

  > a {
    padding: 0 1rem;
    color: #eee;
    text-decoration: none;
    margin-right: 1rem;
    &.active {
      background-color: rgba(255, 100, 120, 0.2);
      color: rgb(255, 100, 102);
    }
    &:hover {
      background-color: rgba(255, 255, 255, 0.2);
    }
  }

  > h3 {
    color: var(--color-main, #f0f);
    font-weight: bold;
    font-size: 1rem;
    padding: 0;
    margin: 0 1rem;
  }
}

.CollectionPage {
  display: flex;
  padding: 1rem;
  > * > h2 {
    // border-bottom: 2px solid #aaa;
    margin: 0 0 1rem 0;
    padding: 0;
    color: black;
    font-weight: bold;
    font-size: 2rem;
  }
  > .CollectionPage-left {
    width: 80%;
    margin-right: 1rem;
  }
  > .CollectionPage-right {
    width: 20%;
  }
}

.QueryRecords > .ViewRecord {
  width: calc(50% - 1rem);
  margin-right: 1rem;
  overflow: auto;
  float: left;
}

.ViewRecord {
  @include panel;
  &.ViewRecord-selected {
    border-color: #7c7;
    background-color: rgba(200, 255, 200, 0.2);
  }
  > .ViewRecord-meta {
    font-size: 0.9em;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    > .Row {
      margin: 0 0.5rem 0.5rem 0;
      padding: 5px;
      border: 1px solid #ccc;
      background: rgba(255, 255, 255, 0.5);
      border-radius: 7px;
      > .Row-label {
        width: auto;
      }
    }
  }
}

.RecordMeta {
  // display: none;
  display: flex;
  // margin: -1rem -1rem 1rem -1rem;
  // padding: .25rem 1rem;
  font-size: 0.9rem;
  // background: rgba(100,100,100,0.1);
  color: #666;
  > * > * {
    display: inline-block;
  }
  em {
    font-style: normal;
    font-weight: 400;
    margin-right: 0.25rem;
    color: #999;
  }
  strong {
    display: inline-block;
    margin-right: 0.5rem;
    font-weight: 400;
    // max-width: 140px;
    // overflow: hidden;
    // text-overflow: ellipsis;
    // font-family: monospace;
  }
}

.RecordFooter {
  margin: 1rem -1rem -1rem -1rem;
  font-size: 0.9rem;
  background: rgba(100, 100, 100, 0.1);
  color: #666;
  border-top: 1px solid #ddd;
  > .RecordMeta {
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #ddd;
  }
  > * {
    padding: 0.25rem 1rem;
    // display: flex;
  }
  a {
    @include smallLink;
  }
}

.Row {
  display: flex;
  > .Row-label {
    flex-basis: 8rem;
    color: #999;
    font-weight: bold;
    font-size: 0.9rem;
  }
  > .Row-content {
    flex: 1;
    overflow: hidden;
  }
}

.RecordVersionSelector {
  a {
    @include smallLink;
    display: inline-block;
    margin-right: 1rem;
    border-bottom: none;
    cursor: pointer;
  }
  a.selected {
    color: #24a;
    border-bottom: 1px dashed #48d;
    // background-color: #cfc;
  }
}

.WorkspaceSettings {
  @include panel;
}

.CollectionOverview {
  @include panel;
}

.CollectionOverview > table tr:nth-child(2n) td {
  background-color: #f0f0f0;
}

.CollectionOverview > table th {
  text-align: left;
  font-weight: normal;
  /* font-style: italic; */
  background: #eee;
}

.FeedKey {
  position: relative;
}

.FeedKey > code {
  cursor: pointer;
}

.FeedKey > em {
  display: block;
  padding: 0.25rem;
  position: absolute;
  top: 100%;
  left: 100%;
  background: #fff;
  z-index: 1;
  width: 15rem;
  border: 2px solid #999;
  border-radius: 10px;
  background: #ffe;
  text-align: center;
}

.WorkspaceSettings > section {
  display: flex;
  padding: 0.25rem 0;
}
.WorkspaceSettings > section > label {
  display: block;
  width: 10rem;
}

.Error {
  --color-error: var(--color-red, red);
  border: 1px solid var(--color-error, red);
  border-radius: 5px;
  background: rgba(255, 220, 220, 0.5);
  padding: 1rem;
  display: block;
  font-style: normal;
}

.EditRecord {
  @include panel;
  > h2 {
    margin: 0.5rem 0;
  }
  .RecordMeta {
    display: block;
    margin-bottom: 0.5rem;
  }
  .Row {
    margin-top: 0.5rem;
  }
}

.QueryBuilder {
  margin-bottom: 1rem;
  select + select {
    margin-left: 1rem;
  }
}

// form styles
.App {
  button,
  input,
  select {
    padding: 0.25rem 1rem;
    border: 2px solid hsla(var(--color-purple-hue), 50%, 50%, 50%);
    border-radius: 5px;
    // background: #fff;
    background: hsla(var(--color-purple-hue), 50%, 80%, 20%);
    color: #222;
    font-weight: bold;
    box-shadow: 2px 2px 4px inset rgba(0, 0, 0, 0.1);
    max-width: 100%;
    &:hover,
    &:focus {
      outline: none;
    }
    &:focus {
      border-color: blue;
    }
    &:hover {
      border-color: #927;
      background: #f0f0f0;
      &:focus {
        background-color: #fff;
      }
    }
  }
  button {
    box-shadow: -2px -2px 4px inset rgba(0, 0, 0, 0.1);
  }
  input {
    // box-shadow: 2px 2px 4px inset rgba(0,0,0,0.1);
  }
  button,
  select {
    cursor: pointer;
  }
}
