From 9b8d4d2ab42ae23fceca416549ee71a862739338 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Thu, 28 Feb 2019 16:39:54 -0500 Subject: [PATCH] Remove labels from mode buttons --- css/80_app.css | 25 ++----------------------- modules/ui/modes.js | 4 ++-- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/css/80_app.css b/css/80_app.css index 94937f647..6c0d53eb9 100644 --- a/css/80_app.css +++ b/css/80_app.css @@ -477,29 +477,8 @@ button[disabled].action:hover { white-space: nowrap; display: flex; } -[dir='ltr'] .tool-group button.add-preset.add-point, -[dir='ltr'] .tool-group button.add-preset.add-point .label { - padding-left: 0px; -} -[dir='ltr'] .tool-group button.add-preset:not(.add-point) { - padding-left: 5px; -} -[dir='ltr'] .tool-group button.add-preset:not(.add-point) .label { - padding-left: 3px; -} -[dir='rtl'] .tool-group button.add-preset.add-point, -[dir='rtl'] .tool-group button.add-preset.add-point .label { - padding-right: 0px; -} -[dir='rtl'] .tool-group button.add-preset:not(.add-point) { - padding-right: 5px; -} -[dir='rtl'] .tool-group button.add-preset:not(.add-point) .label { - padding-right: 3px; -} -.narrow .tool-group button.add-preset { - padding-right: 0 !important; - padding-left: 0 !important; +.tool-group button.add-preset { + padding: 0; } .tool-group button.bar-button .icon { flex: 0 0 20px; diff --git a/modules/ui/modes.js b/modules/ui/modes.js index e3a6b3b6c..eecd929d4 100644 --- a/modules/ui/modes.js +++ b/modules/ui/modes.js @@ -159,12 +159,12 @@ export function uiModes(context) { .call(svgIcon(d.icon || '#iD-icon-' + d.button)); } }); - + /* buttonsEnter .append('span') .attr('class', 'label') .text(function(mode) { return mode.title; }); - + */ // if we are adding/removing the buttons, check if toolbar has overflowed if (buttons.enter().size() || buttons.exit().size()) { context.ui().checkOverflow('#bar', true);