summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-09 20:03:19 +0100
committerGitHub <noreply@github.com>2020-12-09 14:03:19 -0500
commitc85bb6263503ebd335863f413214a775973a1fac (patch)
tree4264266101a847d0895d6c9ad6442f9cb240b1db /web_src
parent6edfa6bc88ed73fc5a31f1b2fe9f5587c932ada7 (diff)
downloadgitea-c85bb6263503ebd335863f413214a775973a1fac.tar.gz
gitea-c85bb6263503ebd335863f413214a775973a1fac.zip
Replace more icons with SVG, repo search tweaks (#13860)
* Replace more icons with SVG - Replace remaining icons on admin page with SVG - Fix vertical menu background on arc-green - Minor improvments to frontpage repo search - More icon replacements here and there * fix integration * whitespace tweak * add comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/index.js9
-rw-r--r--web_src/less/_base.less24
-rw-r--r--web_src/svg/gitea-double-chevron-left.svg1
-rw-r--r--web_src/svg/gitea-double-chevron-right.svg1
4 files changed, 29 insertions, 6 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 2cb928b203..496495a1cd 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1262,11 +1262,10 @@ function initPullRequestReview() {
$('.btn-review').on('click', function (e) {
e.preventDefault();
$(this).closest('.dropdown').find('.menu').toggle('visible');
- }).closest('.dropdown').find('.link.close')
- .on('click', function (e) {
- e.preventDefault();
- $(this).closest('.menu').toggle('visible');
- });
+ }).closest('.dropdown').find('.close').on('click', function (e) {
+ e.preventDefault();
+ $(this).closest('.menu').toggle('visible');
+ });
$('.add-code-comment').on('click', function (e) {
if ($(e.target).hasClass('btn-add-single')) return; // https://github.com/go-gitea/gitea/issues/4745
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index be43bfbe36..2cecd59c93 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -253,7 +253,8 @@ a.muted:hover,
border-right-color: var(--color-primary);
}
-.ui.menu {
+.ui.menu,
+.ui.vertical.menu {
background: var(--color-menu);
border-color: var(--color-secondary);
}
@@ -272,6 +273,7 @@ a.muted:hover,
.ui.menu .active.item,
.ui.menu .active.item:hover,
+.ui.vertical.menu .active.item,
.ui.vertical.menu .active.item:hover {
color: var(--color-text);
background: var(--color-active);
@@ -332,6 +334,15 @@ a.muted:hover,
background: var(--color-hover);
}
+.ui.menu .ui.dropdown .menu > .selected.item {
+ color: var(--color-text) !important;
+ background: var(--color-hover) !important;
+}
+
+.ui.dropdown .menu > .message:not(.ui) {
+ color: var(--color-text-light-2);
+}
+
.ui.secondary.menu .dropdown.item:hover,
.ui.secondary.menu .link.item:hover,
.ui.secondary.menu a.item:hover {
@@ -451,8 +462,15 @@ a.ui.card:hover,
background: var(--color-body);
}
+.ui.modal > .header {
+ border-color: var(--color-secondary);
+ border-top-left-radius: var(--border-radius);
+ border-top-right-radius: var(--border-radius);
+}
+
.ui.modal > .close.inside,
.ui.fullscreen.modal > .close {
+ top: 11px; /* align modal close icon, for example admin notices */
color: var(--body-color);
}
@@ -1048,6 +1066,10 @@ a.ui.card:hover,
}
}
+.ui.dropdown .scrolling.menu {
+ border-color: var(--color-secondary);
+}
+
footer {
background-color: var(--color-footer);
border-top: 1px solid var(--color-secondary);
diff --git a/web_src/svg/gitea-double-chevron-left.svg b/web_src/svg/gitea-double-chevron-left.svg
new file mode 100644
index 0000000000..c223e73006
--- /dev/null
+++ b/web_src/svg/gitea-double-chevron-left.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g fill-rule="evenodd"><path d="M7.91 12.77a.75.75 0 01-1.06 0L2.61 8.52a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L4.2 8l3.72 3.72a.75.75 0 010 1.06z"/><path d="M13.39 12.77a.75.75 0 01-1.06 0L8.08 8.52a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L9.67 8l3.72 3.72a.75.75 0 010 1.06z"/></g></svg> \ No newline at end of file
diff --git a/web_src/svg/gitea-double-chevron-right.svg b/web_src/svg/gitea-double-chevron-right.svg
new file mode 100644
index 0000000000..fd510e88d9
--- /dev/null
+++ b/web_src/svg/gitea-double-chevron-right.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g fill-rule="evenodd"><path d="M8.09 3.23a.75.75 0 011.06 0l4.24 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L11.8 8 8.08 4.28a.75.75 0 010-1.06z"/><path d="M2.61 3.23a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L6.33 8 2.61 4.28a.75.75 0 010-1.06z"/></g></svg> \ No newline at end of file