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

525 lines
8.2 KiB
SCSS
Raw Normal View History

/**
* Well styled list
*
*/
.well-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 {
2016-11-30 13:25:25 +00:00
color: $list-text-disabled-color;
}
&.unstyled {
&:hover {
background: none;
}
}
&.warning-row {
2016-11-30 13:25:25 +00:00
background-color: $list-warning-row-bg;
border-color: $list-warning-row-border;
color: $list-warning-row-color;
}
2016-12-12 22:26:21 +00:00
&.smoke { background-color: $gray-light; }
&:not(.ui-sort-disabled):hover {
2016-02-23 16:13:43 +00:00
background: $row-hover;
2012-10-02 07:26:24 +00:00
}
&: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;
}
}
.well-title {
2015-01-15 22:55:45 +00:00
font-size: $list-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;
}
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: $list-font-size;
color: $list-text-color;
&.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;
color: $gl-text-color-secondary;
}
.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;
&.has-tooltip,
&:last-child {
margin-right: 0;
@media(max-width: $screen-xs-max) {
margin: 0 auto;
}
}
}
.no-comments {
opacity: .5;
}
}
2016-05-19 05:46:09 +00:00
.member-controls {
float: none;
@media (min-width: $screen-sm-min) {
float: right;
}
}
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: -webkit-flex;
display: -ms-flexbox;
display: flex;
align-items: center;
2016-12-05 15:59:30 +00: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 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;
}
}
.label-default {
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
}
.panel > .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,
.issuable-pipeline-status 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); }
}
.groups-list-tree-container {
.has-no-search-results {
text-align: center;
padding: $gl-padding;
font-style: italic;
color: $well-light-text-color;
}
> .group-list-tree > .group-row.has-children:first-child {
2017-11-02 23:59:51 +00:00
border-top: 0;
}
}
.group-list-tree {
.avatar-container.content-loading {
position: relative;
> a,
> a .avatar {
height: 100%;
border-radius: 50%;
}
> a {
padding: 2px;
.avatar {
border: 2px solid $white-normal;
&.identicon {
2017-12-22 07:35:46 +00:00
line-height: 15px;
}
}
}
&::after {
content: "";
position: absolute;
height: 100%;
width: 100%;
background-color: transparent;
border: 2px outset $kdb-border;
border-radius: 50%;
animation: spin-avatar 3s infinite linear;
}
}
2017-05-16 14:29:38 +00:00
.folder-toggle-wrap {
float: left;
line-height: $list-text-height;
font-size: 0;
span {
font-size: $gl-font-size;
}
}
.folder-caret,
.item-type-icon {
2017-05-16 14:29:38 +00:00
display: inline-block;
}
.folder-caret {
width: 15px;
svg {
margin-bottom: 2px;
}
2017-05-16 14:29:38 +00:00
}
.item-type-icon {
2017-12-22 07:35:46 +00:00
margin-top: 2px;
2017-05-16 14:29:38 +00:00
width: 20px;
}
> .group-row:not(.has-children) {
.folder-caret {
2017-05-16 14:29:38 +00:00
opacity: 0;
}
}
.content-list li:last-child {
padding-bottom: 0;
}
.group-list-tree {
margin-bottom: 0;
2017-06-08 08:44:22 +00:00
margin-left: 30px;
position: relative;
&::before {
content: '';
display: block;
width: 0;
position: absolute;
top: 5px;
bottom: 0;
left: -16px;
border-left: 2px solid $border-white-normal;
}
.group-row {
position: relative;
&::before {
content: "";
display: block;
width: 10px;
height: 0;
border-top: 2px solid $border-white-normal;
position: absolute;
top: 30px;
left: -16px;
}
&:last-child::before {
background: $white-light;
height: auto;
top: 30px;
bottom: 0;
}
&.being-removed {
opacity: 0.5;
}
}
}
2017-06-07 08:45:48 +00:00
.group-row {
padding: 0;
&.has-children {
2017-11-02 23:59:51 +00:00
border-top: 0;
}
&:first-child {
border-top: 1px solid $white-normal;
}
2017-07-07 21:33:10 +00:00
&:last-of-type {
.group-row-contents:not(:hover) {
border-bottom: 1px solid transparent;
}
}
}
.group-row-contents {
2017-06-07 08:45:48 +00:00
padding: 10px 10px 8px;
border-top: solid 1px transparent;
border-bottom: solid 1px $white-normal;
2017-06-07 08:45:48 +00:00
&:hover {
border-color: $row-hover-border;
background-color: $row-hover;
2017-06-07 08:45:48 +00:00
cursor: pointer;
}
2017-07-31 10:34:45 +00:00
.avatar-container > a {
width: 100%;
text-decoration: none;
2017-07-31 10:34:45 +00:00
}
&.has-more-items {
display: block;
padding: 20px 10px;
}
2017-12-22 07:35:46 +00:00
.stats {
position: relative;
2017-12-22 07:35:46 +00:00
line-height: 46px;
> span {
display: inline-flex;
align-items: center;
height: 16px;
min-width: 30px;
2017-12-22 07:35:46 +00:00
}
> span:last-child {
margin-right: 0;
}
2017-12-22 07:35:46 +00:00
.stat-value {
margin: 2px 0 0 5px;
}
}
.controls {
margin-left: 5px;
> .btn {
margin-right: $btn-xs-side-margin;
}
}
2017-12-22 07:35:46 +00:00
}
.project-row-contents .stats {
line-height: inherit;
> span:first-child {
2017-12-22 07:35:46 +00:00
margin-left: 25px;
}
.item-visibility {
margin-right: 0;
}
2017-12-22 07:35:46 +00:00
.last-updated {
position: absolute;
right: 12px;
min-width: 250px;
text-align: right;
2017-12-22 07:35:46 +00:00
color: $gl-text-color-secondary;
}
}
}
.namespace-title {
.tooltip-inner {
max-width: 350px;
}
}
ul.group-list-tree {
li.group-row {
> .group-row-contents .title {
2017-12-22 07:35:46 +00:00
line-height: $list-text-height;
}
&.has-description > .group-row-contents .title {
2017-12-22 07:35:46 +00:00
line-height: inherit;
}
}
2017-05-16 14:29:38 +00:00
}
2017-06-06 14:01:42 +00:00
.js-groups-list-holder {
.groups-list-loading {
font-size: 34px;
text-align: center;
}
}