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

164 lines
2.7 KiB
SCSS
Raw Normal View History

2016-04-02 18:10:28 +05:30
/**
* Dashboard Todos
*
*/
.navbar-nav {
li {
.badge.todos-pending-count {
margin-top: -5px;
2016-06-02 11:05:42 +05:30
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;
2016-04-02 18:10:28 +05:30
}
}
}
2016-09-29 09:46:39 +05:30
.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;
2016-06-02 11:05:42 +05:30
&:hover {
2016-09-29 09:46:39 +05:30
background-color: $row-hover;
border-color: $row-hover-border;
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 {
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;
2016-11-03 12:29:30 +05:30
min-width: 55px;
2016-09-29 09:46:39 +05:30
}
.todo-item {
-webkit-flex: auto;
flex: auto;
}
2016-04-02 18:10:28 +05:30
}
.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;
2016-04-02 18:10:28 +05:30
}
.todo-body {
.todo-note {
word-wrap: break-word;
.md {
color: #7f8fa4;
font-size: $gl-font-size;
2016-06-02 11:05:42 +05:30
.label {
color: $gl-text-color;
font-size: inherit;
}
2016-04-02 18:10:28 +05:30
p {
color: #5c5d5e;
}
}
2016-08-24 12:49:21 +05:30
code {
white-space: pre-wrap;
}
2016-04-02 18:10:28 +05:30
pre {
border: none;
2016-09-29 09:46:39 +05:30
background: $gray-light;
2016-04-02 18:10:28 +05:30
border-radius: 0;
color: #777;
margin: 0 20px;
overflow: hidden;
}
.note-image-attach {
margin-top: 4px;
2016-06-02 11:05:42 +05:30
margin-left: 0;
2016-04-02 18:10:28 +05:30
max-width: 200px;
float: none;
}
p:last-child {
margin-bottom: 0;
}
}
}
}
2016-11-03 12:29:30 +05:30
@media (max-width: $screen-sm-max) {
.todos-filters {
.dropdown-menu-toggle {
width: 135px;
}
}
}
2016-04-02 18:10:28 +05:30
@media (max-width: $screen-xs-max) {
2016-09-29 09:46:39 +05:30
.todo {
.avatar {
display: none;
}
}
2016-04-02 18:10:28 +05:30
.todo-item {
.todo-title {
white-space: normal;
overflow: visible;
max-width: 100%;
margin-bottom: 10px;
2016-04-02 18:10:28 +05:30
}
.todo-body {
margin: 0;
2016-06-02 11:05:42 +05:30
border-left: 2px solid #ddd;
2016-04-02 18:10:28 +05:30
padding-left: 10px;
}
}
2016-11-03 12:29:30 +05:30
.todos-filters {
.row-content-block {
padding-bottom: 50px;
}
.dropdown-menu-toggle {
width: 100%;
}
}
2016-04-02 18:10:28 +05:30
}