mirror of
https://github.com/codl/forget
synced 2025-01-05 19:56:48 +01:00
(laughing) more buttons!
This commit is contained in:
parent
a706f6fd6e
commit
8a60b85586
@ -200,13 +200,17 @@ button {
|
||||
padding: 0.4em 0.8em;
|
||||
border: none;
|
||||
|
||||
border-color: currentColor;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-small {
|
||||
font-size: 0.8em;
|
||||
padding: 0.2em 0.5em;
|
||||
}
|
||||
|
||||
.btn.primary {
|
||||
color: white;
|
||||
background-color: #37d;
|
||||
border-color: #37d;
|
||||
}
|
||||
|
||||
.btn.secondary {
|
||||
@ -231,6 +235,11 @@ button {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.btn-group.inline {
|
||||
display: inline-block;
|
||||
transform: translatey(20%);
|
||||
}
|
||||
|
||||
.btn-group.right {
|
||||
float: right;
|
||||
margin-left: 1em;
|
||||
|
@ -2,7 +2,12 @@
|
||||
<p>Hello,
|
||||
<img class=avatar id=avatar src="{{g.viewer.account.get_avatar()}}" alt=""/>
|
||||
<span id='display-name' title='@{{g.viewer.account.screen_name}}'>{{g.viewer.account.display_name or g.viewer.account.screen_name}}</span>!
|
||||
<a href="{{url_for('logout')}}">Log out</a>
|
||||
<span class='btn-group inline'>
|
||||
{% if not request or not request.endpoint == 'index' %}
|
||||
<a class='btn btn-small primary' href="{{url_for('index')}}">Open dashboard</a>
|
||||
{% endif %}
|
||||
<a class='btn btn-small secondary' href="{{url_for('logout')}}">Log out</a>
|
||||
</span>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>Hello, stranger!</p>
|
||||
|
Loading…
Reference in New Issue
Block a user