style env vars form
This commit is contained in:
parent
413a326022
commit
859ed2cdea
|
@ -89,8 +89,13 @@ $input-main-height: 30px
|
||||||
|
|
||||||
.env-var-name
|
.env-var-name
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
position: relative
|
||||||
width: grid-calc(6, 12)
|
width: grid-calc(6, 12)
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
|
overflow: hidden
|
||||||
|
&:after
|
||||||
|
content: ""
|
||||||
|
@include fadeOut(right, -90deg, #F6F5F5)
|
||||||
|
|
||||||
.env-var-value
|
.env-var-value
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
@ -127,7 +132,6 @@ $input-main-height: 30px
|
||||||
height: 1.3em
|
height: 1.3em
|
||||||
margin: .2em auto 0
|
margin: .2em auto 0
|
||||||
|
|
||||||
|
|
||||||
.tooltip
|
.tooltip
|
||||||
display: none
|
display: none
|
||||||
position: absolute
|
position: absolute
|
||||||
|
@ -159,4 +163,54 @@ $input-main-height: 30px
|
||||||
display: block
|
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
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,8 @@
|
||||||
.on
|
.on
|
||||||
display: none
|
display: none
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
|
.off
|
||||||
|
margin-left: 36px
|
||||||
|
|
||||||
&.active
|
&.active
|
||||||
div
|
div
|
||||||
|
@ -101,6 +103,5 @@
|
||||||
background-color: #3BA85D
|
background-color: #3BA85D
|
||||||
.on
|
.on
|
||||||
display: inline-block
|
display: inline-block
|
||||||
margin-left: 36px
|
|
||||||
.off
|
.off
|
||||||
display: none
|
display: none
|
||||||
|
|
|
@ -24,6 +24,24 @@
|
||||||
<li>{{env-var}}</li>
|
<li>{{env-var}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form--envvar">
|
||||||
|
<form action="">
|
||||||
|
<div class="form-elem">
|
||||||
|
<input type="text" placeholder="Name">
|
||||||
|
</div>
|
||||||
|
<div class="form-elem">
|
||||||
|
<input type="text" placeholder="Value">
|
||||||
|
</div>
|
||||||
|
<div class="form-elem">
|
||||||
|
{{settings-switch inline="true"}}
|
||||||
|
</div>
|
||||||
|
<div class="form-elem">
|
||||||
|
<input type="submit" class="form-submit" value="Add">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
{{#if config.endpoints.sshKey}}
|
{{#if config.endpoints.sshKey}}
|
||||||
<section class="settings-section">
|
<section class="settings-section">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user