From bad3872db022204359a960934a00bafd3e13ed97 Mon Sep 17 00:00:00 2001 From: idgserpro Date: Tue, 12 Jun 2018 11:48:21 -0300 Subject: [PATCH] Force th of tr.month to be centered. This is being done because of bootstrap. An example is collective.upload, that it's using bootstrap: in https://github.com/collective/collective.upload/blob/45278693169d568da9205863ec6e03cd977884f5/webpack/app/upload.less#L6 -> https://github.com/distros/bootstrap-less/blob/f07af08fe8bdafb334df3d86e5e6790b842d4cbf/bootstrap/tables.less#L15 you can see that th { text-align: left; } Is defined and will have impact in all layouts like here in collective.portlet.calendar if you have collective.upload installed. This was motivated (in portuguese) in https://github.com/plonegovbr/brasil.gov.agenda/issues/82#issuecomment-396230266. --- CHANGES.rst | 3 +++ .../portlet/calendar/browser/calendar_styles/calendar.css | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index a2fe8a3..f0273ed 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,9 @@ Changelog 1.0b4 (unreleased) ^^^^^^^^^^^^^^^^^^ +- Force th of tr.month in css to be centered to avoid bootstrap conflicts. + [idgserpro] + - Fix Subject encoding (so non-ascii characters do not break rendering) [ebrehault] diff --git a/collective/portlet/calendar/browser/calendar_styles/calendar.css b/collective/portlet/calendar/browser/calendar_styles/calendar.css index f0b08d8..a3c69f4 100644 --- a/collective/portlet/calendar/browser/calendar_styles/calendar.css +++ b/collective/portlet/calendar/browser/calendar_styles/calendar.css @@ -14,6 +14,10 @@ padding: 0; } +.portletCalendarEx tr.month th { + text-align: center; +} + .portletCalendarEx tr.month { background-color: #eee; font-weight: bold;