From eddbab2f99a92e7cf22a63f30836e982376e591f Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Mon, 3 Jun 2019 23:44:49 +0200 Subject: [PATCH] only child interfered with other uses. Instead pass class strings to the lineClass prop and it will be injected into the placeholder element --- src/scss/loading-placeholder.scss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scss/loading-placeholder.scss b/src/scss/loading-placeholder.scss index 63d01f1..5301d8d 100644 --- a/src/scss/loading-placeholder.scss +++ b/src/scss/loading-placeholder.scss @@ -42,10 +42,13 @@ margin: 10px; animation: pulse 1s infinite ease-in-out; - &:only-child { - margin: 0; + &.short { width: 60px !important; } + + &.nomargin { + margin: 0; + } } div {