From 384f1b4d4560815e5be57881f86a0f6747b9f9c0 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 25 Feb 2014 15:04:32 +0000 Subject: [PATCH] Fix calendar navigation header img size --- calendar/templates/pixelegg/app.css | 22 ++++++++++++++-------- calendar/templates/pixelegg/app.less | 12 ++++++++---- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/calendar/templates/pixelegg/app.css b/calendar/templates/pixelegg/app.css index a924255c7d..9b2ff27d6c 100755 --- a/calendar/templates/pixelegg/app.css +++ b/calendar/templates/pixelegg/app.css @@ -678,8 +678,14 @@ img.sideboxstar:active { margin-top: 0em; border: none; } -.calendar_calDayColHeader, -.calendar_calWeekNavHeader, +.calendar_calDayColHeader img { + width: 16px; + height: 16px; +} +.calendar_calWeekNavHeader img { + width: 16px; + height: 16px; +} .calendar_calMonthNavHeader img { width: 16px; height: 16px; @@ -689,9 +695,7 @@ img.sideboxstar:active { height: 16px; } .calendar_calEventBodySmall img[src$="svg"], -.calendar_calDayColHeader, -.calendar_calWeekNavHeader, -.calendar_calMonthNavHeader img[src$="svg"] { +.calendar_calDayColHeader img[src$="svg"] { background-color: #0c5da5; background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iZzc0MyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMCUiIHkyPSIxMDAlIj48c3RvcCBzdG9wLWNvbG9yPSIjMGM1ZGE1IiBvZmZzZXQ9IjAiLz48c3RvcCBzdG9wLWNvbG9yPSIjMGM1ZGE1IiBvZmZzZXQ9IjEiLz48L2xpbmVhckdyYWRpZW50PjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZzc0MykiLz48L3N2Zz4=); background-image: -moz-linear-gradient(top, #0c5da5, #0c5da5); @@ -1399,9 +1403,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget line-height: 12px; z-index: 30; } -.calendar_calDayColHeader, -.calendar_calWeekNavHeader, -.calendar_calMonthNavHeader img { +.calendar_calDayColHeader img { vertical-align: middle; } .calendar_calWeekNavHeader, @@ -1420,6 +1422,10 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget line-height: 12px; z-index: 30; } +.calendar_calWeekNavHeader, +.calendar_calMonthNavHeader img { + vertical-align: middle; +} .calendar_calViewUserNameBox { position: absolute; top: -1px; diff --git a/calendar/templates/pixelegg/app.less b/calendar/templates/pixelegg/app.less index 7f74f83a22..ee450b355c 100755 --- a/calendar/templates/pixelegg/app.less +++ b/calendar/templates/pixelegg/app.less @@ -79,12 +79,13 @@ img.sideboxstar { // Images -.calendar_calDayColHeader, .calendar_calWeekNavHeader, .calendar_calMonthNavHeader img {.dimension_width_height_s;} - +.calendar_calDayColHeader img {.dimension_width_height_s;} +.calendar_calWeekNavHeader img {.dimension_width_height_s;} +.calendar_calMonthNavHeader img{.dimension_width_height_s;} .calendar_calEventBodySmall img {.dimension_width_height_s;} .calendar_calEventBodySmall img[src$="svg"], -.calendar_calDayColHeader, .calendar_calWeekNavHeader, .calendar_calMonthNavHeader img[src$="svg"] { +.calendar_calDayColHeader img[src$="svg"] { .gradient_vertical (@egw_color_2_a, @egw_color_2_a); } @@ -902,7 +903,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget line-height: 12px; z-index: 30; } -.calendar_calDayColHeader,.calendar_calWeekNavHeader,.calendar_calMonthNavHeader img { +.calendar_calDayColHeader img { vertical-align: middle; } .calendar_calWeekNavHeader,.calendar_calMonthNavHeader{ @@ -919,6 +920,9 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget line-height: 12px; z-index: 30; } +.calendar_calWeekNavHeader,.calendar_calMonthNavHeader img{ + vertical-align: middle; +} .calendar_calViewUserNameBox { position: absolute; top: -1px;