diff --git a/public/style.css b/public/style.css index 3d0b8df7..e2f7c09b 100644 --- a/public/style.css +++ b/public/style.css @@ -7312,6 +7312,17 @@ article code { .flex-grow-1 { flex-grow: 1; } +.flex-fair { + flex-basis: 1px; + flex-grow: 1; + flex-shrink: 1; } + +@media screen and (min-width: 30em) { + .flex-fair-ns { + flex-basis: 1px; + flex-grow: 1; + flex-shrink: 1; } } + .b--theme { border-color: #666; border-color: var(--theme-color); } diff --git a/src/rawdata/scss/_core.scss b/src/rawdata/scss/_core.scss index 09fc8f01..07d9d12e 100644 --- a/src/rawdata/scss/_core.scss +++ b/src/rawdata/scss/_core.scss @@ -180,6 +180,20 @@ article code { flex-grow: 1; } +.flex-fair { + flex-basis: 1px; + flex-grow: 1; + flex-shrink: 1; +} + +@media #{$breakpoint-not-small} { + .flex-fair-ns { + flex-basis: 1px; + flex-grow: 1; + flex-shrink: 1; + } +} + .b--theme { @include usevar(border-color, theme-color); } diff --git a/src/templates/src/editor.html b/src/templates/src/editor.html index 2413379d..e4e071df 100644 --- a/src/templates/src/editor.html +++ b/src/templates/src/editor.html @@ -9,92 +9,99 @@ + + {{ end }} {{ define "content" }} -
-
- {{ csrftoken .Session }} +
+
+ + {{ csrftoken .Session }} - - {{/* TODO: Reintroduce the toolbar in a way that makes sense for Markdown */}} - {{/* -
- - - - - - - - - - - - - - - - - -
- */}} - + + {{/* TODO: Reintroduce the toolbar in a way that makes sense for Markdown */}} + {{/* +
+ + + + + + + + + + + + + + + + + +
+ */}} + -
- -
+
+ +
-
+ {{ if .IsEditing }} + + + + + {{ end }} + + {{/* TODO: Sticky threads + {% if user.is_staff and post and post.depth == 0 %} +
+ + +
+ {% endif %} + */}} + + {{/* + + {% if context_reply_to %} +

The post you're replying to:

+
+ {% with post=post_reply_to %} + {% include "forum_thread_single_post.html" %} + {% endwith %} +
+ {% endif %} + + {% if context_newer %} +

Replies since then:

+
+ {% for post in posts_newer %} + {% include "forum_thread_single_post.html" %} + {% endfor %} +
+ {% endif %} + + {% if context_older %} +

Replies before then:

+
+ {% for post in posts_older %} + {% include "forum_thread_single_post.html" %} + {% endfor %} +
+ {% endif %} + */}} + +
- - {{ if .IsEditing }} - - - - - {{ end }} - - {{/* TODO: Sticky threads - {% if user.is_staff and post and post.depth == 0 %} -
- - -
- {% endif %} - */}} - - {{/* - - {% if context_reply_to %} -

The post you're replying to:

-
- {% with post=post_reply_to %} - {% include "forum_thread_single_post.html" %} - {% endwith %} -
- {% endif %} - - {% if context_newer %} -

Replies since then:

-
- {% for post in posts_newer %} - {% include "forum_thread_single_post.html" %} - {% endfor %} -
- {% endif %} - - {% if context_older %} -

Replies before then:

-
- {% for post in posts_older %} - {% include "forum_thread_single_post.html" %} - {% endfor %} -
- {% endif %} - */}} - +