mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Minor changes.
This commit is contained in:
parent
b8bcadca36
commit
e7ce56c252
5 changed files with 11 additions and 30 deletions
|
@ -6,7 +6,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#content-header, #content-footer {
|
#content-header, #content-footer {
|
||||||
margin: 24px;
|
margin: 16px;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
||||||
a, a:active, a:visited {
|
a, a:active, a:visited {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
order: 99;
|
order: 99;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
padding: 8px 16px;
|
padding: 16px 8px 16px 16px;
|
||||||
// background: #eaeaea;
|
// background: #eaeaea;
|
||||||
border-left: 1px solid @col-border;
|
border-left: 1px solid @col-border;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
order: 1;
|
order: 1;
|
||||||
|
|
||||||
padding: 8px 16px 8px 8px;
|
padding: 16px 16px 16px 8px;
|
||||||
// background: #eee;
|
|
||||||
border-right: 1px solid @col-border;
|
border-right: 1px solid @col-border;
|
||||||
font-weight: lighter;
|
font-weight: lighter;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -15,12 +14,9 @@
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|
||||||
.indicator {
|
.indicator {
|
||||||
position: relative;
|
|
||||||
top: 2px;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 16px;
|
position: relative;
|
||||||
height: 22px;
|
top: -1px;
|
||||||
float: left;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
@ -42,14 +38,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
a, a:active, a.visited {
|
a, a:active, a.visited {
|
||||||
display: block;
|
display: inline-block;
|
||||||
height: 1.231em;
|
padding: 3px 0;
|
||||||
line-height: 1.231em;
|
|
||||||
margin-left: 14px;
|
|
||||||
padding: 4px 6px;
|
|
||||||
color: #555;
|
color: #555;
|
||||||
border: 1px solid rgba(0,0,0,0);
|
|
||||||
border-radius: 3px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover, &.hover {
|
&:hover, &.hover {
|
||||||
|
@ -59,28 +50,18 @@
|
||||||
.icon {
|
.icon {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -2px;
|
top: -2px;
|
||||||
margin-right: 6px;
|
margin: 0 8px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.hint {
|
|
||||||
margin-left: 6px;
|
|
||||||
font-size: 0.9em;
|
|
||||||
color: #ccc;
|
|
||||||
}
|
|
||||||
.content {
|
.content {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 0 0 24px;
|
padding: 0 0 0 24px;
|
||||||
}
|
}
|
||||||
.summary {
|
|
||||||
margin: 0 0 0 24px;
|
|
||||||
color: #999;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
.current {
|
.current {
|
||||||
> a, > a:active, > a:visited {
|
> a, > a:active, > a:visited {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -69,8 +69,8 @@ modulejs.define('ext/tree', ['_', '$', 'core/settings', 'core/resource', 'core/e
|
||||||
|
|
||||||
// does it have subfolders?
|
// does it have subfolders?
|
||||||
if (subfolders.length) {
|
if (subfolders.length) {
|
||||||
var $ul = $('<ul class="content"/>').appendTo($html),
|
var $ul = $('<ul class="content"/>').appendTo($html);
|
||||||
counter = 0;
|
var counter = 0;
|
||||||
_.each(subfolders, function (e) {
|
_.each(subfolders, function (e) {
|
||||||
counter += 1;
|
counter += 1;
|
||||||
if (counter <= settings.maxSubfolders) {
|
if (counter <= settings.maxSubfolders) {
|
||||||
|
|
|
@ -53,7 +53,7 @@ class Thumb {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = "thumb-" . sha1("$source_path-$width-$height") . ".jpg";
|
$name = "thumb-" . sha1("$source_path") . "-" . $width . "x" . $height . ".jpg";
|
||||||
$thumb_path = $this->thumbs_path . "/" . $name;
|
$thumb_path = $this->thumbs_path . "/" . $name;
|
||||||
$thumb_url = $this->thumbs_href . "/" . $name;
|
$thumb_url = $this->thumbs_href . "/" . $name;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue