Skip to content
Snippets Groups Projects
common.scss 6.5 KiB
Newer Older
  • Learn to ignore specific revisions
  • /** COLORS **/
    
    .cgray { color: $common-gray; }
    .clgray { color: $common-gray-light; }
    .cred { color: $common-red; }
    .cgreen { color: $common-green; }
    .cdark { color: $common-gray-dark; }
    
    
    /** COMMON CLASSES **/
    
    Phil Hughes's avatar
    Phil Hughes committed
    .prepend-top-0 { margin-top: 0; }
    .prepend-top-5 { margin-top: 5px; }
    
    .prepend-top-10 { margin-top: 10px; }
    
    .prepend-top-default { margin-top: $gl-padding !important; }
    
    .prepend-top-20 { margin-top: 20px; }
    .prepend-left-5 { margin-left: 5px; }
    .prepend-left-10 { margin-left: 10px; }
    
    Phil Hughes's avatar
    Phil Hughes committed
    .prepend-left-default { margin-left: $gl-padding; }
    
    .prepend-left-20 { margin-left: 20px; }
    .append-right-5 { margin-right: 5px; }
    .append-right-10 { margin-right: 10px; }
    
    Phil Hughes's avatar
    Phil Hughes committed
    .append-right-default { margin-right: $gl-padding; }
    
    .append-right-20 { margin-right: 20px; }
    .append-bottom-0 { margin-bottom: 0; }
    .append-bottom-10 { margin-bottom: 10px; }
    .append-bottom-15 { margin-bottom: 15px; }
    .append-bottom-20 { margin-bottom: 20px; }
    
    .append-bottom-default { margin-bottom: $gl-padding; }
    
    .inline { display: inline-block; }
    .center { text-align: center; }
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    .underlined-link { text-decoration: underline; }
    
    .hint { font-style: italic; color: $hint-color; }
    .light { color: $common-gray; }
    
    .slead {
    
      color: $common-gray;
    
      font-size: 14px;
    
      margin-bottom: 12px;
      font-weight: normal;
      line-height: 24px;
    }
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    pre {
      &.clean {
        background: none;
        border: none;
        margin: 0;
        padding: 0;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      &.well-pre {
    
        border: 1px solid $well-pre-bg;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
        border-radius: 0;
    
        color: $well-pre-color;
    
    
      &.wrap {
        word-break: break-word;
        white-space: pre-wrap;
      }
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    
    
    hr {
      margin: $gl-padding 0;
    
      border-top: 1px solid darken($gray-normal, 8%);
    
    .str-truncated {
    
      @include str-truncated;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    
    
    .block-truncated {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    
      > div,
      .str-truncated {
        display: inline;
      }
    }
    
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    /** FLASH message **/
    .author_link {
    
      color: $gl-link-color;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    }
    
    .back-link {
      font-size: 14px;
    }
    
    table a code {
      position: relative;
      top: -2px;
      margin-right: 3px;
    }
    
    .loading {
      margin: 20px auto;
      height: 40px;
    
      color: $loading-color;
    
      font-size: 32px;
      text-align: center;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    }
    
    span.update-author {
      display: block;
    
      color: $update-author-color;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      font-weight: normal;
      font-style: italic;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      strong {
        font-weight: bold;
        font-style: normal;
      }
    }
    
    .user-mention {
    
      color: $user-mention-color;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      font-weight: bold;
    }
    
    .field_with_errors {
      display: inline;
    }
    
    p.time {
    
      color: $time-color;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      font-size: 90%;
      margin: 30px 3px 3px 2px;
    }
    
    .highlight {
      text-shadow: none;
    }
    
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      height: 150px;
    }
    
    // Fix issue with notes & lists creating a bunch of bottom borders.
    li.note {
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      .note-title {
        li {
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
        }
      }
    }
    
    .markdown {
      img {
        max-width: 100%;
      }
    }
    
    
    .wiki_content code,
    .readme code {
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      background-color: inherit;
    }
    
    
    .project_member_show {
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      td:first-child {
    
        color: $project-member-show-color;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      }
    }
    
    .rss-icon {
      img {
        width: 24px;
        vertical-align: top;
      }
    
      strong {
        line-height: 24px;
      }
    }
    
    
    .show-suppressed-diff,
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    .show-all-commits {
      cursor: pointer;
    }
    
    .git_error_tips {
      @extend .col-md-6;
      text-align: left;
      margin-top: 40px;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      pre {
    
        background: $white-light;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
        border: none;
        font-size: 12px;
      }
    }
    
    .error-message {
      padding: 10px;
    
      background: $error-bg;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      margin: 0;
    
      color: $white-light;
    
        color: $white-light;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
        text-decoration: underline;
      }
    }
    
    
    .browser-alert {
      padding: 10px;
      text-align: center;
    
      background: $error-bg;
      color: $white-light;
    
        color: $white-light;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    .warning_message {
    
      border-left: 4px solid $warning-message-border;
      color: $warning-message-color;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      padding: 10px;
      margin-bottom: 10px;
    
      background: $warning-message-bg;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      padding-left: 20px;
    
      &.centered {
        text-align: center;
      }
    }
    
    .gitlab-promo {
      a {
    
        color: $gl-promo-color;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
        margin-right: 30px;
      }
    }
    
    .milestone {
      &.milestone-closed {
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      }
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      .progress {
        margin-bottom: 0;
        margin-top: 4px;
      }
    }
    
    .control-group {
      .controls {
        span {
          &.descr {
            position: relative;
            top: 2px;
            left: 5px;
    
            color: $control-group-descr-color;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
          }
        }
      }
    }
    
    img.emoji {
      height: 20px;
    
      vertical-align: top;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
      width: 20px;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    }
    
    .chart {
      overflow: hidden;
      height: 220px;
    }
    
    .description-block {
      @extend .light-well;
      @extend .light;
      margin-bottom: 10px;
    }
    
    table {
      td.permission-x {
    
        background: $table-permission-x-bg !important;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
        text-align: center;
      }
    }
    
    
    .btn-sign-in {
      text-shadow: none;
    
    
      @media (min-width: $screen-sm-min) {
    
        margin-top: 8px;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    .side-filters {
      fieldset {
        margin-bottom: 15px;
      }
    }
    
    .footer-links {
      margin-bottom: 20px;
    
      a {
        margin-right: 15px;
      }
    
    .well {
    
      margin-bottom: $gl-padding;
    
    Robert Schilling's avatar
    Robert Schilling committed
    .search_box {
    
    Robert Schilling's avatar
    Robert Schilling committed
      text-align: center;
    }
    
    
    #nprogress .spinner {
    
      top: 15px !important;
      right: 10px !important;
    
    
    .header-with-avatar {
      h3 {
        margin: 0;
        font-weight: bold;
      }
    
      .username {
        font-size: 18px;
    
        color: $username-color;
    
        font-size: $gl-font-size;
    
        color: $description-color;
    
    
    .profiler-results {
    
      top: 73px !important;
    
    
      .profiler-button,
      .profiler-controls {
    
        border-color: $profiler-border !important;
    
    .dropzone .dz-preview .dz-progress {
      border-color: $border-color !important;
    }
    
    .dropzone .dz-preview .dz-progress .dz-upload {
      background: $gl-success !important;
    }
    
    .alert,
    .progress {
    
      margin-bottom: $gl-padding;
    }
    
    .project-item-select-holder {
    
      display: inline-block;
    
      .project-item-select {
    
        position: absolute;
        top: 0;
        right: 0;
    
    
    .content-separator {
      margin-left: -$gl-padding;
      margin-right: -$gl-padding;
      border-top: 1px solid $border-color;
    }
    
    .hide-bottom-border {
      border-bottom: none !important;
    }
    
    Annabel Dunstone Gray's avatar
    Annabel Dunstone Gray committed
      &:focus {
        top: 1px;
        left: 1px;
        width: auto;
        height: 100%;
        line-height: 50px;
        padding: 0 10px;
        clip: auto;
        text-decoration: none;
        color: $gl-title-color;
        background: $gray-light;
        z-index: 1;
      }
    
    
    .str-truncated {
      &-60 {
        @include str-truncated(60%);
      }
    
    
      &-100 {
        @include str-truncated(100%);
      }