aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css/features
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/css/features')
-rw-r--r--web_src/css/features/cropper.css2
-rw-r--r--web_src/css/features/expander.css96
-rw-r--r--web_src/css/features/gitgraph.css1
-rw-r--r--web_src/css/features/projects.css71
-rw-r--r--web_src/css/features/tribute.css32
5 files changed, 138 insertions, 64 deletions
diff --git a/web_src/css/features/cropper.css b/web_src/css/features/cropper.css
index ed7171e770..f7f8168006 100644
--- a/web_src/css/features/cropper.css
+++ b/web_src/css/features/cropper.css
@@ -1,6 +1,6 @@
@import "cropperjs/dist/cropper.css";
-.page-content.user.profile .cropper-panel .cropper-wrapper {
+.avatar-file-with-cropper + .cropper-panel .cropper-wrapper {
max-width: 400px;
max-height: 400px;
}
diff --git a/web_src/css/features/expander.css b/web_src/css/features/expander.css
new file mode 100644
index 0000000000..f560b2a9fd
--- /dev/null
+++ b/web_src/css/features/expander.css
@@ -0,0 +1,96 @@
+text-expander .suggestions,
+.tribute-container {
+ position: absolute;
+ max-height: min(300px, 95vh);
+ max-width: min(500px, 95vw);
+ overflow-x: hidden;
+ overflow-y: auto;
+ white-space: nowrap;
+ background: var(--color-menu);
+ box-shadow: 0 6px 18px var(--color-shadow);
+ border-radius: var(--border-radius);
+ border: 1px solid var(--color-secondary);
+ z-index: 100; /* needs to be > 20 to be on top of dropzone's .dz-details */
+}
+
+text-expander {
+ display: block;
+ position: relative;
+}
+
+text-expander .suggestions {
+ padding: 0;
+ margin-top: 24px;
+ list-style: none;
+}
+
+text-expander .suggestions li,
+.tribute-item {
+ display: flex;
+ align-items: center;
+ cursor: pointer;
+ gap: 6px;
+ font-weight: var(--font-weight-medium);
+}
+
+text-expander .suggestions li,
+.tribute-container li {
+ padding: 3px 6px;
+}
+
+text-expander .suggestions li + li,
+.tribute-container li + li {
+ border-top: 1px solid var(--color-secondary);
+}
+
+text-expander .suggestions li:first-child {
+ border-radius: var(--border-radius) var(--border-radius) 0 0;
+}
+
+text-expander .suggestions li:last-child {
+ border-radius: 0 0 var(--border-radius) var(--border-radius);
+}
+
+text-expander .suggestions li:only-child {
+ border-radius: var(--border-radius);
+}
+
+text-expander .suggestions .fullname,
+.tribute-container li .fullname {
+ font-weight: var(--font-weight-normal);
+ color: var(--color-text-light-1);
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+text-expander .suggestions li:hover,
+text-expander .suggestions li:hover *,
+text-expander .suggestions li[aria-selected="true"],
+text-expander .suggestions li[aria-selected="true"] *,
+.tribute-container li.highlight,
+.tribute-container li.highlight * {
+ background: var(--color-primary);
+ color: var(--color-primary-contrast);
+}
+
+text-expander .suggestions img,
+.tribute-item img {
+ width: 21px;
+ height: 21px;
+ object-fit: contain;
+ aspect-ratio: 1;
+}
+
+.tribute-container {
+ display: block;
+}
+
+.tribute-container ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+.tribute-container li.no-match {
+ cursor: default;
+}
diff --git a/web_src/css/features/gitgraph.css b/web_src/css/features/gitgraph.css
index 1ed541a695..865c82e003 100644
--- a/web_src/css/features/gitgraph.css
+++ b/web_src/css/features/gitgraph.css
@@ -116,6 +116,7 @@
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
+ min-height: 0;
}
#git-graph-container #graph-raw-list {
diff --git a/web_src/css/features/projects.css b/web_src/css/features/projects.css
index 8763d3684e..7fd5150970 100644
--- a/web_src/css/features/projects.css
+++ b/web_src/css/features/projects.css
@@ -1,43 +1,35 @@
-.board {
+#project-board {
display: flex;
+ align-items: stretch;
flex-direction: row;
flex-wrap: nowrap;
- overflow-x: auto;
- overflow-y: clip;
- align-items: stretch;
+ overflow: auto;
margin: 0 0.5em;
+ min-height: max(calc(100vh - 400px), 300px);
+ max-height: calc(100vh - 120px);
}
-.project-toolbar-right .filter.menu {
- flex-direction: row;
+.project-header {
+ padding: 0.5em 0;
flex-wrap: wrap;
}
-@media (max-width: 767.98px) {
- .project-toolbar-right .dropdown .menu {
- left: auto !important;
- right: auto !important;
- }
+.project-header h2 {
+ white-space: nowrap;
+ margin: 0;
}
.project-column {
- background-color: var(--color-project-column-bg) !important;
- border: 1px solid var(--color-secondary) !important;
- border-radius: var(--border-radius);
- margin: 0 0.5rem !important;
- padding: 0.5rem !important;
- width: 320px;
- height: initial;
- min-height: max(calc(100vh - 400px), 300px);
flex: 0 0 auto;
- overflow: visible;
display: flex;
flex-direction: column;
- cursor: default;
-}
-
-.project-column .issue-card {
- color: var(--color-text);
+ background-color: var(--color-project-column-bg);
+ border: 1px solid var(--color-secondary);
+ border-radius: var(--border-radius);
+ margin: 0 0.5rem;
+ padding: 0.5rem;
+ width: 320px;
+ overflow: visible;
}
.project-column-header {
@@ -51,16 +43,15 @@
color: inherit;
}
-.project-column > .cards {
+.project-column > .ui.cards {
flex: 1;
display: flex;
- align-content: baseline;
- margin: 0 !important;
- padding: 0 !important;
- flex-wrap: nowrap !important;
+ flex-wrap: nowrap;
flex-direction: column;
- overflow-x: clip;
+ overflow: clip auto;
gap: .25rem;
+ margin: 0;
+ padding: 0;
}
.project-column > .divider {
@@ -110,3 +101,21 @@
.card-ghost * {
opacity: 0;
}
+
+.fullscreen.projects-view {
+ position: absolute;
+ inset: 0;
+ display: flex;
+ flex-direction: column;
+}
+
+/* Hide project-description in full-screen due to its variable height. No need to show it for better space use. */
+.fullscreen.projects-view .project-description {
+ display: none;
+}
+
+.fullscreen.projects-view #project-board {
+ flex: 1;
+ max-height: unset;
+ padding-bottom: 0.5em;
+}
diff --git a/web_src/css/features/tribute.css b/web_src/css/features/tribute.css
deleted file mode 100644
index 99a026b9bc..0000000000
--- a/web_src/css/features/tribute.css
+++ /dev/null
@@ -1,32 +0,0 @@
-@import "tributejs/dist/tribute.css";
-
-.tribute-container {
- box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
- border-radius: var(--border-radius);
-}
-
-.tribute-container ul {
- margin-top: 0 !important;
- background: var(--color-body) !important;
-}
-
-.tribute-container li {
- padding: 3px 0.5rem !important;
-}
-
-.tribute-container li span.fullname {
- font-weight: var(--font-weight-normal);
- font-size: 0.8rem;
-}
-
-.tribute-container li.highlight,
-.tribute-container li:hover {
- background: var(--color-primary) !important;
- color: var(--color-primary-contrast) !important;
-}
-
-.tribute-item {
- display: flex;
- align-items: center;
- gap: 6px;
-}