From 8f96909e97ee890289d0ab94a7002c52603f4b3b Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 10 Mar 2017 13:34:49 +0100 Subject: [PATCH] Remove unnecessary `.toolbarButton.group` CSS class I noticed that we have a `.toolbarButton.group` CSS class, which is currently applied to some buttons in the viewer. Since it attempts to adjust the `margin-right` property, I was initially a bit puzzled as to why there wasn't different rules for LTR/RTL locales. However, checking the viewer with the DevTools inspector, in both LTR and RTL locales, I quickly found that the rule in question is *always* being overridden by other CSS rules. It thus seem to me that while this rule was probably useful at some point, it has been dead for years and could now be removed. --- web/viewer.css | 4 ---- web/viewer.html | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/web/viewer.css b/web/viewer.css index 90ea3b07c..78ef01d55 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -564,10 +564,6 @@ html[dir='rtl'] .splitToolbarButton > .toolbarButton { opacity: .5; } -.toolbarButton.group { - margin-right: 0; -} - .splitToolbarButton.toggled .toolbarButton { margin: 0; } diff --git a/web/viewer.html b/web/viewer.html index 0d6469949..e796cea96 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -75,13 +75,13 @@ See https://github.com/adobe-type-tools/cmap-resources
- - -
@@ -186,7 +186,7 @@ See https://github.com/adobe-type-tools/cmap-resources Toggle Sidebar
-