dopry/netlify-cms

View on GitHub
src/components/ControlPanel/ControlPane.css

Summary

Maintainability
Test Coverage
@import "../UI/theme";

.control {
  color: var(--textColor);
  position: relative;
  padding: 20px 0 10px 0;
  margin-top: 16px;

  & input,
  & textarea,
  & select,
  & div[contenteditable=true] {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 0;
    border: var(--textFieldBorder);
    border-radius: var(--borderRadius);
    outline: 0;
    box-shadow: none;
    background-color: var(--controlBGColor);
    font-size: 16px;
    color: var(--textColor);
    transition: border-color .3s ease;

    &:focus,
    &:active {
      border-color: var(--primaryColor);
    }
  }

  & input,
  & textarea,
  & select {
    font-family: var(--fontFamilyMono);
  }
}

.label {
  display: block;
  color: var(--controlLabelColor);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.labelWithError {
  composes: label;
  color: #FF706F;
}

.errors {
  list-style-type: none;
  font-size: 10px;
  color: #FF706F;
  margin-bottom: 5px;
}

p {
  font-size: 16px;
}