/// structure.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-

// ngMaterial source for overrides
// ----------------------------------------------------------------------------
@import '../../angular-material/src/core/style/structure.scss';

// re-inforce a reset
html * {
  box-sizing: border-box;
}

// Utility class to add padding on containers
// Because of the border-box sizing model, padding can affect width specialy
// in nested containers
.sg-padded {
  padding-left: $mg;
  padding-right: $mg;
  &--left {
    padding-left: $mg;
  }
  &--right {
    padding-right: $mg;
  }
  &--top {
    padding-top: $mg;
  }
  &--bottom {
    padding-bottom: $mg;
  }
}

.sg-category {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
}

// Group fields of a form
// See https://www.google.com/design/spec/patterns/settings.html#settings-grouping-settings
.sg-has-form-sections {
  background-color: $colorGrey300;
}
.sg-form-section {
  @extend .md-whiteframe-2dp;
  @extend .md-padding;
  background-color: white;
  margin-bottom: $mg/2;

  &:last-child {
    margin-bottom: 0;
  }
}