basic error message styling and fix {{#if}} nesting in accounts
This commit is contained in:
parent
249003d2ff
commit
3703194709
|
@ -128,7 +128,7 @@ p.profile-user-last
|
||||||
clear: both
|
clear: both
|
||||||
margin-bottom: .8em
|
margin-bottom: .8em
|
||||||
overflow: auto
|
overflow: auto
|
||||||
> div
|
.profile-hooks
|
||||||
width: grid-calc(10, 24)
|
width: grid-calc(10, 24)
|
||||||
@media #{$medium-up}
|
@media #{$medium-up}
|
||||||
width: grid-calc(7, 24)
|
width: grid-calc(7, 24)
|
||||||
|
@ -195,3 +195,21 @@ p.profile-user-last
|
||||||
a
|
a
|
||||||
color: #adaaab
|
color: #adaaab
|
||||||
text-decoration: underline
|
text-decoration: underline
|
||||||
|
|
||||||
|
.error
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 $column-gutter/2;
|
||||||
|
p
|
||||||
|
position: relative
|
||||||
|
padding: $column-gutter/2;
|
||||||
|
color: #de4248
|
||||||
|
background-color: #f1b6ad
|
||||||
|
&:after
|
||||||
|
content: ""
|
||||||
|
position: absolute
|
||||||
|
top: -0.5em
|
||||||
|
left: 1.5em
|
||||||
|
width: 1.2em
|
||||||
|
height: 1.2em
|
||||||
|
background: #f1b6ad
|
||||||
|
transform: rotate(45deg)
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
<span class="sync-spinner"><i></i><i></i><i></i></span>Syncing from GitHub
|
<span class="sync-spinner"><i></i><i></i><i></i></span>Syncing from GitHub
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="sync-button">
|
<div class="sync-button">
|
||||||
<button {{action sync}} class="button">
|
<button {{action sync}} class="button">
|
||||||
|
@ -43,6 +42,7 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>We're only showing your public repositories. You can find your private projects on <a href="https://travis-ci.com" title="travis-ci.com">travis-ci.com</a>.</p>
|
<p>We're only showing your public repositories. You can find your private projects on <a href="https://travis-ci.com" title="travis-ci.com">travis-ci.com</a>.</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<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>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="columns">
|
<div class="profile-hooks columns">
|
||||||
{{hook-switch hook=hook onToggleError="handleToggleError"}}
|
{{hook-switch hook=hook onToggleError="handleToggleError"}}
|
||||||
{{!-- <button class="switch is-on"></button> --}}
|
{{!-- <button class="switch is-on"></button> --}}
|
||||||
{{#if hook.isSaving}}
|
{{#if hook.isSaving}}
|
||||||
|
@ -13,6 +13,6 @@
|
||||||
|
|
||||||
{{#if errorMessage}}
|
{{#if errorMessage}}
|
||||||
<div class="error">
|
<div class="error">
|
||||||
{{errorMessage}}
|
<p>{{errorMessage}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user