Minor changes.

This commit is contained in:
Lars Jung 2015-04-02 22:55:20 +02:00
parent e9aa3b8743
commit 4a69e639b5
2 changed files with 4 additions and 5 deletions

View file

@ -69,8 +69,9 @@
@font-size: 13px;
@font-family-mono: monospace;
@max-icon-size: 32px;
// @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; }

View file

@ -37,16 +37,14 @@ modulejs.define('view/viewmode', ['_', '$', 'core/settings', 'core/resource', 'c
function cropSize(size, min, max) {
min = min || 4;
max = max || 2048;
return Math.min(max, Math.max(min, size));
}
function applyCssSizes(size) {
var dsize = cropSize(size, 10, 80);
var dsize = cropSize(size, 20, 80);
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 rules = [
'#view.view-details .item .label { line-height: ' + (dsize+14) + 'px !important; }',