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

incidents.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: 4be4cac2075ce4c7fc6bf8373305a4d41ec03c7f (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
@import 'mixins_and_variables_and_functions';

.issuable-discussion.incident-timeline-events {
  .main-notes-list::before {
    content: none;
  }
}

.timeline-event {
  grid-template-columns: auto minmax(0, 1fr) #{$gl-spacing-scale-7};
}

.create-timeline-event,
.edit-timeline-event,
.timeline-event {
  gap: $gl-spacing-scale-5;
}

/**
 * We have a very specific design proposal where we cannot
 * use `vertical-line` mixin as it is and have to use
 * custom styles, see https://gitlab.com/gitlab-org/gitlab/-/merge_requests/81284#note_904867444
 */
.timeline-entry-vertical-line {
  &::before,
  &::after {
    content: '';
    border-left: 2px solid $gray-50;
    position: absolute;
    left: 20px;
    height: calc(100% + #{$gl-spacing-scale-5});
    top: -#{$gl-spacing-scale-5};
  }

  &:first-child::before {
    content: none;
  }

  &:first-child {
    &::after {
      top: $gl-spacing-scale-5;
      height: calc(100% + #{$gl-spacing-scale-5});
    }
  }

  &:last-child {
    &::before {
      top: - #{$gl-spacing-scale-5} !important; // Override default positioning
      @include gl-h-8;
    }

    &::after {
      content: none;
    }
  }
}

.timeline-entry:not(:last-child) {
  .timeline-event-border {
    @include gl-pb-3;
    @include gl-border-gray-50;
    @include gl-border-1;
    @include gl-border-b-solid;
  }
}

.timeline-group:last-child {
  .timeline-entry:last-child,
  .create-timeline-event {
    .timeline-event-bottom-border {
      @include gl-border-b;
      @include gl-pt-5;
    }
  }
}

.timeline-event-note .md p {
  color: $gray-700;
}

.timeline-event-note-date {
  @media (max-width: $breakpoint-md) {
    width: 100%;
  }
}