From 8bf57320e6da0a77dce6b6a8a9bef18bf024033c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Wed, 13 Nov 2013 01:48:05 +0100 Subject: [PATCH] MDL-42711 theme port from LM: forum layout on small screen devices This is a backport of MDLSITE-2445. Wrapping the 'Started by' and 'Last post' texts helps. On smaller device, these two get smaller font too. This is far from optimal but better than the current (default) behaviour. --- theme/bootstrapbase/less/moodle/modules.less | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/theme/bootstrapbase/less/moodle/modules.less b/theme/bootstrapbase/less/moodle/modules.less index e8fa26a0770..0a1e1c15ee2 100644 --- a/theme/bootstrapbase/less/moodle/modules.less +++ b/theme/bootstrapbase/less/moodle/modules.less @@ -9,11 +9,51 @@ select { width: auto; } +// Forum + .path-mod-forum .forumheaderlist, .path-mod-forum .forumheaderlist td { border: none; } +.path-mod-forum .forumheaderlist { + thead .header { + white-space: normal; + vertical-align: top; + } + thead .header.lastpost { + text-align: right; + } + .discussion { + .author, .replies, .lastpost { + white-space: normal; + } + .replies { + text-align: center; + } + .topic, .topic.starter, .picture, .author, .replies, .lastpost { + vertical-align: top; + } + } +} + +@media (max-width: 979px) { + .path-mod-forum .forumheaderlist { + thead .header { + font-weight: normal; + font-size: round(@fontSizeSmall); + } + .discussion { + .author, .replies, .lastpost { + font-size: round(@fontSizeSmall); + } + .replies .unread a { + padding: 0; + } + } + } +} + .forumpost { .well; padding: 6px;