From 3dd377e2725a5c578caef5f8e60438e7db1db1dd Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Mon, 16 Mar 2015 16:02:49 +0100 Subject: [PATCH] Color quota display orange/red when over 80/90 % --- skins/larry/images/quota.png | Bin 2033 -> 4967 bytes skins/larry/styles.css | 5 +++++ skins/larry/ui.js | 1 + 3 files changed, 6 insertions(+) diff --git a/skins/larry/images/quota.png b/skins/larry/images/quota.png index 61c1d414eede965c2763940a739fad924cefa5dc..b9ca00cd6826f6ccf77162cee7b8a4f295172eb3 100644 GIT binary patch literal 4967 zcmY*dbyQUE79|E5#E}?a2oV^%MnPIyhM_S)!l9%=q(nfv!GWQqyBlc->6C^c6hV-b zl$I2DBd*_jzxU6*cir!Rgg+0_jfUeVD$HT(|DJv;F#@%W0@bHg;*Kkh{ z75Inn@W3!-1vxFZsh?>i54ChYe%fxVTF+ZQDL#eUE@0%k-NBz6)rL!o60FqNumy?_ zY49KEC71bG*viVvX6Y%=QG|y){i7l>d8FVw&9(G5CGEvCdke`;d)ez! zd%q1PvZ`FT4{IdBR^g2gy+UOP^%dJL!WgF7#1fYHies7H&{XlcZ;>OG0_LN5`Ra;o-ltR86x2q#U zY^?``54V!g z{TdAnDUH0=X(nQbXGWKc?lnG=o)iJPRt_DEGSJ*1_-aNrV2C z_rYycB2yQfsr(%mg6HOUtOEs5^C&%bx`LGHbk6iPga{E$WH|b=@4?iO!BbviF~sz! zaW_01b>ULqqd}v*dM}f=u#C472*Ec%EFm}3Rr+j%gJuNb~;89w>^mv!^ec)dDK_lw6v9AB!`4? zLGT-2-;z8$ALXM-L@_&nyv?~n@-RJq|74|w2*92r4|3{zL~VH;^E`Z2%^Hh8Tvi$* z%>YIkk4SPCWMkvVkpPofEB{({?cB!QyI+f}YXoCa#~xAodYU%Rrg|;On!BYM0+jtq zn3lIu$2rl`R^MM8dCCN_@X#cqmdH*1UFM4bXshD-Z+cQkY;oresq)E?_qF7Z<+wQy zp>8;QUlR}#q6d}8szF{;;be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mJK`4sSM`gbB#Q`FOm%|CN=R39k)#c9)t)2$D*#;iDzZjFSM$DtIyF}j z&DG|(a@0VsET*nSUw=H)6@#b2C?97tU0Lze6XOu!%DO5~30H%SdCMGvT!lK+Tm>{& z+rpKxT29GOrmNOSK#Dt-;p);ee@u$VWw<)u@JWy+ge$N0x`=+!ReKJ`13#|}D=MzE z_uyZ1W$ZFpKv%7a;9^(3gLGBt_wb>_;%$GXtI8ze#3auXu79q0WH+3kx!SI-YN{E~ zRc|oSk`KAM=1#h2YamyCLF5x%7Sa_~!g>Ne$Q3?3=23GcXs))3tLzsH=&GS0SOdDM z2sjh>Ay*NP$QN5kR~=3kiSBaJ)jo_ti20g$$Q3@rnFL)SHparPa5Pu{+EraC?5aEw zbbzh`es?3}DrXw!;*UXB91^__@_B__A%Q>OC!SaGB)%&SxjpeyOQ0J=grnXasoD=FlAFm*RzS2(aM9M~0(=ITfJ24;0w@77cu;Q#;t M07*qoM6N<$f_G*iW&i*H diff --git a/skins/larry/styles.css b/skins/larry/styles.css index c8c9a038a..2f3cefdb0 100644 --- a/skins/larry/styles.css +++ b/skins/larry/styles.css @@ -2231,6 +2231,11 @@ a.iconbutton:focus, background: url(images/quota.png) -100px 0 no-repeat; } +#quotadisplay.p90, +#quotadisplay.p100 { + color: #e03221; +} + table.quota-info { border-spacing: 0; border-collapse: collapse; diff --git a/skins/larry/ui.js b/skins/larry/ui.js index a4c29fd9e..a1c00eb29 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -532,6 +532,7 @@ function rcube_mail_ui() y -= step; element.css('background-position', '0 -' + y + 'px'); + element.attr('class', 'countdisplay p' + (Math.round(p.percent / 10) * 10)); if (p.table) { if (!menu.length)