added mobile board feed

This commit is contained in:
plebbitor
2023-02-26 19:13:46 +01:00
parent ab90d6af5f
commit 7354a5016b
3 changed files with 1000 additions and 105 deletions
+844 -29
View File
@@ -310,8 +310,9 @@ export const Header = styled.div`
}
.board-address {
color: #af0a0f;
margin-top: 5px;
font-size: 11pt;
font-size: 10pt;
}`;
case 'Burichan':
@@ -1380,11 +1381,10 @@ export const TopBar = styled.div`
}
@media (max-width: 480px) {
line-height: 30px;
line-height: 25px;
hr {
margin-left: calc((100% - 100vw) / 2);
margin-right: calc((100% - 100vw) / 2);
display: none;
}
#catalog-button-desktop {
@@ -1535,32 +1535,11 @@ ${({ selectedStyle }) => {
`;
export const BoardForm = styled.div`
.file {
display: block;
}
.file-text {
max-width: 600px;
white-space: nowrap;
}
.fileText a {
text-decoration: underline;
}
.file-thumb {
float: left;
margin: 3px 20px 5px 20px;
}
.file-thumb img {
border: none;
float: left;
max-width: 250px;
max-height: 250px;
}
@media (min-width: 480px) {
.thread-mobile {
display: none;
}
.post-info {
margin: 3px;
display: block;
@@ -1573,6 +1552,10 @@ export const BoardForm = styled.div`
}
@media (max-width: 480px) {
.thread {
display: none;
}
hr {
margin-left: calc((100% - 100vw) / 2);
margin-right: calc((100% - 100vw) / 2);
@@ -1593,6 +1576,204 @@ export const BoardForm = styled.div`
}
}
.file {
display: block;
.file-text {
max-width: 600px;
white-space: nowrap;
}
.fileText a {
text-decoration: underline;
}
.file-thumb {
float: left;
margin: 3px 20px 5px 20px;
}
.file-thumb img {
border: none;
float: left;
max-width: 250px;
max-height: 250px;
}
}
.thread-mobile {
border-top: none;
margin: 0;
clear: both;
hr {
margin-top: 30px;
margin-bottom: 30px;
}
.op-container {
margin: 0 -5px;
padding: 5px;
display: block;
overflow: hidden;
.op {
display: inline;
margin: 4px 0;
overflow: hidden;
}
.post-info-mobile {
overflow: hidden;
padding: 5px;
margin: -5px -6px -5px -5px;
display: block;
clear: left;
}
.post-menu-button-mobile {
text-decoration: none;
line-height: 1em;
width: 1em;
text-align: center;
outline: none;
transform: rotate(90deg);
margin: 4px -5px 0 4px !important;
float: left;
font-weight: 700;
opacity: 1 !important;
height: .5em !important;
font-size: 16px;
}
.name-block-mobile {
clear: none;
float: left;
.subject-mobile {
display: block;
}
}
.date-time-mobile {
float: right;
text-align: right;
}
.file-mobile {
display: block;
.file-thumb-mobile {
margin-left: 10px !important;
margin-right: 10px !important;
text-decoration: none;
float: left;
margin-bottom: 5px;
margin-top: 15px;
}
.file-info-mobile {
padding-top: 5px;
text-align: center;
text-decoration: none;
display: block !important;
clear: left !important;
}
}
img {
border: none;
float: left;
max-width: 100px;
max-height: 100px;
object-fit: scale-down;
}
blockquote {
padding-top: 5px;
display: block;
margin: 10px !important;
}
.post-link-mobile {
clear: both !important;
padding: 5px;
overflow: hidden;
margin: -5px;
display: block !important;
}
.info-mobile {
margin-top: 8px;
float: left;
}
.button-mobile {
float: right;
border-radius: 3px;
padding: 6px 10px 5px;
user-select: none;
text-decoration: none;
}
}
.reply-container {
margin: 7px 2px 0;
padding-left: 0;
.post-reply {
margin-top: 0 !important;
width: 100%;
padding: 0 !important;
display: table;
overflow: hidden;
}
.post-info-mobile {
margin: 0;
overflow: hidden;
padding: 5px;
display: block !important;
clear: left !important;
.post-menu-button-mobile {
text-decoration: none;
line-height: 1em;
width: 1em;
text-align: center;
outline: none;
transform: rotate(90deg);
margin: 4px -5px 0 4px !important;
float: left;
font-weight: 700;
opacity: 1 !important;
height: .5em !important;
font-size: 16px;
}
.name-block-mobile {
clear: none;
float: left;
}
.date-time-mobile {
float: right;
text-align: right;
a {
text-decoration: none;
}
}
}
blockquote {
display: block;
margin: 10px !important;
}
}
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
@@ -2465,4 +2646,638 @@ export const BoardForm = styled.div`
}
}}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `
.op-container {
background-color: #f5e9e1;
border: 1px solid #d9bfb7 !important;
.post-info-mobile {
border-bottom: 1px solid #d9bfb7;
background-color: #ead6ca;
}
.post-menu-button-mobile {
color: #00e;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.subject-mobile {
color: #cc1105;
font-weight: 700;
}
.date-time-mobile {
color: maroon;
}
.file-thumb-mobile {
color: #00e !important;
}
.file-info-mobile {
color: #707070;
font-size: 9pt !important;
}
blockquote {
font-size: 11pt;
}
.post-link-mobile {
background-color: #ead6ca;
border-top: 1px solid #d9bfb7;
}
.info-mobile {
color: #800;
}
.button-mobile {
color: #800;
font-weight: 700;
background-color: #f0e0d6;
border: 1px solid #c0a69d;
background-image: url(/assets/buttonfade.png);
background-repeat: repeat-x;
text-decoration: none;
}
}
.reply-container {
background-color: #f0e0d6;
.post-reply {
background-color: #f0e0d6;
border: 1px solid #d9bfb7;
}
.post-info-mobile {
border-bottom: 1px solid #d9bfb7;
background-color: #ead6ca;
.post-menu-button-mobile {
color: #00e;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.date-time-mobile {
color: maroon;
a {
color: maroon;
}
}
}
blockquote {
font-size: 11pt;
.quotelink-mobile {
color: navy !important;
text-decoration: underline;
}
.quotelink-mobile:hover {
color: red !important;
}
}
}
}`;
case 'Yotsuba B':
return `
.op-container {
background-color: #d6daf0;
border: 1px solid #b7c5d9 !important;
.post-info-mobile {
border-bottom: 1px solid #b7c5d9;
background-color: #c9cde8;
}
.post-menu-button-mobile {
color: #34345c;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.subject-mobile {
color: #0f0c5d;
font-weight: 700;
}
.date-time-mobile {
color: #000;
}
.file-thumb-mobile {
color: #81a2be !important;
}
.file-info-mobile {
color: #707070;
font-size: 9pt !important;
}
blockquote {
font-size: 11pt;
}
.post-link-mobile {
background-color: #c9cde8;
border-top: 1px solid #b7c5d9;
}
.info-mobile {
color: #34345c;
}
.button-mobile {
color: #34345c;
font-weight: 700;
background-color: #d6daf0;
border: 1px solid #b7c5d9;
background-image: url(/assets/buttonfade-blue.png);
background-repeat: repeat-x;
text-decoration: none;
}
}
.reply-container {
background-color: #d6daf0;
.post-reply {
background-color: #d6daf0;
border: 1px solid #b7c5d9;
}
.post-info-mobile {
border-bottom: 1px solid #b7c5d9;
background-color: #c9cde8;
.post-menu-button-mobile {
color: #34345c;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.date-time-mobile {
color: #000;
a {
color: #000;
}
}
}
blockquote {
font-size: 11pt;
}
}
}`;
case 'Futaba':
return `
.op-container {
background-color: #f5e9e1;
border: 1px solid #d9bfb7 !important;
.post-info-mobile {
border-bottom: 1px solid #d9bfb7;
background-color: #ead6ca;
}
.post-menu-button-mobile {
color: #00e;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.subject-mobile {
color: #cc1105;
font-weight: 700;
}
.date-time-mobile {
color: maroon;
}
.file-thumb-mobile {
color: #00e !important;
}
.file-info-mobile {
color: #707070;
font-size: 9pt !important;
}
blockquote {
font-size: 12pt;
}
.post-link-mobile {
background-color: #ead6ca;
border-top: 1px solid #d9bfb7;
}
.info-mobile {
color: #800;
}
.button-mobile {
color: #800;
font-weight: 700;
background-color: #f0e0d6;
border: 1px solid #c0a69d;
background-image: url(/assets/buttonfade.png);
background-repeat: repeat-x;
text-decoration: none;
}
}
.reply-container {
background-color: #f0e0d6;
.post-reply {
background-color: #f0e0d6;
border: 1px solid #d9bfb7;
}
.post-info-mobile {
border-bottom: 1px solid #d9bfb7;
background-color: #ead6ca;
.post-menu-button-mobile {
color: #00e;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.date-time-mobile {
color: maroon;
a {
color: maroon;
}
}
}
blockquote {
font-size: 12pt;
.quotelink-mobile {
color: navy !important;
text-decoration: underline;
}
.quotelink-mobile:hover {
color: red !important;
}
}
}
}`;
case 'Burichan':
return `
.op-container {
background-color: #d6daf0;
border: 1px solid #b7c5d9 !important;
.post-info-mobile {
border-bottom: 1px solid #b7c5d9;
background-color: #c9cde8;
}
.post-menu-button-mobile {
color: #34345c;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.subject-mobile {
color: #0f0c5d;
font-weight: 700;
}
.date-time-mobile {
color: #000;
}
.file-thumb-mobile {
color: #81a2be !important;
}
.file-info-mobile {
color: #707070;
font-size: 9pt !important;
}
blockquote {
font-size: 12pt;
}
.post-link-mobile {
background-color: #c9cde8;
border-top: 1px solid #b7c5d9;
}
.info-mobile {
color: #34345c;
}
.button-mobile {
color: #34345c;
font-weight: 700;
background-color: #d6daf0;
border: 1px solid #b7c5d9;
background-image: url(/assets/buttonfade-blue.png);
background-repeat: repeat-x;
text-decoration: none;
}
}
.reply-container {
background-color: #d6daf0;
.post-reply {
background-color: #d6daf0;
border: 1px solid #b7c5d9;
}
.post-info-mobile {
border-bottom: 1px solid #b7c5d9;
background-color: #c9cde8;
.post-menu-button-mobile {
color: #34345c;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.date-time-mobile {
color: #000;
a {
color: #000;
}
}
}
blockquote {
font-size: 12pt;
}
}
}`;
case 'Tomorrow':
return `
.op-container {
background-color: #282A2E;
border: 1px solid #2D2F33 !important;
.post-info-mobile {
border-bottom: 1px solid #2D2F33;
background-color: #212326;
}
.post-menu-button-mobile {
color: #81A2BE;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.poster-address-mobile {
color: #707070;
}
.subject-mobile {
color: #B294BB;
font-weight: 700;
}
.date-time-mobile {
color: #707070;
}
.file-thumb-mobile {
color: #81A2BE !important;
}
.file-info-mobile {
color: #707070;
font-size: 9pt !important;
}
blockquote {
color: #C5C8C6;
font-size: 11pt;
}
.post-link-mobile {
background-color: #212326;
border-top: 1px solid #2D2F33;
}
.info-mobile {
color: #707070;
}
.button-mobile {
color: #707070;
font-weight: 700;
background-color: rgb(27,28,30);
border: 1px solid #282A2E;
background-image: url(/assets/buttonfade-dark.png);
background-repeat: repeat-x;
text-decoration: none;
}
}
.reply-container {
background-color: #f0e0d6;
color: #C5C8C6;
.post-reply {
background-color: #282A2E;
border: 1px solid #2D2F33;
}
.post-info-mobile {
border-bottom: 1px solid #2D2F33;
background-color: #212326;
.post-menu-button-mobile {
color: #81A2BE;
}
.name-mobile {
color: #117743;
font-weight: 700;
}
.date-time-mobile {
color: #707070;
a {
color: #707070;
}
}
}
blockquote {
font-size: 11pt;
}
.quotelink-mobile {
color: #81A2BE;
}
.quotelink-mobile:hover {
color: #5F89AC;
}
}
}`;
case 'Photon':
return `
.op-container {
background-color: #eee;
border: 1px solid #ccc !important;
.post-info-mobile {
border-bottom: 1px solid #ccc;
background-color: #ddd;
}
.post-menu-button-mobile {
color: #f60;
}
.name-mobile {
color: #004a99;
font-weight: 700;
}
.subject-mobile {
color: #111;
font-weight: 700;
}
.date-time-mobile {
color: #333;
}
.file-thumb-mobile {
color: #f60 !important;
}
.file-info-mobile {
color: #707070;
font-size: 9pt !important;
}
blockquote {
font-size: 11pt;
}
.post-link-mobile {
background-color: #ddd;
border-top: 1px solid #ccc;
}
.info-mobile {
color: #333;
}
.button-mobile {
background: linear-gradient(to bottom, rgba(238, 238, 238, 1) 0%, rgba(224, 224, 224, 1) 100%);
border: 1px solid #ccc;
color: #333;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
}
}
.reply-container {
background-color: #eee;
.post-reply {
background-color: #eee;
border: 1px solid #ccc;
}
.post-info-mobile {
border-bottom: 1px solid #ccc;
background-color: #ddd;
.post-menu-button-mobile {
color: #f60;
}
.name-mobile {
color: #004a99;
font-weight: 700;
}
.date-time-mobile {
color: #333;
a {
color: #333;
}
}
}
blockquote {
font-size: 11pt;
}
.quotelink-mobile {
color: #f60;
}
.quotelink-mobile:hover {
color: #ff3300;
}
}
}`;
}
}}
`;