mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-14 09:54:21 +02:00
Clean fallback mode.
This commit is contained in:
@@ -60,20 +60,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#fallback-bar {
|
#fallback-hints {
|
||||||
display: none;
|
display: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
padding: 6px;
|
|
||||||
background: @col-lightgray;
|
|
||||||
box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
|
box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
|
||||||
|
|
||||||
color: #999;
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
line-height: 36px;
|
background: @col-lightgray;
|
||||||
|
|
||||||
a, a:active, a:visited {
|
a, a:active, a:visited {
|
||||||
margin: 0 8px;
|
display: inline-block;
|
||||||
|
line-height: 48px;
|
||||||
color: @col-text-secondary-black;
|
color: @col-text-secondary-black;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
.transition(all 0.2s ease-in-out);
|
.transition(all 0.2s ease-in-out);
|
||||||
@@ -84,16 +80,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.backlink {
|
||||||
|
margin: 0 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.noJsMsg, .noBrowserMsg {
|
.noJsMsg, .noBrowserMsg {
|
||||||
margin: 0 8px;
|
margin: 0 16px;
|
||||||
color: @col-error;
|
color: @col-error;
|
||||||
a, a:active, a:visited {
|
|
||||||
color: @col-error;
|
|
||||||
text-decoration: underline;
|
|
||||||
&:hover {
|
|
||||||
color: @col-hover;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,7 +98,7 @@ html.no-js, html.no-browser {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#fallback, #fallback-bar {
|
#fallback, #fallback-hints {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -20,6 +20,7 @@ modulejs.define('view/ensure', ['$', 'config', 'core/event'], function ($, confi
|
|||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
|
||||||
|
$('#fallback, #fallback-hints').remove();
|
||||||
$(templateTopbar).appendTo('body');
|
$(templateTopbar).appendTo('body');
|
||||||
$(templateMainRow).appendTo('body');
|
$(templateMainRow).appendTo('body');
|
||||||
$(templateBacklink).appendTo('#topbar');
|
$(templateBacklink).appendTo('#topbar');
|
||||||
|
@@ -14,15 +14,15 @@ head
|
|||||||
|
|
||||||
body#h5ai-info
|
body#h5ai-info
|
||||||
|
|
||||||
div#fallback-bar
|
div#fallback-hints
|
||||||
span.noJsMsg
|
span.noJsMsg
|
||||||
| JavaScript disabled!
|
| JavaScript disabled!
|
||||||
span.noBrowserMsg
|
span.noBrowserMsg
|
||||||
| Works best in
|
| Works best in
|
||||||
a( href="http://browsehappy.com" ) modern browsers
|
a( href="http://browsehappy.com" ) modern browsers
|
||||||
| !
|
| !
|
||||||
a( href="#{pkg.homepage}", title="#{pkg.name} #{pkg.version} · #{pkg.description}" )
|
span.backlink
|
||||||
| powered by #{pkg.name}
|
a( href="#{pkg.homepage}", title="#{pkg.name} #{pkg.version} · #{pkg.description}" ) powered by #{pkg.name}
|
||||||
|
|
||||||
div#content
|
div#content
|
||||||
h1#header
|
h1#header
|
||||||
|
@@ -19,15 +19,15 @@ head
|
|||||||
|
|
||||||
body
|
body
|
||||||
|
|
||||||
div#fallback-bar
|
div#fallback-hints
|
||||||
span.noJsMsg
|
span.noJsMsg
|
||||||
| JavaScript disabled!
|
| JavaScript disabled!
|
||||||
span.noBrowserMsg
|
span.noBrowserMsg
|
||||||
| Works best in
|
| Works best in
|
||||||
a( href="http://browsehappy.com" ) modern browsers
|
a( href="http://browsehappy.com" ) modern browsers
|
||||||
| !
|
| !
|
||||||
a( href="#{pkg.homepage}", title="#{pkg.name} #{pkg.version} · #{pkg.description}" )
|
span.backlink
|
||||||
| powered by #{pkg.name}
|
a( href="#{pkg.homepage}", title="#{pkg.name} #{pkg.version} · #{pkg.description}" ) powered by #{pkg.name}
|
||||||
|
|
||||||
div#fallback !{fallback}
|
div#fallback !{fallback}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user