145 lines
2.4 KiB
SCSS
145 lines
2.4 KiB
SCSS
/**
|
|
* Dashboard Todos
|
|
*
|
|
*/
|
|
|
|
.navbar-nav {
|
|
li {
|
|
.badge.todos-pending-count {
|
|
margin-top: -5px;
|
|
font-weight: normal;
|
|
background: $todo-alert-blue;
|
|
margin-left: -17px;
|
|
font-size: 11px;
|
|
color: white;
|
|
padding: 3px;
|
|
padding-top: 1px;
|
|
padding-bottom: 1px;
|
|
border-radius: 3px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.todos-list > .todo {
|
|
// workaround because we cannot use border-colapse
|
|
border-top: 1px solid transparent;
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-flex-direction: row;
|
|
flex-direction: row;
|
|
|
|
&:hover {
|
|
background-color: $row-hover;
|
|
border-color: $row-hover-border;
|
|
cursor: pointer;
|
|
}
|
|
|
|
// overwrite border style of .content-list
|
|
&:last-child {
|
|
border-bottom: 1px solid transparent;
|
|
|
|
&:hover {
|
|
border-color: $row-hover-border;
|
|
}
|
|
}
|
|
|
|
.todo-actions {
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-justify-content: center;
|
|
justify-content: center;
|
|
-webkit-flex-direction: column;
|
|
flex-direction: column;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.todo-item {
|
|
-webkit-flex: auto;
|
|
flex: auto;
|
|
}
|
|
}
|
|
|
|
.todo-item {
|
|
.todo-title {
|
|
@include str-truncated(calc(100% - 174px));
|
|
overflow: visible;
|
|
}
|
|
|
|
.status-box {
|
|
margin: 0;
|
|
float: none;
|
|
display: inline-block;
|
|
font-weight: normal;
|
|
padding: 0 5px;
|
|
line-height: inherit;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.todo-body {
|
|
.todo-note {
|
|
word-wrap: break-word;
|
|
|
|
.md {
|
|
color: #7f8fa4;
|
|
font-size: $gl-font-size;
|
|
|
|
.label {
|
|
color: $gl-text-color;
|
|
font-size: inherit;
|
|
}
|
|
|
|
p {
|
|
color: #5c5d5e;
|
|
}
|
|
}
|
|
|
|
code {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
pre {
|
|
border: none;
|
|
background: $gray-light;
|
|
border-radius: 0;
|
|
color: #777;
|
|
margin: 0 20px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.note-image-attach {
|
|
margin-top: 4px;
|
|
margin-left: 0;
|
|
max-width: 200px;
|
|
float: none;
|
|
}
|
|
|
|
p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: $screen-xs-max) {
|
|
.todo {
|
|
.avatar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.todo-item {
|
|
.todo-title {
|
|
white-space: normal;
|
|
overflow: visible;
|
|
max-width: 100%;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.todo-body {
|
|
margin: 0;
|
|
border-left: 2px solid #ddd;
|
|
padding-left: 10px;
|
|
}
|
|
}
|
|
}
|