mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Fix info page.
This commit is contained in:
parent
7068d354e8
commit
70e348ac50
6 changed files with 60 additions and 67 deletions
|
@ -5,10 +5,11 @@
|
||||||
input {
|
input {
|
||||||
border: none;
|
border: none;
|
||||||
font-family: @font-family;
|
font-family: @font-family;
|
||||||
|
font-weight: lighter;
|
||||||
color: @col;
|
color: @col;
|
||||||
background-color: rgba(0,0,0,0);
|
background: transparent;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
outline: none;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.current {
|
&.current {
|
||||||
|
|
|
@ -1,20 +1,15 @@
|
||||||
|
|
||||||
body#h5ai-info {
|
body#h5ai-info {
|
||||||
margin: 2em auto 4em auto;
|
|
||||||
// font-size: 20px;
|
#content {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
order: 50;
|
||||||
color: @col;
|
color: @col;
|
||||||
max-width: 600px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
background: #fff;
|
||||||
a, a:active, a:visited {
|
overflow-y: scroll;
|
||||||
color: @col;
|
|
||||||
text-decoration: none;
|
|
||||||
.transition(all 0.2s ease-in-out);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: @col-hover;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
margin: 0 0.2em;
|
margin: 0 0.2em;
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
|
@ -23,21 +18,33 @@ body#h5ai-info {
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
background-color: @col-widget-back;
|
background-color: @col-widget-back;
|
||||||
border: @border-widget;
|
border: @border-widget;
|
||||||
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 3.6em;
|
font-size: 3.6em;
|
||||||
margin: 0;
|
margin: 0.8em 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.15em;
|
font-size: 1.15em;
|
||||||
margin: 2.6em 0 0 0;
|
margin: 2.6em 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#header a {
|
||||||
|
color: @col;
|
||||||
|
text-decoration: none;
|
||||||
|
.transition(all 0.2s ease-in-out);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: @col-hover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#support {
|
#support {
|
||||||
margin: 12px auto 24px auto;
|
margin: 12px auto 24px auto;
|
||||||
padding: 6px 18px;
|
padding: 6px 18px;
|
||||||
width: 164px;
|
width: 180px;
|
||||||
background: @col-widget-back;
|
background: @col-widget-back;
|
||||||
border: @border-widget;
|
border: @border-widget;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
@ -47,11 +54,6 @@ body#h5ai-info {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#login-wrapper {
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pass {
|
#pass {
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
-ms-appearance: none;
|
-ms-appearance: none;
|
||||||
|
@ -82,34 +84,29 @@ body#h5ai-info {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
.transition(all 0.2s ease-in-out);
|
.transition(all 0.2s ease-in-out);
|
||||||
|
|
||||||
&:hover, &.hover {
|
&:hover {
|
||||||
background-color: @col-widget-back-highlight;
|
|
||||||
color: @col-hover;
|
color: @col-hover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#hint {
|
#hint {
|
||||||
margin: 12px auto;
|
margin: 12px auto;
|
||||||
width: 360px;
|
width: 380px;
|
||||||
color: @col;
|
color: @col;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#tests-wrapper {
|
|
||||||
margin: 96px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tests {
|
#tests {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
list-style-type: none;
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin: 0;
|
list-style-type: none;
|
||||||
|
margin: 96px 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
font-size: 1.4em;
|
||||||
|
|
||||||
.test {
|
.test {
|
||||||
margin: 12px 0 0 0;
|
margin: 12px 0 0 0;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
|
}
|
||||||
.label {
|
.label {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
|
@ -130,15 +127,10 @@ body#h5ai-info {
|
||||||
.info {
|
.info {
|
||||||
margin: 4px 0 12px 12px;
|
margin: 4px 0 12px 12px;
|
||||||
font-size: 0.7em;
|
font-size: 0.7em;
|
||||||
|
font-weight: lighter;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
width: 460px;
|
width: 460px;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#bottombar {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
.topbar-right {
|
.topbar-right {
|
||||||
float: right;
|
float: right;
|
||||||
border-left: @border-widget-sep;
|
// border-left: @border-widget-sep;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -57,6 +57,8 @@
|
||||||
.current {
|
.current {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.element {
|
||||||
|
}
|
||||||
img {
|
img {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -1px;
|
top: -1px;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
modulejs.define('ext/thumbnails', ['_', 'core/settings', 'core/event', 'core/server'], function (_, allsettings, event, server) {
|
modulejs.define('ext/thumbnails', ['_', 'core/settings', 'core/event', 'core/server', 'core/resource'], function (_, allsettings, event, server, resource) {
|
||||||
|
|
||||||
var settings = _.extend({
|
var settings = _.extend({
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
modulejs.define('info', ['$', 'config'], function ($, config) {
|
modulejs.define('info', ['$', 'config'], function ($, config) {
|
||||||
|
|
||||||
var testsTemp =
|
var testsTemp =
|
||||||
'<div id="tests-wrapper">' +
|
'<ul id="tests">';
|
||||||
'<ul id="tests">' +
|
|
||||||
'</div>';
|
|
||||||
var testTemp =
|
var testTemp =
|
||||||
'<li class="test">' +
|
'<li class="test">' +
|
||||||
'<span class="label"></span>' +
|
'<span class="label"></span>' +
|
||||||
|
@ -41,7 +39,7 @@ modulejs.define('info', ['$', 'config'], function ($, config) {
|
||||||
|
|
||||||
function addTests() {
|
function addTests() {
|
||||||
|
|
||||||
$(testsTemp).appendTo('body');
|
$(testsTemp).appendTo('#content');
|
||||||
|
|
||||||
addTest(
|
addTest(
|
||||||
'Index file found', 'Add <code>' + setup.INDEX_HREF + '</code> to your index file list',
|
'Index file found', 'Add <code>' + setup.INDEX_HREF + '</code> to your index file list',
|
||||||
|
@ -147,7 +145,7 @@ modulejs.define('info', ['$', 'config'], function ($, config) {
|
||||||
|
|
||||||
function addLogin() {
|
function addLogin() {
|
||||||
|
|
||||||
$(loginTemp).appendTo('body');
|
$(loginTemp).appendTo('#content');
|
||||||
|
|
||||||
if (setup.AS_ADMIN) {
|
if (setup.AS_ADMIN) {
|
||||||
$('#pass').remove();
|
$('#pass').remove();
|
||||||
|
|
|
@ -14,8 +14,8 @@ head
|
||||||
|
|
||||||
body#h5ai-info
|
body#h5ai-info
|
||||||
|
|
||||||
div#main-row
|
div#content
|
||||||
h1
|
h1#header
|
||||||
a( href="#{pkg.homepage}" ) #{pkg.name}
|
a( href="#{pkg.homepage}" ) #{pkg.name}
|
||||||
|
|
||||||
div#support
|
div#support
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue