1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 22:05:09 +01:00

Fixed card height. Attempt at vertical alignment of icons and text

This commit is contained in:
2016-07-23 21:08:44 +02:00
parent 706a583896
commit 07d6c54c7e
2 changed files with 12 additions and 13 deletions

View File

@@ -1,12 +1,4 @@
.tag
{
color: #1b5e20; /* green darken-4 */
background-color: #c8e6c9; /* green lighten-3 */
padding: 2px;
border-radius: 5px;
}
/* label color */ /* label color */
.input-field label { .input-field label {
color: #000; color: #000;
@@ -48,3 +40,8 @@
{ {
color: #1b5e20; /* green darken-4 */ color: #1b5e20; /* green darken-4 */
} }
.card.tiny
{
height: 160px;
}

View File

@@ -68,7 +68,7 @@
<p>{{ bookmark.created_date.strftime("%m/%d/%Y %H:%M") }}</p> <p>{{ bookmark.created_date.strftime("%m/%d/%Y %H:%M") }}</p>
</div> </div>
#} #}
<div class="card green darken-3"> <div class="card tiny green darken-3">
<div class="card-content white-text"> <div class="card-content white-text">
<span class="card-title activator"><i class="material-icons right">more_vert</i></span> <span class="card-title activator"><i class="material-icons right">more_vert</i></span>
{% if bookmark.http_status != 200 %} {% if bookmark.http_status != 200 %}
@@ -82,7 +82,8 @@
<a href="{{ url_for('tag', userkey=userkey, tag=tag) }}">{{ tag }}</a> <a href="{{ url_for('tag', userkey=userkey, tag=tag) }}">{{ tag }}</a>
</div> </div>
{% endfor %} {% endfor %}
<p><a href="{{ bookmark.url }}" title="{{ bookmark.url }}" rel="noreferrer"> <div class="valign-wrapper">
<div class="valign"><a href="{{ bookmark.url }}" title="{{ bookmark.url }}" rel="noreferrer">
{% if bookmark.starred == True %} {% if bookmark.starred == True %}
<i class="material-icons">star</i> <i class="material-icons">star</i>
{% endif %} {% endif %}
@@ -91,11 +92,12 @@
{% else %} {% else %}
[ no title ] [ no title ]
{% endif %} {% endif %}
</a></p> </a></div>
</div>
</div> </div>
<div class="card-reveal green darken-3"> <div class="card-reveal green darken-3">
<span class="card-title white-text">Added @ {{ bookmark.created_date.strftime('%Y-%m-%d %H:%M') }}<i class="material-icons right">close</i></span> <span class="card-title white-text valign-wrapper">Added @ {{ bookmark.created_date.strftime('%Y-%m-%d %H:%M') }}<i class="material-icons right">close</i></span>
<div class="white-text"> <div class="white-text valign">
{% if bookmark.favicon %} {% if bookmark.favicon %}
<img src="{{ url_for('static', filename='favicons/' + bookmark.favicon) }}" />&nbsp;&nbsp;&nbsp; <img src="{{ url_for('static', filename='favicons/' + bookmark.favicon) }}" />&nbsp;&nbsp;&nbsp;
{% endif %} {% endif %}