Move CSS into proper position

This commit is contained in:
Nathan Gray 2012-03-20 15:26:34 +00:00
parent 11ba27722e
commit 670bda71e3
22 changed files with 39 additions and 50 deletions

View File

@ -105,10 +105,6 @@ class etemplate_new extends etemplate_widget_template
// Include the etemplate2 javascript code // Include the etemplate2 javascript code
egw_framework::validate_file('.', 'etemplate2', 'etemplate'); egw_framework::validate_file('.', 'etemplate2', 'etemplate');
// Include the jQuery-UI CSS - many more complex widgets use it
$theme = 'smoothness';
egw_framework::includeCSS("/phpgwapi/js/jquery/jquery-ui/$theme/jquery-ui-1.8.16.custom.css");
if (!$this->rel_path) throw new egw_exception_assertion_failed('No (valid) template read!'); if (!$this->rel_path) throw new egw_exception_assertion_failed('No (valid) template read!');
// generate new etemplate request object // generate new etemplate request object
@ -151,7 +147,12 @@ class etemplate_new extends etemplate_widget_template
// missing dependency, thought egw:uses jquery.jquery.tools does NOT work, maybe we should rename it to jquery-tools // missing dependency, thought egw:uses jquery.jquery.tools does NOT work, maybe we should rename it to jquery-tools
// egw_framework::validate_file('jquery','jquery.tools.min'); // egw_framework::validate_file('jquery','jquery.tools.min');
egw_framework::includeCSS('/etemplate/js/test/test.css'); egw_framework::includeCSS('/etemplate/templates/default/etemplate2.css');
// Include the jQuery-UI CSS - many more complex widgets use it
$theme = 'smoothness';
egw_framework::includeCSS("/phpgwapi/js/jquery/jquery-ui/$theme/jquery-ui-1.8.16.custom.css");
common::egw_header(); common::egw_header();
if ($output_mode != 2) if ($output_mode != 2)
{ {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 B

View File

@ -1,30 +1,12 @@
/** /**
* Styles for etemplate2 tests * Styles for etemplate2 widgets
* *
* @version: $Id$ * @version: $Id$
*/ */
/* Stuff for the standalone test webpage */ /**
* Top level
body, table, td { */
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
/* overflow: hidden;*/
}
#linklist a {
color: blue;
display: block;
}
#linklist a:visited {
color: blue;
}
#linklist a:hover {
color: #5050FF;
}
#container { #container {
/*margin: 10px; /*margin: 10px;
border: 1px solid gray;*/ border: 1px solid gray;*/
@ -32,12 +14,6 @@ body, table, td {
background-color: white; background-color: white;
} }
.header {
color: #111;
margin: 30px 0 5px 0;
border-bottom: 1px solid #111;
}
/** /**
* VBox widget * VBox widget
*/ */
@ -74,6 +50,9 @@ div.et2_hbox_right {
clear: right; clear: right;
} }
/**
* Placeholder widget - used for un-implemented widgets
*/
.et2_placeholder { .et2_placeholder {
display: inline-block; display: inline-block;
border: 1px solid cornflowerblue; border: 1px solid cornflowerblue;
@ -99,6 +78,9 @@ div.et2_hbox_right {
margin: 2px 0 2px 0; margin: 2px 0 2px 0;
} }
/**
* Label widget, and labels for other widgets
*/
.et2_label { .et2_label {
color: #101050; color: #101050;
} }
@ -114,15 +96,18 @@ a.et2_url {
} }
a.et2_url.email { a.et2_url.email {
background-image: url(gfx/email.png); background-image: url(images/email.png);
} }
a.et2_url.phone { a.et2_url.phone {
background-image: url(gfx/phone.png); background-image: url(images/phone.png);
} }
a.et2_url.url { a.et2_url.url {
background-image: url(gfx/url.png); background-image: url(images/url.png);
} }
/**
* Button widget - text only, and icon
*/
.et2_button { .et2_button {
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
@ -133,7 +118,7 @@ a.et2_url.url {
} }
.et2_button_text { .et2_button_text {
background-color: #E0E0E0; background-color: #E0E0E0;
background-image: url(gfx/gradient01.png); background-image: url(images/gradient01.png);
background-position: center; background-position: center;
background-repeat: repeat-x; background-repeat: repeat-x;
@ -153,7 +138,7 @@ button.et2_button_text:hover {
background-color: #D0D0EE; background-color: #D0D0EE;
} }
button.et2_button_text:active { button.et2_button_text:active {
background-image: url(gfx/gradient02.png); background-image: url(images/gradient02.png);
background-color: #D0D0E0; background-color: #D0D0E0;
} }
button.et2_button_text:focus { button.et2_button_text:focus {
@ -162,6 +147,9 @@ button.et2_button_text:focus {
outline: none; outline: none;
} }
/**
* Text box
*/
.et2_textbox { .et2_textbox {
resize: none; resize: none;
} }
@ -251,7 +239,7 @@ span.et2_date span {
.loading { .loading {
background-position: center right; background-position: center right;
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: url('gfx/ajax-loader.gif'); background-image: url('images/ajax-loader.gif');
} }
/** /**
@ -282,7 +270,7 @@ span.et2_date span {
height: 16px; height: 16px;
float: right; float: right;
display: block; display: block;
background-image: url("gfx/close.png"); background-image: url("images/close.png");
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
@ -331,7 +319,7 @@ span.et2_date span {
.et2_link_to span.status { .et2_link_to span.status {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 3px center; background-position: 3px center;
background-image:url(gfx/tick.png); background-image:url(images/tick.png);
width: 22px; width: 22px;
height: 22px; height: 22px;
display: block; display: block;
@ -381,7 +369,7 @@ ul.et2_link_string {
height: 16px; height: 16px;
float: right; float: right;
display: none; display: none;
background-image: url("gfx/close.png"); background-image: url("images/close.png");
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
padding: 0px; padding: 0px;
@ -416,7 +404,7 @@ ul.et2_link_string {
border: 1px solid silver; border: 1px solid silver;
background-color: #E0E0E0; background-color: #E0E0E0;
background-image: url(gfx/gradient01.png); background-image: url(images/gradient01.png);
background-position: center; background-position: center;
background-repeat: repeat-x; background-repeat: repeat-x;
@ -432,7 +420,7 @@ ul.et2_link_string {
} }
.et2_tabflag:active { .et2_tabflag:active {
background-image: url(gfx/gradient02.png); background-image: url(images/gradient02.png);
background-color: #D0D0E0; background-color: #D0D0E0;
} }
@ -450,7 +438,7 @@ ul.et2_link_string {
} }
.et2_tabheader { .et2_tabheader {
background-image: url(gfx/tab_header_bg.png); background-image: url(images/tab_header_bg.png);
background-position: bottom; background-position: bottom;
background-repeat: repeat-x; background-repeat: repeat-x;
} }
@ -541,7 +529,7 @@ label input, label span, label div, label select, label textarea {
font-style: italic; font-style: italic;
background-color: #f3d4d0; background-color: #f3d4d0;
border-color: #a93030; border-color: #a93030;
background-image:url(gfx/error.png); background-image:url(images/error.png);
} }
.message.success { .message.success {
@ -549,7 +537,7 @@ label input, label span, label div, label select, label textarea {
background-color: #e5f3d0; background-color: #e5f3d0;
color: #98a930; color: #98a930;
border-color: #9ea930; border-color: #9ea930;
background-image:url(gfx/tick.png); background-image:url(images/tick.png);
} }
.message.hint { .message.hint {
@ -557,7 +545,7 @@ label input, label span, label div, label select, label textarea {
background-color: #d9e2ed; background-color: #d9e2ed;
border-color: #56729a; border-color: #56729a;
color: #56729a; color: #56729a;
background-image:url(gfx/hint.png); background-image:url(images/hint.png);
} }
/** /**
@ -604,12 +592,12 @@ label input, label span, label div, label select, label textarea {
.nextmatch_sortheader.asc { .nextmatch_sortheader.asc {
font-weight: bold; font-weight: bold;
background-image: url(gfx/up.png); background-image: url(images/up.png);
} }
.nextmatch_sortheader.desc { .nextmatch_sortheader.desc {
font-weight: bold; font-weight: bold;
background-image: url(gfx/down.png); background-image: url(images/down.png);
} }
.nextmatch_resize_helper { .nextmatch_resize_helper {

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 393 B

After

Width:  |  Height:  |  Size: 393 B

View File

Before

Width:  |  Height:  |  Size: 963 B

After

Width:  |  Height:  |  Size: 963 B

View File

Before

Width:  |  Height:  |  Size: 194 B

After

Width:  |  Height:  |  Size: 194 B

View File

Before

Width:  |  Height:  |  Size: 1015 B

After

Width:  |  Height:  |  Size: 1015 B

View File

Before

Width:  |  Height:  |  Size: 701 B

After

Width:  |  Height:  |  Size: 701 B

View File

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 202 B

View File

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 249 B

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 246 B

After

Width:  |  Height:  |  Size: 246 B

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 431 B

View File

Before

Width:  |  Height:  |  Size: 778 B

After

Width:  |  Height:  |  Size: 778 B

View File

Before

Width:  |  Height:  |  Size: 408 B

After

Width:  |  Height:  |  Size: 408 B

View File

Before

Width:  |  Height:  |  Size: 299 B

After

Width:  |  Height:  |  Size: 299 B

View File

Before

Width:  |  Height:  |  Size: 199 B

After

Width:  |  Height:  |  Size: 199 B

View File

Before

Width:  |  Height:  |  Size: 537 B

After

Width:  |  Height:  |  Size: 537 B

View File

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 189 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB