From 75a9284f166995cc365e5e51f03fcad3ee3e0cbb Mon Sep 17 00:00:00 2001 From: Isarra Date: Fri, 16 Aug 2019 20:30:00 +0000 Subject: [PATCH] Add a margin for frameless images Might as well just reuse the thumb stuff, I guess. Bug: T196356 Change-Id: Ic0497b2003bea9a5c739fd47858be545b16f2812 --- resources/screen-common.less | 2 ++ resources/screen-mobile.less | 2 ++ 2 files changed, 4 insertions(+) diff --git a/resources/screen-common.less b/resources/screen-common.less index 8b5d9c0..429af43 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -521,12 +521,14 @@ ul { /* Thumbnails */ /* @noflip */ +.floatright, .tright { margin: 0 0 0.5em 0.5em; padding: 0 0 1em 1.5em; } /* @noflip */ +.floatleft, .tleft { margin: 0 0.5em 0.5em 0; padding: 0 1.5em 1em 0; diff --git a/resources/screen-mobile.less b/resources/screen-mobile.less index 8bc1b6d..927f0b5 100644 --- a/resources/screen-mobile.less +++ b/resources/screen-mobile.less @@ -251,11 +251,13 @@ div.thumb { margin: 1em auto; } +.floatright, .tright { margin-left: 0; padding-left: 0; } +.floatleft, .tleft { margin-right: 0; padding-right: 0;