summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-09-08 21:58:54 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-09-08 21:58:54 +0200
commit71e10b66d9f3f0ab1545ac460bb4e5ea61bb8196 (patch)
tree763e2a7fa72d88f27ba2645745a8a504da11ee0c /core
parent70abce04827517d4391cc1bb3cd71574fc19724a (diff)
parentbd56619e7aa798fe899a04d2f47e450344720215 (diff)
downloadnextcloud-server-71e10b66d9f3f0ab1545ac460bb4e5ea61bb8196.tar.gz
nextcloud-server-71e10b66d9f3f0ab1545ac460bb4e5ea61bb8196.zip
Merge pull request #10944 from owncloud/fix-nojavascript-style
fix no-JS message, and add it to log in and shared as well cause they don’t work without JS
Diffstat (limited to 'core')
-rw-r--r--core/css/styles.css28
-rw-r--r--core/templates/layout.base.php1
-rw-r--r--core/templates/layout.guest.php1
-rw-r--r--core/templates/layout.user.php2
4 files changed, 17 insertions, 15 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index d165050d7cb..64b37c89b0b 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -39,31 +39,31 @@ body {
#nojavascript {
- position: absolute;
+ position: fixed;
top: 0;
bottom: 0;
- z-index: 999;
+ z-index: 9000;
width: 100%;
text-align: center;
- background-color: rgba(50,0,0,0.5);
- color: white;
- text-shadow: 0px 0px 5px black;
+ background-color: rgba(0,0,0,0.5);
+ color: #fff;
line-height: 125%;
- font-size: x-large;
+ font-size: 24px;
}
#nojavascript div {
+ display: block;
+ position: relative;
width: 50%;
- top: 40%;
- position: absolute;
- left: 50%;
- margin-left: -25%;
+ top: 35%;
+ margin: 0px auto;
}
#nojavascript a {
- color: #ccc;
- text-decoration: underline;
+ color: #fff;
+ border-bottom: 2px dotted #fff;
}
-#nojavascript a:hover {
- color: #aaa;
+#nojavascript a:hover,
+#nojavascript a:focus {
+ color: #ddd;
}
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index 127e99be84d..009cfe21c3f 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -31,6 +31,7 @@
<?php endforeach; ?>
</head>
<body id="body-public">
+ <noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript>
<?php print_unescaped($_['content']); ?>
</body>
</html>
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 24706b77b19..fb34769ff7c 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -33,6 +33,7 @@
<?php endforeach; ?>
</head>
<body id="body-login">
+ <noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript>
<div class="wrapper"><!-- for sticky footer -->
<div class="v-align"><!-- vertically centred box -->
<header><div id="header">
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 51470fb07fa..7bc2511f03e 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -40,7 +40,7 @@
<?php endforeach; ?>
</head>
<body id="<?php p($_['bodyid']);?>">
- <noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript to be enabled for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and re-load this interface.')); ?></div></div></noscript>
+ <noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and reload the page.')); ?></div></div></noscript>
<div id="notification-container">
<div id="notification"></div>
<?php if ($_['updateAvailable']): ?>