debian-mirror-gitlab/app/assets/stylesheets/framework/lists.scss

218 lines
3.2 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
/**
* Well styled list
*
*/
.well-list {
2016-06-02 11:05:42 +05:30
position: relative;
2014-09-02 18:07:02 +05:30
margin: 0;
padding: 0;
list-style: none;
2015-12-23 02:04:40 +05:30
> li {
2014-09-02 18:07:02 +05:30
padding: 10px 15px;
min-height: 20px;
border-bottom: 1px solid #eee;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
&:after {
content: " ";
display: table;
clear: both;
}
&.disabled {
color: #888;
}
&.unstyled {
&:hover {
background: none;
}
}
&.warning-row {
background-color: #fcf8e3;
border-color: #faebcc;
color: #8a6d3b;
}
2015-04-26 12:48:37 +05:30
&.smoke { background-color: $background-color; }
2014-09-02 18:07:02 +05:30
&:hover {
2016-04-02 18:10:28 +05:30
background: $row-hover;
2014-09-02 18:07:02 +05:30
}
&:last-child {
border-bottom: none;
&.bottom {
2015-04-26 12:48:37 +05:30
background: $background-color;
2014-09-02 18:07:02 +05:30
}
}
.list-item-name {
float: left;
position: relative;
top: 3px;
}
p {
padding-top: 1px;
margin: 0;
2015-04-26 12:48:37 +05:30
color: $gray-dark;
2014-09-02 18:07:02 +05:30
img {
position: relative;
top: 3px;
}
}
.well-title {
2015-04-26 12:48:37 +05:30
font-size: $list-font-size;
2014-09-02 18:07:02 +05:30
line-height: 18px;
}
}
}
/** light list with border-bottom between li **/
ul.bordered-list, ul.unstyled-list {
2015-09-25 12:07:36 +05:30
@include basic-list;
2014-09-02 18:07:02 +05:30
&.top-list {
li:first-child {
padding-top: 0;
2015-09-25 12:07:36 +05:30
2014-09-02 18:07:02 +05:30
h4, h5 {
margin-top: 0;
}
}
}
}
2015-04-26 12:48:37 +05:30
ul.unstyled-list > li {
border-bottom: none;
}
2015-12-23 02:04:40 +05:30
ul.task-list {
li.task-list-item {
list-style-type: none;
}
ul:not(.task-list) {
padding-left: 1.3em;
}
2015-04-26 12:48:37 +05:30
}
2015-09-25 12:07:36 +05:30
ul.content-list {
@include basic-list;
margin: 0;
padding: 0;
> li {
2015-11-26 14:37:03 +05:30
border-color: $table-border-color;
2016-06-02 11:05:42 +05:30
font-size: $list-font-size;
color: $list-text-color;
2016-09-13 17:45:13 +05:30
&.no-description {
.title {
line-height: $list-text-height;
}
}
2016-06-02 11:05:42 +05:30
.title {
font-weight: 600;
}
a {
color: $gl-dark-link-color;
}
.description {
p {
@include str-truncated;
margin-bottom: 0;
}
}
2015-09-25 12:07:36 +05:30
.avatar {
margin-right: 15px;
}
.controls {
float: right;
2015-10-24 18:46:33 +05:30
2016-08-24 12:49:21 +05:30
> .control-text {
margin-right: $gl-padding-top;
2016-09-13 17:45:13 +05:30
line-height: $list-text-height;
2016-08-24 12:49:21 +05:30
&:last-child {
margin-right: 0;
}
}
> .btn,
> .btn-group {
margin-right: $gl-padding-top;
display: inline-block;
2016-09-13 17:45:13 +05:30
margin-top: 3px;
margin-bottom: 4px;
&:last-child {
margin-right: 0;
}
2015-10-24 18:46:33 +05:30
}
2015-09-25 12:07:36 +05:30
}
// When dragging a list item
&.ui-sortable-helper {
border-bottom: none;
}
&.list-placeholder {
background-color: $gray-light;
border: dotted 1px $gray-dark;
margin: 1px 0;
2016-06-22 15:30:34 +05:30
min-height: 52px;
}
2015-09-25 12:07:36 +05:30
}
}
2016-06-02 11:05:42 +05:30
.panel > .content-list > li {
padding: $gl-padding-top $gl-padding;
2016-08-24 12:49:21 +05:30
&.commit {
@media (min-width: $screen-sm-min) {
padding-left: 46px + $gl-padding;
}
}
2015-12-23 02:04:40 +05:30
}
ul.controls {
padding-top: 1px;
float: right;
list-style: none;
.btn {
padding: 10px 14px;
}
> li {
float: left;
margin-right: 10px;
2015-12-23 02:04:40 +05:30
&:last-child {
margin-right: 0;
}
.author_link {
display: inline-block;
.avatar-inline {
margin-left: 0;
margin-right: 0;
}
}
}
}