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

259 lines
4 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
2016-09-29 09:46:39 +05:30
border-top: 1px solid transparent;
display: flex;
flex-direction: row;
2016-06-02 11:05:42 +05:30
&:hover {
2020-11-24 15:15:51 +05:30
background-color: var(--blue-50, $blue-50);
border-color: var(--blue-200, $blue-200);
2016-06-02 11:05:42 +05:30
cursor: pointer;
2016-04-02 18:10:28 +05:30
}
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-avatar,
.todo-actions {
@include transition(opacity);
flex: 0 0 auto;
}
2016-09-29 09:46:39 +05:30
.todo-actions {
display: flex;
justify-content: center;
flex-direction: column;
margin-left: 10px;
2016-11-03 12:29:30 +05:30
min-width: 55px;
2016-09-29 09:46:39 +05:30
}
.todo-item {
2017-08-17 22:00:37 +05:30
flex: 0 1 100%;
min-width: 0;
}
&.todo-pending.done-reversible {
&:hover {
2020-11-24 15:15:51 +05:30
border-color: var(--border-color, $border-color);
background-color: var(--gray-50, $gray-50);
2017-08-17 22:00:37 +05:30
border-top: 1px solid transparent;
.todo-avatar,
.todo-item {
2019-07-07 11:18:12 +05:30
opacity: 0.6;
2017-08-17 22:00:37 +05:30
}
}
.todo-avatar,
.todo-item {
2019-07-07 11:18:12 +05:30
opacity: 0.2;
2017-08-17 22:00:37 +05:30
}
.btn {
2020-11-24 15:15:51 +05:30
background-color: var(--gray-50, $gray-50);
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);
2016-04-02 18:10:28 +05:30
.todo-title {
2017-09-10 17:25:29 +05:30
> .title-item {
2017-08-17 22:00:37 +05:30
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
}
.todo-label {
flex: 0 1 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.status-box {
margin: 0;
float: none;
display: inline-block;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
padding: 0 5px;
line-height: inherit;
font-size: 14px;
2016-04-02 18:10:28 +05:30
}
2019-12-04 20:38:33 +05:30
.todo-label,
.todo-project {
a {
font-weight: $gl-font-weight-normal;
2020-11-24 15:15:51 +05:30
color: var(--blue-600, $blue-600);
2019-12-04 20:38:33 +05:30
}
2017-08-17 22:00:37 +05:30
}
2016-04-02 18:10:28 +05:30
.todo-body {
2019-07-31 22:56:46 +05:30
.badge.badge-pill,
p {
2020-11-24 15:15:51 +05:30
color: var(--gl-text-color, $gl-text-color);
2019-07-31 22:56:46 +05:30
}
2016-06-02 11:05:42 +05:30
2019-07-31 22:56:46 +05:30
.md {
color: $gl-grayish-blue;
font-size: $gl-font-size;
}
2016-04-02 18:10:28 +05:30
2019-07-31 22:56:46 +05:30
code {
white-space: pre-wrap;
}
2016-08-24 12:49:21 +05:30
2019-07-31 22:56:46 +05:30
pre {
border: 0;
2020-11-24 15:15:51 +05:30
background: var(--gray-50, $gray-50);
2019-07-31 22:56:46 +05:30
border-radius: 0;
2020-11-24 15:15:51 +05:30
color: var(--gray-500, $gray-500);
2019-07-31 22:56:46 +05:30
margin: 0 20px;
overflow: hidden;
}
2016-04-02 18:10:28 +05:30
2019-07-31 22:56:46 +05:30
.note-image-attach {
margin-top: 4px;
margin-left: 0;
max-width: 200px;
float: none;
}
2016-04-02 18:10:28 +05:30
2019-07-31 22:56:46 +05:30
p:last-child {
margin-bottom: 0;
2016-04-02 18:10:28 +05:30
}
}
2020-10-24 23:57:45 +05:30
.gl-label-scoped {
--label-inset-border: inset 0 0 0 1px currentColor;
}
2016-04-02 18:10:28 +05:30
}
2018-11-18 11:00:15 +05:30
@include media-breakpoint-down(lg) {
.todos-filters {
.filter-categories {
width: 75%;
.filter-item {
margin-bottom: 10px;
}
}
}
}
2019-12-04 20:38:33 +05:30
@include media-breakpoint-down(sm) {
2020-11-24 15:15:51 +05:30
.container-fluid .todos-list-container {
margin: 0 (-$gl-padding);
}
2016-09-29 09:46:39 +05:30
.todo {
.avatar {
display: none;
}
}
2016-04-02 18:10:28 +05:30
.todo-item {
.todo-title {
margin-bottom: 10px;
2017-08-17 22:00:37 +05:30
.todo-label {
white-space: normal;
}
2016-04-02 18:10:28 +05:30
}
.todo-body {
margin: 0;
2020-11-24 15:15:51 +05:30
border-left: 2px solid var(--border-color, $border-color);
2016-04-02 18:10:28 +05:30
padding-left: 10px;
}
}
2016-11-03 12:29:30 +05:30
.todos-filters {
2018-11-18 11:00:15 +05:30
.filter-categories {
width: auto;
}
2016-11-03 12:29:30 +05:30
.dropdown-menu-toggle {
width: 100%;
}
2020-11-24 15:15:51 +05:30
.dropdown-menu-toggle-sort {
width: auto;
}
2016-11-03 12:29:30 +05:30
}
2016-04-02 18:10:28 +05:30
}
2017-08-17 22:00:37 +05:30
.todos-empty {
display: flex;
flex-direction: column;
max-width: 900px;
margin-left: auto;
margin-right: auto;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2017-08-17 22:00:37 +05:30
flex-direction: row;
padding-top: 80px;
}
}
.todos-empty-content {
align-self: center;
max-width: 480px;
}
.todos-empty-hero {
width: 200px;
margin-left: auto;
margin-right: auto;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2017-08-17 22:00:37 +05:30
width: 300px;
margin-right: 0;
order: 2;
}
}
.todos-all-done {
padding-top: 20px;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2017-08-17 22:00:37 +05:30
padding-top: 50px;
}
> svg {
display: block;
max-width: 300px;
margin: 0 auto 20px;
}
p {
max-width: 470px;
margin-left: auto;
margin-right: auto;
}
a {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
2017-08-17 22:00:37 +05:30
}
}