From 2359c1cd4bc3c91061b7ef6b7d7022c85b7ac970 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 8 Jan 2019 19:43:26 +0100 Subject: [PATCH] Style improvements --- static/nryg.less | 79 +++++++---------- templates/base.html | 4 +- templates/components/gamestatsbox.html | 2 +- templates/components/memberbox.html | 2 +- templates/components/wikibox.html | 2 +- templates/diario.html | 10 +-- templates/game.html | 16 ++-- templates/main.html | 2 +- templates/profile.html | 118 ++++++++++++------------- 9 files changed, 110 insertions(+), 125 deletions(-) diff --git a/static/nryg.less b/static/nryg.less index abd0d14f..cbb3ce59 100644 --- a/static/nryg.less +++ b/static/nryg.less @@ -18,10 +18,6 @@ h1, h2, h3, h4, h5, h6 { color: @accent-color; } -h1 .whatsthis { - font-size: large; -} - a { color: @link-color; text-decoration: none; @@ -216,6 +212,11 @@ table { ul { list-style: none; + .multicolumn { + column-width: 192px; + word-wrap: break-word; + } + li { &::before { content: "•"; @@ -232,21 +233,23 @@ ul { } } +img { + max-width: 100%; + + @media (max-width:792px) { + max-width: initial; + } +} + +.whatsthis { + font-size: large; +} + .omnicontainer { - width: 380px; + width: 100%; margin-left: auto; margin-right: auto; - @media (min-width: 792px) - { - width: 776px; - } - - @media (min-width: 1180px) - { - width: 1164px; - } - @media (min-width: 1568px) { width: 1552px; } @@ -273,11 +276,6 @@ ul { border-radius: 0 0 4px 4px; padding: 8px; } - - ul { - column-width: 200px; - word-wrap: break-word; - } } .input-grid { @@ -294,28 +292,6 @@ ul { } } -.super-title { - font-size: 64px; - text-align: center; - - img { - height: 128px; - vertical-align: middle; - } -} - -@media (min-width:601px) { - .mobile-only { - display: none; - } -} - -@media (max-width:600px) { - .desktop-only { - display: none; - } -} - .game-panel { display: inline-block; margin: 4px; @@ -934,7 +910,7 @@ ul { .two-columns { display: grid; - @media (min-width:601px) { + @media (min-width:791px) { //Desktop grid-template-columns: 50% 50%; @@ -948,7 +924,7 @@ ul { } } - @media (max-width:600px) { + @media (max-width:792px) { //Mobile grid-template-columns: 100%; @@ -1009,7 +985,6 @@ ul { } } - .quest { padding: 8px; color: @accent-color; @@ -1055,6 +1030,20 @@ ul { } } +#royal-games { + font-size: 64px; + text-align: center; + + @media (max-width:792px) { + font-size: 32px; + } + + img { + height: 128px; + vertical-align: middle; + } +} + #debug-mode { color: red; font-weight: bold; diff --git a/templates/base.html b/templates/base.html index cfa63c9f..87c90a3c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -32,6 +32,8 @@ - {% block body %}{% endblock %} +
+ {% block body %}{% endblock %} +
\ No newline at end of file diff --git a/templates/components/gamestatsbox.html b/templates/components/gamestatsbox.html index cd7677f0..596150b9 100644 --- a/templates/components/gamestatsbox.html +++ b/templates/components/gamestatsbox.html @@ -3,7 +3,7 @@ Noi in vari giochi
-
-
-