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

review_bar.scss « batch_comments « components « stylesheets « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 76bf7ac81e8af45e49a728bd75afcd08cde444f4 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
.review-bar-component {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: $white;
  z-index: 300;
  padding: 7px 0 6px; // to keep aligned with "collapse sidebar" button on the left sidebar
  border-top: 1px solid $border-color;
  padding-left: $contextual-sidebar-width;
  padding-right: $gutter_collapsed_width;
  transition: padding $sidebar-transition-duration;

  .page-with-icon-sidebar & {
    padding-left: $contextual-sidebar-collapsed-width;
  }

  .right-sidebar-expanded & {
    padding-right: $gutter_width;
  }

  @media (max-width: map-get($grid-breakpoints, sm)-1) {
    padding-left: 0;
    padding-right: 0;
  }

  .dropdown {
    margin-left: $grid-size;
  }
}

.review-bar-content {
  max-width: $limited-layout-width;
  padding: 0 $gl-padding;
  width: 100%;
  margin: 0 auto;
}

.review-preview-dropdown {
  .review-preview-item.menu-item {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 16px;
    cursor: pointer;

    &:not(.is-last) {
      border-bottom: 1px solid $list-border;
    }
  }

  .dropdown-menu {
    top: auto;
    bottom: 36px;

    &.show {
      max-height: 400px;

      @include media-breakpoint-down(xs) {
        width: calc(100vw - 32px);
      }
    }
  }

  .dropdown-content {
    max-height: 300px;
  }

  .dropdown-title {
    padding: $grid-size 25px $gl-padding;
    margin-bottom: 0;
  }

  .dropdown-footer {
    margin-top: 0;
  }

  .dropdown-menu-close {
    top: 6px;
  }
}

.review-preview-dropdown-toggle {
  svg.s16 {
    width: 15px;
    height: 15px;
    margin-top: -1px;
    top: 3px;
    margin-left: 4px;
  }
}

.review-preview-item-header {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;

  > .bold {
    display: flex;
    min-width: 0;
    line-height: 16px;
  }
}

.review-preview-item-footer {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.review-preview-item-content {
  width: 100%;

  p {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0;
  }
}