@import 'main';

$example_margin: 40px;

.story {
  padding: 40px;
}

.example {
  border: 1px solid $color_table_border;
  margin-top: $example_margin;

  &.active {
    .code-btn {
      @include transform(rotate(90deg));
    }

    .code-snippet {
      padding: 20px;
      max-height: 1000px;
      visibility: visible;
      opacity: 1;
    }
  }
}

.component {
  padding: 20px;
}

.description {
  border-top: 1px solid $color_table_border;
  padding: 0 20px 20px;
  margin-top: 10px;

  .title {
    top: -10px;
    left: -10px;
    padding: 0 10px;
    font-weight: bold;
    background-color: $color_paper;
    display: inline-block;
  }

  .code-btn {
    font-size: 20px;
    color: $color_grey;
    position: absolute;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    @include transition();
    @include no-text-selection();
  }
}

.code-snippet {
  padding: 0 20px;
  border-top: 1px solid $color_table_border;
  max-height: 0;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  @include transition();
}
.settings-btn{
  background-color: $color_grey;
  color: $color_paper;
  font-size: $default_font_size;
  padding: 5px 15px;
  margin: 15px 0 4px 0;
  @include border-radius(3px);
}
.props-table-container{
  width: 100%;
  display: block !important;
}
.props-table{
  display: table;
  border-collapse: collapse;
  width: 100%;
  @include transition();
  td, th{
    border: 1px solid $color_table_border;
    padding: 5px;
    text-align: center;
  }
  td{
    text-align: left;
  }
  .table-name{
    color: $color_secondary;
    width: 17%;
  }
  .table-type, .table-required{
    width: 11%;
  }
  .table-defaults{
    width: 11%;
  }

  .table-description{
    width: 50%;
  }
}
.left-table{
  padding: 0 !important;
}
