summaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2020-02-11 19:53:18 -0600
committerGitHub <noreply@github.com>2020-02-11 20:53:18 -0500
commitd67e9b9629557df1e355f0a864792c194b3e8848 (patch)
treef7138acd6776fe08ebb40b840d898fbb47234d4a /web_src/less
parent2399bad1f1a4ab36b2fd05745beaea5fb1f53dab (diff)
downloadgitea-d67e9b9629557df1e355f0a864792c194b3e8848.tar.gz
gitea-d67e9b9629557df1e355f0a864792c194b3e8848.zip
SVG Octicon fixes (#10237)
* SVG fixes Signed-off-by: jolheiser <john.olheiser@gmail.com> * Colorize span->svg only Signed-off-by: jolheiser <john.olheiser@gmail.com> * @silverwind suggestions Signed-off-by: jolheiser <john.olheiser@gmail.com> * Alphabetical Signed-off-by: jolheiser <john.olheiser@gmail.com> * Convert suburl and staticPrefix to window.config Signed-off-by: jolheiser <john.olheiser@gmail.com> * De-structure Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'web_src/less')
-rw-r--r--web_src/less/_base.less6
-rw-r--r--web_src/less/_repository.less26
2 files changed, 16 insertions, 16 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 9627ba7914..97fbe04836 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -1168,13 +1168,13 @@ i.icon.centerlock {
}
.svg {
- &.green {
+ span.green & {
color: #21ba45;
}
- &.red {
+ span.red & {
color: #db2828;
}
- &.purple {
+ span.purple & {
color: #a333c8;
}
}
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 81264ccff0..6bbb0ea3a7 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -35,7 +35,7 @@
.svg.octicon-repo-forked {
margin-top: -1px;
- font-size: 15px;
+ height: 15px;
}
.button {
@@ -670,7 +670,7 @@
.svg {
width: 23px;
- font-size: 23px;
+ height: 23px;
margin-top: 0.45em;
}
}
@@ -935,36 +935,36 @@
&.octicon-circle-slash {
margin-top: 5px;
- margin-left: -34.5px;
- font-size: 20px;
+ margin-left: -35.5px;
+ height: 20px;
color: #bd2c00;
}
&.octicon-primitive-dot {
margin-top: -1px;
- margin-left: -28.5px;
+ margin-left: -35.5px;
margin-right: -1px;
- font-size: 30px;
+ height: 30px;
color: #6cc644;
}
&.octicon-bookmark {
margin-top: 2px;
- margin-left: -31px;
+ margin-left: -35.5px;
margin-right: -1px;
- font-size: 25px;
+ height: 25px;
}
&.octicon-eye {
margin-top: 3px;
- margin-left: -36px;
+ margin-left: -35.5px;
margin-right: 0;
- font-size: 22px;
+ height: 22px;
}
&.octicon-x {
- margin-left: -33px;
- font-size: 25px;
+ margin-left: -35.5px;
+ height: 25px;
}
}
@@ -1724,7 +1724,7 @@
padding-bottom: 100px;
.svg {
- font-size: 48px;
+ height: 48px;
}
}
}