From 6168f845a98c7c7b1bae596e5a156b9beb3197df Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 7 May 2014 17:45:08 +0200 Subject: [PATCH] Mobile optimization --- wcfsetup/install/files/style/message.less | 43 +++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/wcfsetup/install/files/style/message.less b/wcfsetup/install/files/style/message.less index 4fddf24d2d..42b453e856 100644 --- a/wcfsetup/install/files/style/message.less +++ b/wcfsetup/install/files/style/message.less @@ -124,6 +124,49 @@ color: @wcfDimmedColor; } } + + .messageGroupInfo { + font-size: @wcfSmallFontSize; + + > li { + display: inline-block; + + &:not(:first-child)::before { + content: " - "; + } + } + + &.mobileOptimization { + > li { + &.messageGroupLastPoster, + &.messageGroupLastPostTime { + display: none; + } + } + } + } +} + +@media only screen and (max-width: 800px) { + .messageGroupList { + .messageGroupInfo.mobileOptimization { + > li { + &.messageGroupAuthor, + &.messageGroupTime { + display: none; + } + + &.messageGroupLastPoster, + &.messageGroupLastPostTime { + display: inline-block; + } + + &.messageGroupLastPoster::before { + display: none; + } + } + } + } } /* ### messages ### */ -- 2.20.1