summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/pages/pipeline_schedules.scss
blob: b698a4f9afadcef0ee1c3b993b46072932ac5f48 (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
.js-pipeline-schedule-form {
  .dropdown-select,
  .dropdown-menu-toggle {
    width: 100% !important;
  }

  .gl-field-error {
    margin: 10px 0 0;
  }
}

.interval-pattern-form-group {
  label {
    margin-right: 10px;
    font-weight: $gl-font-weight-normal;

    &[for='custom'] {
      margin-right: 0;
    }
  }

  .cron-interval-input-wrapper {
    padding-left: 0;
  }

  .cron-interval-input {
    margin: 10px 10px 0 0;
  }

  .cron-syntax-link-wrap {
    margin-right: 10px;
    font-size: 12px;
  }
}

.pipeline-schedule-table-row {
  .branch-name-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    svg {
      vertical-align: middle;
    }
  }

  .next-run-cell {
    color: $gl-text-color-secondary;
  }

  a {
    color: $text-color;
  }
}

.pipeline-schedules-user-callout {
  .bordered-box.content-block {
    border: 1px solid $border-color;
    background-color: transparent;
    padding: 16px;
  }

  #dismiss-callout-btn {
    color: $gl-text-color;
  }
}

.cron-preset-radio-input {
  display: inline-block;

  @media (max-width: $screen-md-max) {
    display: block;
    margin: 0 0 5px 5px;
  }

  input {
    margin-right: 3px;
  }
}

.pipeline-variable-list {
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  clear: both;
}

.pipeline-variable-row {
  display: flex;
  align-items: flex-end;

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

  @media (max-width: $screen-sm-max) {
    padding-right: $gl-col-padding;
  }

  &:last-child {
    .pipeline-variable-row-remove-button {
      display: none;
    }

    @media (max-width: $screen-sm-max) {
      .pipeline-variable-value-input {
        margin-right: $pipeline-variable-remove-button-width;
      }
    }

    @media (max-width: $screen-xs-max) {
      .pipeline-variable-row-body {
        margin-right: $pipeline-variable-remove-button-width;
      }
    }
  }
}

.pipeline-variable-row-body {
  display: flex;
  width: calc(75% - #{$gl-col-padding});
  padding-left: $gl-col-padding;

  @media (max-width: $screen-sm-max) {
    width: 100%;
  }

  @media (max-width: $screen-xs-max) {
    display: block;
  }
}

.pipeline-variable-key-input {
  margin-right: $gl-btn-padding;

  @media (max-width: $screen-xs-max) {
    margin-bottom: $gl-btn-padding;
  }
}

.pipeline-variable-row-remove-button {
  @include transition(color);
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: $pipeline-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;
  }
}