summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/vendors/atwho.scss
blob: ccf3824ea56d918b5450d69b3c18b9df33b0f930 (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
85
86
87
88
89
90
91
92
.atwho-view {
  overflow-y: auto;
  overflow-x: hidden;

  .name,
  small.aliases,
  small.params {
    float: left;
  }

  small.aliases,
  small.params {
    padding: 2px 5px;
  }

  small.description {
    float: right;
    padding: 3px 5px;
  }

  .avatar-inline {
    margin-bottom: 0;
  }

  .has-warning {
    .name,
    .description {
      color: $orange-700;
    }
  }

  .cur {
    .avatar {
      @include disable-all-animation;
      border: 1px solid $white-light;
    }
  }

  ul > li {
    @include clearfix;
    white-space: nowrap;
  }

  // TODO: fallback to global style
  .atwho-view-ul {
    padding: 8px 1px;

    li {
      padding: 8px 16px;
      border: 0;

      &.cur {
        background-color: $gray-darker;
        color: $gl-text-color;

        small {
          color: inherit;
        }

        &.has-warning {
          color: $orange-700;
          background-color: $orange-100;
        }
      }

      div.avatar {
        display: inline-flex;
        justify-content: center;
        align-items: center;

        .center {
          line-height: 14px;
        }
      }

      strong {
        color: $gl-text-color;
      }
    }
  }
}

@include media-breakpoint-down(xs) {
  .atwho-view-ul {
    width: 350px;
  }

  .atwho-view ul li {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}