summaryrefslogtreecommitdiffstats
path: root/settings/css
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-10-24 13:54:56 +0200
committerRobin Appelman <robin@icewind.nl>2016-10-24 13:54:56 +0200
commitad902d6bea06ae147db72b8bf5e0dfe5166e9d1c (patch)
tree95f2dba028a755293799d1a412dd41af8eac3bfe /settings/css
parent55c445ff3917c6caf9baad2fe4db0c56b51c72bb (diff)
downloadnextcloud-server-ad902d6bea06ae147db72b8bf5e0dfe5166e9d1c.tar.gz
nextcloud-server-ad902d6bea06ae147db72b8bf5e0dfe5166e9d1c.zip
center cropper vertically
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'settings/css')
-rw-r--r--settings/css/settings.css16
1 files changed, 7 insertions, 9 deletions
diff --git a/settings/css/settings.css b/settings/css/settings.css
index 632162eafe2..2f0f4b23515 100644
--- a/settings/css/settings.css
+++ b/settings/css/settings.css
@@ -34,25 +34,23 @@ input#openid, input#webdav { width:20em; }
/* float cropper above settings page to prevent unexpected flowing from dynamically sized element */
position: fixed;
background-color: rgba(0, 0, 0, .2);
- /*opacity: .20;*/
box-sizing: border-box;
- top: 0;
+ top: 45px;
left: 0;
width: 100%;
- height: 100%;
- padding-top: 45px;
- text-align: center;
+ height: calc(100% - 45px);
}
#avatar #cropper .inner-container {
- display: inline-block;
- margin-top: 160px;
- margin-left: 30px;
+ z-index: 2001; /* above the top bar if needed */
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
background: #fff;
color: #333;
border-radius: 3px;
box-shadow: 0 0 7px #888;
padding: 15px;
- text-align: left;
}
#avatar #cropper .inner-container .jcrop-holder {