Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix up css in accounts #6533

Merged
merged 2 commits into from
Apr 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions app/dashboard/templates/profiles/header_sync_profile.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{% load i18n static avatar_tags %}
<div class="profile-header__sync d-inline-block d-inline-block mb-1 p-0 {% if not is_editable %}inactive{% endif %}">

<button id="sync-to-3box" class="btn btn-sm animate-verify" data-container="body" data-toggle="popover" data-html="true"
data-placement="bottom" data-trigger="hover" data-content='
<p class="h6 my-2 text-left">Backup Profile Data to 3Box <img width="24" src="{% static "v2/images/3box.svg" %}"></p>
<p>You can backup your Gitcoin profile data to the decentralized 3Box cloud. 3Box storage is simple, secure, and private by design.</p>
<p><b>Click this button</b> to start backing up your profile data to 3Box. <b>Long press this button</b> to enable/disable automatic backup of profile data. </p>
<p>Visit 3box.io to learn more about 3Box project.</p>
'>
<img class="action" src="{% static 'v2/images/3box.svg' %}" alt="">
<img class="loading" src="{% static 'v2/images/loading.gif' %}" alt="">
</button>

<div class="profile-header__sync d-inline-block">
<button id="sync-to-3box" class="btn btn-sm animate-verify" data-container="body" data-toggle="popover" data-html="true"
data-placement="bottom" data-trigger="hover" data-content='
<p class="h6 my-2 text-left">Backup Profile Data to 3Box <img width="24" src="{% static "v2/images/3box.svg" %}"></p>
<p>You can backup your Gitcoin profile data to the decentralized 3Box cloud. 3Box storage is simple, secure, and private by design.</p>
<p><b>Click this button</b> to start backing up your profile data to 3Box. <b>Long press this button</b> to enable/disable automatic backup of profile data. </p>
<p>Visit 3box.io to learn more about 3Box project.</p>
'>
<img class="action" src="{% static 'v2/images/3box.svg' %}" alt="">
<img class="loading" src="{% static 'v2/images/loading.gif' %}" alt="">
</button>
</div>
18 changes: 6 additions & 12 deletions app/retail/templates/settings/account.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,21 @@
position: relative;
}

.profile-header__sync.inactive {
display: none;
}

.profile-header__sync img {
width: 32px;
width: 2rem;
position: relative;
top: -4px;
}

.profile-header__sync img.loading {
display: none;
}

</style>
<form id="settings" method="POST" action="{% url 'account_settings' %}" class="col-md-8 m-auto">


<div class="form-group mb-5">
<h5> Backup Profile data to 3box:</h5>
<div>
{% include 'profiles/header_sync_profile.html' %}
</div>
<div class="form-group mb-4">
<h5 class="d-inline-block">Backup Profile data to 3box</h5>
{% include 'profiles/header_sync_profile.html' %}
</div>
<div class="form-group mb-5">
<h5>{% trans "Account type" %}</h5>
Expand Down