From d3fda96803c4a982acec3044a9b603425928395e Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 20 Mar 2007 11:34:14 +0000 Subject: [PATCH] Updated styles git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5836 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/themes/default/style.css | 169 ++++++++++++++++++ include/sieve/class_sieveElement_Require.inc | 4 + .../sieve/templates/block_indent_start.tpl | 13 ++ include/sieve/templates/block_indent_stop.tpl | 12 ++ include/sieve/templates/edit_frame_base.tpl | 18 +- include/sieve/templates/element_comment.tpl | 4 +- include/sieve/templates/element_fileinto.tpl | 18 +- include/sieve/templates/element_require.tpl | 23 +-- include/sieve/templates/object_container.tpl | 9 +- .../sieve/templates/object_test_container.tpl | 4 +- 10 files changed, 227 insertions(+), 47 deletions(-) create mode 100644 include/sieve/templates/block_indent_start.tpl create mode 100644 include/sieve/templates/block_indent_stop.tpl diff --git a/html/themes/default/style.css b/html/themes/default/style.css index d9bc643b3..a9bcbc647 100644 --- a/html/themes/default/style.css +++ b/html/themes/default/style.css @@ -1067,3 +1067,172 @@ ul.step4_container, div.step4_container { margin-right:2px; float:left; } + + + + + + + + +/************************ + * Sieve + * The following styles are + * used to display the sieve + * management user interface + ************************/ + +/* Editing dialog styles + */ + +table.sieve_default_table { + width:100%; + margin: 0px; + border-spacing: 0px ; + padding:0px; +} + + +/* Editing surface */ +table.editing_surface { + width:100%; + margin: 0px; + padding:0px; +} + +/* Editing surface menu */ +td.editing_surface_menu { + background-color: #CCCCCC; + border: 1px solid #AAAAAA; + padding:5px; +} + +/* Editing surface content */ +td.editing_surface_content { + background-color: #FFFFFF; + margin: 0px; + padding:0px; +} + +/* Error message will be displayed as follows */ +div.sieve_error_msgs { + background-color: #ff8d00; + color: #000000; + padding:5px; + background-image: url("images/warning.png"); + background-repeat: no-repeat; + font-weight: bold; +} + +/* Source editing area */ +textarea.editing_source { + width:100%; + height:330px; +} + + +/************* + * Object container + *************/ + +/* The container itself */ +table.object_container_container { + width:100%; + border-spacing: 0px ; + background-color:#EEEEEE; + border: solid 1px #AAAAAA; +} + +/* Container cell top left */ +td.object_container_cell_top_left { + background-color: #DDDDDD; + text-align:center; +} + +/* Container cell top right */ +td.object_container_cell_top_right { + background-color: #DDDDDD; + text-align:left; + padding:2px; + border-bottom: solid 1px #AAAAAA; +} + +/* Container cell bottom left */ +td.object_container_cell_bottom_left { + width:5px; + background-color: #DDDDDD; + text-align:center; + border-right: solid 1px #AAAAAA; +} + + +/************* + * Sieve comment + *************/ + +/* Container */ +table.sieve_comment_container { + margin:0px; + padding:0px; + border-spacing: 0px ; + width:100%; + background-color: #EEEEEE; +} + +/* Editing area */ +textarea.sieve_comment_area { + width:100%; + height:80px; +} + + +/************* + * Sieve require + *************/ + +/* Container */ +table.sieve_require_container { + margin:0px; + padding:0px; + border-spacing: 0px ; + width:100%; + background-color: #EEEEEE; +} + +/* Editing area */ +input.sieve_require_input { + width:100%; + border-spacing: 0px ; +} + + +/************* + * Sieve fileinto + *************/ + +/* Container */ +table.sieve_fileinto_container { + margin:0px; + padding:0px; + border-spacing: 0px ; + width:100%; + background-color: #EEEEEE; +} + +/* Editing area */ +input.sieve_fileinto_input { + width:300px; +} +select.sieve_fileinto_input { + width:300px; +} + + + + + + + + + + diff --git a/include/sieve/class_sieveElement_Require.inc b/include/sieve/class_sieveElement_Require.inc index fac16e296..ee7f12a2d 100644 --- a/include/sieve/class_sieveElement_Require.inc +++ b/include/sieve/class_sieveElement_Require.inc @@ -68,8 +68,12 @@ class sieve_require function get_sieve_script_part() { + if(count($this->data)){ $tmp = sieve_create_strings($this->data); return("require ".$tmp.";\n"); + }else{ + return(""); + } } function execute() diff --git a/include/sieve/templates/block_indent_start.tpl b/include/sieve/templates/block_indent_start.tpl new file mode 100644 index 000000000..017a104c0 --- /dev/null +++ b/include/sieve/templates/block_indent_start.tpl @@ -0,0 +1,13 @@ + + + + +
+ + + + + + + + + + + + +
+ +
+ diff --git a/include/sieve/templates/block_indent_stop.tpl b/include/sieve/templates/block_indent_stop.tpl new file mode 100644 index 000000000..470449e21 --- /dev/null +++ b/include/sieve/templates/block_indent_stop.tpl @@ -0,0 +1,12 @@ +
+ +
+
diff --git a/include/sieve/templates/edit_frame_base.tpl b/include/sieve/templates/edit_frame_base.tpl index 67c47b4af..83d62a026 100644 --- a/include/sieve/templates/edit_frame_base.tpl +++ b/include/sieve/templates/edit_frame_base.tpl @@ -1,7 +1,7 @@ - +
- - diff --git a/include/sieve/templates/element_comment.tpl b/include/sieve/templates/element_comment.tpl index c08743922..5baf64e8e 100644 --- a/include/sieve/templates/element_comment.tpl +++ b/include/sieve/templates/element_comment.tpl @@ -1,4 +1,4 @@ -
+ @@ -17,23 +17,19 @@
+ {if $Script_Error != ""} - - - - -
- {$Script_Error} -
+
+ {$Script_Error} +
{/if} {if $Mode == "Structured"} {$Contents} {else} - + {/if}
+
diff --git a/include/sieve/templates/element_fileinto.tpl b/include/sieve/templates/element_fileinto.tpl index 977fa37b9..65db0481f 100644 --- a/include/sieve/templates/element_fileinto.tpl +++ b/include/sieve/templates/element_fileinto.tpl @@ -1,7 +1,7 @@ -
{t}Comment{/t} @@ -16,7 +16,7 @@ {if $Small} {$Comment} {else} - + {/if}
+
- - + +
- {t}Move mail into folder{/t} + + {t}Move mail into folder{/t} {if $User_Mode} @@ -12,15 +12,19 @@
- {t}Folder{/t} + + + {t}Folder{/t} {if $User_Mode} - + {else} - {html_options values=$Boxes output=$Boxes selected=$Selected} {/if} +
diff --git a/include/sieve/templates/element_require.tpl b/include/sieve/templates/element_require.tpl index b6561615f..3a3f261f3 100644 --- a/include/sieve/templates/element_require.tpl +++ b/include/sieve/templates/element_require.tpl @@ -1,18 +1,8 @@ -{if $LastErrorCnt != 0} - - - - - -
- {t}Error{/t} - -{/if} - - - +
{foreach from=$LastError item=val key=key} @@ -24,15 +14,8 @@
- {$LastError[$key]} +
{$LastError[$key]}
- +
-{if $LastErrorCnt != 0} - -
-{/if} - diff --git a/include/sieve/templates/object_container.tpl b/include/sieve/templates/object_container.tpl index 2cb822785..71b68806a 100644 --- a/include/sieve/templates/object_container.tpl +++ b/include/sieve/templates/object_container.tpl @@ -1,10 +1,9 @@ - +
- - -
+   - + {t}Move down{/t} @@ -23,7 +22,7 @@
+ %%OBJECT_CONTENT%% diff --git a/include/sieve/templates/object_test_container.tpl b/include/sieve/templates/object_test_container.tpl index 83e11183c..8ec4fd668 100644 --- a/include/sieve/templates/object_test_container.tpl +++ b/include/sieve/templates/object_test_container.tpl @@ -1,6 +1,6 @@ - +
-
+ {if $DisplayAdd} -- 2.30.2