Fix styling for cal event tooltip in calendar

This commit is contained in:
Hadi Nategh 2014-01-07 10:34:11 +00:00
parent 3b971148d5
commit 08f8b755b1
4 changed files with 89 additions and 42 deletions

View File

@ -254,6 +254,10 @@ app.classes.calendar = AppJS.extend(
}, },
track:true, track:true,
open: function(event,ui){
ui.tooltip.removeClass("ui-tooltip");
ui.tooltip.addClass("calendar_uitooltip");
}
}); });
ttp.tooltip("enable"); ttp.tooltip("enable");
}, },

View File

@ -30,6 +30,20 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
*/ */
/* custom ui-tooltip style for calendar
*/
.calendar_uitooltip {
padding: 0px;
position: absolute;
border: none;
max-height: 400px;
z-index: 9999;
max-width: 300px;
-webkit-box-shadow: 0 0 5px;
-moz-box-shadow: 0 0 5px;
box-shadow: 0 0 5px;
}
.calendar_size120b { font-size: 120%; font-weight: bold; } .calendar_size120b { font-size: 120%; font-weight: bold; }
/* marks a day in the colum-header as today /* marks a day in the colum-header as today

View File

@ -479,6 +479,21 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
+. .#.* * * *. .*+----------------------------------+*. +. .#.* * * *. .*+----------------------------------+*.
*/ */
/* custom ui-tooltip style for calendar
*/
.calendar_uitooltip {
padding: 0px;
position: absolute;
border: none;
max-height: 400px;
z-index: 9999;
max-width: 300px;
-webkit-box-shadow: 0 0 5px;
-moz-box-shadow: 0 0 5px;
box-shadow: 0 0 5px;
}
.calendar_size120b { .calendar_size120b {
font-size: 120%; font-size: 120%;
font-weight: bold; font-weight: bold;

View File

@ -35,7 +35,7 @@ img.sideboxstar {
} }
.chzn-container { .chzn-container {
max-width: 85% !important; max-width: 85% !important;
margin-top: 0em margin-top: 0em
} }
@ -63,7 +63,7 @@ img.sideboxstar {
/* calender view*/ /* calender view*/
/*defind in layout_raster.less , because frame*/ /*defind in layout_raster.less , because frame*/
@ -90,8 +90,8 @@ div.calendar { position: relative; }
.calendar{ .calendar{
.button { /* "<<", "<", ">", ">>" buttons have this class */ .button { /* "<<", "<", ">", ">>" buttons have this class */
text-align: center; /* They are the navigation buttons */ text-align: center; /* They are the navigation buttons */
padding: 2px; /* Make the buttons seem like they're pressing */ padding: 2px; /* Make the buttons seem like they're pressing */
@ -381,22 +381,22 @@ div#calendar-edit{
.et2_tabheader{ .et2_tabheader{
background-color: transparent; background-color: transparent;
} }
// Size for tabs // Size for tabs
.et2_tabcntr { .et2_tabcntr {
height: 299px; height: 299px;
overflow: auto; overflow: auto;
table.et2_grid { table.et2_grid {
// Listendarstellung // Listendarstellung
tr:nth-child(even) {background: @color-even;} tr:nth-child(even) {background: @color-even;}
tr:nth-child(odd) {background: @color-odd;} tr:nth-child(odd) {background: @color-odd;}
} }
}
}
/*###########################################*/ /*###########################################*/
// Tab General // Tab General
@ -407,10 +407,10 @@ div#calendar-edit{
table.et2_grid{ table.et2_grid{
width: 72% !important; width: 72% !important;
td { td {
padding: 4px; padding: 4px;
} }
@ -422,8 +422,8 @@ div#calendar-edit{
// Terminsuche // Terminsuche
/* button#calendar-edit_freetime {background-image: url('images/add.png') !important;}*/ /* button#calendar-edit_freetime {background-image: url('images/add.png') !important;}*/
// hole day // hole day
.et2_checkbox, .et2_checkbox,
input#calendar-edit_whole_day {margin-left: 5px important; border-left: 10px solid red;} input#calendar-edit_whole_day {margin-left: 5px important; border-left: 10px solid red;}
@ -440,23 +440,23 @@ div#calendar-edit{
} }
} }
/*###########################################*/ /*###########################################*/
/*Tab Beschreibung*/ /*Tab Beschreibung*/
/*###########################################*/ /*###########################################*/
// Teilnehmer // Teilnehmer
#calendar-edit_calendar-edit-participants{ #calendar-edit_calendar-edit-participants{
tr.optional {background-color: @color-optional;} tr.optional {background-color: @color-optional;}
tbody{ tbody{
display: table; display: table;
width: 100%; width: 100%;
td {vertical-align: top; padding-top: 3px;} td {vertical-align: top; padding-top: 3px;}
@ -467,7 +467,7 @@ div#calendar-edit{
background-size: 24px 24px; background-size: 24px 24px;
.dimension_width_height_m; .dimension_width_height_m;
margin-left: 1em; margin-left: 1em;
&:hover {.Complete_Button_Icon_hover;} &:hover {.Complete_Button_Icon_hover;}
&active {.Complete_Button_Icon_active;} &active {.Complete_Button_Icon_active;}
} }
@ -499,7 +499,7 @@ div#calendar-edit{
} }
} }
/*###########################################*/ /*###########################################*/
// Wiederholung // Wiederholung
@ -529,11 +529,11 @@ div#calendar-edit{
tbody{ tbody{
display: table; display: table;
width: 100%; width: 100%;
.et2_link_to {width: auto !important;} .et2_link_to {width: auto !important;}
} }
span.et2_label {padding: 1em;} span.et2_label {padding: 1em;}
} }
/*###########################################*/ /*###########################################*/
@ -543,7 +543,7 @@ div#calendar-edit{
tbody{ tbody{
display: table; display: table;
width: 100%; width: 100%;
label.et2_label {white-space: nowrap; padding: 0 5px;} label.et2_label {white-space: nowrap; padding: 0 5px;}
tr.add_alarm_action {background-color: @color-optional; margin-bottom: 1em;} tr.add_alarm_action {background-color: @color-optional; margin-bottom: 1em;}
} }
@ -594,6 +594,20 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
*/ */
/* custom ui-tooltip style for calendar
*/
.calendar_uitooltip {
padding: 0px;
position: absolute;
border: none;
max-height: 400px;
z-index: 9999;
max-width: 300px;
-webkit-box-shadow: 0 0 5px;
-moz-box-shadow: 0 0 5px;
box-shadow: 0 0 5px;
}
.calendar_size120b { font-size: 120%; font-weight: bold; } .calendar_size120b { font-size: 120%; font-weight: bold; }
/* marks a day in the colum-header as today /* marks a day in the colum-header as today
@ -607,9 +621,9 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
.calendar_calHoliday{ .calendar_calHoliday{
background-color: @egw_color_3_e; background-color: @egw_color_3_e;
a { a {
.color-0-gray; .color-0-gray;
font-size: 0.9em; font-size: 0.9em;
} }
} }
/* marks a day in the column-header additionaly as birthday of some contact, /* marks a day in the column-header additionaly as birthday of some contact,
* it should work together with the backgrounds of calendar_calToday, calendar_calHoliday, th, row_on and row_off * it should work together with the backgrounds of calendar_calToday, calendar_calHoliday, th, row_on and row_off
@ -911,33 +925,33 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
.calendar_calDayTodos .calendar_calDayTodosTable { .calendar_calDayTodos .calendar_calDayTodosTable {
overflow: auto; overflow: auto;
max-height: 400px; max-height: 400px;
table { table {
// Listendarstellung // Listendarstellung
// Reihen ohne Border left und right // Reihen ohne Border left und right
tr:nth-child(even) {background: @color-even;} tr:nth-child(even) {background: @color-even;}
tr:nth-child(odd) {background: @color-odd;} tr:nth-child(odd) {background: @color-odd;}
td { td {
padding: 3px; padding: 3px;
img { img {
.dimension_width_height_xs; .dimension_width_height_xs;
.Complete_Button_Icon_normal; .Complete_Button_Icon_normal;
&:hover {.Complete_Button_Icon_hover;} &:hover {.Complete_Button_Icon_hover;}
&:active { &:active {
.Complete_Button_Icon_active; .Complete_Button_Icon_active;
background-color: @color-positive-action !important; background-color: @color-positive-action !important;
} }
} }
} }
} }
} }
.calendar_calDayTodos { .calendar_calDayTodos {
width: 250px; width: 250px;
@ -1018,7 +1032,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
} }
.calendar_plannerMonthScale { .calendar_plannerMonthScale {
font-weight: bold; font-weight: bold;
a img {.dimension_width_height_s;} a img {.dimension_width_height_s;}
} }
.calendar_plannerDayScale img,.calendar_plannerWeekScale img,.calendar_plannerMonthScale img,.calendar_plannerDayOfMonthScale img { .calendar_plannerDayScale img,.calendar_plannerWeekScale img,.calendar_plannerMonthScale img,.calendar_plannerDayOfMonthScale img {