changeset 42:69654081643b

css cleanup
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 29 Aug 2022 22:36:31 -0600
parents 7491026f7623
children ab852c9f04c3
files src/sceditor.js src/themes/default.css
diffstat 2 files changed, 2 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/src/sceditor.js	Fri Aug 19 19:27:03 2022 -0600
+++ b/src/sceditor.js	Mon Aug 29 22:36:31 2022 -0600
@@ -1809,10 +1809,10 @@
 				'<body contenteditable="true" {spellcheck}><p></p></body>' +
 			'</html>',
 
-
 		toolbarButton: '<a class="sceditor-button" ' +
 			'data-sceditor-command="{name}" unselectable="on">' +
 			'{icon}</a>',
+//		toolbarButton: '<button>{icon}</button>',
 
 		emoticon: '<img src="{url}" data-sceditor-emoticon="{key}" ' +
 			'alt="{key}" title="{tooltip}" />',
@@ -4747,8 +4747,7 @@
 				groups   = options.toolbar.split('|');
 
 			toolbar = createElement('div', {
-				className: 'sceditor-toolbar',
-				unselectable: 'on'
+				className: 'sceditor-toolbar'
 			});
 
 			each(groups, function (_, menuItems) {
--- a/src/themes/default.css	Fri Aug 19 19:27:03 2022 -0600
+++ b/src/themes/default.css	Mon Aug 29 22:36:31 2022 -0600
@@ -102,9 +102,6 @@
 	z-index: 3;
 	line-height: 0;
 }
-div.sceditor-grip.has-icon {
-	background-image: none;
-}
 .sceditor-maximize {
 	position: fixed;
 	top: 0;
@@ -323,36 +320,6 @@
 	opacity: 0.3;
 }
 
-.text .sceditor-button,
-.text .sceditor-button div,
-.sceditor-button.text,
-.sceditor-button.text div,
-.text-icon .sceditor-button,
-.text-icon .sceditor-button div,
-.sceditor-button.text-icon,
-.sceditor-button.text-icon div {
-	display: inline-block;
-	width: auto;
-	line-height: 16px;
-	font-size: 1em;
-	color: inherit;
-	text-indent: 0;
-}
-.text-icon .sceditor-button.has-icon div,
-.sceditor-button.has-icon div,
-.text .sceditor-button div,
-.sceditor-button.text div {
-	padding: 0 2px;
-	background: none;
-}
-.text .sceditor-button svg,
-.sceditor-button.text svg {
-	display: none;
-}
-.text-icon .sceditor-button div,
-.sceditor-button.text-icon div {
-	padding: 0 2px 0 20px;
-}
 .rtl div.sceditor-toolbar {
 	text-align: right;
 }