From ff402bd8de1edd97bb06d30d7600212b5fc22f16 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 28 Aug 2007 19:33:29 +0000 Subject: moved css files to assets folder. --- framework/Web/UI/WebControls/TKeyboard.php | 2 +- framework/Web/UI/WebControls/TTabPanel.css | 71 --------------------- framework/Web/UI/WebControls/TTabPanel.php | 2 +- framework/Web/UI/WebControls/assets/keyboard.css | 80 ++++++++++++++++++++++++ framework/Web/UI/WebControls/assets/tabpanel.css | 71 +++++++++++++++++++++ framework/Web/UI/WebControls/keyboard.css | 80 ------------------------ 6 files changed, 153 insertions(+), 153 deletions(-) delete mode 100644 framework/Web/UI/WebControls/TTabPanel.css create mode 100644 framework/Web/UI/WebControls/assets/keyboard.css create mode 100644 framework/Web/UI/WebControls/assets/tabpanel.css delete mode 100644 framework/Web/UI/WebControls/keyboard.css (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/TKeyboard.php b/framework/Web/UI/WebControls/TKeyboard.php index 58af07ce..301e6cf3 100644 --- a/framework/Web/UI/WebControls/TKeyboard.php +++ b/framework/Web/UI/WebControls/TKeyboard.php @@ -143,7 +143,7 @@ class TKeyboard extends TWebControl protected function registerStyleSheet() { if(($url=$this->getCssUrl())==='') - $url=$this->publishAsset('keyboard.css',__CLASS__); + $url=$this->getApplication()->getAssetManager()->publishFilePath(dirname(__FILE__).DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'keyboard.css'); $this->getPage()->getClientScript()->registerStyleSheetFile($url,$url); } diff --git a/framework/Web/UI/WebControls/TTabPanel.css b/framework/Web/UI/WebControls/TTabPanel.css deleted file mode 100644 index 43a42c60..00000000 --- a/framework/Web/UI/WebControls/TTabPanel.css +++ /dev/null @@ -1,71 +0,0 @@ -.tab-panel -{ - position: relative; - float: left; - width: 100%; -} - -.tab-normal -{ - font-family: Verdana, Helvetica, Arial; - font-size: 12px; - display: inline; - margin: 1px -5px 1px 5px; - float: left; - padding: 3px 6px 4px 6px; - background: rgb(234,242,255); - border: 1px solid; - border-color: rgb(120,172,255); - z-index: 1; - position: relative; - top: 0; -} - -.tab-active -{ - position: relative; - display: inline; - float: left; - - font-family: Verdana, Helvetica, Arial; - font-size: 12px; - - border: 1px solid rgb(120,172,255); - border-bottom: 0; - z-index: 3; - padding: 2px 6px 8px 6px; - margin: 1px -6px -2px 0px; - top: -2px; - background: white; -} - -.tab-view -{ - clear: both; - border: 1px solid rgb(120,172,255); - z-index: 2; - position: relative; - top: -2px; - padding: 10px; -} - -.tab-active a -{ - color: black; - text-decoration: none; - font-weight: bold; -} - -.tab-normal a -{ - color: gray; - text-decoration: none; - font-weight: bold; -} - -.tab-normal a:hover, .tab-normal a:focus -{ - color: rgb(120,172,255); - text-decoration: none; - font-weight: bold; -} \ No newline at end of file diff --git a/framework/Web/UI/WebControls/TTabPanel.php b/framework/Web/UI/WebControls/TTabPanel.php index 394f7326..d4524534 100644 --- a/framework/Web/UI/WebControls/TTabPanel.php +++ b/framework/Web/UI/WebControls/TTabPanel.php @@ -384,7 +384,7 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler protected function registerStyleSheet() { if(($url=$this->getCssUrl())==='') - $url=$this->publishAsset('TTabPanel.css',__CLASS__); + $url=$this->getApplication()->getAssetManager()->publishFilePath(dirname(__FILE__).DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'tabpanel.css'); $this->getPage()->getClientScript()->registerStyleSheetFile($url,$url); } diff --git a/framework/Web/UI/WebControls/assets/keyboard.css b/framework/Web/UI/WebControls/assets/keyboard.css new file mode 100644 index 00000000..ad88d76b --- /dev/null +++ b/framework/Web/UI/WebControls/assets/keyboard.css @@ -0,0 +1,80 @@ +div.Keyboard +{ + -moz-background-clip: -moz-initial; + -moz-background-origin: -moz-initial; + -moz-background-inline-policy: -moz-initial; + -moz-user-select: none; + + display: block; + position: absolute; + border: 1px solid #698977; + background-color: #DDDDDD; + z-index: 1000 !important; + visibility: hidden; + padding: 4px 4px 4px 4px; + text-align: center; +} + +div.Keyboard div.Line +{ + width: 267px; + height: 18px; +} + +div.Keyboard div.Key +{ + width: 17px; + height: 17px; + margin: 1px 0px 0px 1px; + overflow: hidden; + float: left; + display: inline; +} + +div.Keyboard div.Key div.Key1, +div.Keyboard div.Key div.Key2 +{ + overflow: hidden; + border: 1px solid #A5A5A5; + background-color: #F7F7F7; + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #556C5F; + font-weight: normal; + text-align: center; + line-height: 15px; + vertical-align: middle; + display: block; + cursor: pointer; +} + +div.Keyboard div.Key div.Hover +{ + color: #E02C03; + border-color: #E0431D; +} + +div.Keyboard div.Key div.Active +{ + color: #FFFFFF; + background-color: #E0431D; +} + +div.Keyboard.Shift div.Key div.Key1, +div.Keyboard.Caps div.L div.Key1, +div.Keyboard.Off div.Key div.Key2 +{ + display: none; +} + +div.Keyboard.Caps div.L div.Key2 +{ + display: block; +} + +div.Keyboard div.Bksp {width: 31px;} +div.Keyboard div.Exit {width: 33px;} +div.Keyboard div.Caps {width: 33px;} +div.Keyboard div.\\ {width: 24px;} +div.Keyboard div.Del {width: 24px;} +div.Keyboard div.Shift {width: 42px;} \ No newline at end of file diff --git a/framework/Web/UI/WebControls/assets/tabpanel.css b/framework/Web/UI/WebControls/assets/tabpanel.css new file mode 100644 index 00000000..43a42c60 --- /dev/null +++ b/framework/Web/UI/WebControls/assets/tabpanel.css @@ -0,0 +1,71 @@ +.tab-panel +{ + position: relative; + float: left; + width: 100%; +} + +.tab-normal +{ + font-family: Verdana, Helvetica, Arial; + font-size: 12px; + display: inline; + margin: 1px -5px 1px 5px; + float: left; + padding: 3px 6px 4px 6px; + background: rgb(234,242,255); + border: 1px solid; + border-color: rgb(120,172,255); + z-index: 1; + position: relative; + top: 0; +} + +.tab-active +{ + position: relative; + display: inline; + float: left; + + font-family: Verdana, Helvetica, Arial; + font-size: 12px; + + border: 1px solid rgb(120,172,255); + border-bottom: 0; + z-index: 3; + padding: 2px 6px 8px 6px; + margin: 1px -6px -2px 0px; + top: -2px; + background: white; +} + +.tab-view +{ + clear: both; + border: 1px solid rgb(120,172,255); + z-index: 2; + position: relative; + top: -2px; + padding: 10px; +} + +.tab-active a +{ + color: black; + text-decoration: none; + font-weight: bold; +} + +.tab-normal a +{ + color: gray; + text-decoration: none; + font-weight: bold; +} + +.tab-normal a:hover, .tab-normal a:focus +{ + color: rgb(120,172,255); + text-decoration: none; + font-weight: bold; +} \ No newline at end of file diff --git a/framework/Web/UI/WebControls/keyboard.css b/framework/Web/UI/WebControls/keyboard.css deleted file mode 100644 index ad88d76b..00000000 --- a/framework/Web/UI/WebControls/keyboard.css +++ /dev/null @@ -1,80 +0,0 @@ -div.Keyboard -{ - -moz-background-clip: -moz-initial; - -moz-background-origin: -moz-initial; - -moz-background-inline-policy: -moz-initial; - -moz-user-select: none; - - display: block; - position: absolute; - border: 1px solid #698977; - background-color: #DDDDDD; - z-index: 1000 !important; - visibility: hidden; - padding: 4px 4px 4px 4px; - text-align: center; -} - -div.Keyboard div.Line -{ - width: 267px; - height: 18px; -} - -div.Keyboard div.Key -{ - width: 17px; - height: 17px; - margin: 1px 0px 0px 1px; - overflow: hidden; - float: left; - display: inline; -} - -div.Keyboard div.Key div.Key1, -div.Keyboard div.Key div.Key2 -{ - overflow: hidden; - border: 1px solid #A5A5A5; - background-color: #F7F7F7; - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 11px; - color: #556C5F; - font-weight: normal; - text-align: center; - line-height: 15px; - vertical-align: middle; - display: block; - cursor: pointer; -} - -div.Keyboard div.Key div.Hover -{ - color: #E02C03; - border-color: #E0431D; -} - -div.Keyboard div.Key div.Active -{ - color: #FFFFFF; - background-color: #E0431D; -} - -div.Keyboard.Shift div.Key div.Key1, -div.Keyboard.Caps div.L div.Key1, -div.Keyboard.Off div.Key div.Key2 -{ - display: none; -} - -div.Keyboard.Caps div.L div.Key2 -{ - display: block; -} - -div.Keyboard div.Bksp {width: 31px;} -div.Keyboard div.Exit {width: 33px;} -div.Keyboard div.Caps {width: 33px;} -div.Keyboard div.\\ {width: 24px;} -div.Keyboard div.Del {width: 24px;} -div.Keyboard div.Shift {width: 42px;} \ No newline at end of file -- cgit v1.2.3