diff --git a/app/styles/app/layouts/settings.sass b/app/styles/app/layouts/settings.sass index 1ca743c6..9e9aa55c 100644 --- a/app/styles/app/layouts/settings.sass +++ b/app/styles/app/layouts/settings.sass @@ -89,8 +89,13 @@ $input-main-height: 30px .env-var-name display: inline-block + position: relative width: grid-calc(6, 12) vertical-align: middle + overflow: hidden + &:after + content: "" + @include fadeOut(right, -90deg, #F6F5F5) .env-var-value display: inline-block @@ -126,7 +131,6 @@ $input-main-height: 30px width: 1.1em height: 1.3em margin: .2em auto 0 - .tooltip display: none @@ -159,4 +163,54 @@ $input-main-height: 30px display: block +.form--envvar + .form-elem + display: inline-block + vertical-align: middle + + .form-elem:first-of-type, + .form-elem:nth-of-type(2) + width: 49.6% + .form-elem:nth-of-type(3) + width: 50% + .form-elem:last-of-type + width: 50% + float: right + text-align: right + + @media #{$medium-up} + .form-elem:first-of-type, + .form-elem:nth-of-type(2) + width: 32% + margin-right: 1em + .form-elem:nth-of-type(3) + width: 24% + .form-elem:last-of-type + width: 6% + float: right + text-align: right + input + display: inline-block + height: 32px + width: 100% + padding: .2em .4em + border: 1px solid #eeedec + border-radius: 4px + color: #8e8f8e + font-size: $font-size-sm + + .form-submit + padding: .5em .8em + color: $white + font-size: $font-size-sm + &:hover + background-color: #3BA85D + cursor: pointer + //refactor into switch component + .settings-switch + .label + display: inline-block + width: 7em + font-size: 12px + line-height: 1.3 diff --git a/app/styles/app/modules/switch.sass b/app/styles/app/modules/switch.sass index ca91e119..aa233826 100644 --- a/app/styles/app/modules/switch.sass +++ b/app/styles/app/modules/switch.sass @@ -93,6 +93,8 @@ .on display: none margin-left: 0 + .off + margin-left: 36px &.active div @@ -101,6 +103,5 @@ background-color: #3BA85D .on display: inline-block - margin-left: 36px .off display: none diff --git a/app/templates/components/settings-switch.hbs b/app/templates/components/settings-switch.hbs index e4c7672d..beb759a1 100644 --- a/app/templates/components/settings-switch.hbs +++ b/app/templates/components/settings-switch.hbs @@ -6,4 +6,4 @@ OFF -Some label text \ No newline at end of file +Some label text diff --git a/app/templates/settings.hbs b/app/templates/settings.hbs index 906e972e..0f1e170b 100644 --- a/app/templates/settings.hbs +++ b/app/templates/settings.hbs @@ -24,6 +24,24 @@