1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Create .omnicontainer and .whatsthis

This commit is contained in:
Steffo 2019-01-04 02:15:44 +01:00
parent 5e98ca76d8
commit ec0009a2e5
4 changed files with 95 additions and 103 deletions

View file

@ -18,6 +18,10 @@ h1, h2, h3, h4, h5, h6 {
color: @accent-color; color: @accent-color;
} }
h1 .whatsthis {
font-size: large;
}
a { a {
color: @link-color; color: @link-color;
text-decoration: none; text-decoration: none;
@ -204,6 +208,26 @@ table {
} }
} }
.omnicontainer {
width: 380px;
margin-left: auto;
margin-right: auto;
@media (min-width: 792px)
{
width: 776px;
}
@media (min-width: 1180px)
{
width: 1164px;
}
@media (min-width: 1568px) {
width: 1552px;
}
}
.box { .box {
.upper-box { .upper-box {
margin-top: 4px; margin-top: 4px;
@ -299,23 +323,6 @@ table {
//Dirtiest hack ever //Dirtiest hack ever
.game-panels { .game-panels {
font-size: 0; font-size: 0;
width: 380px;
margin-left: auto;
margin-right: auto;
@media (min-width: 792px)
{
width: 776px;
}
@media (min-width: 1180px)
{
width: 1164px;
}
@media (min-width: 1568px) {
width: 1552px;
}
.game-panel { .game-panel {
font-size: medium; font-size: medium;
@ -920,27 +927,6 @@ table {
} }
} }
.profile {
width: 380px;
margin-left: auto;
margin-right: auto;
@media (min-width: 792px)
{
width: 776px;
}
@media (min-width: 1180px)
{
width: 1164px;
}
@media (min-width: 1568px)
{
width: 1552px;
}
}
.mysterystatus i { .mysterystatus i {
&.todo { &.todo {
color: rgba(255, 255, 0, 0.2); color: rgba(255, 255, 0, 0.2);

View file

@ -10,11 +10,13 @@
{% block body %} {% block body %}
<h1> <h1>
Diario Diario <a href="{{ url_for("page_wiki", key="Diario") }}" class="whatsthis">Cos'è?</a>
</h1> </h1>
<div class="diario"> <div class="omnicontainer">
{% for entry in entries %} <div class="diario">
{% include "components/diarioentry.html" %} {% for entry in entries %}
{% endfor %} {% include "components/diarioentry.html" %}
{% endfor %}
</div>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -13,13 +13,15 @@
<h1> <h1>
Royal Games su {{ game_name }} Royal Games su {{ game_name }}
</h1> </h1>
<div class="game-page"> <div class="omnicontainer">
<div class="game-panels"> <div class="game">
{% for mini in minis %} <div class="game-panels">
{% with record = mini %} {% for mini in minis %}
{% include "minis/" + game_short_name + ".html" %} {% with record = mini %}
{% endwith %} {% include "minis/" + game_short_name + ".html" %}
{% endfor %} {% endwith %}
{% endfor %}
</div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -23,61 +23,63 @@
<h1> <h1>
Profilo di {{ ryg.username }} {% if session.get('user_id', '') == ryg.id %}<a href="{{ url_for('page_editprofile') }}" id="edit-css">Modifica</a>{% endif %} Profilo di {{ ryg.username }} {% if session.get('user_id', '') == ryg.id %}<a href="{{ url_for('page_editprofile') }}" id="edit-css">Modifica</a>{% endif %}
</h1> </h1>
<div class="profile"> <div class="omnicontainer">
{% if css.bio %} <div class="profile">
<div class="box bio"> {% if css.bio %}
<div class="upper-box"> <div class="box bio">
Bio <div class="upper-box">
</div> Bio
<div class="lower-box"> </div>
{{ bio }} <div class="lower-box">
{{ bio }}
</div>
</div> </div>
{% endif %}
<div class="game-panels">
{% with record = ryg %}
{% include "minis/ryg.html" %}
{% endwith %}
{% if halloween %}
{% with record = halloween %}
{% include "minis/halloween2018.html" %}
{% endwith %}
{% endif %}
{% if tg %}
{% with record = tg %}
{% include "minis/tg.html" %}
{% endwith %}
{% endif %}
{% if discord %}
{% with record = discord %}
{% include "minis/discord.html" %}
{% endwith %}
{% endif %}
{% if steam %}
{% with record = steam %}
{% include "minis/steam.html" %}
{% endwith %}
{% endif %}
{% if dota %}
{% with record = dota %}
{% include "minis/dota.html" %}
{% endwith %}
{% endif %}
{% if osu %}
{% with record = osu %}
{% include "minis/osu.html" %}
{% endwith %}
{% endif %}
{% if lol %}
{% with record = lol %}
{% include "minis/lol.html" %}
{% endwith %}
{% endif %}
{% if ow %}
{% with record = ow %}
{% include "minis/ow.html" %}
{% endwith %}
{% endif %}
</div> </div>
{% endif %}
<div class="game-panels">
{% with record = ryg %}
{% include "minis/ryg.html" %}
{% endwith %}
{% if halloween %}
{% with record = halloween %}
{% include "minis/halloween2018.html" %}
{% endwith %}
{% endif %}
{% if tg %}
{% with record = tg %}
{% include "minis/tg.html" %}
{% endwith %}
{% endif %}
{% if discord %}
{% with record = discord %}
{% include "minis/discord.html" %}
{% endwith %}
{% endif %}
{% if steam %}
{% with record = steam %}
{% include "minis/steam.html" %}
{% endwith %}
{% endif %}
{% if dota %}
{% with record = dota %}
{% include "minis/dota.html" %}
{% endwith %}
{% endif %}
{% if osu %}
{% with record = osu %}
{% include "minis/osu.html" %}
{% endwith %}
{% endif %}
{% if lol %}
{% with record = lol %}
{% include "minis/lol.html" %}
{% endwith %}
{% endif %}
{% if ow %}
{% with record = ow %}
{% include "minis/ow.html" %}
{% endwith %}
{% endif %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}