mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 22:45:14 -04:00
Minor changes.
This commit is contained in:
parent
e9aa3b8743
commit
4a69e639b5
2 changed files with 4 additions and 5 deletions
|
@ -69,8 +69,9 @@
|
||||||
@font-size: 13px;
|
@font-size: 13px;
|
||||||
@font-family-mono: monospace;
|
@font-family-mono: monospace;
|
||||||
|
|
||||||
@max-icon-size: 32px;
|
|
||||||
// @max-icon-size: 24px;
|
// @max-icon-size: 24px;
|
||||||
|
@max-icon-size: 32px;
|
||||||
|
// @max-icon-size: 48px;
|
||||||
|
|
||||||
|
|
||||||
::-moz-selection { background: @col-pink-a200; color: @col-text-primary-white; text-shadow: none; }
|
::-moz-selection { background: @col-pink-a200; color: @col-text-primary-white; text-shadow: none; }
|
||||||
|
|
|
@ -37,16 +37,14 @@ modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'c
|
||||||
|
|
||||||
function cropSize(size, min, max) {
|
function cropSize(size, min, max) {
|
||||||
|
|
||||||
min = min || 4;
|
|
||||||
max = max || 2048;
|
|
||||||
return Math.min(max, Math.max(min, size));
|
return Math.min(max, Math.max(min, size));
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyCssSizes(size) {
|
function applyCssSizes(size) {
|
||||||
|
|
||||||
var dsize = cropSize(size, 10, 80);
|
var dsize = cropSize(size, 20, 80);
|
||||||
var gsize = cropSize(size, 40, 150);
|
var gsize = cropSize(size, 40, 150);
|
||||||
var isize = cropSize(size, 80);
|
var isize = cropSize(size, 80, 2000);
|
||||||
var ilsize = Math.round(isize*4/3);
|
var ilsize = Math.round(isize*4/3);
|
||||||
var rules = [
|
var rules = [
|
||||||
'#view.view-details .item .label { line-height: ' + (dsize+14) + 'px !important; }',
|
'#view.view-details .item .label { line-height: ' + (dsize+14) + 'px !important; }',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue