update CSS of icon list info objects

This commit is contained in:
rolux 2013-03-02 08:18:22 +05:30
parent 36e3dcd264
commit 9dfb7bebab

View file

@ -43,6 +43,7 @@ Ox.IconItem = function(options, self) {
Ox.extend(self, { Ox.extend(self, {
fontSize: self.options.itemWidth == 64 ? 6 : 9, fontSize: self.options.itemWidth == 64 ? 6 : 9,
infoIsObject: Ox.isObject(self.options.info), infoIsObject: Ox.isObject(self.options.info),
infoPadding: self.options.itemWidth == 64 ? 4 : 6
lineLength: self.options.itemWidth == 64 ? 15 : 23, lineLength: self.options.itemWidth == 64 ? 15 : 23,
lines: self.options.itemWidth == 64 ? 4 : 5, lines: self.options.itemWidth == 64 ? 4 : 5,
url: Ox.UI.PATH + 'png/transparent.png' url: Ox.UI.PATH + 'png/transparent.png'
@ -55,9 +56,8 @@ Ox.IconItem = function(options, self) {
self.title = $('<div>').css({fontSize: self.fontSize + 'px'}).html(self.title); self.title = $('<div>').css({fontSize: self.fontSize + 'px'}).html(self.title);
self.info = $('<div>').append( self.info = $('<div>').append(
self.options.info.css({ self.options.info.css({
width: Math.round(self.options.itemWidth / 2) + 'px', padding: '0 ' + infoPadding + 'px',
padding: 0, margin: '1px auto',
margin: '1px auto 1px auto',
fontSize: self.fontSize + 'px', fontSize: self.fontSize + 'px',
textShadow: 'none' textShadow: 'none'
}) })