Welcome to mirror list, hosted at ThFree Co, Russian Federation.

labels.scss « framework « stylesheets « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1933af5151c327ac2fc9bf994b11472f89818020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// FF :simplified_labels
//
// Temporarily override label styles
// globally
//
// Once verified we will update the
// label component in GitLab UI
// refactor GitLab and remove this
// custom code
//
// see https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/3307
.ff-simplified-labels-enabled {
  // These changes will be moved to
  // GitLab UI's label component
  .gl-label,
  .gl-label-sm {
    @include gl-vertical-align-bottom;

    &:focus:active {
      @include gl-reset-color;
      @include gl-shadow-none;
      @include gl-outline-none;
    }

    .gl-label-text,
    .gl-label-text-scoped {
      @include gl-font-sm;
      padding-block: $gl-spacing-scale-1;
      padding-inline: calc(#{$gl-spacing-scale-3} - 2px);
    }

    > .gl-label-close.gl-button {
      width: px-to-rem(14px);
      height: px-to-rem(14px);
      margin-left: calc(#{-$gl-spacing-scale-2} - 1px);
      margin-right: calc(#{$gl-spacing-scale-2} - 1px);
    }
  }

  // These changes will be moved to
  // app/assets/stylesheets/framework/sidebar.scss
  .issuable-show-labels .gl-label {
    margin-bottom: $gl-spacing-scale-2;
    margin-right: $gl-spacing-scale-2;
  }

  // These changes will be moved to
  // app/assets/stylesheets/framework/typography.scss
  .md p > code {
    font-size: px-to-rem(13px);
  }

  .md code {
    @include gl-vertical-align-bottom;
  }
}