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

emojis.scss « framework « stylesheets « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9227028e3da6f67e48bde55fc44056a8a0bba414 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
gl-emoji {
  font-style: normal;
  display: inline-flex;
  vertical-align: baseline;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-size: 1.2em;
  line-height: 1;

  img {
    width: 1.2em;
    height: 1.2em;
    position: relative;
    top: 0.25em;
  }
}

.user-status-emoji {
  margin-left: $gl-padding-4;
  margin-right: $gl-padding-4;

  gl-emoji {
    font-size: 1em;
    line-height: 16px;
    vertical-align: baseline;
  }
}

.emoji-picker-category-header {
  @include gl-sticky;
  background: linear-gradient(to bottom, $white 50%, transparent 100%);
}

.emoji-picker-emoji {
  height: 30px;
  // Create a width that fits 9 emojis per row
  width: 100 / 9 * 1%;
  transition: transform 0.15s cubic-bezier(0.3, 0, 0.2, 2) !important;
  transform: scale(1) !important;
  mix-blend-mode: normal !important;

  &:hover,
  &:focus {
    @include gl-z-index-2;
    transform: scale(1.3) !important;
  }

  gl-emoji img {
    top: auto;
    max-width: unset;
  }
}

.emoji-picker .gl-dropdown .dropdown-menu {
  width: 350px;
}

.emoji-picker-category-tab {
  border-bottom-color: transparent;

  &:hover {
    color: $gray-900 !important;

    &:not(.emoji-picker-category-active) {
      border-bottom-color: $gray-300;
    }
  }

  &:focus {
    z-index: 2;
  }
}

.emoji-picker-category-active {
  border-bottom-color: $blue-500 !important;

  svg {
    color: $gray-900 !important;
  }
}

.emoji-picker .gl-dropdown-contents > :last-child {
  padding-bottom: 0;
  overflow-y: hidden;
}