gitlab-org--gitlab-foss/app/assets/stylesheets/framework/lists.scss

207 lines
3 KiB
SCSS
Raw Normal View History

/**
* Well styled list
*
*/
.well-list {
2016-02-29 12:19:00 -05:00
position: relative;
margin: 0;
padding: 0;
list-style: none;
> li {
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;
}
&.smoke { background-color: $background-color; }
2012-10-02 03:26:24 -04:00
&:hover {
2016-02-23 11:13:43 -05:00
background: $row-hover;
2012-10-02 03:26:24 -04:00
}
&:last-child {
2013-01-04 16:35:31 -05:00
border-bottom: none;
2013-01-04 17:35:38 -05:00
&.bottom {
background: $background-color;
2013-01-04 17:35:38 -05:00
}
}
.list-item-name {
float: left;
position: relative;
top: 3px;
}
p {
padding-top: 1px;
margin: 0;
color: $gray-dark;
img {
position: relative;
top: 3px;
}
}
.well-title {
2015-01-15 17:55:45 -05:00
font-size: $list-font-size;
line-height: 18px;
}
}
}
2012-11-10 16:08:47 -05:00
/** light list with border-bottom between li **/
ul.bordered-list, ul.unstyled-list {
@include basic-list;
&.top-list {
li:first-child {
padding-top: 0;
h4, h5 {
margin-top: 0;
}
}
}
}
ul.unstyled-list > li {
border-bottom: none;
}
ul.task-list {
li.task-list-item {
list-style-type: none;
}
ul:not(.task-list) {
padding-left: 1.3em;
}
}
ul.content-list {
@include basic-list;
margin: 0;
padding: 0;
> li {
2015-10-19 05:19:45 -04:00
border-color: $table-border-color;
font-size: $list-font-size;
color: $list-text-color;
.title {
font-weight: 600;
}
a {
color: $gl-dark-link-color;
}
.description {
p {
@include str-truncated;
margin-bottom: 0;
}
}
.avatar {
margin-right: 15px;
}
.controls {
padding-top: 1px;
float: right;
> .control-text {
margin-right: $gl-padding-top;
line-height: 40px;
&:last-child {
margin-right: 0;
}
}
> .btn,
> .btn-group {
margin-right: $gl-padding-top;
display: inline-block;
margin-top: 4px;
margin-bottom: 4px;
&:last-child {
margin-right: 0;
}
}
}
2016-05-19 01:46:09 -04:00
// 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-14 12:48:42 -04:00
min-height: 52px;
2016-05-19 01:46:09 -04:00
}
}
}
.panel > .content-list > li {
padding: $gl-padding-top $gl-padding;
}
ul.controls {
padding-top: 1px;
float: right;
list-style: none;
.btn {
padding: 10px 14px;
}
> li {
float: left;
2015-12-16 10:30:01 -05:00
margin-right: 10px;
2015-12-16 10:30:01 -05:00
&:last-child {
margin-right: 0;
}
.author_link {
display: inline-block;
.avatar-inline {
margin-left: 0;
margin-right: 0;
}
}
}
}