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

316 lines
4.7 KiB
SCSS
Raw Normal View History

/**
* Well styled list
*
*/
.hover-list {
2016-02-29 17:19:00 +00:00
position: relative;
margin: 0;
padding: 0;
list-style: none;
> li {
padding: 10px 15px;
min-height: 20px;
2016-11-30 13:25:25 +00:00
border-bottom: 1px solid $list-border;
2017-12-19 20:45:17 +00:00
word-wrap: break-word;
2016-10-24 20:58:50 +00:00
&::after {
content: ' ';
display: table;
clear: both;
}
&.disabled {
color: $gl-text-color-tertiary;
}
&:not(.ui-sort-disabled):hover {
background: $blue-50;
}
&.unstyled {
&:hover {
background: none;
}
}
&.warning-row {
background-color: $orange-100;
border-color: $orange-200;
color: $orange-700;
&:hover {
background: $orange-100;
}
2012-10-02 07:26:24 +00:00
}
&.smoke { background-color: $gray-light; }
&:last-child {
2017-11-02 23:59:51 +00:00
border-bottom: 0;
2013-01-04 22:35:38 +00:00
&.bottom {
2016-12-12 22:26:21 +00:00
background: $gray-light;
2013-01-04 22:35:38 +00:00
}
}
.list-item-name {
float: left;
position: relative;
top: 3px;
}
p {
padding-top: 1px;
margin: 0;
2016-12-12 22:26:21 +00:00
color: $white-normal;
img {
position: relative;
top: 3px;
}
}
2018-04-09 15:26:28 +00:00
.card.card-body-title {
font-size: $gl-font-size;
line-height: 18px;
}
}
}
2012-11-10 21:08:47 +00: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 {
2017-11-02 23:59:51 +00:00
border-bottom: 0;
}
ul.list-items-py-2 {
> li {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
}
2016-12-05 15:59:30 +00:00
// Generic content list
ul.content-list {
@include basic-list;
margin: 0;
padding: 0;
2016-12-05 15:59:30 +00:00
li {
2016-12-12 22:26:21 +00:00
border-color: $white-normal;
font-size: $gl-font-size;
color: $gl-text-color;
word-break: break-word;
&.no-description {
.title {
line-height: $list-text-height;
}
}
.title {
font-weight: $gl-font-weight-bold;
}
a {
2016-12-30 20:18:27 +00:00
color: $gl-text-color;
}
.member-group-link {
color: $blue-600;
}
.description {
2017-12-22 07:35:46 +00:00
@include str-truncated;
}
.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;
2019-03-22 15:23:23 +00:00
&.btn-ldap-override {
@include media-breakpoint-up(sm) {
margin-bottom: 0;
}
}
&.has-tooltip,
&:last-child {
margin-right: 0;
2018-04-09 15:26:28 +00:00
@include media-breakpoint-down(xs) {
margin: 0 auto;
}
}
}
.no-comments {
opacity: 0.5;
}
}
2016-05-19 05:46:09 +00:00
// When dragging a list item
&.ui-sortable-helper {
2017-11-02 23:59:51 +00:00
border-bottom: 0;
2016-05-19 05:46:09 +00:00
}
&.list-placeholder {
background-color: $gray-light;
2016-12-12 22:26:21 +00:00
border: dotted 1px $white-normal;
2016-05-19 05:46:09 +00:00
margin: 1px 0;
2016-06-14 16:48:42 +00:00
min-height: 52px;
2016-05-19 05:46:09 +00:00
}
}
}
2016-12-05 15:59:30 +00:00
// Content list using flexbox
.flex-list {
.flex-row {
display: flex;
align-items: center;
2016-12-05 15:59:30 +00:00
white-space: nowrap;
// Override style that allows the flex-row text to wrap.
&.allow-wrap {
white-space: normal;
}
2016-12-05 15:59:30 +00:00
}
.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 15:59:30 +00:00
.row-title {
font-weight: $gl-font-weight-bold;
2016-12-05 15:59:30 +00:00
}
.row-second-line {
display: block;
}
.dropdown {
.btn-block {
margin-bottom: 0;
line-height: inherit;
}
}
.badge-secondary {
2016-12-30 20:18:27 +00:00
color: $gl-text-color-secondary;
2016-12-05 15:59:30 +00:00
}
.avatar-cell {
align-self: flex-start;
}
2016-12-05 15:59:30 +00:00
}
2018-04-09 15:26:28 +00:00
.card > .content-list > li {
padding: $gl-padding-top $gl-padding;
}
ul.controls {
float: right;
list-style: none;
display: flex;
align-items: center;
.btn {
padding: 10px 14px;
}
> li {
float: left;
2015-12-16 15:30:01 +00:00
margin-right: 10px;
2015-12-16 15:30:01 +00:00
&:last-child {
margin-right: 0;
}
.author-link {
.avatar-inline {
margin-left: 0;
margin-right: 0;
margin-bottom: 0;
}
}
}
.issuable-pipeline-broken a,
.author-link {
display: flex;
}
}
ul.indent-list {
padding: 10px 0 0 30px;
}
2017-05-16 14:29:38 +00:00
// Specific styles for tree list
@keyframes spin-avatar {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.namespace-title {
.tooltip-inner {
max-width: 350px;
}
}
.horizontal-list {
padding-left: 0;
list-style: none;
> li {
float: left;
}
&.list-items-separated {
> li:not(:last-child)::after {
content: '\00b7';
margin: 0 $gl-padding-4;
}
}
}