blob: 7c3684f7c2e91ef7eac3d6918bb33da1eaf6b792 (
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
57
58
59
60
61
62
63
64
65
66
67
|
.badge.badge-pill:not(.gl-badge) {
font-weight: $gl-font-weight-normal;
background-color: $badge-bg;
color: $gray-700;
vertical-align: baseline;
// Do not use this!
// This is a temporary workaround until the new GlBadge component
// is available: https://gitlab.com/gitlab-org/gitlab-ui/-/issues/481
&.badge-pill-success {
background-color: rgba($green-500, 0.2);
color: $green;
}
}
// FF :simplified_badges
//
// Temporarily override badge styles
// globally
//
// Once verified we will update the
// badge component in GitLab UI
// refactor GitLab and remove this
// custom code
//
// see https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/3307
.ff-simplified-badges-enabled {
// These changes will be moved to
// GitLab UI's badge component
.gl-badge,
.gl-badge.sm,
.gl-badge.md,
.gl-badge.lg {
@include gl-font-sm;
padding-block: $gl-spacing-scale-1;
padding-inline: calc(#{$gl-spacing-scale-3} - 2px);
> .gl-icon {
@include gl-ml-0;
}
}
// These changes will be moved to
// GitLab UI's button component
.gl-button .gl-badge {
@include gl-py-0;
}
// These changes will be moved to
// app/assets/stylesheets/framework/super_sidebar.scss
.super-sidebar-nav-item .gl-badge {
vertical-align: 2px;
}
// These changes will be moved to
// GitLab UI's tab component
.gl-tab-nav-item .gl-badge {
margin-block: -2px;
}
// Temporarily needed because of the
// speciality this FF adds
// the utility class gets overriden
.gl-badge.ci-icon {
@include gl-p-2;
}
}
|