debian-mirror-gitlab/app/assets/stylesheets/pages/issues.scss

354 lines
7.3 KiB
SCSS
Raw Normal View History

2021-11-18 22:05:49 +05:30
.issue-token-link {
&[href] {
color: $blue-600;
}
2017-08-17 22:00:37 +05:30
2021-11-18 22:05:49 +05:30
&:hover,
&:focus {
outline: none;
text-decoration: none;
}
2017-08-17 22:00:37 +05:30
}
2021-11-18 22:05:49 +05:30
.issue-token-reference {
margin-right: 1px;
background-color: $gray-lighter;
transition: background $general-hover-transition-duration $general-hover-transition-curve, color $general-hover-transition-duration $general-hover-transition-curve;
2014-09-02 18:07:02 +05:30
2021-11-18 22:05:49 +05:30
.issue-token:hover &,
.issue-token-link:focus > & {
background-color: $gray-normal;
color: $blue-800;
text-decoration: none;
}
2014-09-02 18:07:02 +05:30
}
2021-11-18 22:05:49 +05:30
.issue-token-title {
background-color: $gray-normal;
transition: background $general-hover-transition-duration $general-hover-transition-curve;
2016-11-03 12:29:30 +05:30
2021-11-18 22:05:49 +05:30
.issue-token:hover &,
.issue-token-link:focus > & {
background-color: $border-gray-normal;
2016-09-29 09:46:39 +05:30
}
2021-11-18 22:05:49 +05:30
}
2017-08-17 22:00:37 +05:30
2021-11-18 22:05:49 +05:30
.issue-token-remove-button {
background-color: $gray-normal;
transition: background $general-hover-transition-duration $general-hover-transition-curve;
2017-09-10 17:25:29 +05:30
2021-11-18 22:05:49 +05:30
&:hover,
&:focus,
.issue-token:hover &,
.issue-token-link:focus + & {
background-color: $border-gray-normal;
outline: none;
2017-09-10 17:25:29 +05:30
}
2016-09-29 09:46:39 +05:30
}
2021-11-18 22:05:49 +05:30
.issue-realtime-pre-pulse {
opacity: 0;
}
.issue-realtime-trigger-pulse {
transition: opacity $fade-in-duration linear;
opacity: 1;
}
ul.related-merge-requests > li gl-emoji {
font-size: 1em;
2015-12-23 02:04:40 +05:30
}
.merge-request-status {
2017-08-17 22:00:37 +05:30
&.merged {
2019-03-02 22:35:43 +05:30
color: $blue-500;
2017-08-17 22:00:37 +05:30
}
&.closed {
2019-03-02 22:35:43 +05:30
color: $red-500;
2017-08-17 22:00:37 +05:30
}
&.open {
2019-03-02 22:35:43 +05:30
color: $green-500;
2017-08-17 22:00:37 +05:30
}
2015-12-23 02:04:40 +05:30
}
2014-09-02 18:07:02 +05:30
.merge-request,
.issue {
2020-01-01 13:55:28 +05:30
&.closed,
2014-09-02 18:07:02 +05:30
&.merged {
2016-09-29 09:46:39 +05:30
background: $gray-light;
2017-08-17 22:00:37 +05:30
border-color: $border-color;
2014-09-02 18:07:02 +05:30
}
}
2017-08-17 22:00:37 +05:30
.related-merge-requests {
.ci-status-link {
display: block;
margin-right: 5px;
}
2016-08-24 12:49:21 +05:30
svg {
2017-08-17 22:00:37 +05:30
display: block;
2016-08-24 12:49:21 +05:30
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2018-03-17 18:26:18 +05:30
.detail-page-header {
.issuable-meta {
line-height: 18px;
2015-04-26 12:48:37 +05:30
}
}
}
2020-01-01 13:55:28 +05:30
.issues-nav-controls {
2019-02-15 15:39:39 +05:30
.btn-group:empty {
display: none;
}
}
2017-08-17 22:00:37 +05:30
.recaptcha {
margin-bottom: 30px;
}
.new-branch-col {
2018-12-13 13:39:08 +05:30
.discussion-filter-container {
2022-08-13 15:12:31 +05:30
&:not(:last-child) {
margin-right: $gl-spacing-scale-3;
}
}
@include media-breakpoint-down(xs) {
width: 100%;
> div:not(:last-child) {
margin-bottom: $gl-spacing-scale-3;
2018-12-13 13:39:08 +05:30
}
}
2017-08-17 22:00:37 +05:30
}
.create-mr-dropdown-wrap {
2018-03-17 18:26:18 +05:30
.ref::selection {
2018-11-20 20:47:30 +05:30
color: $gl-text-color-tertiary;
2018-03-17 18:26:18 +05:30
}
.dropdown {
.dropdown-menu-toggle {
min-width: 285px;
}
.dropdown-select {
width: 285px;
}
}
2018-11-08 19:23:39 +05:30
.btn-group:not(.hidden) {
2017-08-17 22:00:37 +05:30
display: flex;
2022-08-13 15:12:31 +05:30
@include media-breakpoint-down(xs) {
.btn.btn-confirm {
@include gl-justify-content-start;
&.dropdown-toggle {
@include gl-flex-grow-0;
}
}
}
2017-08-17 22:00:37 +05:30
}
.js-create-merge-request {
flex-grow: 1;
flex-shrink: 0;
}
2018-03-17 18:26:18 +05:30
.create-merge-request-dropdown-menu {
2017-08-17 22:00:37 +05:30
opacity: 1;
visibility: visible;
transform: translateY(0);
display: none;
2018-03-17 18:26:18 +05:30
margin-top: 4px;
// override dropdown item styles
2021-04-29 21:17:54 +05:30
.btn.btn-confirm {
2018-03-17 18:26:18 +05:30
@include btn-default;
2021-04-29 21:17:54 +05:30
@include btn-blue;
2018-03-17 18:26:18 +05:30
border-width: 1px;
line-height: $line-height-base;
width: auto;
2021-01-29 00:20:46 +05:30
&.disabled {
background-color: $gray-light;
border-color: $gray-100;
color: $gl-text-color-disabled;
}
2018-03-17 18:26:18 +05:30
}
2017-08-17 22:00:37 +05:30
}
2018-03-17 18:26:18 +05:30
}
2017-08-17 22:00:37 +05:30
2021-03-11 19:13:27 +05:30
.discussion-reply-holder,
.note-edit-form {
display: block;
2017-08-17 22:00:37 +05:30
}
2019-02-15 15:39:39 +05:30
.issue-sort-dropdown {
.btn-group {
width: 100%;
}
.reverse-sort-btn {
color: $gl-text-color-secondary;
2021-03-11 19:13:27 +05:30
&.disabled {
color: $gl-text-color-disabled;
}
2019-02-15 15:39:39 +05:30
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2017-09-10 17:25:29 +05:30
.emoji-block .row {
display: flex;
2017-08-17 22:00:37 +05:30
2017-09-10 17:25:29 +05:30
.new-branch-col {
2022-11-25 23:54:43 +05:30
@include gl-pb-0;
2023-01-13 00:05:48 +05:30
align-self: flex-end;
2017-09-10 17:25:29 +05:30
}
2020-01-01 13:55:28 +05:30
}
2017-09-10 17:25:29 +05:30
2020-01-01 13:55:28 +05:30
.create-mr-dropdown-wrap {
.btn-group:not(.hidden) {
display: inline-flex;
2017-08-17 22:00:37 +05:30
}
2016-09-13 17:45:13 +05:30
}
}
2018-12-13 13:39:08 +05:30
@include media-breakpoint-up(lg) {
.new-branch-col {
text-align: right;
}
}
2020-04-08 14:13:33 +05:30
.issue-details {
.card-title {
a.anchor {
left: -16px;
top: 4px;
outline: none;
&::after {
2023-05-27 22:25:52 +05:30
@include gl-dark-invert-keep-hue;
2020-04-08 14:13:33 +05:30
content: image-url('icon_anchor.svg');
2020-11-24 15:15:51 +05:30
visibility: hidden;
2020-04-08 14:13:33 +05:30
}
}
&:hover > a.anchor::after {
2020-11-24 15:15:51 +05:30
visibility: visible;
2020-04-08 14:13:33 +05:30
}
}
}
2020-05-24 23:13:21 +05:30
2020-06-23 00:09:42 +05:30
.issue-sticky-header {
2022-10-11 01:57:18 +05:30
--width: 100%;
2020-06-23 00:09:42 +05:30
@include gl-left-0;
2022-10-11 01:57:18 +05:30
width: var(--width);
2020-06-23 00:09:42 +05:30
top: $header-height;
// collapsed right sidebar
@include media-breakpoint-up(sm) {
2022-10-11 01:57:18 +05:30
--width: calc(100% - #{$gutter-collapsed-width});
2020-06-23 00:09:42 +05:30
}
2022-04-04 11:22:00 +05:30
}
2020-06-23 00:09:42 +05:30
2022-04-04 11:22:00 +05:30
.limit-container-width {
2020-06-23 00:09:42 +05:30
.issue-sticky-header-text {
max-width: $limited-layout-width;
}
}
.with-performance-bar .issue-sticky-header {
2022-03-02 08:16:31 +05:30
top: calc(#{$header-height} + #{$performance-bar-height});
2020-06-23 00:09:42 +05:30
}
@include media-breakpoint-up(md) {
// collapsed left sidebar + collapsed right sidebar
2023-05-27 22:25:52 +05:30
.page-with-contextual-sidebar .issue-sticky-header {
2020-06-23 00:09:42 +05:30
left: $contextual-sidebar-collapsed-width;
2022-10-11 01:57:18 +05:30
--width: calc(100% - #{$contextual-sidebar-collapsed-width} - #{$gutter-collapsed-width});
2020-06-23 00:09:42 +05:30
}
// collapsed left sidebar + expanded right sidebar
2023-05-27 22:25:52 +05:30
.page-with-contextual-sidebar.right-sidebar-expanded .issue-sticky-header {
2022-10-11 01:57:18 +05:30
--width: calc(100% - #{$contextual-sidebar-collapsed-width} - #{$gutter-width});
2020-06-23 00:09:42 +05:30
}
2023-05-27 22:25:52 +05:30
// collapsed super sidebar + collapsed right sidebar
.page-with-super-sidebar .issue-sticky-header {
--width: calc(100% - #{$gutter-collapsed-width});
}
// collapsed super sidebar + expanded right sidebar
.page-with-super-sidebar.right-sidebar-expanded .issue-sticky-header {
--width: calc(100% - #{$gutter-width});
}
2020-06-23 00:09:42 +05:30
}
@include media-breakpoint-up(xl) {
// expanded left sidebar + collapsed right sidebar
2023-05-27 22:25:52 +05:30
.page-with-contextual-sidebar .issue-sticky-header {
2020-06-23 00:09:42 +05:30
left: $contextual-sidebar-width;
2022-10-11 01:57:18 +05:30
--width: calc(100% - #{$contextual-sidebar-width} - #{$gutter-collapsed-width});
2020-06-23 00:09:42 +05:30
}
// collapsed left sidebar + collapsed right sidebar
.page-with-icon-sidebar .issue-sticky-header {
left: $contextual-sidebar-collapsed-width;
2022-10-11 01:57:18 +05:30
--width: calc(100% - #{$contextual-sidebar-collapsed-width} - #{$gutter-collapsed-width});
2020-06-23 00:09:42 +05:30
}
// expanded left sidebar + expanded right sidebar
2023-05-27 22:25:52 +05:30
.page-with-contextual-sidebar.right-sidebar-expanded .issue-sticky-header {
2022-10-11 01:57:18 +05:30
--width: calc(100% - #{$contextual-sidebar-width} - #{$gutter-width});
2020-06-23 00:09:42 +05:30
}
// collapsed left sidebar + expanded right sidebar
2023-05-27 22:25:52 +05:30
.page-with-contextual-sidebar.right-sidebar-expanded.page-with-icon-sidebar .issue-sticky-header {
2022-10-11 01:57:18 +05:30
--width: calc(100% - #{$contextual-sidebar-collapsed-width} - #{$gutter-width});
2020-06-23 00:09:42 +05:30
}
2023-05-27 22:25:52 +05:30
// expanded super sidebar + collapsed right sidebar
.page-with-super-sidebar .issue-sticky-header {
left: $super-sidebar-width;
--width: calc(100% - #{$super-sidebar-width} - #{$gutter-collapsed-width});
}
// collapsed super sidebar + collapsed right sidebar
.page-with-super-sidebar-collapsed .issue-sticky-header {
left: 0;
--width: calc(100% - #{$gutter-collapsed-width});
}
// expanded super sidebar + expanded right sidebar
.page-with-super-sidebar.right-sidebar-expanded .issue-sticky-header {
left: $super-sidebar-width;
--width: calc(100% - #{$super-sidebar-width} - #{$gutter-width});
}
// collapsed super sidebar + expanded right sidebar
.page-with-super-sidebar-collapsed.right-sidebar-expanded .issue-sticky-header {
left: 0;
--width: calc(100% - #{$gutter-width});
}
2020-06-23 00:09:42 +05:30
}
.issuable-header-slide-enter-active,
.issuable-header-slide-leave-active {
2022-08-27 11:52:29 +05:30
@include gl-transition-medium;
2020-06-23 00:09:42 +05:30
}
.issuable-header-slide-enter,
.issuable-header-slide-leave-to {
transform: translateY(-100%);
}