put styles on ssh-key settings
This commit is contained in:
parent
859ed2cdea
commit
bd6e1e347b
|
@ -1,5 +1,7 @@
|
|||
`import Ember from 'ember'`
|
||||
|
||||
SshKeyComponent = Ember.Component.extend()
|
||||
SshKeyComponent = Ember.Component.extend
|
||||
|
||||
classNames: ['settings-sshkey']
|
||||
|
||||
`export default SshKeyComponent`
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
@import "app/ansi";
|
||||
@import "app/auth";
|
||||
@import "app/charm";
|
||||
@import "app/forms";
|
||||
@import "app/github";
|
||||
// @import "app/forms";
|
||||
// @import "app/github";
|
||||
@import "app/main/annotations";
|
||||
|
||||
@import "app/main/list";
|
||||
@import "app/main/log";
|
||||
@import "app/main/sponsors";
|
||||
// @import "app/main/sponsors";
|
||||
@import "app/misc";
|
||||
@import "app/popup";
|
||||
// @import "app/pro";
|
||||
|
|
|
@ -120,7 +120,6 @@ $input-main-height: 30px
|
|||
.env-var-action
|
||||
position: relative
|
||||
display: inline-block
|
||||
line-height: 2
|
||||
width: grid-calc(2, 24)
|
||||
float: right
|
||||
|
||||
|
@ -132,30 +131,96 @@ $input-main-height: 30px
|
|||
height: 1.3em
|
||||
margin: .2em auto 0
|
||||
|
||||
.tooltip
|
||||
display: none
|
||||
position: absolute
|
||||
right: 0
|
||||
left: 0
|
||||
top: -2.7em
|
||||
width: 4.2em
|
||||
margin: auto
|
||||
padding: 0 .8em
|
||||
z-index: 5
|
||||
background-color: #818383
|
||||
border-radius: 4px
|
||||
color: $white
|
||||
&:before
|
||||
content: ""
|
||||
position: absolute
|
||||
bottom: -0.3em
|
||||
left: 39%
|
||||
width: 1em
|
||||
height: 1em
|
||||
transform: rotate(45deg)
|
||||
z-index: -1
|
||||
background-color: #818383
|
||||
&:hover
|
||||
.icon-delete
|
||||
@extend .icon-delete-hover
|
||||
.tooltip
|
||||
display: block
|
||||
|
||||
.tooltip
|
||||
display: none
|
||||
position: absolute
|
||||
right: 0
|
||||
left: 0
|
||||
top: -2.7em
|
||||
width: auto
|
||||
margin: auto
|
||||
padding: .2em .8em .3em
|
||||
z-index: 5
|
||||
background-color: #818383
|
||||
border-radius: 4px
|
||||
color: $white
|
||||
white-space: nowrap
|
||||
&:before
|
||||
content: ""
|
||||
position: absolute
|
||||
bottom: -0.3em
|
||||
left: 39%
|
||||
width: 1em
|
||||
height: 1em
|
||||
transform: rotate(45deg)
|
||||
z-index: -1
|
||||
background-color: #818383
|
||||
|
||||
.settings-sshkey
|
||||
display: block
|
||||
margin-bottom: 1rem
|
||||
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: grid-calc(3, 12)
|
||||
text-align: right
|
||||
white-space: nowrap
|
||||
.icon-fingerprint
|
||||
@extend %icon
|
||||
@extend .icon-fingerprint
|
||||
width: 1.3em
|
||||
height: 1.3em
|
||||
margin-right: .5em
|
||||
|
||||
.ssh-key-action
|
||||
display: inline-block
|
||||
position: relative
|
||||
vertical-align: middle
|
||||
width: grid-calc(2, 24)
|
||||
float: right
|
||||
.icon-delete
|
||||
@extend %icon
|
||||
@extend .icon-delete
|
||||
display: block
|
||||
width: 1.1em
|
||||
height: 1.3em
|
||||
margin: .2em auto 0
|
||||
.icon-delete-disabled
|
||||
@extend %icon
|
||||
@extend .icon-delete-disabled
|
||||
display: block
|
||||
width: 1.1em
|
||||
height: 1.3em
|
||||
margin: .2em auto 0
|
||||
&:hover
|
||||
.icon-delete
|
||||
@extend .icon-delete-hover
|
||||
|
@ -181,7 +246,7 @@ $input-main-height: 30px
|
|||
@media #{$medium-up}
|
||||
.form-elem:first-of-type,
|
||||
.form-elem:nth-of-type(2)
|
||||
width: 32%
|
||||
width: 31.5%
|
||||
margin-right: 1em
|
||||
.form-elem:nth-of-type(3)
|
||||
width: 24%
|
||||
|
|
|
@ -1 +1,35 @@
|
|||
<p>This is an ssh key</p>
|
||||
{{#if custom}}
|
||||
<div class="ssh-key-name">
|
||||
<span class="icon-key"></span>
|
||||
<span>TRAVIS_PRIVATE_KEY</span>
|
||||
</div>
|
||||
<div class="ssh-key-value">
|
||||
<span class="icon-fingerprint"></span>
|
||||
<span>e1:b1:83:06:7e:51:6d:5e:e0:e0:60:96:ca:ac:3d:8a</span>
|
||||
</div>
|
||||
<div class="ssh-key-action">
|
||||
<a href="#" title="">
|
||||
<span class="icon-delete"></span>
|
||||
<p class="tooltip">
|
||||
<span>Delete</span>
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="ssh-key-name">
|
||||
<span class="icon-key"></span>
|
||||
<span>no custom key set</span>
|
||||
</div>
|
||||
<div class="ssh-key-value">
|
||||
<span class="icon-fingerprint"></span>
|
||||
<span>e1:b1:83:06:7e:51:6d:5e:e0:e0:60:96:ca:ac:3d:8a</span>
|
||||
</div>
|
||||
<div class="ssh-key-action">
|
||||
<a href="#" title="">
|
||||
<span class="icon-delete-disabled"></span>
|
||||
<p class="tooltip">
|
||||
<span>Default keys cannot be deleted</span>
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -48,6 +48,22 @@
|
|||
<h2 class="small-title">SSH Key</h2>
|
||||
|
||||
{{ssh-key}}
|
||||
{{ssh-key custom=true}}
|
||||
|
||||
<div class="form--sshkey">
|
||||
<a href="" class="button">Add custom SSH Key</a>
|
||||
<form action="">
|
||||
<div class="form-elem">
|
||||
<input type="text" placeholder="Description">
|
||||
</div>
|
||||
<div class="form-elem">
|
||||
<textarea name="" id="" cols="30" rows="10" placeholder="SSH key"></textarea>
|
||||
</div>
|
||||
<div class="form-elem">
|
||||
<input type="submit" class="form-action">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
{{/if}}
|
||||
<section class="settings-section">
|
||||
|
|
Loading…
Reference in New Issue
Block a user