From 0d40a9636d8ce617f42dcf213706c87b4975499a Mon Sep 17 00:00:00 2001 From: Catouse Date: Sat, 2 Nov 2013 11:38:34 +0800 Subject: [PATCH] * replace some image icon with font icon. --- module/project/css/story.css | 8 -------- www/theme/default/style.css | 18 +++++++++++++++--- www/theme/default/style.ie7.css | 13 ++++++++++++- www/theme/fontawesome/font/zenicon.eot | Bin 0 -> 2228 bytes www/theme/fontawesome/font/zenicon.svg | 15 +++++++++++++++ www/theme/fontawesome/font/zenicon.ttf | Bin 0 -> 2064 bytes www/theme/fontawesome/font/zenicon.woff | Bin 0 -> 2140 bytes 7 files changed, 42 insertions(+), 12 deletions(-) delete mode 100644 module/project/css/story.css create mode 100644 www/theme/fontawesome/font/zenicon.eot create mode 100644 www/theme/fontawesome/font/zenicon.svg create mode 100644 www/theme/fontawesome/font/zenicon.ttf create mode 100644 www/theme/fontawesome/font/zenicon.woff diff --git a/module/project/css/story.css b/module/project/css/story.css deleted file mode 100644 index 0302007abd..0000000000 --- a/module/project/css/story.css +++ /dev/null @@ -1,8 +0,0 @@ -.icon-green-task-create {width: 22px;height: 18px; background:url(theme/default/images/main/zt-icons.png) 0px -582px;} -.icon-green-task-create:before{display: none;} - -.icon-green-task-batchCreate {width: 22px;height: 18px; background:url(theme/default/images/main/zt-icons.png) -44px -582px;} -.icon-green-task-batchCreate:before {display: none;} - -.icon-green-testcase-batchCreate {width: 22px;height: 18px; background:url(theme/default/images/main/zt-icons.png) -22px -582px;} -.icon-green-testcase-batchCreate:before{display: none;} \ No newline at end of file diff --git a/www/theme/default/style.css b/www/theme/default/style.css index 9c3a08b9a5..8e999969d8 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -117,9 +117,6 @@ i[class^="icon-"],i[class*=" icon-"],.link-icon i[class^="icon-"],.link-icon i[c i[class^="icon-"].disabled,i[class*=" icon-"].disabled,i[class^="icon-"].disabled:hover,i[class*=" icon-"].disabled:hover,i[class^="icon-"].disabled:before,i[class*=" icon-"].disabled:before{color: #ccc;} -.icon-green-testcase-createCase,.icon-green-story-createCase{width: 22px; height: 18px; background:url(images/main/zt-icons.png) -22px -582px;} -.icon-gray-testcase-createCase,.icon-gray-story-createCase{width: 22px; height: 18px; background:url(images/main/zt-icons.png) -22px -604px;} - .change-show,.change-hide,.log-desc,.log-asc,.diff-all,.diff-sort{display: inline-block; font-family: FontAwesome;border: 1px solid #555;color: #555; font-size: 13px;font-weight: lighter; width: 14px;height: 13px;line-height: 13px;text-align: center;} .change-show:hover,.change-hide:hover,.log-desc:hover,.log-asc:hover,.diff-all:hover,.diff-sort:hover{background-color: #333;color: #fff} .change-show:before{content: "\f067";} @@ -129,6 +126,21 @@ i[class^="icon-"].disabled,i[class*=" icon-"].disabled,i[class^="icon-"].disable .diff-all:before{content: "\f0b2";} .diff-sort:before{content: "\f036";} +/* zenicon */ +@font-face {font-family: 'zenicon';src:url('../fontawesome/font/zenicon.eot');src:url('../fontawesome/font/zenicon.eot?#iefix') format('embedded-opentype'),url('../fontawesome/font/zenicon.ttf') format('truetype'),url('../fontawesome/font/zenicon.woff') format('woff'),url('../fontawesome/font/zenicon.svg#zenicon') format('svg');font-weight: normal;font-style: normal;} +.icon-green-testcase-createCase:before,.icon-green-story-createCase:before,.icon-green-task-create:before, +.icon-green-task-batchCreate:before,.icon-green-testcase-batchCreate:before,.icon-gray-testcase-createCase:before, +.icon-insert-template:before,.icon-stack:before,.icon-share2:before,.icon-usecases:before,.icon-tasks:before{font-family: 'zenicon';speak: none;font-style: normal;font-weight: normal;font-variant: normal;text-transform: none;line-height: 1;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;} +.icon-insert-template:before {content: "\e768";} +.icon-stack:before, +.icon-green-task-batchCreate:before {content: "\e769";} +.icon-share2:before {content: "\e76a";} +.icon-green-testcase-batchCreate:before, +.icon-gray-testcase-createCase:before, +.icon-usecases:before,.icon-green-testcase-createCase,.icon-green-story-createCase {content: "\e600";} +.icon-tasks:before,.icon-green-task-create:before {content: "\e601";} + + /*-----------------------BUTTONS -----------------------------------*/ .btn,a.btn,.button-s,.button-c,.button-b,#reversechecker,#allchecker,#goto{padding: 4px 15px;background-color: #f8f8f8;-webkit-transition: border-color .3s;-moz-transition: border-color .3s;-o-transition: border-color .3s;transition: border-color .3s;-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;border: 1px solid #dcdcdc;margin: 0 10px 0 0;position: relative;display: inline-block;*display: inline;*zoom: 1;cursor: pointer;text-shadow: 0 1px 0 #fff;text-decoration: none;line-height: 1.5;font-size: 14px;color: #444;transition-delay: 0,0;transition-duration: .5s,.5s;transition-property: all;} .btn-primary,a.btn-primary {background-color: #114F8E;border: 1px solid #036;text-shadow: none;color: #fff;} diff --git a/www/theme/default/style.ie7.css b/www/theme/default/style.ie7.css index e8aa5f3e92..39c4d0f5fe 100644 --- a/www/theme/default/style.ie7.css +++ b/www/theme/default/style.ie7.css @@ -168,4 +168,15 @@ .diff-all{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} .diff-sort{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} .icon-green-user-unlock{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} -.icon-gray-user-unlock{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} \ No newline at end of file +.icon-gray-user-unlock{*zoom:expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-insert-template:before {*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-stack:before{*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-green-task-batchCreate:before {*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-share2:before {*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-green-testcase-batchCreate:before{*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-gray-testcase-createCase:before{*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-usecases:before{*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-green-testcase-createCase{*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-green-story-createCase {*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-tasks:before{*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} +.icon-green-task-create:before {*zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '');} \ No newline at end of file diff --git a/www/theme/fontawesome/font/zenicon.eot b/www/theme/fontawesome/font/zenicon.eot new file mode 100644 index 0000000000000000000000000000000000000000..8ea9972b7e3673674823a28ffcc7411504906fc0 GIT binary patch literal 2228 zcmaJ@O>7%g5T4n$_Qr9%{*Ud%aqMhNQoD5;uY(mUat(@v_@_TqLP8>LnkKFCr?yCK z#bFQJ+e0N(gisHNLo1p~d*fhnsCp=z3rImoQF7oyQ9uHF!%(8ezWbvIJJw8!ZH+HWR@-4Nw`IYAScK^;UIi*RT zU2I-hCmtewj(E@F^5ruh{`1Fu(w6|_ua*{?r{VY~Z2)f{*1EQAbpnf(WRA( zm-+!bq?13Sm)GW-A}w!{{we99mFA^&n*KMW^Bl6P&6S0t@r|EIze{6GudiLWNb@98 zerG!f8SonClWs^43At)>{0(&UvEK`+0ok2%qSdCKXhCD2Z`RUz<9Ngv^}JFskgcWc zfgWp9v)j0Hu1!x2*=^WaYPZ|J4oJx_EMEeN5RmM_JqYEjPIEHKC4nr1xCC>wHCN#l zKz^hoO;zerwIs$=p*fmf&Pa*6AdqdW#bc_Z6@;b=B_k3w%wVD>^ms;C1`3VGGUQmN zWF={=fF;y$M5V9}`V2_arLrEcQ|^+aiNNHE`e<)-Fr3y8=7WJ^_0>EhqxBP$xf#6> zRL3W4xlk(XW5l({ilWH1Q*V}gdn@mpneq1Z^?4;(mZg`Dlm^&Q(WVb1lEsu9^Po;-LjJOt0N;}ZsU(iw>M3lVg@p78Ye_=Q^91LX#LZN|dNKGdrGTBvD zT#z{)w9G@vh#)h1B8kBOrot|Wa>G;bDh&U}b-hs>LY@Ne?HKD)K`^h-zh(cyTf zV*XOWoVjV<*RiJ4Y@pquGu5IKtI)ZNLIQ?Cqq$9h4ple;v+xGZQ;%y^YWc7>MYEmq zxO$v~upW=P`v2Iir>joV!{*R1jFw?wqh&PAh9#S=hC%=5!jkdC5Juw(t(|}dQ5zaY zqeTM6BQz+MXdfswo&{NTV|Bu?);|bw0H2%>;333>538QM)yrVgPokd*c+$LO-olf3 zW0Ao{ywQ;)1EEbngxgH!1D$34`+&o_hTSziK?;?TlCRXUGBrbGHI>f@x6U-Kur$?T z+*6|3?UY;96H_tPReWO3I?m=%K3urr9~jDpbG2eBRjlQhBbrCMK+7FB5M2-E2udL0 ze+xT-6R~$ZT2X#ZZucJV7Cs8j{0V-UQTXBW^eY|ioGz{cemgQz z48KSDg~miZXWB~&E9_1-i5k7RZExll^};q*@N3+Zj#<$P+~%`Pr#gTv=E>JHNKN@3!u~=eq*vq4}$TZ~Z1*Bz_vQa0)I{|GM?1 P@HTx3*xw5@vlr689qw=@ literal 0 HcmV?d00001 diff --git a/www/theme/fontawesome/font/zenicon.svg b/www/theme/fontawesome/font/zenicon.svg new file mode 100644 index 0000000000..5165144424 --- /dev/null +++ b/www/theme/fontawesome/font/zenicon.svg @@ -0,0 +1,15 @@ + + + +Generated by IcoMoon + + + + + + + + + + + \ No newline at end of file diff --git a/www/theme/fontawesome/font/zenicon.ttf b/www/theme/fontawesome/font/zenicon.ttf new file mode 100644 index 0000000000000000000000000000000000000000..7d481fe0b05893cc7bc80837703dbc9febefb3b1 GIT binary patch literal 2064 zcmaJ?O>7%g5T4n$_Qr9%{*Ud%aqMhNQoC^)uY(mUat(@v00BxHA|W9WH%*gP`4b6J z8gbYI_i~7Yf)MHfacD(zfg1;lL)Am!96$;}ijo5tKmiHVu9?|g*GVb7^?NhlH$U%Z z->d-vzzYTlx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