Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 14:33:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 14:33:21 +0300
commit7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch)
tree5bdc2229f5198d516781f8d24eace62fc7e589e9 /app/assets/stylesheets/pages/projects.scss
parent185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff)
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'app/assets/stylesheets/pages/projects.scss')
-rw-r--r--app/assets/stylesheets/pages/projects.scss181
1 files changed, 74 insertions, 107 deletions
diff --git a/app/assets/stylesheets/pages/projects.scss b/app/assets/stylesheets/pages/projects.scss
index be8707dcd50..bf20204cfd9 100644
--- a/app/assets/stylesheets/pages/projects.scss
+++ b/app/assets/stylesheets/pages/projects.scss
@@ -277,139 +277,128 @@
.description p {
margin-bottom: 0;
color: $gl-text-color-secondary;
+ @include str-truncated(100%);
}
}
.projects-list {
@include basic-list;
- display: flex;
- flex-direction: column;
+ @include gl-display-table;
.project-row {
- @include basic-list-stats;
- display: flex;
- align-items: center;
- padding: $gl-padding-12 0;
+ @include gl-display-table-row;
}
- h2 {
- font-size: $gl-font-size;
- font-weight: $gl-font-weight-bold;
- margin-bottom: 0;
-
- @include media-breakpoint-up(sm) {
- .namespace-name {
- font-weight: $gl-font-weight-normal;
- }
- }
+ .project-cell {
+ @include gl-display-table-cell;
+ @include gl-border-b;
+ @include gl-vertical-align-top;
+ @include gl-py-4;
}
- .avatar-container {
- flex: 0 0 auto;
- align-self: flex-start;
+ .project-row:last-of-type {
+ .project-cell {
+ @include gl-border-none;
+ }
}
- .project-details {
- min-width: 0;
- line-height: $gl-line-height;
- .flex-wrapper {
- min-width: 0;
- margin-top: -$gl-padding-8; // negative margin required for flex-wrap
- flex: 1 1 100%;
+ &.admin-projects,
+ &.group-settings-projects {
+ .project-row {
+ @include basic-list-stats;
- .project-title {
- line-height: 20px;
+ .description > p {
+ @include gl-mb-0;
}
}
+ .controls {
+ @include gl-line-height-42;
+ }
+ }
+
+ .project-details {
+ max-width: 625px;
+
p,
.commit-row-message {
+ @include gl-mb-0;
@include str-truncated(100%);
- margin-bottom: 0;
- }
-
- .user-access-role {
- margin: 0;
}
.description {
line-height: 1.5;
- color: $gl-text-color-secondary;
- }
-
- @include media-breakpoint-down(md) {
- .user-access-role {
- line-height: $gl-line-height-14;
- }
+ max-height: $gl-spacing-scale-8;
}
}
.ci-status-link {
- display: inline-block;
- line-height: 17px;
- vertical-align: middle;
-
- &:hover {
- text-decoration: none;
- }
+ @include gl-text-decoration-none;
}
- .controls {
- @include media-breakpoint-down(xs) {
- margin-top: $gl-padding-8;
+ &:not(.compact) {
+ .controls {
+ @include media-breakpoint-up(lg) {
+ @include gl-justify-content-start;
+ @include gl-pr-9;
+
+ &:not(.with-pipeline-status) {
+ .icon-wrapper:first-of-type {
+ @include media-breakpoint-up(lg) {
+ @include gl-ml-7;
+ }
+ }
+ }
+ }
}
- @include media-breakpoint-up(sm) {
- margin-top: 0;
+ .project-details {
+ p,
+ .commit-row-message {
+ @include gl-white-space-normal;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ /* stylelint-disable-next-line value-no-vendor-prefix */
+ display: -webkit-box;
+ }
}
+ }
- @include media-breakpoint-up(lg) {
- flex: 1 1 40%;
+ .controls {
+ @include media-breakpoint-up(sm) {
+ @include gl-justify-content-end;
}
.icon-wrapper {
- color: inherit;
- margin-right: $gl-padding;
-
@include media-breakpoint-down(md) {
- margin-right: 0;
- margin-left: $gl-padding-8;
+ @include gl-mr-0;
+ @include gl-ml-3;
}
@include media-breakpoint-down(xs) {
&:first-child {
- margin-left: 0;
- }
- }
- }
-
- &:not(.with-pipeline-status) {
- .icon-wrapper:first-of-type {
- @include media-breakpoint-up(lg) {
- margin-left: $gl-padding-32;
+ @include gl-ml-0;
}
}
}
.ci-status-link {
- display: inline-flex;
+ @include gl-display-inline-flex;
}
}
.icon-container {
- @include media-breakpoint-down(xs) {
- margin-right: $gl-padding-8;
+ @include media-breakpoint-up(lg) {
+ margin-right: $gl-spacing-scale-7;
}
}
&.compact {
- .project-row {
- padding: $gl-padding 0;
- }
-
- h2 {
- font-size: $gl-font-size;
+ .description {
+ @include gl-w-full;
+ @include gl-display-table;
+ @include gl-table-layout-fixed;
}
.avatar-container {
@@ -422,27 +411,15 @@
}
}
- .controls {
- @include media-breakpoint-up(sm) {
- margin-top: 0;
- }
- }
-
.updated-note {
@include media-breakpoint-up(sm) {
- margin-top: $gl-padding-8;
+ @include gl-mt-2;
}
}
.icon-wrapper {
- margin-left: $gl-padding-8;
- margin-right: 0;
-
- @include media-breakpoint-down(xs) {
- &:first-child {
- margin-left: 0;
- }
- }
+ @include gl-ml-3;
+ @include gl-mr-0;
}
.user-access-role {
@@ -451,10 +428,6 @@
}
@include media-breakpoint-down(md) {
- h2 {
- font-size: $gl-font-size;
- }
-
.avatar-container {
@include avatar-size(40px, 10px);
min-height: 40px;
@@ -468,24 +441,18 @@
@include media-breakpoint-down(md) {
.updated-note {
- margin-top: $gl-padding-8;
- text-align: right;
+ @include gl-mt-3;
+ @include gl-text-right;
}
}
.forks,
.pipeline-status,
.updated-note {
- display: flex;
+ @include gl-display-flex;
}
@include media-breakpoint-down(md) {
- &:not(.explore) {
- .forks {
- display: none;
- }
- }
-
&.explore {
.pipeline-status,
.updated-note {
@@ -496,8 +463,8 @@
@include media-breakpoint-down(xs) {
.updated-note {
- margin-top: 0;
- text-align: left;
+ @include gl-mt-0;
+ @include gl-text-left;
}
}
}