From 72877b5c06dd46f7334029664175fabd4e7e16ab Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 2 Nov 2016 18:38:30 +0100 Subject: CSS fixes. --- src/components/attachment/attachment.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/components/attachment/attachment.vue') diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index d20b704b..0e67f48e 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -4,7 +4,7 @@ - + @@ -29,5 +29,16 @@ video { height: 100%; } + + a.image-attachment { + display: flex; + flex: 1; + + img { + width: 100%; + height: 100%; + flex: 1; + } + } } -- cgit v1.2.3-70-g09d2 From 1ef6cac272f9ec27756365ab95310b25520e818c Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 3 Nov 2016 16:58:50 +0100 Subject: Attachment styling fixes. --- src/components/attachment/attachment.vue | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'src/components/attachment/attachment.vue') diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 0e67f48e..7feab42c 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -30,6 +30,40 @@ height: 100%; } + .oembed { + img { + width: 100%; + height: 100%; + } + } + + .oembed { + border: 1px solid rgba(0, 0, 0, 0.14); + width: 100%; + + display: flex; + .image { + flex: 1; + img { + border: 0px; + border-radius: 0; + } + } + + .text { + flex: 2; + margin: 8px; + h1 { + font-size: 14px; + margin: 0px; + + a { + color: black; + } + } + } + } + a.image-attachment { display: flex; flex: 1; -- cgit v1.2.3-70-g09d2