debian-mirror-gitlab/app/assets/stylesheets/framework/calendar.scss
2021-09-04 02:52:04 +05:30

108 lines
1.8 KiB
SCSS

.calendar-block {
padding-left: 0;
padding-right: 0;
border-top: 0;
@media (min-width: map-get($grid-breakpoints, sm)) and (max-width: map-get($grid-breakpoints, sm)) {
overflow-x: auto;
}
}
.user-calendar-activities {
direction: ltr;
.str-truncated {
max-width: 70%;
}
}
.user-calendar {
text-align: center;
min-height: 172px;
.calendar {
display: inline-block;
}
}
.user-contrib-cell {
&:hover {
cursor: pointer;
stroke: $black;
}
// `app/assets/javascripts/pages/users/activity_calendar.js` sets this attribute
@for $i from 1 through length($calendar-activity-colors) {
$color: nth($calendar-activity-colors, $i);
$level: $i - 1;
&[data-level='#{$level}'] {
fill: $color;
}
}
}
.user-contrib-text {
font-size: 12px;
fill: $calendar-user-contrib-text;
}
.calendar-hint {
font-size: 12px;
direction: ltr;
margin-top: -23px;
float: right;
}
.pika-single.gitlab-theme {
.pika-label {
color: $gl-text-color-secondary;
font-size: 14px;
font-weight: $gl-font-weight-normal;
}
th {
padding: 2px 0;
color: $note-disabled-comment-color;
font-weight: $gl-font-weight-normal;
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;
text-align: center;
}
.is-today {
.pika-day {
color: inherit;
font-weight: $gl-font-weight-normal;
}
}
.is-selected .pika-day,
.pika-day:hover,
.is-today .pika-day {
background: $gray-darker;
color: $gl-text-color;
box-shadow: none;
}
}