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>2023-09-22 03:11:47 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-09-22 03:11:47 +0300
commit0bdb61ade7f12067dd524463af4f83994f1baa37 (patch)
tree987819d2a9e915df73874f66c52d1d9cdc889583 /app/assets/stylesheets
parent8746f541fbcf2b89b30c3d4a1b290f5679186400 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r--app/assets/stylesheets/_page_specific_files.scss1
-rw-r--r--app/assets/stylesheets/framework/common.scss20
-rw-r--r--app/assets/stylesheets/page_bundles/labels.scss (renamed from app/assets/stylesheets/pages/labels.scss)40
3 files changed, 32 insertions, 29 deletions
diff --git a/app/assets/stylesheets/_page_specific_files.scss b/app/assets/stylesheets/_page_specific_files.scss
index 47701d0490a..a6377480fa7 100644
--- a/app/assets/stylesheets/_page_specific_files.scss
+++ b/app/assets/stylesheets/_page_specific_files.scss
@@ -4,7 +4,6 @@
@import './pages/groups';
@import './pages/hierarchy';
@import './pages/issues';
-@import './pages/labels';
@import './pages/note_form';
@import './pages/notes';
@import './pages/pipelines';
diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss
index 514247d2913..764a4169da0 100644
--- a/app/assets/stylesheets/framework/common.scss
+++ b/app/assets/stylesheets/framework/common.scss
@@ -567,3 +567,23 @@ See https://gitlab.com/gitlab-org/gitlab/issues/36857 for more details.
}
}
}
+
+// --- moved from labels.scss when moving to page_bundles ---
+// Fix scoped label padding in cases where old markdown uses the old label structure */
+.gl-label-text + .gl-label-text {
+ @include gl-pl-2;
+ @include gl-pr-3;
+}
+
+// used in the Markdown rendering of labels
+.scoped-label-tooltip-title {
+ color: var(--indigo-300, $indigo-300);
+}
+
+.gl-label-scoped {
+ box-shadow: 0 0 0 2px currentColor inset;
+
+ &.gl-label-sm {
+ box-shadow: 0 0 0 1px inset;
+ }
+}
diff --git a/app/assets/stylesheets/pages/labels.scss b/app/assets/stylesheets/page_bundles/labels.scss
index 423e25a900d..bc0bf4bc490 100644
--- a/app/assets/stylesheets/pages/labels.scss
+++ b/app/assets/stylesheets/page_bundles/labels.scss
@@ -1,3 +1,5 @@
+@import 'mixins_and_variables_and_functions';
+
.suggest-colors {
padding-top: 3px;
@@ -29,19 +31,19 @@
margin-bottom: -5px;
&:first-of-type {
- border-top-left-radius: $border-radius-base;
+ border-top-left-radius: $gl-border-radius-base;
}
&:nth-of-type(7) {
- border-top-right-radius: $border-radius-base;
+ border-top-right-radius: $gl-border-radius-base;
}
&:nth-last-child(7) {
- border-bottom-left-radius: $border-radius-base;
+ border-bottom-left-radius: $gl-border-radius-base;
}
&:last-of-type {
- border-bottom-right-radius: $border-radius-base;
+ border-bottom-right-radius: $gl-border-radius-base;
}
}
}
@@ -78,7 +80,7 @@
padding: 0 $grid-size;
line-height: 16px;
border-radius: $label-border-radius;
- color: $white;
+ color: var(--white, $white);
}
.manage-labels-list {
@@ -94,7 +96,7 @@
&:hover,
&:focus-within {
- background-color: $blue-50;
+ background-color: var(--blue-50, $blue-50);
}
&:active {
@@ -129,7 +131,7 @@
}
.label-badge {
- color: $gray-900;
+ color: var(--gray-900, $gray-900);
display: inline-block;
font-weight: $gl-font-weight-normal;
padding: $gl-padding-4 $gl-padding-8;
@@ -147,15 +149,15 @@
}
.label-action {
- color: $gray-700;
+ color: var(--gray-700, $gray-700);
cursor: pointer;
&:hover {
- color: $blue-600;
+ color: var(--blue-600, $blue-600);
}
&.hover-red:hover {
- color: $red-500;
+ color: var(--red-500, $red-500);
}
}
}
@@ -188,21 +190,3 @@
.priority-labels-empty-state .svg-content img {
max-width: $priority-label-empty-state-width;
}
-
-.scoped-label-tooltip-title {
- color: $indigo-300;
-}
-
-.gl-label-scoped {
- box-shadow: 0 0 0 2px currentColor inset;
-
- &.gl-label-sm {
- box-shadow: 0 0 0 1px inset;
- }
-}
-
-/* Fix scoped label padding in cases where old markdown uses the old label structure */
-.gl-label-text + .gl-label-text {
- @include gl-pl-2;
- @include gl-pr-3;
-}