Improve the mobile UX (#167)

Chunky PR

Reviewed-on: https://git.leftypol.org/leftypol/leftypol/pulls/167
Co-authored-by: Zankaria <zankaria.auxa@skiff.com>
Co-committed-by: Zankaria <zankaria.auxa@skiff.com>
This commit is contained in:
Zankaria 2024-08-19 21:57:50 +00:00 committed by Zankaria
parent 31086b05d9
commit f2ea90a2d0
28 changed files with 661 additions and 451 deletions

View file

@ -18,9 +18,9 @@ img {
/* boardlist gets all scrunched on small screens */
@media screen and (max-width: 600px) {
header, img.board_image {
margin-top: 5em;
}
header, img.board_image {
margin-top: 5em;
}
}
@media screen and (min-width: 700px) {
@ -39,7 +39,6 @@ html, body {
}
div.pages{
margin:0!important;
padding: 0!important;
}
@ -61,8 +60,7 @@ img.banner, img.board_image {
}
.bar {
display: table!important;
display: table;
position: fixed;
width: 100%;
left: 0px;
@ -70,10 +68,12 @@ img.banner, img.board_image {
background-color: #D6DAF0;
border-color: #B7C5D9;
}
.bar > :not(script) {
display: table-cell;
vertical-align: middle;
}
.bar.top {
text-align: center;
top: 0px;
@ -81,11 +81,26 @@ img.banner, img.board_image {
}
.bar.bottom {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
bottom: 0px;
border-top: 1px solid #333333;
/*background-color: #333333 ;*/
}
/* Stuff in the bottom bar. */
@media (max-width: 64em) {
.pages-list {
display: none;
}
}
@media (max-width: 64em) {
#updater {
display: block;
}
}
/*homepage banner*/
div.lain_banner{
@ -102,9 +117,14 @@ body {
color: black;
font-family: arial,helvetica,sans-serif;
font-size: 10pt;
margin: 0 4px;
padding-left: 4px;
padding-right: 4px;
margin: 0px 4px;
@media (max-width: 48em) {
margin: 0px;
padding: 0px;
}
}
main,
@ -242,10 +262,6 @@ a.post_no {
color: #ff0000;
}
.intro label {
display: inline;
}
.intro time,p.intro a.ip-link,p.intro a.capcode {
direction: ltr;
unicode-bidi: embed;
@ -346,7 +362,6 @@ form table tr td div label {
.file {
float: left;
margin-right: 2px;
}
.file:not(.multifile) .post-image {
@ -359,11 +374,7 @@ form table tr td div label {
p.fileinfo {
display: block;
margin: 0 0 0 20px;
}
div.post p.fileinfo {
padding-left: 5px;
margin: 0.2em 0px;
}
div.banner {
@ -403,7 +414,7 @@ img.banner,img.board_image {
}
div.post .post-image {
padding: 5px;
padding: 0.2em;
margin: 0 20px 0 0;
}
@ -418,24 +429,29 @@ div.post i.fa, div.thread i.fa {
font-size: 16px;
}
div.post.op {
margin-right: 20px;
margin-bottom: 5px;
}
div.post.op hr {
border-color: #D9BFB7;
}
.intro {
margin: 0.5em 0;
padding: 0;
padding-bottom: 0.2em;
}
input.delete {
float: left;
margin: 1px 6px 0 0;
margin: 1px 6px 0px 0px;
scale: 1.05;
}
.intro {
padding: 0px;
line-height: 1.3em;
}
.intro span {
min-width: 0.3em;
display: inline-block;
}
.post-details {
text-wrap: nowrap;
float: right;
}
.intro span.subject {
@ -448,12 +464,12 @@ input.delete {
font-weight: bold;
}
.intro span.capcode,p.intro a.capcode,p.intro a.nametag {
.post-details span.capcode,p.intro a.capcode,p.intro a.nametag {
color: #F00000;
margin-left: 0;
}
.intro a {
.post-details a {
margin-left: 5px;
}
@ -466,13 +482,35 @@ input.delete {
color: maroon;
}
div.post p {
display: block;
margin: 0;
div.post {
margin: 0.2em 4px;
padding: 0.5em 0.3em;
display: inline-block;
max-width: 94%!important;
line-height: 1.16em;
font-size: 13px;
min-height: 1.16em;
@media (max-width: 48em) {
margin: 0.1em 0px;
padding: 0.5em 0px;
width: 100%;
max-width: unset!important;
}
}
div.post > div.head {
margin: 0.1em 1em;
clear: both;
line-height: 1.3em;
}
div.post > p {
margin: 0.1em 0.4em;
font-size: 13px;
min-height: 1.16em;
@media (max-width: 48em) {
margin-right: 1.4em;
}
}
div.post div.body {
@ -481,6 +519,10 @@ div.post div.body {
padding-bottom: 0.3em;
}
div.post.op div.body {
margin-left: 0.8em;
}
div.post.reply div.body {
margin-left: 1.8em;
}
@ -498,15 +540,27 @@ div.post div.body {
white-space: pre-wrap;
}
div.post.op {
padding-top: 0px;
vertical-align: top;
/* Add back in the padding that is provided by body on large screens */
@media (max-width: 48em) {
padding-left: 4px;
padding-right: 4px;
}
}
div.post.reply {
background: #D6DAF0;
margin: 0.2em 4px;
padding: 0.5em 0.3em 0.5em 0.6em;
border-width: 1px;
border-style: none solid solid none;
border-color: #B7C5D9;
display: inline-block;
max-width: 94%!important;
@media (max-width: 48em) {
border-left-style: none;
border-right-style: none;
}
}
div.post.reply.has-file.body-not-empty {
@ -553,19 +607,14 @@ br.clear {
}
span.controls {
float: right;
margin: 0;
padding: 0;
font-size: 80%;
}
span.controls.op {
float: none;
margin-left: 10px;
}
span.controls a {
margin: 0;
text-wrap: nowrap;
display: inline-block;
}
div#wrap {