// This is shared CSS between the xmodule problem editor and the xmodule HTML editor.
.editor {
  position: relative;

  .row {
    position: relative;
  }

  .editor-bar {
    @include clearfix();
    @include linear-gradient(top, #d4dee8, #c9d5e2);
    position: relative;
    padding: ($baseline/4);
    border-bottom-color: #a5aaaf;

    a {
      display: block;
      float: left;
      padding: 3px ($baseline/2) 7px;
      margin-left: 7px;
      border-radius: 2px;

      &:hover, &:focus {
        background: rgba(255, 255, 255, .5);
      }
    }
  }

  .editor-tabs {
    position: absolute;
    top: 10px;
    right: 10px;

    li {
      float: left;
      margin-right: ($baseline/4);

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

    .tab {
      display: block;
      height: 24px;
      padding: 7px 20px 3px;
      border: 1px solid #a5aaaf;
      border-radius: 3px 3px 0 0;
      @include linear-gradient(top, $transparent 87%, rgba(0, 0, 0, .06));
      background-color: #e5ecf3;
      font-size: 13px;
      color: #3c3c3c;
      box-shadow: 1px -1px 1px rgba(0, 0, 0, .05);

      &.current {
        background: $white;
        border-bottom-color: $white;
      }
    }
  }
}