From e876c07579885a1ed345da09af8c0478de2d1a56 Mon Sep 17 00:00:00 2001 From: Alessandro Cuoghi Date: Tue, 19 Mar 2019 15:01:23 +0100 Subject: [PATCH] Left-aligned label --- app/assets/stylesheets/dashboard.scss | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/app/assets/stylesheets/dashboard.scss b/app/assets/stylesheets/dashboard.scss index 82c9804df..ac9102f3d 100644 --- a/app/assets/stylesheets/dashboard.scss +++ b/app/assets/stylesheets/dashboard.scss @@ -101,6 +101,18 @@ margin-left: $line-height / 4; max-width: 90%; + h4 { + display: inline-block; + } + + .label { + margin-left: $line-height / 2; + } + + a { + display: block; + } + h4, p { margin-bottom: 0; @@ -168,6 +180,15 @@ width: rem-calc(36); } + .label { + position: absolute; + top: 20px; + left: 0; + } + + h4 { + margin-top: $line-height; + } .resource-description { min-height: $line-height * 4; }