Make login modal look better

This commit is contained in:
Jeremy Zhang 2017-05-24 05:32:19 +00:00
parent 014e06d780
commit dc98421ded
2 changed files with 29 additions and 3 deletions

View File

@ -197,3 +197,29 @@ a {
.align-top {
vertical-align: top;
}
#modal_guildinfobox {
background-color: #455a64;
padding-top: 10px;
padding-bottom: 10px;
}
#modal_guildiconcircle {
width: 100%;
max-width: 200px;
}
.btn {
max-width: 100%;
}
@media only screen and (min-width: 800px) {
.valign-wrap {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
}

View File

@ -76,10 +76,10 @@
<div id="loginmodal" class="modal">
<div class="modal-content">
<h4>{{ login_greeting }}</h4>
<div class="row valign-wrapper">
<div class="col m3 s12" style="background-color: #455a64; padding-top: 10px; padding-bottom: 10px;">
<div id="loginmodal-maincontent" class="row valign-wrap">
<div id="modal_guildinfobox" class="col m3 s12">
{% if guild['icon'] %}
<img class="circle" src="{{ generate_guild_icon( guild['id'], guild['icon'] ) }}">
<img id="modal_guildiconcircle" class="circle" src="{{ generate_guild_icon( guild['id'], guild['icon'] ) }}">
{% endif %}
<p id="modal_guildname"><strong>{{ guild['name'] }}</strong></p>
<a id="modal_invite_btn" class="waves-effect waves-light btn" target="_blank">discord.gg</a>