From 033eacefd1e5e77d071f89f6cbd8c346fae0c696 Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Wed, 29 Jul 2015 16:31:45 +0200
Subject: [PATCH] use inline confirm button style for password-protected links,
 ref #15176

---
 apps/files_sharing/css/authenticate.css       | 1 -
 apps/files_sharing/templates/authenticate.php | 3 ++-
 core/css/styles.css                           | 8 ++++++++
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/apps/files_sharing/css/authenticate.css b/apps/files_sharing/css/authenticate.css
index 15e3e7a2fc5..ac76d4c6870 100644
--- a/apps/files_sharing/css/authenticate.css
+++ b/apps/files_sharing/css/authenticate.css
@@ -1,5 +1,4 @@
 #password {
-	width: 190px !important;
 	padding: 10px;
 	margin:	6px;
 }
diff --git a/apps/files_sharing/templates/authenticate.php b/apps/files_sharing/templates/authenticate.php
index e3aa62b9ece..769b7929144 100644
--- a/apps/files_sharing/templates/authenticate.php
+++ b/apps/files_sharing/templates/authenticate.php
@@ -19,7 +19,8 @@
 				autocomplete="off" autocapitalize="off" autocorrect="off"
 				autofocus />
 			<img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/>
-			<input type="submit" value="" class="svg icon-confirm" />
+			<input type="submit" value=""
+				class="svg icon-confirm input-button-inline" />
 		</p>
 	</fieldset>
 </form>
diff --git a/core/css/styles.css b/core/css/styles.css
index e019b874f61..db81f850303 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -278,6 +278,14 @@ input[type="submit"].enabled {
 	border: 1px solid #5e5;
 }
 
+.input-button-inline {
+	position: absolute !important;
+	right: 0;
+	background-color: transparent !important;
+	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
+	opacity: .3;
+}
+
 
 
 /* CONTENT ------------------------------------------------------------------ */
-- 
GitLab