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

oncall_schedules.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: 10cc6cbd78e43c72baf12de74d62d3edb0b13e79 (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
@import 'mixins_and_variables_and_functions';

@mixin inset-border-1-red-500($important: false) {
  box-shadow: inset 0 0 0 $gl-border-size-1 $red-500 if-important($important);
}

.modal-footer {
  @include gl-bg-gray-10;
}

.invalid-dropdown {
  .gl-button.gl-dropdown-toggle {
    @include inset-border-1-red-500;

    &:hover {
      @include inset-border-1-red-500(true);
    }
  }
}

.rotations-modal {
  .gl-card {
    min-width: 75%;
  }

  &.gl-modal .modal-md {
    max-width: 640px;
  }
}

//// Copied from roadmaps.scss - adapted for on-call schedules
$header-item-height: 72px;
$item-height: 40px;
$details-cell-width: 180px;
$timeline-cell-height: 32px;
$timeline-cell-width: 180px;
$border-style: 1px solid var(--gray-100, $gray-100);
$gradient-dark-gray: rgba(0, 0, 0, 0.15);
$gradient-gray: rgba(255, 255, 255, 0.001);
$scroll-top-gradient: linear-gradient(to bottom, $gradient-dark-gray 0%, $gradient-gray 100%);
$scroll-bottom-gradient: linear-gradient(to bottom, $gradient-gray 0%, $gradient-dark-gray 100%);
$column-right-gradient: linear-gradient(to right, $gradient-dark-gray 0%, $gradient-gray 100%);

.timeline-section {
  z-index: 20;

  .timeline-header-label {
    width: $details-cell-width;
  }

  .timeline-header-item {
    .current-day-indicator-header {
      height: $grid-size;
      width: $grid-size;
      transform: translate(-50%, 50%);
    }

    &:first-of-type {
      .week-item-sublabel .sublabel-value:nth-of-type(7) {
        @include gl-border-r;
      }
    }
  }
}

.list-section .details-cell {
  &::after {
    @include gl-h-full;
    @include gl-content-empty;
    @include gl-absolute;
    @include gl-top-0;
    right: -$grid-size;
    width: $grid-size;
    @include gl-pointer-events-none;
    background: $column-right-gradient;
  }
}

.details-cell,
.timeline-cell {
  height: $item-height;
}

.details-cell {
  width: $details-cell-width;
  z-index: 10;
}

.timeline-cell {
  .current-day-indicator {
    top: -1px;
    width: $gl-spacing-scale-1;
    height: calc(100% + 1px);
  }
}

.rotation-asignee-container {
  overflow-x: clip;
}