From 90075cd48e17ff1905887bc82f3eff29b45539f3 Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Tue, 8 Aug 2017 12:01:39 +0200 Subject: [PATCH] media-tag to less file --- customize.dist/src/less2/include/mediatag.less | 18 ++++++++++++++++++ www/slide/slide.less | 17 ++--------------- 2 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 customize.dist/src/less2/include/mediatag.less diff --git a/customize.dist/src/less2/include/mediatag.less b/customize.dist/src/less2/include/mediatag.less new file mode 100644 index 000000000..704fd71bd --- /dev/null +++ b/customize.dist/src/less2/include/mediatag.less @@ -0,0 +1,18 @@ +.mediatag_base() { + media-tag { + min-height: 0; + flex: 1; + display: flex; + flex-flow: column; + text-align: center; + } + + media-tag img { + flex: 1; + max-height: 100% !important; + } + + media-tag iframe { + min-height: 100%; + } +} diff --git a/www/slide/slide.less b/www/slide/slide.less index 0e8c414db..9e020f98f 100644 --- a/www/slide/slide.less +++ b/www/slide/slide.less @@ -392,19 +392,6 @@ p { //flex: 1; } -media-tag { - min-height: 0; - flex: 1; - display: flex; - flex-flow: column; - text-align: center; -} +@import "../customize/src/less2/include/mediatag.less"; -media-tag img { - flex: 1; - max-height: 100% !important; -} - -media-tag iframe { - min-height: 100%; -} +.mediatag_base();