From 8f96909e97ee890289d0ab94a7002c52603f4b3b Mon Sep 17 00:00:00 2001 From: Jonas Jenwald <jonas.jenwald@gmail.com> 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 <div id="sidebarContainer"> <div id="toolbarSidebar"> <div class="splitToolbarButton toggled"> - <button id="viewThumbnail" class="toolbarButton group toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs"> + <button id="viewThumbnail" class="toolbarButton toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs"> <span data-l10n-id="thumbs_label">Thumbnails</span> </button> - <button id="viewOutline" class="toolbarButton group" title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3" data-l10n-id="document_outline"> + <button id="viewOutline" class="toolbarButton" title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3" data-l10n-id="document_outline"> <span data-l10n-id="document_outline_label">Document Outline</span> </button> - <button id="viewAttachments" class="toolbarButton group" title="Show Attachments" tabindex="4" data-l10n-id="attachments"> + <button id="viewAttachments" class="toolbarButton" title="Show Attachments" tabindex="4" data-l10n-id="attachments"> <span data-l10n-id="attachments_label">Attachments</span> </button> </div> @@ -186,7 +186,7 @@ See https://github.com/adobe-type-tools/cmap-resources <span data-l10n-id="toggle_sidebar_label">Toggle Sidebar</span> </button> <div class="toolbarButtonSpacer"></div> - <button id="viewFind" class="toolbarButton group" title="Find in Document" tabindex="12" data-l10n-id="findbar"> + <button id="viewFind" class="toolbarButton" title="Find in Document" tabindex="12" data-l10n-id="findbar"> <span data-l10n-id="findbar_label">Find</span> </button> <div class="splitToolbarButton hiddenSmallView">