From 855a011697c018d5e30dd380227cbf992c967fd1 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 4 Dec 2012 16:58:42 +0100 Subject: [PATCH 1/9] group related input fields visually --- core/css/styles.css | 18 ++++++++++++++++++ core/templates/installation.php | 14 +++++++------- core/templates/login.php | 4 ++-- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 646a760f98..4de9cbd8fe 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -79,7 +79,25 @@ input[type="submit"].highlight{ background:#ffc100; border:1px solid #db0; text- #login form { width:22em; margin:2em auto 2em; padding:0; } #login form fieldset { background:0; border:0; margin-bottom:2em; padding:0; } #login form fieldset legend { font-weight:bold; } + +/* Nicely grouping input field sets */ +.grouptop input { + margin-bottom:0; + border-bottom:0; border-bottom-left-radius:0; border-bottom-right-radius:0; +} +.groupmiddle input { + margin-top:0; margin-bottom:0; + border-top:0; border-radius:0; + box-shadow:0 1px 1px #fff,0 1px 0 #ddd inset; +} +.groupbottom input { + margin-top:0; + border-top:0; border-top-right-radius:0; border-top-left-radius:0; + box-shadow:0 1px 1px #fff,0 1px 0 #ddd inset; +} + #login form label { margin:.95em 0 0 .85em; color:#666; } +#login .groupmiddle label, #login .groupbottom label { margin-top:13px; } /* NEEDED FOR INFIELD LABELS */ p.infield { position: relative; } label.infield { cursor: text !important; } diff --git a/core/templates/installation.php b/core/templates/installation.php index 1e7983eae5..79d30eff53 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -34,11 +34,11 @@
t( 'Create an admin account' ); ?> -

+

-

+

@@ -101,15 +101,15 @@
-

+

-

+

-

+

@@ -117,13 +117,13 @@
-

+

-

+

diff --git a/core/templates/login.php b/core/templates/login.php index d6b09c83d3..cb4b6717b6 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -16,11 +16,11 @@ -

+

autocomplete="on" required />

-

+

/>

From 5ccea4cc2f4c89a0232670a9f0b87c641e5df9ad Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 4 Dec 2012 23:09:30 +0100 Subject: [PATCH 2/9] small fixes: toggle color adjustment, remove colon, prevent label wrapping --- core/css/styles.css | 5 ++--- core/templates/installation.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 4de9cbd8fe..30fc899746 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -101,7 +101,7 @@ input[type="submit"].highlight{ background:#ffc100; border:1px solid #db0; text- /* NEEDED FOR INFIELD LABELS */ p.infield { position: relative; } label.infield { cursor: text !important; } -#login form label.infield { position:absolute; font-size:1.5em; color:#AAA; } +#login form label.infield { position:absolute; font-size:19px; color:#aaa; white-space:nowrap; } #login #dbhostlabel, #login #directorylabel { display:block; margin:.95em 0 .8em -8em; } #login form input[type="checkbox"]+label { position:relative; margin:0; font-size:1em; text-shadow:#fff 0 1px 0; } #login form .errors { background:#fed7d7; border:1px solid #f00; list-style-indent:inside; margin:0 0 2em; padding:1em; } @@ -109,8 +109,7 @@ label.infield { cursor: text !important; } #login form #selectDbType { text-align:center; } #login form #selectDbType label { position:static; font-size:1em; margin:0 -.3em 1em; cursor:pointer; padding:.4em; border:1px solid #ddd; font-weight:bold; background:#f8f8f8; color:#555; text-shadow:#eee 0 1px 0; -moz-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; -webkit-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; } #login form #selectDbType label span { cursor:pointer; font-size:0.9em; } -#login form #selectDbType label.ui-state-hover span, #login form #selectDbType label.ui-state-active span { color:#000; } -#login form #selectDbType label.ui-state-hover, #login form #selectDbType label.ui-state-active { color: #333; background-color: #ccc; } +#login form #selectDbType label.ui-state-hover, #login form #selectDbType label.ui-state-active { color:#000; background-color:#e8e8e8; } /* NAVIGATION ------------------------------------------------------------- */ diff --git a/core/templates/installation.php b/core/templates/installation.php index 79d30eff53..889d8bf377 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -47,7 +47,7 @@
t( 'Advanced' ); ?> ▾
-
+
From 13e0287b74a96fc3577fb2444cd7457af417ed2d Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 4 Dec 2012 23:55:31 +0100 Subject: [PATCH 3/9] better layout for installation page elements, centered and subdued legend text --- core/css/styles.css | 18 ++++++++++++++---- core/templates/installation.php | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 30fc899746..11c2037710 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -77,8 +77,14 @@ input[type="submit"].highlight{ background:#ffc100; border:1px solid #db0; text- #login { min-height:30em; margin:2em auto 0; border-bottom:1px solid #f8f8f8; background:#eee; } #login form { width:22em; margin:2em auto 2em; padding:0; } -#login form fieldset { background:0; border:0; margin-bottom:2em; padding:0; } -#login form fieldset legend { font-weight:bold; } +#login form fieldset { background:0; border:0; margin-bottom:20px; padding:0; } +#login form #adminaccount { margin-bottom:5px; } +#login form fieldset legend { + width:100%; text-align:center; + font-weight:bold; color:#999; text-shadow:0 1px 0 white; +} +#login form fieldset legend a { color:#999; } +#login form #datadirField legend { margin-bottom:15px; } /* Nicely grouping input field sets */ .grouptop input { @@ -107,8 +113,12 @@ label.infield { cursor: text !important; } #login form .errors { background:#fed7d7; border:1px solid #f00; list-style-indent:inside; margin:0 0 2em; padding:1em; } #login form #selectDbType { text-align:center; } -#login form #selectDbType label { position:static; font-size:1em; margin:0 -.3em 1em; cursor:pointer; padding:.4em; border:1px solid #ddd; font-weight:bold; background:#f8f8f8; color:#555; text-shadow:#eee 0 1px 0; -moz-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; -webkit-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; } -#login form #selectDbType label span { cursor:pointer; font-size:0.9em; } +#login form #selectDbType label { + position:static; margin:0 -3px 5px; padding:.4em; + font-size:12px; font-weight:bold; background:#f8f8f8; color:#555; cursor:pointer; + border:1px solid #ddd; text-shadow:#eee 0 1px 0; + -moz-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; -webkit-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; +} #login form #selectDbType label.ui-state-hover, #login form #selectDbType label.ui-state-active { color:#000; background-color:#e8e8e8; } diff --git a/core/templates/installation.php b/core/templates/installation.php index 889d8bf377..7590c37c77 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -32,7 +32,7 @@ t('Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root.');?>
-
+
t( 'Create an admin account' ); ?>

From 56dae0652817ac6d583a80820a03ffd98c9cc4db Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 5 Dec 2012 00:25:58 +0100 Subject: [PATCH 4/9] move inline warning styles into CSS, clean up and fix #270 --- core/css/styles.css | 28 +++++++++++++++++++++++----- core/templates/installation.php | 6 +++--- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 11c2037710..deb4c9053b 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -34,7 +34,12 @@ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#35537a', end /* INPUTS */ input[type="text"], input[type="password"] { cursor:text; } -input, textarea, select, button, .button, #quota, div.jp-progress, .pager li a { font-size:1em; font-family:Arial, Verdana, sans-serif; width:10em; margin:.3em; padding:.6em .5em .4em; background:#fff; color:#333; border:1px solid #ddd; -moz-box-shadow:0 1px 1px #fff, 0 2px 0 #bbb inset; -webkit-box-shadow:0 1px 1px #fff, 0 1px 0 #bbb inset; box-shadow:0 1px 1px #fff, 0 1px 0 #bbb inset; -moz-border-radius:.5em; -webkit-border-radius:.5em; border-radius:.5em; outline:none; } +input, textarea, select, button, .button, #quota, div.jp-progress, .pager li a { + font-size:1em; font-family:Arial, Verdana, sans-serif; width:10em; margin:.3em; padding:.6em .5em .4em; + background:#fff; color:#333; border:1px solid #ddd; outline:none; + -moz-box-shadow:0 1px 1px #fff, 0 2px 0 #bbb inset; -webkit-box-shadow:0 1px 1px #fff, 0 1px 0 #bbb inset; box-shadow:0 1px 1px #fff, 0 1px 0 #bbb inset; + -moz-border-radius:.5em; -webkit-border-radius:.5em; border-radius:.5em; +} input[type="text"], input[type="password"], input[type="search"], textarea { background:#f8f8f8; color:#555; cursor:text; } input[type="text"], input[type="password"], input[type="search"] { -webkit-appearance:textfield; -moz-appearance:textfield; -webkit-box-sizing:content-box; -moz-box-sizing:content-box; box-sizing:content-box; } input[type="text"]:hover, input[type="text"]:focus, input[type="text"]:active, @@ -42,7 +47,12 @@ input[type="password"]:hover, input[type="password"]:focus, input[type="password .searchbox input[type="search"]:hover, .searchbox input[type="search"]:focus, .searchbox input[type="search"]:active, textarea:hover, textarea:focus, textarea:active { background-color:#fff; color:#333; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; } -input[type="submit"], input[type="button"], button, .button, #quota, div.jp-progress, select, .pager li a { width:auto; padding:.4em; border:1px solid #ddd; font-weight:bold; cursor:pointer; background:#f8f8f8; color:#555; text-shadow:#fff 0 1px 0; -moz-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; -webkit-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; -moz-border-radius:.5em; -webkit-border-radius:.5em; border-radius:.5em; } +input[type="submit"], input[type="button"], button, .button, #quota, div.jp-progress, select, .pager li a { + width:auto; padding:.4em; + background:#f8f8f8; font-weight:bold; color:#555; text-shadow:#fff 0 1px 0; border:1px solid #ddd; cursor:pointer; + -moz-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; -webkit-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; + -moz-border-radius:.5em; -webkit-border-radius:.5em; border-radius:.5em; +} input[type="submit"]:hover, input[type="submit"]:focus, input[type="button"]:hover, select:hover, select:focus, select:active, input[type="button"]:focus, .button:hover { background:#fff; color:#333; } input[type="submit"] img, input[type="button"] img, button img, .button img { cursor:pointer; } input[type="checkbox"] { width:auto; } @@ -77,13 +87,14 @@ input[type="submit"].highlight{ background:#ffc100; border:1px solid #db0; text- #login { min-height:30em; margin:2em auto 0; border-bottom:1px solid #f8f8f8; background:#eee; } #login form { width:22em; margin:2em auto 2em; padding:0; } -#login form fieldset { background:0; border:0; margin-bottom:20px; padding:0; } +#login form fieldset { margin-bottom:20px; } #login form #adminaccount { margin-bottom:5px; } -#login form fieldset legend { +#login form fieldset legend, #datadirContent label { width:100%; text-align:center; font-weight:bold; color:#999; text-shadow:0 1px 0 white; } #login form fieldset legend a { color:#999; } +#login #datadirContent label { color:#999; display:block; } #login form #datadirField legend { margin-bottom:15px; } /* Nicely grouping input field sets */ @@ -115,12 +126,19 @@ label.infield { cursor: text !important; } #login form #selectDbType { text-align:center; } #login form #selectDbType label { position:static; margin:0 -3px 5px; padding:.4em; - font-size:12px; font-weight:bold; background:#f8f8f8; color:#555; cursor:pointer; + font-size:12px; font-weight:bold; background:#f8f8f8; color:#888; cursor:pointer; border:1px solid #ddd; text-shadow:#eee 0 1px 0; -moz-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; -webkit-box-shadow:0 1px 1px #fff, 0 1px 1px #fff inset; } #login form #selectDbType label.ui-state-hover, #login form #selectDbType label.ui-state-active { color:#000; background-color:#e8e8e8; } +fieldset.warning { + padding:8px; + color:#b94a48; background-color:#f2dede; border:1px solid #eed3d7; + border-radius:5px; +} +fieldset.warning legend { color:#b94a48 !important; } + /* NAVIGATION ------------------------------------------------------------- */ #navigation { position:fixed; top:3.5em; float:left; width:12.5em; padding:0; z-index:75; height:100%; background:#eee; border-right: 1px #ccc solid; -moz-box-shadow: -3px 0 7px #000; -webkit-box-shadow: -3px 0 7px #000; box-shadow: -3px 0 7px #000; overflow:hidden;} diff --git a/core/templates/installation.php b/core/templates/installation.php index 7590c37c77..7d101e90c5 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -19,7 +19,7 @@ -

+
t('Security Warning');?> t('No secure random number generator is available, please enable the PHP OpenSSL extension.');?>
@@ -27,7 +27,7 @@
-
+
t('Security Warning');?> t('Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root.');?>
@@ -47,7 +47,7 @@
t( 'Advanced' ); ?> ▾
-
+
From b6fca70ee4ae1eff414172523e4ea2d74ff64606 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 5 Dec 2012 00:37:00 +0100 Subject: [PATCH 5/9] add primary action button in fitting subtle dark blue --- core/css/styles.css | 20 ++++++++++++++++++++ core/templates/installation.php | 2 +- core/templates/login.php | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index deb4c9053b..fbe5f29c9b 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -58,6 +58,26 @@ input[type="submit"] img, input[type="button"] img, button img, .button img { cu input[type="checkbox"] { width:auto; } #quota { cursor:default; } + +/* PRIMARY ACTION BUTTON, use sparingly */ +.primary, input[type="submit"].primary, input[type="button"].primary, button.primary, .button.primary { + border:1px solid #1d2d44; + background:#35537a; color:#ddd; text-shadow:#000 0 -1px 0; + -moz-box-shadow:0 0 1px #000,0 1px 1px #6d7d94 inset; -webkit-box-shadow:0 0 1px #000,0 1px 1px #6d7d94 inset; box-shadow:0 0 1px #000,0 1px 1px #6d7d94 inset; +} + .primary:hover, input[type="submit"].primary:hover, input[type="button"].primary:hover, button.primary:hover, .button.primary:hover, + .primary:focus, input[type="submit"].primary:focus, input[type="button"].primary:focus, button.primary:focus, .button.primary:focus { + border:1px solid #1d2d44; + background:#2d3d54; color:#fff; text-shadow:#000 0 -1px 0; + -moz-box-shadow:0 0 1px #000,0 1px 1px #5d6d84 inset; -webkit-box-shadow:0 0 1px #000,0 1px 1px #5d6d84 inset; box-shadow:0 0 1px #000,0 1px 1px #5d6d84 inset; + } + .primary:active, input[type="submit"].primary:active, input[type="button"].primary:active, button.primary:active, .button.primary:active { + border:1px solid #1d2d44; + background:#1d2d42; color:#bbb; text-shadow:#000 0 -1px 0; + -moz-box-shadow:0 1px 1px #fff,0 1px 1px 0 rgba(0,0,0,.2) inset; -webkit-box-shadow:0 1px 1px #fff,0 1px 1px 0 rgba(0,0,0,.2) inset; box-shadow:0 1px 1px #fff,0 1px 1px 0 rgba(0,0,0,.2) inset; + } + + #body-login input { font-size:1.5em; } #body-login input[type="text"], #body-login input[type="password"] { width: 13em; } #body-login input.login { width: auto; float: right; } diff --git a/core/templates/installation.php b/core/templates/installation.php index 7d101e90c5..5132192e83 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -129,5 +129,5 @@

-
+
diff --git a/core/templates/login.php b/core/templates/login.php index cb4b6717b6..15b2278b2f 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -25,6 +25,6 @@ />

- +
From 2288b263059d87b4292a731d3992d1fc361e2c43 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 6 Dec 2012 16:28:02 +0100 Subject: [PATCH 6/9] fix missing feedback when tab-focusing on checkbox --- core/css/styles.css | 1 + 1 file changed, 1 insertion(+) diff --git a/core/css/styles.css b/core/css/styles.css index fbe5f29c9b..d41045ad5f 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -56,6 +56,7 @@ input[type="submit"], input[type="button"], button, .button, #quota, div.jp-prog input[type="submit"]:hover, input[type="submit"]:focus, input[type="button"]:hover, select:hover, select:focus, select:active, input[type="button"]:focus, .button:hover { background:#fff; color:#333; } input[type="submit"] img, input[type="button"] img, button img, .button img { cursor:pointer; } input[type="checkbox"] { width:auto; } +input[type="checkbox"]:hover+label, input[type="checkbox"]:focus+label { color:#111 !important; } #quota { cursor:default; } From 0fa59f89373f935b497cea1b5f6953361f8e8581 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 6 Dec 2012 16:29:56 +0100 Subject: [PATCH 7/9] use vector logo also on log in page, d'oh (also now retina-ready) --- core/templates/layout.guest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index e83d9e1a68..8395426e4e 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -35,7 +35,7 @@
From 4f513f279a32da7027ab628e7d619070c9732258 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 6 Dec 2012 16:41:06 +0100 Subject: [PATCH 8/9] fix dbhostlabel not disappearing, remove obsolete CSS --- core/css/styles.css | 1 - core/templates/installation.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index d41045ad5f..0f3f11fdf1 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -140,7 +140,6 @@ input[type="submit"].highlight{ background:#ffc100; border:1px solid #db0; text- p.infield { position: relative; } label.infield { cursor: text !important; } #login form label.infield { position:absolute; font-size:19px; color:#aaa; white-space:nowrap; } -#login #dbhostlabel, #login #directorylabel { display:block; margin:.95em 0 .8em -8em; } #login form input[type="checkbox"]+label { position:relative; margin:0; font-size:1em; text-shadow:#fff 0 1px 0; } #login form .errors { background:#fed7d7; border:1px solid #f00; list-style-indent:inside; margin:0 0 2em; padding:1em; } diff --git a/core/templates/installation.php b/core/templates/installation.php index 5132192e83..f7a8a028c4 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -124,7 +124,7 @@

- +

From e989493eca3be957e0c69af89d255c10efb94ce5 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 6 Dec 2012 16:44:48 +0100 Subject: [PATCH 9/9] properly center data directory label --- core/css/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/css/styles.css b/core/css/styles.css index 0f3f11fdf1..552a17d8f4 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -115,7 +115,7 @@ input[type="submit"].highlight{ background:#ffc100; border:1px solid #db0; text- font-weight:bold; color:#999; text-shadow:0 1px 0 white; } #login form fieldset legend a { color:#999; } -#login #datadirContent label { color:#999; display:block; } +#login #datadirContent label { display:block; margin:0; color:#999; } #login form #datadirField legend { margin-bottom:15px; } /* Nicely grouping input field sets */