Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
use tool-bar for adding text/html
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Mar 23, 2018
1 parent c7d5583 commit 457052f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
12 changes: 0 additions & 12 deletions lib/flex-tool-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,18 +512,6 @@ export default {
if (disable) {
button.setEnabled(false);
}

if (!btn.icon) {
button.element.classList.remove('icon-undefined');
}

if (btn.text) {
if (btn.html) {
button.element.innerHTML = btn.text;
} else {
button.element.textContent = btn.text;
}
}
}

buttons.push(button);
Expand Down
34 changes: 0 additions & 34 deletions styles/flex-tool-bar.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,3 @@
color: darken(@text-color-error, 5%);
}
}

.tool-bar {
&.tool-bar-12px {
.text-tool-bar-size(12px);
}

&.tool-bar-16px {
.text-tool-bar-size(16px);
}

&.tool-bar-24px {
.text-tool-bar-size(24px);
}

&.tool-bar-32px {
.text-tool-bar-size(32px);
}

.text-tool-bar-size(@size) {
.tool-bar-btn {
width: auto !important;
min-width: (@size * 2) + 2px;

&:not(:empty) {
font-size: @size;
line-height: @size * 2;
padding: 0 @size / 2;
&:before {
padding-right: @size / 2;
}
}
}
}
}

0 comments on commit 457052f

Please sign in to comment.