From 45d38d122645164cc384d379c170e0fdec447f77 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Tue, 28 Apr 2020 21:48:30 -0700 Subject: Fixed text-overflow --- app.scss | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'app.scss') diff --git a/app.scss b/app.scss index 2b726c8..51110e1 100644 --- a/app.scss +++ b/app.scss @@ -81,6 +81,14 @@ $theme-dark: ( } } + +@mixin ellipsis() { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + + html { height: 100%; } @@ -205,17 +213,17 @@ body { h2 { border-bottom: 1px dashed #ccc; padding-bottom: 10px; + @include ellipsis(); } .title { font-size: 1.1em; + @include ellipsis(); } .subtitle { font-size: .9em; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + @include ellipsis(); } .container { @@ -237,7 +245,8 @@ body { } .media-content { - overflow: inherit; + overflow: hidden; + text-overflow: inherit; } .tag { -- cgit v1.2.3