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

266 lines
4 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;
2016-11-30 08:25:25 -05:00
border-bottom: 1px solid $list-border-light;
border-bottom: 1px solid $list-border;
2016-10-24 16:58:50 -04:00
&::after {
content: " ";
display: table;
clear: both;
}
&.disabled {
2016-11-30 08:25:25 -05:00
color: $list-text-disabled-color;
}
&.unstyled {
&:hover {
background: none;
}
}
&.warning-row {
2016-11-30 08:25:25 -05:00
background-color: $list-warning-row-bg;
border-color: $list-warning-row-border;
color: $list-warning-row-color;
}
2016-12-12 17:26:21 -05:00
&.smoke { background-color: $gray-light; }
&:not(.ui-sort-disabled):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 {
2016-12-12 17:26:21 -05:00
background: $gray-light;
2013-01-04 17:35:38 -05:00
}
}
.list-item-name {
float: left;
position: relative;
top: 3px;
}
p {
padding-top: 1px;
margin: 0;
2016-12-12 17:26:21 -05:00
color: $white-normal;
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;
}
2016-12-05 10:59:30 -05:00
// Generic content list
ul.content-list {
@include basic-list;
margin: 0;
padding: 0;
2016-12-05 10:59:30 -05:00
li {
2016-12-12 17:26:21 -05:00
border-color: $white-normal;
font-size: $list-font-size;
color: $list-text-color;
&.no-description {
.title {
line-height: $list-text-height;
}
}
.title {
font-weight: 600;
}
a {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
}
.member-group-link {
color: $blue-normal;
}
.description {
p {
@include str-truncated;
margin-bottom: 0;
}
}
.controls {
float: right;
> .control-text {
margin-right: $gl-padding-top;
line-height: $list-text-height;
&:last-child {
margin-right: 0;
}
}
> .btn,
> .btn-group,
> .dropdown.inline {
margin-right: $gl-padding-top;
display: inline-block;
margin-top: 3px;
margin-bottom: 4px;
&:last-child {
margin-right: 0;
@media(max-width: $screen-xs-max) {
margin: 0 auto;
}
}
}
.no-comments {
opacity: .5;
}
}
2016-05-19 01:46:09 -04:00
.member-controls {
float: none;
@media (min-width: $screen-sm-min) {
float: right;
}
}
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;
2016-12-12 17:26:21 -05:00
border: dotted 1px $white-normal;
2016-05-19 01:46:09 -04:00
margin: 1px 0;
2016-06-14 12:48:42 -04:00
min-height: 52px;
2016-05-19 01:46:09 -04:00
}
}
}
2016-12-05 10:59:30 -05:00
// Content list using flexbox
.flex-list {
.flex-row {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
align-items: center;
2016-12-05 10:59:30 -05:00
white-space: nowrap;
}
.row-main-content {
flex: 1 1 auto;
overflow: hidden;
padding-right: 8px;
}
.row-fixed-content {
flex: 0 0 auto;
margin-left: auto;
}
2016-12-05 10:59:30 -05:00
.row-title {
font-weight: 600;
}
.row-second-line {
display: block;
}
.dropdown {
.btn-block {
margin-bottom: 0;
line-height: inherit;
}
}
.label-default {
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
2016-12-05 10:59:30 -05:00
}
}
.panel > .content-list > li {
padding: $gl-padding-top $gl-padding;
}
ul.controls {
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;
}
}
}
}
ul.indent-list {
padding: 10px 0 0 30px;
}