summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/ci_variable_list.scss
blob: d9b0e4558ad1a4816abe90fa9643d045f89a63cb (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
.ci-variable-list {
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  clear: both;
}

.ci-variable-row {
  display: flex;
  align-items: flex-start;

  @include media-breakpoint-down(xs) {
    align-items: flex-end;
  }

  &:not(:last-child) {
    margin-bottom: $gl-btn-padding;

    @include media-breakpoint-down(xs) {
      margin-bottom: 3 * $gl-btn-padding;
    }
  }

  &:last-child {
    .ci-variable-body-item:last-child {
      margin-right: $ci-variable-remove-button-width;

      @include media-breakpoint-down(xs) {
        margin-right: 0;
      }
    }

    .ci-variable-row-remove-button {
      display: none;
    }

    @include media-breakpoint-down(xs) {
      .ci-variable-row-body {
        margin-right: $ci-variable-remove-button-width;
      }
    }
  }
}

.ci-variable-row-body {
  display: flex;
  align-items: flex-start;
  width: 100%;

  @include media-breakpoint-down(xs) {
    display: block;
  }
}

.ci-variable-body-item {
  flex: 1;

  &:not(:last-child) {
    margin-right: $gl-btn-padding;

    @include media-breakpoint-down(xs) {
      margin-right: 0;
      margin-bottom: $gl-btn-padding;
    }
  }
}

.ci-variable-masked-item,
.ci-variable-protected-item {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  padding-top: 5px;
  padding-bottom: 5px;
}

.ci-variable-row-remove-button {
  @include transition(color);
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: $ci-variable-remove-button-width;
  height: $input-height;
  padding: 0;
  background: transparent;
  border: 0;
  color: $gl-text-color-secondary;

  &:hover,
  &:focus {
    outline: none;
    color: $gl-text-color;
  }

  &[disabled] {
    color: $gl-text-color-disabled;
  }
}