From d53c7d889bd72719da9ed6c13ac5c1abf663f864 Mon Sep 17 00:00:00 2001 From: larsz Date: Wed, 1 Feb 2012 01:50:14 +0200 Subject: [PATCH] fixed checkboxes in edit forms (issue #41) static prototype: http://dl.dropbox.com/u/1750887/projects/vesta2/web-domain.html --- web/css/main.css | 26 +++++++--- web/images/checkbox-selector-2012-01-31.png | Bin 0 -> 1523 bytes web/js/templates.js | 54 ++++++++++---------- 3 files changed, 47 insertions(+), 33 deletions(-) create mode 100644 web/images/checkbox-selector-2012-01-31.png diff --git a/web/css/main.css b/web/css/main.css index 602e3474c..a823f3bb9 100644 --- a/web/css/main.css +++ b/web/css/main.css @@ -3,7 +3,7 @@ Title : Vesta Author : Eugen Lobicov, eugen.lobicov@gmail.com created : November 27, 2009 -last updated : January 30, 2012 +last updated : February 1, 2012 - - - - - - - - - - - - - - - - - - */ html{ @@ -594,7 +594,8 @@ input::-moz-focus-inner{ width:11px; height:11px; margin:2px 2px 0 0; - background:url(../images/checkbox-selector-2012-01-29.png) no-repeat; + /*background:url(../i/checkbox-selector-2012-01-29.png) no-repeat;*/ + background:url(../images/checkbox-selector-2012-01-31.png) no-repeat; cursor:pointer; } .checkbox-selector .selector-title{ @@ -1674,17 +1675,30 @@ input::-moz-focus-inner{ } - .b-new-entry .checkbox{ + /*.b-new-entry .checkbox,*/ + .b-new-entry span.ui-checkbox{ display:block; float:left; width:18px; height:18px; margin:6px 0 0; - background:url(/images/form-checkboxes.png) no-repeat; + /*background:url(../i/checkbox-1.png) no-repeat;*/ + /*background:url(../i/form-checkboxes.png) no-repeat;*/ + background:url(../images/checkbox-selector-2012-01-31.png) no-repeat -12px 0; } - .b-new-entry .checkbox:hover{ - background-position:0 -100px; + .b-new-entry .ui-checkbox-hover{ + cursor:pointer; + } + .b-new-entry span.ui-checkbox-hover{ + background-position:-12px -20px; } + .b-new-entry span.ui-checkbox-state-checked{ + background-position:-12px -40px; + } + .b-new-entry span.ui-checkbox-state-checked-hover{ + background-position:-12px -60px; + } + .b-new-entry .stats-settings{ padding-left:40px; } diff --git a/web/images/checkbox-selector-2012-01-31.png b/web/images/checkbox-selector-2012-01-31.png new file mode 100644 index 0000000000000000000000000000000000000000..0e0b31e33b031fda36d7b3584a4e100337a44b04 GIT binary patch literal 1523 zcmbVLeM}o=96rPVqAd7_WZ;IELP!Xscl~5-+7alrtbrnFn}Hh}EA3H^a=qj3poN&h zHsiLa(}4P*Du{${@pJ7NT1lephu1&xtC^N*9NF-hjK0lsC#M7l##$b=P(osGI z1f`7>Mlu*-1-*)fT%wqfb6BU_Dd6O;td-umCicQ0yMcswT-ckE52(@nHx$Qr(KMq) zpZon+VOn2GqL3D)iDJsg7A`N!8;X=FDAd3Zl%608eYcpAPcQ_XPmrKOCjv7utBJ7D zTWF0&sX+h@8Xnxfo`WDn*Bt0=`foREUyzJS9&8ON2=xfj}S>OGG06VILPE zjKw%=Wqe%Ib1t$c*V_m<$wo#{3M)ZPDvH3tt%Rl6-d>XS)Z5{j_V$vzCl_MPK;E+c zqs+b|ws*YC-KJ$XyKRqJ*GXI!F)=Zfm6cbnT&b7I_xG^;~MKjidf`Xi!9L!>bAV{TB-RWrR@9*z(^=@ozxLhu67p)I{Sd`HcdM>Y=2$J$+-02sIx)k#Y4t9XO~6Ld(4JAWX)|#&t!L)?!yK5 e#4~pT;1B2\ \
\ - \ - \ + \ + \
\
\ \ @@ -420,8 +420,8 @@ App.Templates.html = { \
\
\ - \ - \ + \ + \
\
\ \ @@ -441,8 +441,8 @@ App.Templates.html = {
\ ~!:NS~!\
\ - \ - \ + \ + \
\
\ \ @@ -616,8 +616,8 @@ App.Templates.html = { \
\
\ - \ - \ + \ + \
\ \
\ @@ -630,12 +630,12 @@ App.Templates.html = {
\ \ \
\ - \ - \ + \ + \
\
\ \ @@ -869,8 +869,8 @@ App.Templates.html = { \
\
\ - \ - \ + \ + \
\
\ \ @@ -983,8 +983,8 @@ App.Templates.html = { \
\
\ - \ - \ + \ + \
\
\ \