calendar.scss 1.59 KB
Newer Older
1
.calendar-block {
Phil Hughes's avatar
Phil Hughes committed
2 3
  padding-left: 0;
  padding-right: 0;
4
  border-top: 0;
Phil Hughes's avatar
Phil Hughes committed
5

Clement Ho's avatar
Clement Ho committed
6
  @media (min-width: map-get($grid-breakpoints, sm)) and (max-width: map-get($grid-breakpoints, sm)) {
7
    overflow-x: auto;
8 9 10
  }
}

11
.user-calendar-activities {
12 13
  direction: ltr;

14 15 16
  .str-truncated {
    max-width: 70%;
  }
17

18 19
  .user-calendar-activities-loading {
    font-size: 24px;
20
  }
21
}
22

23 24
.user-calendar {
  text-align: center;
25

26 27
  .calendar {
    display: inline-block;
28 29
  }
}
30 31 32

.user-contrib-cell {
  &:hover {
33
    cursor: pointer;
Sam Rose's avatar
Sam Rose committed
34
    stroke: $black;
35 36 37 38 39
  }
}

.user-contrib-text {
  font-size: 12px;
Sam Rose's avatar
Sam Rose committed
40
  fill: $calendar-user-contrib-text;
41
}
42 43 44

.calendar-hint {
  font-size: 12px;
45 46 47 48 49 50

  &.bottom-right {
    direction: ltr;
    margin-top: -23px;
    float: right;
  }
51
}
Phil Hughes's avatar
Phil Hughes committed
52 53 54

.pika-single.gitlab-theme {
  .pika-label {
Phil Hughes's avatar
Phil Hughes committed
55
    color: $gl-text-color-secondary;
Phil Hughes's avatar
Phil Hughes committed
56
    font-size: 14px;
57
    font-weight: $gl-font-weight-normal;
Phil Hughes's avatar
Phil Hughes committed
58 59 60 61 62
  }

  th {
    padding: 2px 0;
    color: $note-disabled-comment-color;
63
    font-weight: $gl-font-weight-normal;
Phil Hughes's avatar
Phil Hughes committed
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
    text-transform: lowercase;
    border-top: 1px solid $calendar-border-color;
  }

  abbr {
    cursor: default;
  }

  td {
    border: 1px solid $calendar-border-color;

    &:first-child {
      border-left: 0;
    }

    &:last-child {
      border-right: 0;
    }
  }

  .pika-day {
    border-radius: 0;
    background-color: $white-light;
    text-align: center;
  }

  .is-today {
    .pika-day {
      color: inherit;
93
      font-weight: $gl-font-weight-normal;
Phil Hughes's avatar
Phil Hughes committed
94 95 96 97 98
    }
  }

  .is-selected .pika-day,
  .pika-day:hover,
99
  .is-today .pika-day {
winh's avatar
winh committed
100 101
    background: $gray-darker;
    color: $gl-text-color;
Phil Hughes's avatar
Phil Hughes committed
102 103 104
    box-shadow: none;
  }
}