debian-mirror-gitlab/app/assets/stylesheets/page_bundles/todos.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

113 lines
2.1 KiB
SCSS
Raw Normal View History

2020-11-24 15:15:51 +05:30
@import 'mixins_and_variables_and_functions';
2016-04-02 18:10:28 +05:30
/**
* Dashboard Todos
*
*/
2016-09-29 09:46:39 +05:30
.todos-list > .todo {
2019-10-12 21:52:04 +05:30
// workaround because we cannot use border-collapse
2023-03-04 22:38:38 +05:30
padding: 6px 12px !important;
2016-09-29 09:46:39 +05:30
border-top: 1px solid transparent;
2023-03-04 22:38:38 +05:30
span:not(.todo-label),
button,
a:not(.todo-target-link),
time {
@include gl-relative;
}
2016-09-29 09:46:39 +05:30
// overwrite border style of .content-list
&:last-child {
border-bottom: 1px solid transparent;
&:hover {
2020-11-24 15:15:51 +05:30
border-color: var(--blue-200, $blue-200);
2016-09-29 09:46:39 +05:30
}
}
2017-08-17 22:00:37 +05:30
&.todo-pending.done-reversible {
2023-04-23 21:23:45 +05:30
.todo-item,
.todo-timestamp {
@include gl-opacity-5;
}
2017-08-17 22:00:37 +05:30
2023-04-23 21:23:45 +05:30
.todo-avatar {
filter: grayscale(1);
2017-08-17 22:00:37 +05:30
}
2023-04-23 21:23:45 +05:30
&:hover {
@include gl-border-t-1;
@include gl-border-t-transparent;
@include gl-border-t-solid;
2017-08-17 22:00:37 +05:30
}
2016-09-29 09:46:39 +05:30
}
2016-04-02 18:10:28 +05:30
}
.todo-item {
2017-08-17 22:00:37 +05:30
@include transition(opacity);
2023-03-04 22:38:38 +05:30
.todo-label a::before {
// Make area of the todo item clickable by expanding the area around the todo link
@include gl-content-empty;
@include gl-absolute;
@include gl-left-0;
@include gl-right-0;
@include gl-top-0;
@include gl-bottom-0;
z-index: 9;
2017-08-17 22:00:37 +05:30
}
2023-03-04 22:38:38 +05:30
}
2017-08-17 22:00:37 +05:30
2023-03-04 22:38:38 +05:30
.todo-title {
margin-right: 2.5rem;
2016-06-02 11:05:42 +05:30
2023-03-04 22:38:38 +05:30
@include media-breakpoint-up(sm) {
@include gl-mr-0;
@include gl-text-overflow-ellipsis;
@include gl-white-space-nowrap;
@include gl-overflow-hidden;
}
}
2018-11-18 11:00:15 +05:30
2023-03-04 22:38:38 +05:30
.todo-body {
p {
@include gl-display-inline;
color: var(--gl-text-color, $gl-text-color);
}
pre.code.highlight {
@include gl-py-0;
@include gl-px-1;
@include gl-m-0;
@include gl-border-0;
@include gl-rounded-base;
@include gl-display-inline-flex;
2023-03-17 16:20:25 +05:30
background: var(--gray-50, $gray-50);
color: var(--gl-text-color, $gl-text-color);
2023-03-04 22:38:38 +05:30
}
.gl-label-scoped {
--label-inset-border: inset 0 0 0 1px currentColor;
}
.avatar {
@include gl-mb-0;
}
}
.todo-actions,
.todo-body .todo-avatar,
.todos-list > .todo a:not(.todo-target-link) {
z-index: 11 !important;
}
.todo-actions {
@include gl-absolute;
@include gl-right-0;
@include media-breakpoint-up(sm) {
@include gl-relative;
2016-04-02 18:10:28 +05:30
}
2017-08-17 22:00:37 +05:30
}