egroupware_official/etemplate/templates/default/etemplate2.css

919 lines
15 KiB
CSS
Raw Normal View History

/**
2012-03-20 16:26:34 +01:00
* Styles for etemplate2 widgets
*
* @version: $Id$
*/
2012-03-20 16:26:34 +01:00
/**
* Top level
*/
#container {
/*margin: 10px;
border: 1px solid gray;*/
padding: 10px;
background-color: white;
}
2012-07-11 21:01:06 +02:00
/**
* Basic rules
*/
input,button,select {
margin: 1px;
padding: 0px;
}
/**
* VBox widget
*/
div.et2_vbox>* {
display: block;
}
/**
* HBox widget
*/
div.et2_hbox div.et2_hbox {
display: inline;
}
div.et2_hbox {
white-space: nowrap;
}
div.et2_hbox>* {
text-align: left;
}
div.et2_hbox_left {
float: left;
}
div.et2_hbox_al_center {
text-align: center;
}
div.et2_hbox_al_right {
text-align: right;
}
div.et2_hbox_right {
float: right;
clear: right;
}
div.et2_hbox>div {
display: inline-block;
}
2012-03-20 16:26:34 +01:00
/**
* Placeholder widget - used for un-implemented widgets
*/
.et2_placeholder {
display: inline-block;
border: 1px solid cornflowerblue;
background-color: #FCFCFC;
padding: 3px;
margin: 1px;
}
.et2_placeholder .et2_caption {
display: block;
font-size: 8pt;
margin: 0 0 5px 0;
font-weight: bold;
color: #2E2E2E;
Major update of the et2_widget internal structure. The following changes were made: - All attributes of the widgets are now parsed from XML before the widget itself is created. These attributes plus all default values are then added to an associative array. The associative array is passed as second parameter to the init function of et2_widget, but is also available as this.options *after* the constructor of the et2_widget baseclass has been called. The et2_widget constructor also calls a function parseArrayMgrAttrs(_attrs) - in this function widget implementations can read the values from e.g. the content and validation_errors array and merge it into the given _attrs associative array. After the complete internal widgettree is completely loaded and created the "loadingFinished" function gets called and invokes all given setter functions. After that it "glues" the DOM tree together. This should also (I didn't measure it) be a bit faster than before, when the DOM-Tree was created on the fly. Please have a look at the changes of the et2_textbox widget to see how this affects writing widgets. Note: The "id" property is copied to the object scope on the top of the et2_widget constructor. - When widgets are cloned the "options" array gets passed along to the newly created widget. This means that changes made on the widgets during runtime are not automatically copied to the clone - as this didn't happen anyhow it is not a really disadvantage. On the other side there should be no difference between widgets directly inside the "overlay" xet tag and widgets which are inside instanciated templates. - The selbox widget doesn't work anymore - it relied on the loadAttributes function which isn't available anymore. et2_selbox should use the parseArrayMgrAttrs function to access - I've commented out some of the "validator"-code in etemplate2.js as it created some error messages when destroying the widget tree.
2011-08-19 18:00:44 +02:00
cursor: pointer;
text-shadow: rgba(255, 255, 255, 0.5) 0 1px 0;
}
.et2_placeholder .et2_attr {
display: block;
font-size: 8pt;
color: #3030A0;
margin: 2px 0 2px 0;
}
2012-03-20 16:26:34 +01:00
/**
* Label widget, and labels for other widgets
*/
.et2_label {
color: #101050;
}
input.et2_url {
margin-right: 6px;
padding-right: 8px;
}
a.et2_url {
background-position: center;
background-repeat: no-repeat;
cursor: pointer;
margin: -4px;
padding: 2px;
padding-left: 16px;
margin-left: -10px;
}
a.et2_url.email {
2012-03-20 16:26:34 +01:00
background-image: url(images/email.png);
}
a.et2_url.phone {
2012-03-20 16:26:34 +01:00
background-image: url(images/phone.png);
}
a.et2_url.url {
2012-03-20 16:26:34 +01:00
background-image: url(images/url.png);
}
2012-03-20 16:26:34 +01:00
/**
* Button widget - text only, and icon
*/
.et2_button {
cursor: pointer;
text-align: center;
font-size: 9pt;
text-shadow: 1px 1px #E0E0E0;
}
.et2_button_text, input[type=button] {
background-color: #E0E0E0;
2012-03-20 16:26:34 +01:00
background-image: url(images/gradient01.png);
background-position: center;
background-repeat: repeat-x;
margin: 5px;
padding: 3px;
border: 1px solid silver;
color: #101010;
}
.et2_button_icon {
border: none;
background: transparent;
padding: 2px;
}
button.et2_button_text:hover, input[type=button]:hover {
color: #050505;
border: 1px solid gray;
background-color: #D0D0EE;
}
button.et2_button_text:active, input[type=button]:active {
2012-03-20 16:26:34 +01:00
background-image: url(images/gradient02.png);
background-color: #D0D0E0;
}
button.et2_button_text:focus, input[type=button]:focus {
border: 1px solid #2c3d6f;
color: #202d52;
outline: none;
}
/**
* Color picker widget
*/
.et2_color {
padding: .5ex;
height: 2ex;
width: 2ex;
border: 1px solid silver;
}
2012-03-20 16:26:34 +01:00
/**
* Text box
*/
.et2_textbox {
resize: none;
}
.et2_bold {
font-weight: bold;
}
.et2_italic {
font-style: italic;
}
2012-03-15 23:57:55 +01:00
/**
* Multi-select widget
*/
.et2_selectbox .ui-widget-header {
padding: 2px 6px 0px 6px;
}
.et2_selectbox .ui-widget-header ul {
float: right;
}
.et2_selectbox .ui-widget-header li {
float: left;
padding: 2px;
padding-top: 0px
}
.et2_selectbox .ui-widget-header li span.ui-icon {
float: left;
margin-top: -2px;
}
.et2_selectbox .ui-multiselect-checkboxes {
overflow-y: scroll;
position: relative;
text-align: left;
}
.et2_selectbox .ui-multiselect-checkboxes li {
margin: 0px;
clear: both;
padding-left: 26px;
padding-right: 3px;
text-decoration: none;
list-style-image: none;
list-style-type: none;
text-indent: -26px;
}
2012-05-30 00:47:21 +02:00
.et2_selectbox .ui-multiselect-checkboxes ul {
margin: 0px auto;
padding-left: 0px;
clear:both;
text-decoration: none;
list-style-image: none;
list-style-type: none;
}
.et2_selectbox .ui-multiselect-checkboxes ul>label {
border-bottom: 1px solid black;
}
2012-03-15 23:57:55 +01:00
.et2_selectbox .ui-multiselect-checkboxes label {
display: block;
border: 1px solid transparent;
}
.et2_selectbox input[type="checkbox"] {
margin: 3px;
}
.et2_selectbox .ui-multiselect-checkboxes img {
float: right;
height: 1.8em;
}
/* Read-only multi-select */
ul.et2_selectbox {
margin: 0px;
padding: 0px;
}
.et2_selectbox li {
text-decoration: none;
list-style-image: none;
list-style-type: none;
}
2012-05-30 00:47:21 +02:00
/**
* Select account dialog
*/
2012-03-15 23:57:55 +01:00
/**
* Date / Time widgets
*/
span.et2_date {
min-width: 130px;
}
span.et2_date input.et2_date {
2012-07-16 16:35:36 +02:00
min-width: 16.5ex;
2012-03-09 19:46:29 +01:00
background-repeat: no-repeat;
background-position: top right;
background-size: contain;
}
span.et2_date input[type=time].et2_date {
min-width: 6ex;
}
span.et2_date span {
background-position: center;
background-repeat: no-repeat;
color: #101010;
cursor: pointer;
padding-top: 3px;
padding-left: 22px;
text-align: center;
font-size: 9pt;
}
2012-05-24 17:45:29 +02:00
/**
* Diff widget
*/
.diff thead,.author {
display: none;
}
.diff .ui-icon {
margin-top: -16px;
float: right;
}
/** Display a loading icon **/
.loading {
2012-03-23 15:51:33 +01:00
background-position: center;
background-repeat: no-repeat;
2012-03-20 16:26:34 +01:00
background-image: url('images/ajax-loader.gif');
}
2011-09-02 00:07:30 +02:00
/**
* File upload
*/
.et2_file .progress {
width: 300px;
2011-09-02 00:07:30 +02:00
max-height: 6em;
overflow: auto;
margin-left: 20px;
}
2011-09-02 00:07:30 +02:00
.et2_file .progress span.progressBar {
height: 5px;
width: 150px;
max-width: 150px;
display: inline;
}
2011-09-02 00:07:30 +02:00
/* Remove icon displayed when hovering */
.et2_file .progress li div.remove {
display: none;
cursor: pointer;
2012-04-05 22:08:57 +02:00
margin: 0px;
}
.et2_file .progress li:hover div.remove {
width: 16px;
height: 16px;
float: right;
display: block;
2012-03-20 16:26:34 +01:00
background-image: url("images/close.png");
background-position: center;
background-repeat: no-repeat;
}
.et2_file .progress p {
background-color: green;
height:5px;
margin: 0px;
2011-09-02 00:07:30 +02:00
}
.et2_file .progress li {
color: blue;
margin: .5ex;
2011-09-02 00:07:30 +02:00
}
/* Hide progress bar when completed */
.et2_file .progress li.success > span.progressBar {
display: none;
2011-09-02 00:07:30 +02:00
}
/**
* Autocomplete - used in link widget
* Restricting result size
*/
.ui-autocomplete {
max-height: 20ex;
overflow-y: auto;
/* prevent horizontal scrollbar */
overflow-x: hidden;
}
/**
* Link wiget(s)
*/
/* Link entry - x button*/
div.et2_link_entry {
white-space: nowrap;
}
div.et2_link_entry:after {
display: inline-block;
content: ".";
height: 0;
visibility: hidden;
margin: -20px;
}
/* Special layout for inside nm grid */
2012-07-11 21:01:06 +02:00
.et2_nextmatch div.et2_link_entry {
padding-right: 4px;
}
.et2_nextmatch .et2_link_entry:after {
2012-07-11 21:01:06 +02:00
margin: -12px;
}
div.et2_link_entry select {
width: 39%;
}
div.et2_link_entry input.ui-autocomplete-input {
width: 61%;
padding-bottom: 1px;
}
.et2_link_entry.no_app input.ui-autocomplete-input {
width: 100%;
}
2012-07-11 21:01:06 +02:00
.et2_link_entry.no_app select {
display: none;
}
.et2_link_entry .ui-icon-close {
display: inline-block;
background-color: inherit;
border: none;
position: relative;
top: 3px;
left: -18px;
cursor: pointer;
}
/* Link to */
.et2_link_to {
width: 350px;
overflow-x: show;
}
.et2_link_to button {
display: inline;
float: right;
height: 5ex;
}
.et2_link_to span.status {
background-repeat: no-repeat;
background-position: 3px center;
2012-03-20 16:26:34 +01:00
background-image:url(images/tick.png);
width: 22px;
height: 22px;
display: block;
float: right;
}
.et2_link_to .progress {
max-height: 12em;
}
.et2_link_to .progress > .success input {
width: 100%;
margin-right: -20px; /* Leave room for remove icon */
}
.et2_link_to .progress li.success span.ui-icon-comment {
display: none;
float: right;
cursor: pointer;
margin-right: 5px;
}
.et2_link_to .progress li:hover.success span.ui-icon-comment {
display: inline;
}
.et2_link_to .et2_button_icon {
float: left;
width: 22px;
}
.et2_link {
cursor: pointer;
color: #003075;
text-decoration: none;
}
.et2_link:hover {
text-decoration: underline;
}
ul.et2_link_string {
list-style-type: none;
display: inline;
padding: 0px;
}
.et2_link_string li {
display: inline;
}
.et2_link_string li:not(:last-child):after {
content: ', ';
}
.et2_link_list tr {
cursor: pointer;
}
2011-09-14 02:06:04 +02:00
.et2_link_list td.remark {
font-style: italic;
}
.et2_link_list td.delete {
cursor: pointer;
width: 16px;
height: 16px;
float: right;
display: none;
2012-03-20 16:26:34 +01:00
background-image: url("images/close.png");
2011-09-14 02:06:04 +02:00
background-position: center;
background-repeat: no-repeat;
padding: 0px;
}
.et2_link_list .icon img, .et2_link_list td.icon {
width: 16px;
height: 16px;
}
.et2_link_list tr:hover td.delete {
display: inline;
}
.egw_tooltip
{
position: fixed;
border: 1px solid #897f51;
padding: 3px;
background-color: #FDF9DB;
max-width: 300px;
color: black;
}
/**
* Tabs widget
*/
.et2_tabflag {
display: inline-block;
margin-right: 5px;
padding: 5px;
cursor: pointer;
border: 1px solid silver;
background-color: #E0E0E0;
2012-03-20 16:26:34 +01:00
background-image: url(images/gradient01.png);
background-position: center;
background-repeat: repeat-x;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.et2_tabflag:hover {
color: #050505;
border: 1px solid gray;
background-color: #D0D0EE;
}
.et2_tabflag:active {
2012-03-20 16:26:34 +01:00
background-image: url(images/gradient02.png);
background-color: #D0D0E0;
}
.et2_tabs {
border-width: 0px 1px 1px 1px;
border-style: solid;
border-color: silver;
padding: 5px;
overflow-y: auto;
}
.et2_tabflag.active {
border-bottom: 1px solid white;
background-color: white;
background-image: none;
}
.et2_tabheader {
2012-03-20 16:26:34 +01:00
background-image: url(images/tab_header_bg.png);
background-position: bottom;
background-repeat: repeat-x;
}
2012-03-26 21:46:51 +02:00
/**
* VFS widget(s)
*/
2012-03-27 01:30:27 +02:00
ul.et2_vfs {
padding-left: 0px;
margin: 1px;
2012-03-27 01:30:27 +02:00
}
2012-03-26 21:46:51 +02:00
.et2_vfs li.vfsFilename {
display: inline;
}
.et2_vfs li.vfsFilename:not(:last-child):after {
padding: 0.25ex;
}
/**
* Validation
*/
input[required] {
background-color: #ffffd0;
}
input.invalid {
border: 1px solid #a6261d;
background-color: #faecec;
}
.error {
-moz-border-radius: 0 4px 4px 0;
-moz-box-shadow: 0 0 6px #DDDDDD;
background-color: #FFFE36;
border: 1px solid #E1E16D;
color: #000000;
display: none;
font-size: 11px;
height: 15px;
padding: 4px 10px;
}
.error p {
margin: 0;
}
/**
* hrule widget
*/
hr {
border-style: none;
border-top: 1px solid silver;
height: 1px;
margin: 10px 0px 10px 0px;
}
/**
* grid widget
*/
table.et2_grid {
border-collapse: collapse;
}
.et2_grid td {
/* border: 1px dashed silver;*/
}
/**
* Create some spacing for widgets inside labels
*/
label input, label span, label div, label select, label textarea {
margin-left: 1ex;
margin-right: 1ex;
}
/**
* Message styles
*/
/* Style used for a generic message (such as success messages or validation errors) */
.message {
display: block;
border: 1px solid gray;
padding: 3px 3px 3px 22px;
margin: 5px 0px 5px 0px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background-repeat: no-repeat;
background-position: 3px center;
clear: left;
max-width: 500px;
}
.message.floating {
display: inline-block;
margin: 0px 5px 0px 5px;
}
.message.validation_error {
color: #a93030;
font-style: italic;
background-color: #f3d4d0;
border-color: #a93030;
2012-03-20 16:26:34 +01:00
background-image:url(images/error.png);
}
.message.success {
font-style: normal;
background-color: #e5f3d0;
color: #98a930;
border-color: #9ea930;
2012-03-20 16:26:34 +01:00
background-image:url(images/tick.png);
}
.message.hint {
font-style: normal;
background-color: #d9e2ed;
border-color: #56729a;
color: #56729a;
2012-03-20 16:26:34 +01:00
background-image:url(images/hint.png);
}
/**
* Nextmatch widget
*/
.et2_nextmatch {
/* background-color: silver;*/
}
/* Left & right headers*/
.et2_nextmatch > div > .header {
margin-top: -20px;
border: none;
}
.nextmatch_header .header_count {
padding: 0px 20px;
margin: 0px 20px;
margin-top: 5px;
border: 1px solid #E0E0E0;
float:right;
font-size: 150%;
text-align: center
}
.nextmatch_header > .filters {
padding-left: 5px;
2012-03-15 23:57:55 +01:00
}
2012-04-05 22:08:57 +02:00
.nextmatch_header > .filters select {
margin-right: 2ex;
}
.nextmatch_header .et2_button_icon {
vertical-align: middle;
}
.nextmatch_header > .filters .et2_button_icon {
margin-top: 8px;
}
.nextmatch_sortheader {
color: #003075;
cursor: pointer;
padding-right: 10px;
margin-right: 10px;
background-repeat: no-repeat;
background-position: right center;
}
.nextmatch_sortheader:hover {
text-decoration: underline;
}
.nextmatch_sortheader.asc {
font-weight: bold;
2012-03-20 16:26:34 +01:00
background-image: url(images/up.png);
}
.nextmatch_sortheader.desc {
font-weight: bold;
2012-03-20 16:26:34 +01:00
background-image: url(images/down.png);
}
.nextmatch_resize_helper {
border-right: 1px dotted gray;
min-height: 100%;
background-color: gray;
opacity: 0.5;
}
.et2_clickable {
cursor: pointer;
}
div.et2_progress {
display: inline-block;
border: 1px solid black;
background-color: white;
width: 30px;
padding: 1px;
margin: 2px;
text-align: left;
}
div.et2_progress > div {
background-color: #D00000;
height: 5px;
}
.egwResizeOverlay {
position: fixed;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
z-index: 99999;
cursor: ew-resize;
}
.egwResizeHelper {
position: absolute;
display: block;
z-index: 99998;
opacity: 0.5;
background-color: #829cbc;
cursor: ew-resize;
}
2012-03-30 16:20:27 +02:00
/**
* Indent grid sublevels
*/
.et2_nextmatch .subentry.level_1 div.et2_vbox {
margin-left: 2.5em;
}
.et2_nextmatch .subentry.level_2 div.et2_vbox {
margin-left: 5em;
}
.et2_nextmatch .subentry.level_3 div.et2_vbox {
margin-left: 7.5em;
}
/**
* itempicker widget
*/
.et2_itempicker {
display: block;
position: relative;
margin: 0;
padding: 0;
width: 100%;
height: 256px;
}
.et2_itempicker_left {
display: block;
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 50px;
overflow: hidden;
}
.et2_itempicker_right {
display: block;
position: absolute;
margin: 0;
top: 0;
left: 49px;
right: 0;
bottom: 0;
border: 1px solid #b6b6b6;
background-color: #f9f9f9;
}
2012-03-30 16:20:27 +02:00
.et2_itempicker_right_container {
display: block;
position: relative;
width: 100%;
height: 100%;
}
.et2_itempicker_app_select {
list-style-type: none;
padding: 0;
}
2012-03-30 16:20:27 +02:00
.et2_itempicker_app_select li {
display: block;
margin: 0;
padding: 6px;
}
.et2_itempicker_app_select li.selected {
border: 1px solid #b6b6b6;
border-right: 1px solid transparent;
background-color: #f9f9f9;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.et2_itempicker_search {
display: inline-block;
margin: 1em;
margin-bottom: 0;
margin-right: 0;
width: 67%;
padding: 0.2em;
}
.et2_itempicker_clear {
position: relative;
top: 3px;
left: -20px;
}
.et2_itempicker_button_action {
position: absolute;
margin: 1em;
top: 0;
right: 0;
}
.et2_itempicker_itemlist {
display: block;
border: 1px solid #b6b6b6;
margin: 1em;
margin-bottom: 0;
padding: 0;
height: 67%;
background-color: #ffffff;
overflow: auto;
}
.et2_itempicker_itemlist ul {
margin: 0;
padding: 0;
list-style-type: none;
}
.et2_itempicker_itemlist li {
display: block;
margin: 0;
padding: 4px;
color: #284d8a;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.et2_itempicker_itemlist li.row_on {
background-color: #f2f9fe;
}
.et2_itempicker_itemlist li.selected {
color: #ffffff;
background-color: #3875d7;
}