WIP of new hint presentation for preferences

This commit is contained in:
Hadi Nategh 2016-09-29 18:39:44 +02:00
parent 5d05c2fac3
commit 132d69b9f3
4 changed files with 124 additions and 134 deletions

View File

@ -10,25 +10,40 @@
table.prefTable { table.prefTable {
width: 100%; width: 100%;
position: relative;
}
table.prefTable tbody tr.prefRow:first-child > .prefHelpColumn {
background-image:url(../../../api/templates/default/images/hint.png);
background-repeat: no-repeat;
background-position: center;
position: absolute;
height: 99%;
} }
tr.prefRow { tr.prefRow {
position: relative; position: relative;
} }
tr.prefRow:hover {background-color:#f0f0ff}
td.prefName { td.prefName {
width: 50%; width: 50%;
} }
tr.prefRow > td { tr.prefRow > td {
vertical-align: bottom; /* otherwise help will cover bigger prefValue */ vertical-align: bottom; /* otherwise help will cover bigger prefValue */
} }
/*.prefValueColumn {border-right:none !important;}*/
.prefHelpColumn {
border: none !important;
padding: 0 !important;
}
.prefHelp { .prefHelp {
position: fixed; position: absolute;
display: none; display: none;
width: 98%; width: 255px;
background-color: lightyellow; max-height: 99%;
border: 1px solid black; height: 98%;
border-radius: 10px; background-color: #f0f0ff;
padding: 5px; padding: 5px;
margin-top: 5px; margin-top: -4px;
top: 0;
} }
tr.prefRow:hover .prefHelp { tr.prefRow:hover .prefHelp {
display: block; display: block;

View File

@ -5,19 +5,22 @@
<template id="preferences.settings.tab1" template="" lang="" group="0" version="1.9.001"> <template id="preferences.settings.tab1" template="" lang="" group="0" version="1.9.001">
<grid width="100%" class="prefTable egwGridView_grid"> <grid width="100%" class="prefTable egwGridView_grid">
<columns> <columns>
<column width="50%"/> <column width="35%"/>
<column/> <column />
<column width="260px"/>
</columns> </columns>
<rows> <rows>
<row class="prefRow"> <row class="prefRow">
<box class="prefName"> <box class="prefName">
<description for="@${row}[name]" id="${row}[label]"/> <description for="@${row}[name]" id="${row}[label]"/>
<html id="${row}[help]" class="prefHelp"/>
</box> </box>
<box> <box class="prefValueColumn">
<widget type="@${row}[type]" id="@${row}[name]" onchange="@${row}[onchange]" no_lang="1" class="prefValue"/> <widget type="@${row}[type]" id="@${row}[name]" onchange="@${row}[onchange]" no_lang="1" class="prefValue"/>
<description id="${row}[default]" no_lang="1" class="prefDefault"/> <description id="${row}[default]" no_lang="1" class="prefDefault"/>
</box> </box>
<box class="prefHelpColumn">
<html id="${row}[help]" class="prefHelp"/>
</box>
</row> </row>
</rows> </rows>
</grid> </grid>

View File

@ -22,10 +22,21 @@
*/ */
table.prefTable { table.prefTable {
width: 100%; width: 100%;
position: relative;
}
table.prefTable tbody tr.prefRow:first-child > .prefHelpColumn {
background-image: url(../../../api/templates/default/images/hint.png);
background-repeat: no-repeat;
background-position: center;
position: absolute;
height: 99%;
} }
tr.prefRow { tr.prefRow {
position: relative; position: relative;
} }
tr.prefRow:hover {
background-color: #f0f0ff;
}
td.prefName { td.prefName {
width: 50%; width: 50%;
} }
@ -33,15 +44,21 @@ tr.prefRow > td {
vertical-align: bottom; vertical-align: bottom;
/* otherwise help will cover bigger prefValue */ /* otherwise help will cover bigger prefValue */
} }
/*.prefValueColumn {border-right:none !important;}*/
.prefHelpColumn {
border: none !important;
padding: 0 !important;
}
.prefHelp { .prefHelp {
position: fixed; position: absolute;
display: none; display: none;
width: 98%; width: 255px;
background-color: lightyellow; max-height: 99%;
border: 1px solid black; height: 98%;
border-radius: 10px; background-color: #f0f0ff;
padding: 5px; padding: 5px;
margin-top: 5px; margin-top: -4px;
top: 0;
} }
tr.prefRow:hover .prefHelp { tr.prefRow:hover .prefHelp {
display: block; display: block;
@ -102,6 +119,9 @@ textarea.prefValue {
table.prefTable { table.prefTable {
width: 100%; width: 100%;
} }
table.prefTable tbody tr.prefRow:first-child > .prefHelpColumn {
background-image: url(../../../pixelegg/images/dialog_info.png);
}
tr.prefRow { tr.prefRow {
position: relative; position: relative;
} }
@ -113,34 +133,18 @@ tr.prefRow > td {
/* otherwise help will cover bigger prefValue */ /* otherwise help will cover bigger prefValue */
} }
.prefHelp { .prefHelp {
position: fixed; position: absolute;
background-color: #E6E6E6; display: none;
-webkit-box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5); width: 254px;
-moz-box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5); max-height: 99%;
box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.5); height: 97%;
border: 3px solid #679FD2; padding: 5px;
-webkit-border-top-right-radius: 0px; margin-top: -4px;
-webkit-border-bottom-right-radius: 15px; top: 0;
-webkit-border-bottom-left-radius: 15px; z-index: 1;
-webkit-border-top-left-radius: 0px; }
-moz-border-radius-topright: 0px; .prefHelpColumn {
-moz-border-radius-bottomright: 15px; border-left: 1px solid #e6e6e6 !important;
-moz-border-radius-bottomleft: 15px;
-moz-border-radius-topleft: 0px;
border-top-right-radius: 0px;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
border-top-left-radius: 0px;
/*.background-clip(padding-box);*/
right: 5px;
left: 5px;
top: 0px;
padding: 10px;
padding-left: 25px;
background-position-x: 5px;
min-width: 100px;
max-width: 90%;
z-index: 100000;
} }
tr.prefRow:hover .prefHelp { tr.prefRow:hover .prefHelp {
display: block; display: block;
@ -165,16 +169,12 @@ textarea.prefValue {
display: inline-block; display: inline-block;
padding-bottom: 5px; padding-bottom: 5px;
} }
/*###############################*/
.prefType, .prefType,
.prefApp { .prefApp {
/*margin: 0.3em;*/ /*margin: 0.3em;*/
-webkit-appearance: button; -webkit-appearance: button;
/*padding:10px;*/ /*padding:10px;*/
} }
/*img[src$="svg"]{
.gradient_vertical (@egw_color_2_a, @egw_color_2_a);
}*/
/*Preferences APP / left */ /*Preferences APP / left */
.prefApp { .prefApp {
background-image: url(../pixelegg/images/setup.png); background-image: url(../pixelegg/images/setup.png);
@ -192,19 +192,23 @@ textarea.prefValue {
} }
/*###############################*/ /*###############################*/
/*ADMIN DIALOG*/ /*ADMIN DIALOG*/
div#preferences-settings { #preferences-settings {
margin: -8px; margin: -8px;
} }
div#preferences-settings div.dialogHeader { #preferences-settings .et2_tabs,
#preferences-settings table.egwGridView_grid tbody {
border-bottom: none !important;
}
#preferences-settings div.dialogHeader {
height: 50px; height: 50px;
} }
div#preferences-settings div.dialogHeader select#preferences-settings_appname { #preferences-settings div.dialogHeader select#preferences-settings_appname {
min-width: 47%; min-width: 47%;
margin: 5px; margin: 5px;
-webkit-appearance: button; -webkit-appearance: button;
padding: 5px; padding: 5px;
} }
div#preferences-settings div.dialogHeader select#preferences-settings_type { #preferences-settings div.dialogHeader select#preferences-settings_type {
margin: 5px; margin: 5px;
min-width: 48%; min-width: 48%;
-webkit-appearance: button; -webkit-appearance: button;

View File

@ -42,6 +42,9 @@
table.prefTable { table.prefTable {
width: 100%; width: 100%;
} }
table.prefTable tbody tr.prefRow:first-child > .prefHelpColumn {
background-image:url(../../../pixelegg/images/dialog_info.png);
}
tr.prefRow { tr.prefRow {
position: relative; position: relative;
} }
@ -52,21 +55,17 @@ tr.prefRow > td {
vertical-align: bottom; /* otherwise help will cover bigger prefValue */ vertical-align: bottom; /* otherwise help will cover bigger prefValue */
} }
.prefHelp { .prefHelp {
position: fixed; position: absolute;
background-color: @gray_10; display: none;
.box_shadow_message; width: 254px;
border: 3px solid @egw_color_2_e; max-height: 99%;
.border_radius (0px, 15px, 15px, 0px); height: 97%;
right: 5px; padding: 5px;
left: 5px; margin-top: -4px;
top: 0px; top: 0;
padding: 10px; z-index: 1;
padding-left: 25px;
background-position-x: 5px;
min-width: 100px;
max-width: 90%;
z-index: 100000;
} }
.prefHelpColumn {border-left:1px solid #e6e6e6 !important;}
tr.prefRow:hover .prefHelp { tr.prefRow:hover .prefHelp {
display: block; display: block;
z-index: 10; /* FF: displays it under next prefName without */ z-index: 10; /* FF: displays it under next prefName without */
@ -87,80 +86,49 @@ tr.prefRow:hover .prefHelp {
padding-bottom: 5px; padding-bottom: 5px;
} }
/*###############################*/
.prefType, .prefApp { .prefType, .prefApp {
/*margin: 0.3em;*/ /*margin: 0.3em;*/
-webkit-appearance:button; -webkit-appearance:button;
/*padding:10px;*/ /*padding:10px;*/
} }
/*img[src$="svg"]{
.gradient_vertical (@egw_color_2_a, @egw_color_2_a);
}*/
/*Preferences APP / left */ /*Preferences APP / left */
.prefApp{ .prefApp {
background-image: url(../pixelegg/images/setup.png);
background-image: url(../pixelegg/images/setup.png); background-repeat: no-repeat;
background-repeat: no-repeat; background-position: 90% 50%;
background-position: 90% 50%; background-size: 16px 16px;
background-size: 16px 16px; margin-right: 1em;
margin-right: 1em;
} }
/*Preferences APP Settings / right*/ /*Preferences APP Settings / right*/
.prefType{ .prefType {
background-image: url(../pixelegg/images/setup.png);
background-image: url(../pixelegg/images/setup.png); background-repeat: no-repeat;
background-repeat: no-repeat; background-position: 90% 50%;
background-position: 90% 50%; background-size: 16px 16px;
background-size: 16px 16px;
} }
/*###############################*/ /*###############################*/
/*ADMIN DIALOG*/ /*ADMIN DIALOG*/
div#preferences-settings{ #preferences-settings {
.et2_tabs,table.egwGridView_grid tbody {border-bottom: none !important;}
margin: -8px; margin: -8px;
// Header
// Header div.dialogHeader {
div.dialogHeader { height: 50px;
height: 50px; // left
select#preferences-settings_appname {
// left min-width: 47%;
select#preferences-settings_appname{ margin: 5px;
min-width: 47%; -webkit-appearance:button;
margin: 5px; padding:5px;
-webkit-appearance:button; }
padding:5px; // right
} select#preferences-settings_type {
margin: 5px;
// right min-width: 48%;
select#preferences-settings_type{ -webkit-appearance:button;
margin: 5px; padding:5px;
min-width: 48%; }
-webkit-appearance:button; }
padding:5px;
}
}
} }