debian-mirror-gitlab/app/assets/stylesheets/components/design_management/design.scss

179 lines
3.3 KiB
SCSS
Raw Normal View History

2021-01-03 14:25:43 +05:30
$design-pin-diameter: 28px;
$t-gray-a-16-design-pin: rgba($black, 0.16);
2020-06-23 00:09:42 +05:30
.layout-page.design-detail-layout {
max-height: 100vh;
}
2020-05-24 23:13:21 +05:30
.design-detail {
background-color: rgba($black, 0.9);
.with-performance-bar & {
top: 35px;
}
2020-06-23 00:09:42 +05:30
.badge.badge-pill {
display: flex;
2021-01-03 14:25:43 +05:30
height: $design-pin-diameter;
width: $design-pin-diameter;
box-sizing: content-box;
background-color: $purple-500;
2020-06-23 00:09:42 +05:30
color: $white;
2021-01-03 14:25:43 +05:30
font-weight: $gl-font-weight-bold;
2020-06-23 00:09:42 +05:30
border-radius: 50%;
2021-01-03 14:25:43 +05:30
z-index: 1;
padding: 0;
2020-06-23 00:09:42 +05:30
&.resolved {
2020-10-24 23:57:45 +05:30
background-color: $gray-500;
2020-06-23 00:09:42 +05:30
}
2020-05-24 23:13:21 +05:30
}
2020-11-24 15:15:51 +05:30
2021-01-03 14:25:43 +05:30
.comment-indicator {
border-radius: 50%;
}
.comment-indicator,
.frame .badge.badge-pill {
&:active {
cursor: grabbing;
}
}
/**
* Design pin that overlays the design
*/
.frame .badge.badge-pill {
box-shadow: 0 2px 4px $t-gray-a-08, 0 0 1px $t-gray-a-24;
border: $white 2px solid;
will-change: transform, box-shadow, opacity;
// NOTE: verbose transition property required for Safari
transition: transform $general-hover-transition-duration linear, box-shadow $general-hover-transition-duration linear, opacity $general-hover-transition-duration linear;
transform-origin: 0 0;
transform: translate(-50%, -50%);
&:hover {
transform: scale(1.2) translate(-50%, -50%);
}
&:active {
box-shadow: 0 0 4px $t-gray-a-16-design-pin, 0 4px 12px $t-gray-a-16-design-pin;
}
&.inactive {
@include gl-opacity-5;
&:hover {
@include gl-opacity-10;
}
}
2020-11-24 15:15:51 +05:30
}
2020-05-24 23:13:21 +05:30
}
.design-scaler-wrapper {
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
.design-checkbox {
position: absolute;
top: $gl-padding;
left: 30px;
}
.image-notes {
overflow-y: scroll;
padding: $gl-padding;
padding-top: 50px;
background-color: $white;
flex-shrink: 0;
min-width: 400px;
flex-basis: 28%;
2020-06-23 00:09:42 +05:30
.link-inherit-color {
&:hover,
&:active,
&:focus {
color: inherit;
text-decoration: none;
}
}
.toggle-comments {
line-height: 20px;
border-top: 1px solid $border-color;
&.expanded {
border-bottom: 1px solid $border-color;
}
.toggle-comments-button:focus {
text-decoration: none;
color: $blue-600;
}
}
2020-05-24 23:13:21 +05:30
.badge.badge-pill {
margin-left: $gl-padding;
}
.design-discussion {
margin: $gl-padding 0;
&::before {
content: '';
2020-07-28 23:09:34 +05:30
border-left: 1px solid $gray-100;
2020-05-24 23:13:21 +05:30
position: absolute;
left: 28px;
2021-01-03 14:25:43 +05:30
top: -17px;
height: 17px;
2020-05-24 23:13:21 +05:30
}
.design-note {
padding: $gl-padding;
list-style: none;
2020-07-28 23:09:34 +05:30
transition: background $gl-transition-duration-medium $general-hover-transition-curve;
border-top-left-radius: $border-radius-default; // same border radius used by .bordered-box
border-top-right-radius: $border-radius-default;
2020-05-24 23:13:21 +05:30
a {
color: inherit;
}
.note-text a {
color: $blue-600;
}
}
.reply-wrapper {
padding: $gl-padding;
}
}
.reply-wrapper {
border-top: 1px solid $border-color;
}
.new-discussion-disclaimer {
line-height: 20px;
}
}
@media (max-width: map-get($grid-breakpoints, lg)) {
.design-detail {
overflow-y: scroll;
}
.image-notes {
overflow-y: auto;
min-width: 100%;
flex-grow: 1;
flex-basis: auto;
}
}
2021-01-03 14:25:43 +05:30
.design-card-header {
background: transparent;
}