From 0ad63b2121cb699879d82b9c439d3fa73e6b54c7 Mon Sep 17 00:00:00 2001 From: firm1 Date: Tue, 28 Jan 2020 21:35:28 +0100 Subject: [PATCH] don't use down icon --- src/css/easymde.css | 21 ++++++++------------- src/js/easymde.js | 3 --- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/css/easymde.css b/src/css/easymde.css index 98b205d..20a60fc 100644 --- a/src/css/easymde.css +++ b/src/css/easymde.css @@ -319,7 +319,13 @@ .editor-toolbar .easymde-dropdown { position: relative; - width: 45px; + background: linear-gradient(to bottom right, #fff 0%, #fff 84%, #333 50%, #333 100%); + border-radius: 0px; + border: 1px solid #fff; +} + +.editor-toolbar .easymde-dropdown:hover { + background: linear-gradient(to bottom right, #fff 0%, #fff 84%, #333 50%, #333 100%); } .easymde-dropdown-content { @@ -333,17 +339,6 @@ } .easymde-dropdown:active .easymde-dropdown-content, -.easymde-dropdown:focus .easymde-dropdown-content{ +.easymde-dropdown:focus .easymde-dropdown-content { display: block; } - -.down { - transform: rotate(45deg); - -webkit-transform: rotate(45deg); - border: solid #777; - border-width: 0 3px 3px 0; - display: inline-block; - padding: 2px; - margin-left: 8px; - margin-bottom: 3px; -} diff --git a/src/js/easymde.js b/src/js/easymde.js index e4d4ccf..c93786e 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -122,9 +122,6 @@ function createToolbarDropdown(options, enableTooltips, shortcuts, parent) { var child = createToolbarButton(options.children[childrenIndex], true, enableTooltips, shortcuts, 'button', parent); content.appendChild(child); } - var dropIcon = document.createElement('i'); - dropIcon.className = 'down'; - el.appendChild(dropIcon); el.appendChild(content); return el; }