From 90e323394df44ab3aa461c398ea852f5673993c8 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 3 Aug 2016 16:58:39 +0200 Subject: [PATCH] can't rely on unicode everywhere, so let's use an svg icon --- customize.dist/index.html | 4 +++- customize.dist/main.css | 19 +++++++++++++++---- customize.dist/src/cryptpad.less | 28 ++++++++++++++++++++++++---- 3 files changed, 42 insertions(+), 9 deletions(-) diff --git a/customize.dist/index.html b/customize.dist/index.html index d9d431e7e..c987b0998 100644 --- a/customize.dist/index.html +++ b/customize.dist/index.html @@ -59,7 +59,9 @@ Link Created Last Accessed - ⟳ + + + diff --git a/customize.dist/main.css b/customize.dist/main.css index 7ff8ae129..ad345e13d 100644 --- a/customize.dist/main.css +++ b/customize.dist/main.css @@ -2,6 +2,16 @@ a.github-corner > svg { fill: #46E981; color: #302B28; } +.table-refresh > svg { + width: .9em; + height: .9em; + fill: #46E981; + -webkit-transform: translate(0, 15%); + -moz-transform: translate(0, 15%); + -o-transform: translate(0, 15%); + -ms-transform: translate(0, 15%); + transform: translate(0, 15%); +} /* Apparently Chrome fails to render fonts half the time, so we just have to drop lato for now :( @@ -181,13 +191,14 @@ tbody tr th, tbody tr td { color: #fafafa; } -tbody tr th:last-child { - border-right: 0px; -} -tbody .remove { +tbody tr th.remove, +tbody tr td.remove { cursor: pointer !important; color: #FF0073; } +tbody tr th:last-child { + border-right: 0px; +} tbody td { border-right: 1px solid black; padding: 12px; diff --git a/customize.dist/src/cryptpad.less b/customize.dist/src/cryptpad.less index 156a6b14a..e0f257093 100644 --- a/customize.dist/src/cryptpad.less +++ b/customize.dist/src/cryptpad.less @@ -14,6 +14,25 @@ a.github-corner > svg { color: @base; } +.transform(...) { + -webkit-transform: @arguments; + -moz-transform: @arguments; + -o-transform: @arguments; + -ms-transform: @arguments; + transform: @arguments; +} + +.translate(@x:0, @y:0) { + .transform(translate(@x, @y)); +} + +.table-refresh > svg { + width: .9em; + height: .9em; + fill: @cp-green; + .translate(0, 15%); +} + /* Apparently Chrome fails to render fonts half the time, so we just have to drop lato for now :( @@ -212,16 +231,17 @@ tbody { } th, td { color: @fore; + + &.remove { + cursor: pointer !important; + color: @cp-red; + } } th:last-child { border-right: 0px; } } - .remove { - cursor: pointer !important; - color: @cp-red; - } td { border-right: 1px solid black;