small visual changes
This commit is contained in:
parent
96e33f7179
commit
4b28669327
|
@ -77,11 +77,12 @@ input[type=number]{
|
||||||
body > section > .banner,
|
body > section > .banner,
|
||||||
body > section > .container > .banner {
|
body > section > .container > .banner {
|
||||||
padding-left: 4.3rem;
|
padding-left: 4.3rem;
|
||||||
|
padding-right: 4.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner.enabled {
|
.banner.enabled {
|
||||||
border-left-color: transparent;
|
border-left-color: transparent;
|
||||||
background: #bbfbff;
|
background: #cde;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner.disabled {
|
.banner.disabled {
|
||||||
|
|
|
@ -3,15 +3,21 @@
|
||||||
<button class='primary' on:click='toggle(policy_enabled)'>{{policy_enabled?'Disable':'Enable'}}</button>
|
<button class='primary' on:click='toggle(policy_enabled)'>{{policy_enabled?'Disable':'Enable'}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Forget is currently {{policy_enabled?'enabled':'disabled'}} on your account.
|
Forget is currently
|
||||||
|
{{#if policy_enabled }}
|
||||||
|
<b>enabled</b>
|
||||||
|
{{else}}
|
||||||
|
disabled
|
||||||
|
{{/if}}
|
||||||
|
on your account.
|
||||||
</div>
|
</div>
|
||||||
<div class='timers'>
|
<div class='timers'>
|
||||||
|
<span class='last-delete {{(!last_delete)?'hidden':''}}' title={{last_delete}}>
|
||||||
{{#if last_delete }}
|
{{#if last_delete }}
|
||||||
<span class='last-delete {{(!last_delete)?'hidden':''}}'>
|
|
||||||
Last delete {{rel_past(now - last_delete)}}.
|
Last delete {{rel_past(now - last_delete)}}.
|
||||||
</span>
|
|
||||||
{{/if }}
|
{{/if }}
|
||||||
<span class='next-delete {{(!policy_enabled || !next_delete || !eligible_for_delete_estimate)?'hidden':''}}'>
|
</span>
|
||||||
|
<span class='next-delete {{(!policy_enabled || !next_delete || !eligible_for_delete_estimate)?'hidden':''}}' title={{next_delete}}>
|
||||||
Next delete {{rel_future(next_delete - now)}}.
|
Next delete {{rel_future(next_delete - now)}}.
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,20 +31,18 @@
|
||||||
.timers > * {
|
.timers > * {
|
||||||
transition-property: opacity, transform;
|
transition-property: opacity, transform;
|
||||||
transition-duration: 0.4s;
|
transition-duration: 0.4s;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.timers > .hidden {
|
.timers > .hidden {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(-100%);
|
transform: translateY(-0.3em);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group {
|
|
||||||
margin-right: 5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
float: right;
|
float: right;
|
||||||
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.primary {
|
button.primary {
|
||||||
|
|
|
@ -13,7 +13,13 @@
|
||||||
</p>
|
</p>
|
||||||
<div class='main-banner container'>
|
<div class='main-banner container'>
|
||||||
{% set enabled_disabled = "enabled" if g.viewer.account.policy_enabled else "disabled" %}
|
{% set enabled_disabled = "enabled" if g.viewer.account.policy_enabled else "disabled" %}
|
||||||
<div class="banner {{enabled_disabled}}">Forget is currently {{ enabled_disabled }} on your account.
|
<div class="banner {{enabled_disabled}}">Forget is currently
|
||||||
|
{% if g.viewer.account.policy_enabled -%}
|
||||||
|
<b>enabled</b>
|
||||||
|
{% else -%}
|
||||||
|
disabled
|
||||||
|
{% endif %}
|
||||||
|
on your account.
|
||||||
{% if g.viewer.account.policy_enabled -%}
|
{% if g.viewer.account.policy_enabled -%}
|
||||||
<form action='{{url_for("disable")}}' method='post' enctype='multipart/form-data'>
|
<form action='{{url_for("disable")}}' method='post' enctype='multipart/form-data'>
|
||||||
<input type='submit' value='Disable'>
|
<input type='submit' value='Disable'>
|
||||||
|
|
Loading…
Reference in New Issue