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

gfm.scss « framework « stylesheets « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6eff57157cc836f7ea31748314590ce9baaf1c1c (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
/**
 * Styles that apply to all GFM related forms.
 */

.gfm-commit,
.gfm-commit_range {
  @extend .commit-sha;
}

.gfm-project_member {
  padding: 0 2px;
  border-radius: #{$border-radius-default / 2};
  background-color: $user-mention-bg;

  &:hover {
    background-color: $user-mention-bg-hover;
  }
}

.gfm-color_chip {
  display: inline-block;
  margin-left: 4px;
  margin-bottom: 2px;
  vertical-align: middle;
  border-radius: 3px;

  $side: 0.9em;
  $bg-size: $side / 0.9;
  $bg-pos: $bg-size / 2;
  $bg-color: $gray-dark;

  width: $side;
  height: $side;
  background: $white-light;
  background-image: linear-gradient(135deg, $bg-color 25%, transparent 0%, transparent 75%, $bg-color 0%),
                    linear-gradient(135deg, $bg-color 25%, transparent 0%, transparent 75%, $bg-color 0%);
  background-size: $bg-size $bg-size;
  background-position: 0 0, $bg-pos $bg-pos;

  > span {
    display: inline-block;
    width: 100%;
    height: 100%;
    margin-bottom: 2px;
    border-radius: 3px;
    border: 1px solid $black-transparent;
  }
}