1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 05:20:26 +00:00

Fix some layout things

This commit is contained in:
Timur Ismagilov 2021-07-24 16:09:39 +05:00
parent eb22cf206c
commit 6241350e8b
3 changed files with 41 additions and 27 deletions

View File

@ -104,7 +104,6 @@ textarea {font-size:16px; font-family: 'PT Sans', 'Liberation Sans', sans-serif;
.edit-form__message { width: 100%; margin: 0.25em 0; }
.edit-form__save { font-weight: bold; }
.edit-toolbar__buttons, .edit-toolbar__ad { margin: .5rem; }
.edit-toolbar__btn { font-size: .75rem; margin-bottom: .125rem; }
.icon {margin-right: .25rem; vertical-align: bottom; }
@ -471,6 +470,7 @@ kbd {
* Buttons
*/
::-webkit-file-upload-button,
.btn {
line-height: normal;
display: inline-block;
@ -519,6 +519,11 @@ kbd {
}
}
.edit-toolbar__btn {
font-size: .75rem;
margin-bottom: .125rem;
}
/*
* Recent changes
*/
@ -655,6 +660,10 @@ kbd {
padding: 0 .5rem;
}
.top-bar__search-bar {
vertical-align: text-top;
}
@media (prefers-color-scheme: dark) {
.top-bar a {
color: #ddd;
@ -714,7 +723,7 @@ kbd {
}
.top-bar__wrapper {
margin: 0;
grid-template-columns: 1fr 2fr 1fr;
grid-template-columns: 1fr 1fr 1fr;
}
.top-bar__section_home {
grid-column: 1 / span 1;

View File

@ -126,18 +126,18 @@ Telegram auth widget was requested by Yogurt. As you can see, we don't offer use
<p class="locked-notice__lock">🔒</p>
<h1 class="locked-notice__title">Locked</h1>
<form class="locked-notice__login-form" method="post" action="/login-data" id="login-form" enctype="multipart/form-data" autocomplete="on">
<label for="login-form__username">Username</label>
<br>
<input type="text" required autofocus id="login-form__username" name="username" autocomplete="username">
<br>
<label for="login-form__password">Password</label>
<br>
<input type="password" required name="password" autocomplete="current-password">
<br>
<input class="btn" type="submit" value="Log in">
</form>
<label for="login-form__username">Username</label>
<br>
<input type="text" required autofocus id="login-form__username" name="username" autocomplete="username">
<br>
<label for="login-form__password">Password</label>
<br>
<input type="password" required name="password" autocomplete="current-password">
<br>
<input class="btn" type="submit" value="Log in">
</form>
{%= telegramWidgetHTML() %}
</section>
{%= telegramWidgetHTML() %}
</main>
</body>
</html>

View File

@ -221,7 +221,7 @@ func streamtelegramWidgetHTML(qw422016 *qt422016.Writer) {
if cfg.TelegramEnabled {
//line views/auth.qtpl:71
qw422016.N().S(`
<p>You can log in using Telegram. It only works if you have set your @username in Telegram and this username is free on this wiki.</p>
<p class="telegram-notice">You can log in using Telegram. It only works if you have set your @username in Telegram and this username is free on this wiki.</p>
<script async src="https://telegram.org/js/telegram-widget.js?15" data-telegram-login="`)
//line views/auth.qtpl:73
qw422016.E().S(cfg.TelegramBotName)
@ -427,35 +427,40 @@ func StreamLockHTML(qw422016 *qt422016.Writer) {
<input class="btn" type="submit" value="Log in">
</form>
</section>
`)
//line views/auth.qtpl:140
streamtelegramWidgetHTML(qw422016)
//line views/auth.qtpl:140
qw422016.N().S(`
</main>
</body>
</html>
`)
//line views/auth.qtpl:143
//line views/auth.qtpl:144
}
//line views/auth.qtpl:143
//line views/auth.qtpl:144
func WriteLockHTML(qq422016 qtio422016.Writer) {
//line views/auth.qtpl:143
//line views/auth.qtpl:144
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/auth.qtpl:143
//line views/auth.qtpl:144
StreamLockHTML(qw422016)
//line views/auth.qtpl:143
//line views/auth.qtpl:144
qt422016.ReleaseWriter(qw422016)
//line views/auth.qtpl:143
//line views/auth.qtpl:144
}
//line views/auth.qtpl:143
//line views/auth.qtpl:144
func LockHTML() string {
//line views/auth.qtpl:143
//line views/auth.qtpl:144
qb422016 := qt422016.AcquireByteBuffer()
//line views/auth.qtpl:143
//line views/auth.qtpl:144
WriteLockHTML(qb422016)
//line views/auth.qtpl:143
//line views/auth.qtpl:144
qs422016 := string(qb422016.B)
//line views/auth.qtpl:143
//line views/auth.qtpl:144
qt422016.ReleaseByteBuffer(qb422016)
//line views/auth.qtpl:143
//line views/auth.qtpl:144
return qs422016
//line views/auth.qtpl:143
//line views/auth.qtpl:144
}