mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Web improvements
This commit is contained in:
parent
46c0334571
commit
f029120159
10 changed files with 116 additions and 69 deletions
|
@ -30,7 +30,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
session["login_date"] = [la data e l'ora di adesso]</code></pre>
|
session["login_date"] = [la data e l'ora di adesso]</code></pre>
|
||||||
<form action="{{ url_for("login.login_done") }}" method="post" class="login-form fullsize">
|
<form action="{{ url_for("login.login_done") }}" method="post" class="login-form full">
|
||||||
<label for="login-username">
|
<label for="login-username">
|
||||||
<span class="label-text">Username</span>
|
<span class="label-text">Username</span>
|
||||||
<input id="login-username" type="text" name="username">
|
<input id="login-username" type="text" name="username">
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="dbox-bot">
|
<div class="dbox-bot">
|
||||||
<form method="post" class="newaccount-form fullsize">
|
<form method="post" class="newaccount-form full">
|
||||||
<label for="newaccount-username">
|
<label for="newaccount-username">
|
||||||
<span class="label-text">Username</span>
|
<span class="label-text">Username</span>
|
||||||
<input id="newaccount-username" type="text" name="username">
|
<input id="newaccount-username" type="text" name="username">
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
<h1>
|
<h1>
|
||||||
{{ royal.username }}
|
{{ royal.username }}
|
||||||
</h1>
|
</h1>
|
||||||
|
<div class="columns-3">
|
||||||
|
<div class="column">
|
||||||
<div class="dbox profile-links">
|
<div class="dbox profile-links">
|
||||||
<div class="dbox-top">
|
<div class="dbox-top">
|
||||||
<span class="left">Account collegati</span>
|
<span class="left">Account collegati</span>
|
||||||
|
@ -33,6 +35,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="column">
|
||||||
<div class="dbox profile-stats">
|
<div class="dbox profile-stats">
|
||||||
<div class="dbox-top">
|
<div class="dbox-top">
|
||||||
<span class="left">Statistiche</span>
|
<span class="left">Statistiche</span>
|
||||||
|
@ -50,6 +54,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="column">
|
||||||
<div class="dbox profile-aliases">
|
<div class="dbox profile-aliases">
|
||||||
<div class="dbox-top">
|
<div class="dbox-top">
|
||||||
<span class="left">Alias</span>
|
<span class="left">Alias</span>
|
||||||
|
@ -63,4 +69,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<h2>
|
||||||
|
Medals
|
||||||
|
</h2>
|
||||||
|
<p>
|
||||||
|
TODO
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="dbox-bot">
|
<div class="dbox-bot">
|
||||||
<form method="POST" class="wikiedit-form fullsize">
|
<form method="POST" class="wikiedit-form full">
|
||||||
<label for="wikiedit-title" class="label-big">
|
<label for="wikiedit-title" class="label-big">
|
||||||
<span class="label-text">Titolo</span>
|
<span class="label-text">Titolo</span>
|
||||||
<input id="wikiedit-title" type="text" name="title" value="{{ page.title }}">
|
<input id="wikiedit-title" type="text" name="title" value="{{ page.title }}">
|
||||||
|
|
|
@ -314,22 +314,22 @@ table tbody tr:last-child td:first-child {
|
||||||
table tbody tr:last-child td:last-child {
|
table tbody tr:last-child td:last-child {
|
||||||
border-radius: 0 0 4px 0;
|
border-radius: 0 0 4px 0;
|
||||||
}
|
}
|
||||||
form.fullsize label {
|
form.full label {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
form.fullsize label .label-text {
|
form.full label .label-text {
|
||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
min-width: 60px;
|
min-width: 60px;
|
||||||
}
|
}
|
||||||
form.fullsize label input {
|
form.full label input {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
form.fullsize label.label-big {
|
form.full label.label-big {
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
}
|
}
|
||||||
form.fullsize label.label-big * {
|
form.full label.label-big * {
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
}
|
}
|
||||||
*[disabled=""],
|
*[disabled=""],
|
||||||
|
@ -398,17 +398,31 @@ form.fullsize label.label-big * {
|
||||||
background-color: rgba(160, 204, 255, 0.2);
|
background-color: rgba(160, 204, 255, 0.2);
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
.horizontal-container {
|
.horizontal-container-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
@media (max-width: 799px) {
|
@media (max-width: 1199px) {
|
||||||
.horizontal-container {
|
.horizontal-container-main {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.columns-3 {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-content: center;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
.columns-3 .column {
|
||||||
|
width: 33.3%;
|
||||||
|
}
|
||||||
|
.fill {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
.vertical-main {
|
.vertical-main {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -387,7 +387,7 @@ table {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
form.fullsize {
|
form.full {
|
||||||
|
|
||||||
label {
|
label {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
|
@ -492,18 +492,37 @@ form.fullsize {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Horizontal container, should contain elements such as main and sidebar
|
//Horizontal container, should contain elements such as main and sidebar
|
||||||
.horizontal-container {
|
.horizontal-container-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
@media (max-width: 799px)
|
@media (max-width: 1199px)
|
||||||
{
|
{
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Tripart horizontal container
|
||||||
|
.columns-3 {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-content: center;
|
||||||
|
flex-direction: row;
|
||||||
|
|
||||||
|
.column {
|
||||||
|
width: 33.3%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//Fill the whole parent element and ignore margins
|
||||||
|
.fill {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
//Vertical main page container
|
//Vertical main page container
|
||||||
.vertical-main {
|
.vertical-main {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -228,14 +228,14 @@ nav .nav-sitename {
|
||||||
nav .nav-login-unavailable {
|
nav .nav-login-unavailable {
|
||||||
opacity: 0.25;
|
opacity: 0.25;
|
||||||
}
|
}
|
||||||
.horizontal-container {
|
.horizontal-container-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
@media (min-width: 800px) {
|
@media (min-width: 800px) {
|
||||||
.horizontal-container {
|
.horizontal-container-main {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -275,7 +275,7 @@ nav {
|
||||||
|
|
||||||
//Elements
|
//Elements
|
||||||
|
|
||||||
.horizontal-container {
|
.horizontal-container-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="horizontal-container">
|
<div class="horizontal-container-main">
|
||||||
<div class="vertical-main">
|
<div class="vertical-main">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue