mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-05 09:23:40 -04:00
Minor style changes.
This commit is contained in:
parent
17c6f18910
commit
9163996ac2
14 changed files with 132 additions and 126 deletions
|
@ -8,23 +8,3 @@
|
||||||
background-color: rgba(255,0,0,0.5);
|
background-color: rgba(255,0,0,0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#delete-auth {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 5;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
.vert-gradient(rgb(241,241,241), rgb(228,228,228));
|
|
||||||
border: 1px solid rgb(210,210,210);
|
|
||||||
|
|
||||||
input {
|
|
||||||
display: block;
|
|
||||||
margin: 4px 6px;
|
|
||||||
border: 1px solid rgb(210,210,210);
|
|
||||||
font-family: Ubuntu, sans-serif;
|
|
||||||
color: #555;
|
|
||||||
background-color: rgba(255,255,255,1);
|
|
||||||
width: 100px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -8,23 +8,3 @@
|
||||||
background-color: rgba(255,0,0,0.5);
|
background-color: rgba(255,0,0,0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#download-auth {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 5;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
.vert-gradient(rgb(241,241,241), rgb(228,228,228));
|
|
||||||
border: 1px solid rgb(210,210,210);
|
|
||||||
|
|
||||||
input {
|
|
||||||
display: block;
|
|
||||||
margin: 4px 6px;
|
|
||||||
border: 1px solid rgb(210,210,210);
|
|
||||||
font-family: Ubuntu, sans-serif;
|
|
||||||
color: #555;
|
|
||||||
background-color: rgba(255,255,255,1);
|
|
||||||
width: 100px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -10,12 +10,24 @@
|
||||||
&.entry {
|
&.entry {
|
||||||
|
|
||||||
a, a:active, a:visited {
|
a, a:active, a:visited {
|
||||||
border-bottom: 1px solid #e8e8e8;
|
border-top: 1px solid @item-border-col-sep;
|
||||||
|
border-bottom: 1px solid @item-border-col-sep;
|
||||||
|
|
||||||
|
&:hover, &.hover {
|
||||||
|
border-color: @item-border-col-hover;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// needs to be here, to not conflict with header fields
|
// needs to be here, to not conflict with header fields
|
||||||
.icon, .label, .date, .size {
|
.icon, .label, .date, .size {
|
||||||
padding: 6px;
|
padding: 8px 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.entry + .entry {
|
||||||
|
|
||||||
|
a, a:active, a:visited {
|
||||||
|
border-top: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
border: 1px solid rgba(0,0,0,0);
|
border: 1px solid rgba(0,0,0,0);
|
||||||
|
|
||||||
&:hover, &.hover {
|
&:hover, &.hover {
|
||||||
border-color: #e8e8e8;
|
border-color: @item-border-col-hover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
border: 1px solid rgba(0,0,0,0);
|
border: 1px solid rgba(0,0,0,0);
|
||||||
|
|
||||||
&:hover, &.hover {
|
&:hover, &.hover {
|
||||||
border-color: #e8e8e8;
|
border-color: @item-border-col-hover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,20 @@
|
||||||
|
|
||||||
a, a:active, a:visited {
|
a, a:active, a:visited {
|
||||||
height: 56px;
|
height: 56px;
|
||||||
border-bottom: 1px solid #e8e8e8;
|
padding: 4px 0;
|
||||||
|
border-top: 1px solid @item-border-col-sep;
|
||||||
|
border-bottom: 1px solid @item-border-col-sep;
|
||||||
|
|
||||||
|
&:hover, &.hover {
|
||||||
|
border-color: @item-border-col-hover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.entry + .entry {
|
||||||
|
|
||||||
|
a, a:active, a:visited {
|
||||||
|
border-top: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +32,7 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: -2px;
|
top: 2px;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,13 @@
|
||||||
background-color: rgba(240,100,0,0.2);
|
background-color: rgba(240,100,0,0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@item-border-col-sep: #f2f2f2;
|
||||||
|
// @item-border-col-sep: #e8e8e8;
|
||||||
|
@item-background-col-hover: #f6f6f6;
|
||||||
|
@item-border-col-hover: #f0f0f0;
|
||||||
|
@item-background-col-sel: rgba(240,100,0,0.2);
|
||||||
|
@item-border-col-sel: rgba(240,100,0,0.2);
|
||||||
|
|
||||||
#extended {
|
#extended {
|
||||||
display: none;
|
display: none;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
@ -67,8 +74,8 @@
|
||||||
|
|
||||||
&:hover, &.hover {
|
&:hover, &.hover {
|
||||||
color: #e80;
|
color: #e80;
|
||||||
background-color: #f6f6f6;
|
background-color: @item-background-col-hover;
|
||||||
border-color: #e8e8e8;
|
border-color: @item-border-col-hover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,12 +83,12 @@
|
||||||
|
|
||||||
a, a:active, a:visited {
|
a, a:active, a:visited {
|
||||||
color: #000;
|
color: #000;
|
||||||
border-color: rgba(240,100,0,0.2);
|
background-color: @item-background-col-sel;
|
||||||
background-color: rgba(240,100,0,0.2);
|
border-color: @item-border-col-sel;
|
||||||
|
|
||||||
&:hover, &.hover {
|
&:hover, &.hover {
|
||||||
border-color: rgba(240,100,0,0.2);
|
background-color: @item-background-col-sel;
|
||||||
background-color: rgba(240,100,0,0.2);
|
border-color: @item-border-col-sel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
input {
|
input {
|
||||||
display: none;
|
display: none;
|
||||||
border: none;
|
border: none;
|
||||||
font-family: Ubuntu, sans-serif;
|
font-family: @font-family;
|
||||||
color: #555;
|
color: #555;
|
||||||
background-color: rgba(0,0,0,0);
|
background-color: rgba(0,0,0,0);
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
|
|
||||||
|
@font-family: Ubuntu, sans-serif;
|
||||||
|
@font-family-mono: "Ubuntu Mono", monospace;
|
||||||
|
|
||||||
|
|
||||||
html { overflow-y: auto; }
|
html { overflow-y: auto; }
|
||||||
::-moz-selection { background: #68A9FF; color: #fff; text-shadow: none; }
|
::-moz-selection { background: #68A9FF; color: #fff; text-shadow: none; }
|
||||||
::selection { background: #68A9FF; color: #fff; text-shadow: none; }
|
::selection { background: #68A9FF; color: #fff; text-shadow: none; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Ubuntu, sans-serif;
|
font-family: @font-family;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: #555;
|
color: #555;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
body#h5ai-info {
|
body#h5ai-info {
|
||||||
font-family: Ubuntu, Arial, sans;
|
font-family: @font-family;
|
||||||
margin: 2em auto 4em auto;
|
margin: 2em auto 4em auto;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: #555;
|
color: #555;
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
td {
|
td {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
font-family: "Ubuntu Mono";
|
font-family: @font-family-mono;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
color: #999;
|
color: #999;
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
font-family: "Ubuntu Mono";
|
font-family: @font-family-mono;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
pre, code {
|
pre, code {
|
||||||
font-family: "Ubuntu Mono", monospace;
|
font-family: @font-family-mono;
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
color: #008200;
|
color: #008200;
|
||||||
|
|
|
@ -25,7 +25,6 @@ body {
|
||||||
#extended.view-icons {
|
#extended.view-icons {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: none;
|
border: none;
|
||||||
// margin: 0 -14px;
|
|
||||||
}
|
}
|
||||||
#bottombar {
|
#bottombar {
|
||||||
.center {
|
.center {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
modulejs.define('ext/dropbox', ['_', '$', 'core/settings', 'core/location', 'core/server'], function (_, $, allsettings, location, server) {
|
modulejs.define('ext/dropbox', ['_', '$', 'core/settings', 'core/location', 'core/server', 'core/event'], function (_, $, allsettings, location, server, event) {
|
||||||
|
|
||||||
var settings = _.extend({
|
var settings = _.extend({
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
@ -21,7 +21,8 @@ modulejs.define('ext/dropbox', ['_', '$', 'core/settings', 'core/location', 'cor
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var $content = $('#content').append(template);
|
var $content = $('#content').append(template),
|
||||||
|
data = {};
|
||||||
|
|
||||||
var uploads = {},
|
var uploads = {},
|
||||||
afterUpload = function (err, file) {
|
afterUpload = function (err, file) {
|
||||||
|
@ -41,17 +42,16 @@ modulejs.define('ext/dropbox', ['_', '$', 'core/settings', 'core/location', 'cor
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
event.sub('ready', function () {
|
||||||
|
|
||||||
$content.filedrop({
|
$content.filedrop({
|
||||||
|
|
||||||
paramname: 'userfile',
|
paramname: 'userfile',
|
||||||
|
|
||||||
maxfiles: settings.maxfiles,
|
maxfiles: settings.maxfiles,
|
||||||
maxfilesize: settings.maxfilesize,
|
maxfilesize: settings.maxfilesize,
|
||||||
url: server.api,
|
url: location.getAbsHref(),
|
||||||
data: {
|
data: data,
|
||||||
action: 'upload',
|
|
||||||
href: location.getAbsHref()
|
|
||||||
},
|
|
||||||
|
|
||||||
docEnter: function () {
|
docEnter: function () {
|
||||||
|
|
||||||
|
@ -107,7 +107,18 @@ modulejs.define('ext/dropbox', ['_', '$', 'core/settings', 'core/location', 'cor
|
||||||
afterUpload(err, file);
|
afterUpload(err, file);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
event.sub('location.changed', function (item) {
|
||||||
|
|
||||||
|
$('#uploads').empty();
|
||||||
|
data = {
|
||||||
|
action: 'upload',
|
||||||
|
href: item.absHref
|
||||||
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
init();
|
// disabled while broken
|
||||||
|
// init();
|
||||||
});
|
});
|
||||||
|
|
|
@ -80,7 +80,7 @@ Options
|
||||||
Allow file deletion.
|
Allow file deletion.
|
||||||
*/
|
*/
|
||||||
"delete": {
|
"delete": {
|
||||||
"enabled": false
|
"enabled": true
|
||||||
},
|
},
|
||||||
|
|
||||||
/* [EXPERIMENTAL]
|
/* [EXPERIMENTAL]
|
||||||
|
@ -91,7 +91,7 @@ Options
|
||||||
- maxfilesize: number, file size is in MB
|
- maxfilesize: number, file size is in MB
|
||||||
*/
|
*/
|
||||||
"dropbox": {
|
"dropbox": {
|
||||||
"enabled": false,
|
"enabled": true,
|
||||||
"maxfiles": 10,
|
"maxfiles": 10,
|
||||||
"maxfilesize": 1000
|
"maxfilesize": 1000
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue