refactor more settings styles
This commit is contained in:
parent
a6d4c2f6f7
commit
f6a1b455e6
|
@ -4,10 +4,6 @@ $font-size-sm: 14px
|
||||||
$line-height-m: 1.3
|
$line-height-m: 1.3
|
||||||
$font-size-s: 12px
|
$font-size-s: 12px
|
||||||
|
|
||||||
// colors
|
|
||||||
$teal1: #5BA5A4
|
|
||||||
$teal2: #63A4A3
|
|
||||||
|
|
||||||
$blue-grey: #404650
|
$blue-grey: #404650
|
||||||
$blue-grey-light: #d8e2e6
|
$blue-grey-light: #d8e2e6
|
||||||
$light-gray: #e9e9e7
|
$light-gray: #e9e9e7
|
||||||
|
@ -35,7 +31,7 @@ $error-color: $fail-color
|
||||||
$start-color: #D2C93B
|
$start-color: #D2C93B
|
||||||
$start-bg-color: #D2CA24
|
$start-bg-color: #D2CA24
|
||||||
$cancel-color: #A1A0A0
|
$cancel-color: #A1A0A0
|
||||||
$dropdown-color: $teal1
|
$dropdown-color: $teal-light
|
||||||
$created-color: #CDBC2C
|
$created-color: #CDBC2C
|
||||||
|
|
||||||
$dashboard-text-color: #9d9fa1
|
$dashboard-text-color: #9d9fa1
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
.active,
|
.active,
|
||||||
.active:hover,
|
.active:hover,
|
||||||
position: relative
|
position: relative
|
||||||
color: $teal2
|
color: $teal-dark
|
||||||
&:after
|
&:after
|
||||||
content: ""
|
content: ""
|
||||||
position: absolute
|
position: absolute
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
bottom: -0.25em
|
bottom: -0.25em
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 2px
|
height: 2px
|
||||||
background-color: $teal1
|
background-color: $teal-light
|
||||||
.active
|
.active
|
||||||
font-weight: 600
|
font-weight: 600
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
|
|
||||||
|
|
||||||
$heading-color: #63a4a3
|
|
||||||
$setting-section-border: 2px solid #f2f3ef
|
|
||||||
|
|
||||||
.small-title
|
.small-title
|
||||||
font-size: 18px
|
font-size: 18px
|
||||||
color: $heading-color
|
color: $teal-light
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
|
|
||||||
.settings
|
.settings
|
||||||
|
@ -14,12 +11,14 @@ $setting-section-border: 2px solid #f2f3ef
|
||||||
.settings-section
|
.settings-section
|
||||||
padding: 0 0 1em
|
padding: 0 0 1em
|
||||||
margin-bottom: 1.5em
|
margin-bottom: 1.5em
|
||||||
border-bottom: $setting-section-border
|
border-bottom: 2px solid #f2f3ef
|
||||||
&:last-of-type
|
&:last-of-type
|
||||||
border-bottom: none
|
border-bottom: none
|
||||||
.small-title
|
.small-title
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%settings-list
|
%settings-list
|
||||||
padding: 0
|
padding: 0
|
||||||
margin: 0
|
margin: 0
|
||||||
|
@ -44,36 +43,78 @@ $setting-section-border: 2px solid #f2f3ef
|
||||||
& + .label
|
& + .label
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
input
|
input
|
||||||
display: inline-block
|
|
||||||
height: 32px
|
|
||||||
width: 80px
|
width: 80px
|
||||||
border: 1px solid #eeedec
|
|
||||||
border-radius: 4px
|
|
||||||
font-size: $font-size-s
|
font-size: $font-size-s
|
||||||
color: #8e8f8e
|
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
.settings-envvar
|
|
||||||
|
|
||||||
|
%settings-row
|
||||||
padding: .6em .5em
|
padding: .6em .5em
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
background-color: #F6F5F5
|
background-color: #F6F5F5
|
||||||
|
|
||||||
.env-var-name
|
.settings-envvar
|
||||||
|
@extend %settings-row
|
||||||
|
|
||||||
|
.settings-sshkey
|
||||||
|
@extend %settings-row
|
||||||
|
display: block
|
||||||
|
margin-bottom: 1rem
|
||||||
|
span
|
||||||
|
vertical-align: middle
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%settings-name-section
|
||||||
display: inline-block
|
display: inline-block
|
||||||
position: relative
|
position: relative
|
||||||
width: grid-calc(6, 12)
|
|
||||||
vertical-align: middle
|
vertical-align: middle
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
|
white-space: nowrap
|
||||||
&:after
|
&:after
|
||||||
content: ""
|
content: ""
|
||||||
@include fadeOut(right, -90deg, #F6F5F5)
|
@include fadeOut(right, -90deg, #F6F5F5)
|
||||||
|
|
||||||
|
.ssh-key-name
|
||||||
|
@extend %settings-name-section
|
||||||
|
width: 40%
|
||||||
|
.icon-key
|
||||||
|
@extend %icon
|
||||||
|
@extend .icon-key
|
||||||
|
width: 1.2em
|
||||||
|
height: 1.3em
|
||||||
|
|
||||||
|
.env-var-name
|
||||||
|
@extend %settings-name-section
|
||||||
|
width: grid-calc(6, 12)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%settings-value-section
|
||||||
|
display: inline-block
|
||||||
|
vertical-align: middle
|
||||||
|
white-space: nowrap
|
||||||
|
overflow: hidden
|
||||||
|
|
||||||
|
.ssh-key-value
|
||||||
|
@extend %settings-value-section
|
||||||
|
width: 48%
|
||||||
|
text-align: right
|
||||||
|
@media #{$medium-up}
|
||||||
|
width: grid-calc(3, 12)
|
||||||
|
.icon-fingerprint
|
||||||
|
@extend %icon
|
||||||
|
@extend .icon-fingerprint
|
||||||
|
width: 1.3em
|
||||||
|
height: 1.3em
|
||||||
|
margin-right: .5em
|
||||||
|
|
||||||
.env-var-value
|
.env-var-value
|
||||||
display: inline-block
|
display: inline-block
|
||||||
width: grid-calc(4, 12)
|
width: grid-calc(4, 12)
|
||||||
@media #{$medium-up}
|
@media #{$medium-up}
|
||||||
width: grid-calc(3, 12)
|
width: grid-calc(3, 12)
|
||||||
|
|
||||||
input
|
input
|
||||||
display: inline-block
|
display: inline-block
|
||||||
width: 100%
|
width: 100%
|
||||||
|
@ -88,81 +129,32 @@ $setting-section-border: 2px solid #f2f3ef
|
||||||
repeat: no-repeat
|
repeat: no-repeat
|
||||||
position: 0.4em 0.7em
|
position: 0.4em 0.7em
|
||||||
|
|
||||||
.env-var-action
|
|
||||||
position: relative
|
|
||||||
|
%settings-action-section
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
position: relative
|
||||||
width: grid-calc(2, 24)
|
width: grid-calc(2, 24)
|
||||||
float: right
|
float: right
|
||||||
|
vertical-align: middle
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
a
|
|
||||||
padding: 1em
|
|
||||||
|
|
||||||
.icon-delete
|
.icon-delete
|
||||||
@extend %icon
|
@extend %icon
|
||||||
@extend .icon-delete
|
@extend .icon-delete
|
||||||
width: 1.1em
|
width: 1.1em
|
||||||
height: 1.3em
|
height: 1.3em
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
.icon-delete
|
.icon-delete
|
||||||
@extend .icon-delete-hover
|
@extend .icon-delete-hover
|
||||||
|
|
||||||
|
.env-var-action
|
||||||
.settings-sshkey
|
@extend %settings-action-section
|
||||||
display: block
|
a
|
||||||
margin-bottom: 1rem
|
padding: 1em
|
||||||
padding: .6em .5em
|
|
||||||
border-radius: 4px
|
|
||||||
background-color: #F6F5F5
|
|
||||||
|
|
||||||
span
|
|
||||||
vertical-align: middle
|
|
||||||
|
|
||||||
.ssh-key-name
|
|
||||||
display: inline-block
|
|
||||||
position: relative
|
|
||||||
vertical-align: middle
|
|
||||||
width: 40%
|
|
||||||
white-space: nowrap
|
|
||||||
overflow: hidden
|
|
||||||
.icon-key
|
|
||||||
@extend %icon
|
|
||||||
@extend .icon-key
|
|
||||||
width: 1.2em
|
|
||||||
height: 1.3em
|
|
||||||
&:after
|
|
||||||
content: ""
|
|
||||||
@include fadeOut(right, -90deg, #F6F5F5)
|
|
||||||
|
|
||||||
.ssh-key-value
|
|
||||||
display: inline-block
|
|
||||||
vertical-align: middle
|
|
||||||
width: 48%
|
|
||||||
text-align: right
|
|
||||||
white-space: nowrap
|
|
||||||
overflow: hidden
|
|
||||||
@media #{$medium-up}
|
|
||||||
width: grid-calc(3, 12)
|
|
||||||
.icon-fingerprint
|
|
||||||
@extend %icon
|
|
||||||
@extend .icon-fingerprint
|
|
||||||
width: 1.3em
|
|
||||||
height: 1.3em
|
|
||||||
margin-right: .5em
|
|
||||||
|
|
||||||
.ssh-key-action
|
.ssh-key-action
|
||||||
display: inline-block
|
@extend %settings-action-section
|
||||||
position: relative
|
|
||||||
vertical-align: middle
|
|
||||||
width: grid-calc(2, 24)
|
|
||||||
float: right
|
|
||||||
.icon-delete
|
.icon-delete
|
||||||
@extend %icon
|
|
||||||
@extend .icon-delete
|
|
||||||
display: block
|
|
||||||
width: 1.1em
|
|
||||||
height: 1.3em
|
|
||||||
margin: .2em auto 0
|
margin: .2em auto 0
|
||||||
.icon-delete-disabled
|
.icon-delete-disabled
|
||||||
@extend %icon
|
@extend %icon
|
||||||
|
@ -171,8 +163,5 @@ $setting-section-border: 2px solid #f2f3ef
|
||||||
width: 1.1em
|
width: 1.1em
|
||||||
height: 1.3em
|
height: 1.3em
|
||||||
margin: .2em auto 0
|
margin: .2em auto 0
|
||||||
&:hover
|
|
||||||
.icon-delete
|
|
||||||
@extend .icon-delete-hover
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ $sb-font-size: 14px
|
||||||
#tab_new
|
#tab_new
|
||||||
a:hover
|
a:hover
|
||||||
.icon--plus:after
|
.icon--plus:after
|
||||||
color: $teal1
|
color: $teal-light
|
||||||
&:after
|
&:after
|
||||||
bottom: -2px
|
bottom: -2px
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
.active a,
|
.active a,
|
||||||
a:hover
|
a:hover
|
||||||
position: relative
|
position: relative
|
||||||
color: $teal2
|
color: $teal-dark
|
||||||
&:after
|
&:after
|
||||||
content: ""
|
content: ""
|
||||||
position: absolute
|
position: absolute
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
bottom: -0.25em
|
bottom: -0.25em
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 2px
|
height: 2px
|
||||||
background-color: $teal2
|
background-color: $teal-dark
|
||||||
.active a
|
.active a
|
||||||
font-weight: 600
|
font-weight: 600
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
color: $grey-light
|
color: $grey-light
|
||||||
padding: .5em 0
|
padding: .5em 0
|
||||||
.active
|
.active
|
||||||
color: $teal2
|
color: $teal-dark
|
||||||
|
|
||||||
@media #{$medium-up}
|
@media #{$medium-up}
|
||||||
border-bottom: solid $cream-dark 2px
|
border-bottom: solid $cream-dark 2px
|
||||||
|
|
Loading…
Reference in New Issue
Block a user