debian-mirror-gitlab/app/assets/stylesheets/pages/groups.scss

483 lines
7.5 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.milestone-row {
@include str-truncated(90%);
}
2015-10-24 18:46:33 +05:30
2018-11-08 19:23:39 +05:30
.dashboard .side .card .card-header .input-group {
2017-08-17 22:00:37 +05:30
2015-10-24 18:46:33 +05:30
.form-control {
height: 42px;
}
2015-12-23 02:04:40 +05:30
}
2016-04-02 18:10:28 +05:30
2017-08-17 22:00:37 +05:30
.group-root-path {
max-width: 40vw;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: nowrap;
}
2016-04-02 18:10:28 +05:30
2017-08-17 22:00:37 +05:30
.group-row {
@include basic-list-stats;
2018-11-08 19:23:39 +05:30
.description p {
margin-bottom: 0;
}
2016-04-02 18:10:28 +05:30
}
2016-08-24 12:49:21 +05:30
.ldap-group-links {
.form-actions {
margin-bottom: $gl-padding;
}
}
2018-03-17 18:26:18 +05:30
.group-nav-container .nav-controls {
display: flex;
align-items: flex-start;
padding: $gl-padding-top 0;
border-bottom: 1px solid $border-color;
.group-filter-form {
flex: 1;
}
2018-11-08 19:23:39 +05:30
.dropdown-menu-right {
2018-03-17 18:26:18 +05:30
margin-top: 0;
}
.new-project-subgroup {
.dropdown-primary {
min-width: 115px;
}
.dropdown-toggle {
.dropdown-btn-icon {
pointer-events: none;
color: inherit;
margin-left: 0;
}
}
.dropdown-menu {
min-width: 280px;
margin-top: 2px;
}
li:not(.divider) {
padding: 0;
&.droplab-item-selected {
.icon-container {
.list-item-checkmark {
visibility: visible;
}
}
}
.menu-item {
padding: 8px 4px;
&:hover {
background-color: $gray-darker;
color: $theme-gray-900;
}
}
.icon-container {
float: left;
padding-left: 6px;
.list-item-checkmark {
visibility: hidden;
}
}
.description {
font-size: 14px;
strong {
display: block;
font-weight: $gl-font-weight-bold;
}
}
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(sm) {
2018-03-17 18:26:18 +05:30
&,
.dropdown,
.dropdown .dropdown-toggle,
.btn-new {
display: block;
}
.group-filter-form,
.dropdown {
margin-bottom: 10px;
margin-right: 0;
2016-09-29 09:46:39 +05:30
}
2018-03-17 18:26:18 +05:30
.group-filter-form,
.dropdown .dropdown-toggle,
.btn-new {
width: 100%;
}
.dropdown .dropdown-toggle .fa-chevron-down {
position: absolute;
top: 11px;
right: 8px;
}
.new-project-subgroup {
display: flex;
align-items: flex-start;
.dropdown-primary {
flex: 1;
}
.dropdown-menu {
width: 100%;
max-width: inherit;
min-width: inherit;
}
2016-09-29 09:46:39 +05:30
}
}
}
2016-11-03 12:29:30 +05:30
.groups-empty-state {
padding: 50px 100px;
overflow: hidden;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(sm) {
2016-11-03 12:29:30 +05:30
padding: 50px 0;
}
svg {
float: right;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(sm) {
2016-11-03 12:29:30 +05:30
float: none;
display: block;
width: 250px;
position: relative;
left: 50%;
margin-left: -125px;
}
}
.text-content {
float: left;
width: 460px;
margin-top: 120px;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(sm) {
2016-11-03 12:29:30 +05:30
float: none;
margin-top: 60px;
width: auto;
text-align: center;
}
}
}
2017-08-17 22:00:37 +05:30
.mattermost-icon svg {
width: 16px;
height: 16px;
vertical-align: text-bottom;
}
.mattermost-team-name {
color: $gl-text-color-secondary;
}
.mattermost-info {
display: block;
color: $gl-text-color-secondary;
margin-top: 10px;
}
.explore-groups.landing {
.inner-content {
padding: 0;
p {
margin: 7px 0 0;
max-width: 480px;
padding: 0 $gl-padding;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(sm) {
2017-08-17 22:00:37 +05:30
margin: 0 auto;
}
}
}
svg {
width: 62px;
height: 50px;
}
}
2018-03-17 18:26:18 +05:30
.user-access-role {
display: inline-block;
color: $gl-text-color-secondary;
font-size: 12px;
line-height: 20px;
margin: -5px 3px;
padding: 0 $label-padding;
border: 1px solid $border-color;
border-radius: $label-border-radius;
font-weight: $gl-font-weight-normal;
}
.js-groups-dropdown {
width: 100%;
}
.dropdown-group-transfer {
bottom: 100%;
top: initial;
.dropdown-content {
overflow-y: unset;
}
}
2018-11-08 19:23:39 +05:30
.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 {
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 {
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;
}
}
.folder-toggle-wrap {
font-size: 0;
2018-11-18 11:00:15 +05:30
flex-shrink: 0;
2018-11-08 19:23:39 +05:30
span {
font-size: $gl-font-size;
}
}
.folder-caret,
.item-type-icon {
display: inline-block;
}
.folder-caret {
width: 15px;
svg {
2018-11-18 11:00:15 +05:30
margin-bottom: 1px;
2018-11-08 19:23:39 +05:30
}
}
.item-type-icon {
margin-top: 2px;
width: 20px;
}
> .group-row:not(.has-children) {
.folder-caret {
opacity: 0;
}
}
.content-list li:last-child {
padding-bottom: 0;
}
.group-list-tree {
margin-bottom: 0;
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;
}
}
}
.group-row {
padding: 0;
&.has-children {
border-top: 0;
}
&:first-child {
border-top: 1px solid $white-normal;
}
}
.group-row-contents {
padding: $gl-padding-top;
&:hover {
border-color: $row-hover-border;
background-color: $row-hover;
cursor: pointer;
}
2018-11-18 11:00:15 +05:30
.group-text {
min-width: 0; // allows for truncated text within flex children
}
.avatar-container {
flex-shrink: 0;
> a {
width: 100%;
text-decoration: none;
}
2018-11-08 19:23:39 +05:30
}
&.has-more-items {
display: block;
padding: 20px 10px;
}
2018-11-18 11:00:15 +05:30
.description {
p {
@include str-truncated;
max-width: none;
}
}
2018-11-08 19:23:39 +05:30
.stats {
position: relative;
2018-11-18 11:00:15 +05:30
line-height: normal;
text-align: right;
flex-shrink: 0;
2018-11-08 19:23:39 +05:30
> span {
display: inline-flex;
align-items: center;
height: 16px;
min-width: 30px;
}
> span:last-child {
margin-right: 0;
}
.stat-value {
margin: 2px 0 0 5px;
}
}
.controls {
2018-11-18 11:00:15 +05:30
flex-shrink: 0;
2018-11-08 19:23:39 +05:30
> .btn {
2018-11-18 11:00:15 +05:30
margin: 0 0 0 $btn-margin-5;
2018-11-08 19:23:39 +05:30
}
}
}
2018-11-18 11:00:15 +05:30
@include media-breakpoint-down(xs) {
.group-stats {
display: none;
}
}
2018-11-08 19:23:39 +05:30
.project-row-contents .stats {
line-height: inherit;
> span:first-child {
margin-left: 25px;
}
.item-visibility {
margin-right: 0;
}
.last-updated {
2018-11-18 11:00:15 +05:30
position: relative;
2018-11-08 19:23:39 +05:30
right: 12px;
min-width: 250px;
text-align: right;
color: $gl-text-color-secondary;
}
}
}
.js-groups-list-holder {
.groups-list-loading {
font-size: 34px;
text-align: center;
}
}