summaryrefslogtreecommitdiffstats
path: root/core/css
diff options
context:
space:
mode:
authorMarin Treselj <marin@pixelipo.com>2017-07-11 14:06:12 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-02 18:27:24 +0200
commitffcdc96a0b920a9cecc428dba53978b4dc8c66cd (patch)
tree9679a22a3fe84c3c2048091819f84f96deab9954 /core/css
parent6ca4b9eee9793419179b8abb0440bb1e8e5cf38f (diff)
downloadnextcloud-server-ffcdc96a0b920a9cecc428dba53978b4dc8c66cd.tar.gz
nextcloud-server-ffcdc96a0b920a9cecc428dba53978b4dc8c66cd.zip
Proof of concept #5593 - inline SVG icon for icon-contacts
Signed-off-by: Marin Treselj <marin@pixelipo.com>
Diffstat (limited to 'core/css')
-rw-r--r--core/css/icons.scss22
1 files changed, 14 insertions, 8 deletions
diff --git a/core/css/icons.scss b/core/css/icons.scss
index b2702a29950..e694d807ba5 100644
--- a/core/css/icons.scss
+++ b/core/css/icons.scss
@@ -18,6 +18,20 @@
background-position: center;
min-width: 16px;
min-height: 16px;
+ display: inline-flex;
+ align-self: center;
+ position: relative;
+}
+
+[class^='icon-'] svg,
+[class*=' icon-'] svg {
+ height: 16px;
+ width: 16px;
+ vertical-align: -3px; // counter default DOM offset
+}
+
+.icon-white svg path {
+ fill: $color-primary-text;
}
.icon-breadcrumb {
@@ -445,14 +459,6 @@ img, object, video, button, textarea, input, select {
background-image: url('../img/places/calendar-dark.svg?v=1');
}
-.icon-contacts {
- background-image: url('../img/places/contacts.svg?v=1');
-}
-
-.icon-contacts-dark {
- background-image: url('../img/places/contacts-dark.svg?v=1');
-}
-
.icon-files {
background-image: url('../img/places/files.svg?v=1');
}