@use '../global/index' as global;

.hero {
  position: relative;

  &::before,
  &::after {
    position: absolute;
    padding: 4px;
    color: white;
  }

  &::before {
    top: 0;
    left: 0;
  }

  &::after {
    right: 0;
    bottom: 0;
  }

  &.component {
    &::before,
    &::after {
      content: 'component';
      background-color: #2979ff;
    }
  }

  &.plugin {
    &::before,
    &::after {
      content: 'plugin';
      background-color: #ff1744;
    }
  }

  &.directive {
    &::before,
    &::after {
      content: 'directive';
      background-color: #00bfa5;
    }
  }
}

.ui-intro {
  padding: 40px 0;
}

// docs
.component-docs {
  margin-bottom: 80px;
}

.markdown-body {
  table td {
    &:nth-child(1) {
      white-space: nowrap;
      font-weight: bold;
    }

    &:nth-child(2) {
      color: #c41d7f;
      font-size: 13px;
    }
  }
}

@each $componentName in global.$docs-components {
  .component--#{$componentName} table td:nth-child(2) {
    color: inherit;
    font-size: inherit;
  }
}

.component--typography table:nth-of-type(2) td:nth-child(2) {
  color: inherit;
  font-size: inherit;
}

/// lang
.supported-lang {
  margin: 0;
  cursor: pointer;

  a.active {
    font-weight: bolder;
    color: white;
  }
}
