From aaaabb17c67ab14ce9b4286c30f988aeaed7c835 Mon Sep 17 00:00:00 2001 From: Godwin Date: Wed, 10 Aug 2016 09:06:35 -0700 Subject: [PATCH] =?UTF-8?q?Fixed=20position=20of=20=C3=97=20on=20radio=20b?= =?UTF-8?q?uttons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/stylesheets/_application.scss | 26 ++++++++++++++---------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/app/assets/stylesheets/_application.scss b/app/assets/stylesheets/_application.scss index 7039f1d..078d449 100644 --- a/app/assets/stylesheets/_application.scss +++ b/app/assets/stylesheets/_application.scss @@ -605,6 +605,13 @@ input { } } + &.inline input[type="radio"] + label { + @include after { + top: -0.15em; + left: 0.05em; + } + } + .other { position: absolute; top: 0; @@ -643,11 +650,6 @@ input { label { min-width: 7.5em; - - @include after { - top: -0.15em; - left: 0.05em; - } } } @@ -3687,14 +3689,9 @@ html[data-ontop] { border: 0.1em solid; } - &.inline { + &.inline { label { float: left; - - @include after { - top: -0.025em; - left: 0.175em; - } } &.vertical { @@ -3702,6 +3699,13 @@ html[data-ontop] { float: none; } } + + input[type="radio"] + label { + @include after { + top: -0.025em; + left: 0.175em; + } + } } }