[Libreoffice-commits] online.git: loleaflet/css loleaflet/src

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 9 14:28:08 UTC 2019


 loleaflet/css/toolbar.css                        |   37 +++++++++++++++++++----
 loleaflet/src/control/Control.JSDialogBuilder.js |    6 +++
 2 files changed, 37 insertions(+), 6 deletions(-)

New commits:
commit 7905c20888c5bae178d0532cc6ae8e69010ea9b2
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Oct 9 16:27:45 2019 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Oct 9 16:27:45 2019 +0200

    jsdialogs: add +/- buttons for number field
    
    Change-Id: I029ca937ab182306a3d5d218470a14938f3fd231

diff --git a/loleaflet/css/toolbar.css b/loleaflet/css/toolbar.css
index 82f0a33cb..fd5feeaa3 100644
--- a/loleaflet/css/toolbar.css
+++ b/loleaflet/css/toolbar.css
@@ -63,12 +63,18 @@
 	}
 	#DecrementIndent + input:disabled{display: none;}
 	div#mobile-wizard-content input[type=number]{
-		height: 32px;
-    margin: 24px 28px 24px 28px !important;
-    width: 70%;
-    border: 1px solid #ccc;
-    border-radius: 2px;
-    background-size: 28px;
+		height: 46px;
+		width: 70%;
+		margin-left: 10px;
+		border: none;
+	}
+	div#mobile-wizard-content .spinfieldcontainer{
+		height: 48px;
+		margin: 24px 28px 24px 28px !important;
+		width: 70%;
+		border: 1px solid #ccc;
+		border-radius: 2px;
+		background-size: 28px;
 	}
 	#buttonbefore, #buttonafter, #buttonoptimal, #buttonparallel, #buttonnone, #buttonthrough, #bottom, #top, #standard, #Bold, #Italic, #Underline, #Strikeout{
 		margin: 0;
@@ -1110,3 +1116,22 @@ menu-entry-with-icon.padding-left + menu-entry-icon.width */
 .spinfieldcontainer {
 	display: inline-block;
 }
+
+.sinfieldcontrols {
+	background-color: #eee;
+	text-align: center;
+	width: 25px;
+	height: 48px;
+	float: right;
+}
+
+.plus {
+	border-bottom: 1px solid #ccc;
+	height: 24px;
+	color: #777 !important;
+}
+
+.minus {
+	height: 24px;
+	color: #777 !important;
+}
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index c76c87c8e..fe5891cd6 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -330,6 +330,12 @@ L.Control.JSDialogBuilder = L.Control.extend({
 		var spinfield = L.DomUtil.create('input', 'spinfield', div);
 		spinfield.type = 'number';
 
+		var controlsContainer = L.DomUtil.create('div', 'sinfieldcontrols', div);
+		var plus = L.DomUtil.create('div', 'plus', controlsContainer);
+		plus.innerHTML = '+';
+		var minus = L.DomUtil.create('div', 'minus', controlsContainer);
+		minus.innerHTML = '-';
+
 		if (data.enabled == 'false')
 			$(spinfield).attr('disabled', 'disabled');
 


More information about the Libreoffice-commits mailing list