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;
}
h1 .whatsthis {
font-size: large;
}
a {
color: @link-color;
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 {
.upper-box {
margin-top: 4px;
@ -299,23 +323,6 @@ table {
//Dirtiest hack ever
.game-panels {
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 {
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 {
&.todo {
color: rgba(255, 255, 0, 0.2);

View file

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

View file

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

View file

@ -23,61 +23,63 @@
<h1>
Profilo di {{ ryg.username }} {% if session.get('user_id', '') == ryg.id %}<a href="{{ url_for('page_editprofile') }}" id="edit-css">Modifica</a>{% endif %}
</h1>
<div class="profile">
{% if css.bio %}
<div class="box bio">
<div class="upper-box">
Bio
</div>
<div class="lower-box">
{{ bio }}
<div class="omnicontainer">
<div class="profile">
{% if css.bio %}
<div class="box bio">
<div class="upper-box">
Bio
</div>
<div class="lower-box">
{{ bio }}
</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>
{% 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>
{% endblock %}