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

settings.scss « page_bundles « stylesheets « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f8a5f28170a9b61697938670e9841fa9976917ab (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
@import 'mixins_and_variables_and_functions';

@keyframes expandMaxHeight {
  0% {
    max-height: 0;
  }

  99% {
    max-height: 100vh;
  }

  100% {
    max-height: none;
  }
}

@keyframes collapseMaxHeight {
  0% {
    max-height: 100vh;
  }

  100% {
    max-height: 0;
  }
}

.settings {
  // border-top for each item except the top one
  border-top: 1px solid var(--border-color, $border-color);

  &:first-of-type {
    margin-top: 10px;
    padding-top: 0;
    border: 0;
  }

  + div .settings:first-of-type {
    margin-top: 0;
    border-top: 1px solid var(--border-color, $border-color);
  }

  &.animating {
    overflow: hidden;
  }
}

.settings-header {
  position: relative;
  padding: $gl-padding-24 110px 0 0;

  h4 {
    margin-top: 0;
  }

  .settings-title {
    cursor: pointer;
  }

  button {
    position: absolute;
    top: 20px;
    right: 6px;
    min-width: 80px;
  }
}

.settings-content {
  // #416312: Fix white space at bottom of page
  position: relative;
  max-height: 1px;
  overflow-y: hidden;
  padding-right: 110px;
  animation: collapseMaxHeight 300ms ease-out;
  // Keep the section from expanding when we scroll over it
  pointer-events: none;
  margin-bottom: $gl-spacing-scale-5;

  .settings.expanded & {
    max-height: none;
    overflow-y: visible;
    animation: expandMaxHeight 300ms ease-in;
    // Reset and allow clicks again when expanded
    pointer-events: auto;
  }

  .settings.no-animate & {
    animation: none;
  }

  @media(max-width: map-get($grid-breakpoints, md)-1) {
    padding-right: 20px;
  }

  &::before {
    content: ' ';
    display: block;
    height: 1px;
    overflow: hidden;
    margin-bottom: 4px;
  }

  &::after {
    content: ' ';
    display: block;
    height: 1px;
    overflow: hidden;
  }

  .sub-section {
    margin-bottom: 32px;
    padding: 16px;
    border: 1px solid var(--border-color, $border-color);
    background-color: var(--gray-light, $gray-light);
  }

  .bs-callout,
  .form-check:first-child,
  .form-check .form-text.text-muted,
  .form-check + .form-text.text-muted {
    margin-top: 0;
  }

  .form-check .form-text.text-muted {
    margin-bottom: $grid-size;
  }
}

.settings-list-icon {
  color: var(--gray-500, $gl-text-color-secondary);
  font-size: $default-icon-size;
  line-height: 42px;
}

.settings-message {
  padding: 5px;
  line-height: 1.3;
  color: var(--gray-900, $gray-900);
  background-color: var(--orange-50, $orange-50);
  border: 1px solid var(--orange-200, $orange-200);
  border-radius: $gl-border-radius-base;
}

.prometheus-metrics-monitoring {
  .gl-card {
    .badge.badge-pill {
      font-size: 12px;
      line-height: 12px;
    }

    .gl-card-header .label-count {
      color: var(--white, $white);
      background: var(--gray-800, $gray-800);
    }

    .flash-container {
      margin-bottom: 0;
      cursor: default;

      .flash-notice,
      .flash-warning {
        margin-top: 0;
        border-radius: 0;
      }
    }
  }

  .custom-monitored-metrics {
    .custom-metric {
      display: flex;
      align-items: center;
    }

    .custom-metric-link-bold {
      font-weight: $gl-font-weight-bold;
      text-decoration: none;
    }
  }

  .loading-metrics .metrics-load-spinner {
    color: var(--gray-700, $gray-700);
  }

  .metrics-list {
    margin-bottom: 0;

    li {
      padding: $gl-padding;

      .badge.badge-pill {
        margin-left: 5px;
        background: $badge-bg;
      }

      /* Ensure we don't add border if there's only single li */
      + li {
        border-top: 1px solid var(--border-color, $border-color);
      }
    }
  }
}