fix alignment for profile hooks without admin rights
This commit is contained in:
parent
38c90b53f0
commit
621481cdfc
|
@ -2,7 +2,6 @@
|
||||||
font-size: $font-size-sm
|
font-size: $font-size-sm
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
|
|
||||||
|
|
||||||
.profile-main
|
.profile-main
|
||||||
header
|
header
|
||||||
h1
|
h1
|
||||||
|
@ -32,6 +31,9 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
&:after
|
&:after
|
||||||
@include fadeOut(right, -90deg, $white)
|
@include fadeOut(right, -90deg, $white)
|
||||||
|
p
|
||||||
|
font-size: $font-size-m
|
||||||
|
color: #7a7a7a
|
||||||
|
|
||||||
.cta-btn
|
.cta-btn
|
||||||
text-align: right
|
text-align: right
|
||||||
|
@ -132,6 +134,7 @@ p.profile-user-last
|
||||||
width: grid-calc(5, 24)
|
width: grid-calc(5, 24)
|
||||||
.switch
|
.switch
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
vertical-align: middle
|
||||||
.profile-settings
|
.profile-settings
|
||||||
display: inline-block
|
display: inline-block
|
||||||
margin-left: 1rem;
|
margin-left: 1rem;
|
||||||
|
@ -155,6 +158,7 @@ p.profile-user-last
|
||||||
padding: .25em .5em .3em
|
padding: .25em .5em .3em
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
|
vertical-align: middle
|
||||||
span:not(.sync-spinner)
|
span:not(.sync-spinner)
|
||||||
display: none
|
display: none
|
||||||
margin-left: 2rem
|
margin-left: 2rem
|
||||||
|
@ -219,3 +223,8 @@ p.profile-user-last
|
||||||
top: 1em
|
top: 1em
|
||||||
right: 1em
|
right: 1em
|
||||||
@extend .icon--dismiss-red
|
@extend .icon--dismiss-red
|
||||||
|
|
||||||
|
|
||||||
|
#unadministerable-hooks
|
||||||
|
p
|
||||||
|
margin-top: 2em
|
|
@ -94,10 +94,8 @@
|
||||||
<ul class="profile-hooklist">
|
<ul class="profile-hooklist">
|
||||||
{{#each hook in hooksWithoutAdmin}}
|
{{#each hook in hooksWithoutAdmin}}
|
||||||
<li {{bind-attr class="hook.active:active :row"}}>
|
<li {{bind-attr class="hook.active:active :row"}}>
|
||||||
<div class="columns">
|
|
||||||
<button class="switch disabled"></button>
|
<button class="switch disabled"></button>
|
||||||
</div>
|
<a {{bind-attr href="hook.urlGithub"}} rel="nofollow" class="profile-repo">
|
||||||
<a {{bind-attr href="hook.urlGithub"}} rel="nofollow" class="profile-repo columns">
|
|
||||||
{{hook.slug}}
|
{{hook.slug}}
|
||||||
<span>{{hook.description}}</span>
|
<span>{{hook.description}}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<div class="profile-hooks columns">
|
<div class="profile-hooks columns">
|
||||||
{{hook-switch hook=hook onToggleError="handleToggleError" onToggle="resetErrors"}}
|
{{hook-switch hook=hook onToggleError="handleToggleError" onToggle="resetErrors"}}
|
||||||
{{!-- <button class="switch is-on"></button> --}}
|
|
||||||
{{#if hook.isSaving}}
|
{{#if hook.isSaving}}
|
||||||
<span class="sync-spinner sync-spinner--grey"><i></i><i></i><i></i></span>
|
<span class="sync-spinner sync-spinner--grey"><i></i><i></i><i></i></span>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user