1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-06 10:00:26 +00:00

Make editor buttons dark in the dark theme

This commit is contained in:
Timur Ismagilov 2021-06-16 02:46:25 +05:00
parent fff770a2f5
commit e5e9720654
3 changed files with 19 additions and 17 deletions

View File

@ -80,7 +80,7 @@ header { width: 100%; margin-bottom: 1rem; }
}
@media screen and (min-width: 1150px) {
.edit-toolbar__buttons { grid-template-columns: 1fr 1fr; }
.edit-toolbar__buttons { grid-template-columns: 1fr 1fr; grid-column-gap: .125rem; }
}
@media screen and (min-width: 1250px) {
@ -107,6 +107,11 @@ body, input, kbd { font-size:16px; font-family: 'PT Sans', 'Liberation Sans', sa
main > form {margin-bottom:1rem;}
textarea {font-size:16px; font-family: 'PT Sans', 'Liberation Sans', sans-serif;}
::-webkit-file-upload-button,
.btn { line-height: normal; display: inline-block; border: 1px #999 solid; border-radius: .25rem; text-decoration: none; padding: .25rem; font-size: 1rem; margin: 0; }
.btn_weak { border: 1px #999 dashed; }
.btn:hover, .btn:active { cursor: pointer; }
.edit { min-height: 80vh; }
.edit__title { margin-top: 0; }
.edit__preview { border: 2px dashed #ddd; }
@ -116,6 +121,7 @@ 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; }
@ -204,10 +210,6 @@ caption { caption-side: top; font-size: small; }
.relative-hyphae__entry_this { padding: .25rem .5rem; font-weight: bold; }
.relative-hyphae__link { text-decoration: none; display: block; padding: .25rem .5rem; }
::-webkit-file-upload-button,
.btn { line-height: normal; display: inline-block; border: 1px #999 solid; border-radius: .25rem; text-decoration: none; padding: .25rem; font-size: 1rem; margin: 0; }
.btn_weak { border: 1px #999 dashed; }
/* Color stuff */
/* Lighter stuff #eee */
::-webkit-file-upload-button, .btn { background-color: #eee; color: black; }

View File

@ -33,7 +33,7 @@
{"numberedlist", "insertNumberedList()", "*. number list"},
} %}
<button
class="edit-toolbar__btn edit-toolbar__{%s el.class %}"
class="btn edit-toolbar__btn edit-toolbar__{%s el.class %}"
onclick="{%s el.onclick %}">
{%s= el.display %}
</button>
@ -51,14 +51,14 @@
{"time", "insertTimeUTC()", "Insert current time"},
} %}
<button
class="edit-toolbar__btn edit-toolbar__{%s el.class %}"
class="btn edit-toolbar__btn edit-toolbar__{%s el.class %}"
onclick="{%s el.onclick %}">
{%s= el.display %}
</button>
{% endfor %}
{% if u.Group != "anon" %}
<button
class="edit-toolbar__btn edit-toolbar__user-link"
class="btn edit-toolbar__btn edit-toolbar__user-link"
onclick="insertUserlink()">
Link yourself
</button>
@ -81,9 +81,9 @@
<label for="text">Describe your changes:</label><br>
<input id="text" type="text" name="message" class="edit-form__message" placeholder="(optional)">
<br/><br/>
<input type="submit" name="action" value="Save" class="edit-form__save"/>
<input type="submit" name="action" value="Preview" class="edit-form__preview">
<a href="/hypha/{%s hyphaName %}" class="edit-form__cancel">Cancel</a>
<input type="submit" name="action" class="btn" value="Save" class="edit-form__save"/>
<input type="submit" name="action" class="btn" value="Preview" class="edit-form__preview">
<a href="/hypha/{%s hyphaName %}" class="btn btn_weak">Cancel</a>
</form>
</main>
{%s= Toolbar(user.FromRequest(rq)) %}

View File

@ -65,7 +65,7 @@ func StreamToolbar(qw422016 *qt422016.Writer, u *user.User) {
//line views/mutators.qtpl:34
qw422016.N().S(`
<button
class="edit-toolbar__btn edit-toolbar__`)
class="btn edit-toolbar__btn edit-toolbar__`)
//line views/mutators.qtpl:36
qw422016.E().S(el.class)
//line views/mutators.qtpl:36
@ -103,7 +103,7 @@ func StreamToolbar(qw422016 *qt422016.Writer, u *user.User) {
//line views/mutators.qtpl:52
qw422016.N().S(`
<button
class="edit-toolbar__btn edit-toolbar__`)
class="btn edit-toolbar__btn edit-toolbar__`)
//line views/mutators.qtpl:54
qw422016.E().S(el.class)
//line views/mutators.qtpl:54
@ -130,7 +130,7 @@ func StreamToolbar(qw422016 *qt422016.Writer, u *user.User) {
//line views/mutators.qtpl:59
qw422016.N().S(`
<button
class="edit-toolbar__btn edit-toolbar__user-link"
class="btn edit-toolbar__btn edit-toolbar__user-link"
onclick="insertUserlink()">
Link yourself
</button>
@ -208,13 +208,13 @@ func StreamEditHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, text
<label for="text">Describe your changes:</label><br>
<input id="text" type="text" name="message" class="edit-form__message" placeholder="(optional)">
<br/><br/>
<input type="submit" name="action" value="Save" class="edit-form__save"/>
<input type="submit" name="action" value="Preview" class="edit-form__preview">
<input type="submit" name="action" class="btn" value="Save" class="edit-form__save"/>
<input type="submit" name="action" class="btn" value="Preview" class="edit-form__preview">
<a href="/hypha/`)
//line views/mutators.qtpl:86
qw422016.E().S(hyphaName)
//line views/mutators.qtpl:86
qw422016.N().S(`" class="edit-form__cancel">Cancel</a>
qw422016.N().S(`" class="btn btn_weak">Cancel</a>
</form>
</main>
`)