Files
5chan/src/components/styles/Board.styled.jsx
T

2061 lines
38 KiB
React
Raw Normal View History

2023-02-02 21:58:02 +01:00
import styled from 'styled-components';
2023-02-05 18:44:16 +01:00
export const Container = styled.div`
2023-02-08 21:49:36 +01:00
font-size: 10pt;
margin-left: 0;
margin-right: 0;
margin-top: 5px;
padding-left: 5px;
padding-right: 5px;
2023-02-05 18:44:16 +01:00
`;
2023-02-04 22:10:54 +01:00
export const NavBar = styled.div`
2023-02-08 21:49:36 +01:00
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `font-size: 9pt;
color: #b86;
display: block;
margin-top: 5px;
a {
font-weight: 400;
padding: 1px;
text-decoration: none;
color: maroon;
}
2023-02-04 22:10:54 +01:00
2023-02-08 21:49:36 +01:00
a:hover {
color: red;
}
.nav {
float: right;
}`;
case 'Yotsuba B':
return `font-size: 9pt;
color: #89a;
display: block;
a {
font-weight: 400;
padding: 1px;
text-decoration: none;
color: #34345c;
}
a:hover {
2023-02-22 16:31:45 +01:00
color: #d00;
2023-02-08 21:49:36 +01:00
}
.nav {
float: right;
}
`;
case 'Futaba':
return `font-size: 11pt;
display: block;
2023-02-14 11:29:53 +01:00
a, a:visited {
2023-02-08 21:49:36 +01:00
font-weight: 400;
padding: 1px;
2023-02-14 11:29:53 +01:00
color: #00e;
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
a:hover {
color: red;
}
.nav {
float: right;
}
2023-02-14 11:29:53 +01:00
2023-02-08 21:49:36 +01:00
`;
case 'Burichan':
return `font-size: 11pt;
display: block;
a, a:visited {
font-weight: 400;
padding: 1px;
2023-02-14 11:29:53 +01:00
color: #34345c;
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
a:hover {
color: red;
}
.nav {
float: right;
}
`;
case 'Tomorrow':
return `font-size: 9pt;
color: #c5c8c6;
display: block;
a, a:visited {
font-weight: 400;
padding: 1px;
text-decoration: none;
color: #81a2be;
}
a:hover {
color: #5f89ab;
}
.nav {
float: right;
}
`;
case 'Photon':
return `font-size: 9pt;
color: #333;
display: block;
a, a:visited {
font-weight: 400;
padding: 1px;
text-decoration: none;
color: #f60;
}
a:hover {
color: #ff3300;
}
.nav {
float: right;
}
`;
}
}}
2023-02-04 22:10:54 +01:00
`;
export const Header = styled.div`
2023-02-08 21:49:36 +01:00
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `text-align: center;
clear: both;
2023-02-04 22:10:54 +01:00
2023-02-08 21:49:36 +01:00
.banner {
border: 1px solid #800;
margin: 5px auto;
width: 300px;
height: 100px;
}
2023-02-04 22:10:54 +01:00
2023-02-08 21:49:36 +01:00
img {
border: none;
width: 300px;
height: 100px;
}
2023-02-04 22:10:54 +01:00
2023-02-08 21:49:36 +01:00
.board-title {
font-family: Tahoma, sans-serif;
font-size: 28px;
font-weight: 700;
letter-spacing: -2px;
margin-top: 0;
color: maroon;
}
2023-02-04 22:10:54 +01:00
2023-02-08 21:49:36 +01:00
.board-address {
font-size: 9pt;
margin-top: 5px;
font-size: 9pt;
}`;
case 'Yotsuba B':
return `text-align: center;
clear: both;
.banner {
border: 1px solid #800;
margin: 5px auto;
width: 300px;
height: 100px;
}
img {
border: none;
width: 300px;
height: 100px;
}
.board-title {
font-family: Tahoma, sans-serif;
font-size: 28px;
font-weight: 700;
letter-spacing: -2px;
margin-top: 0;
color: #af0a0f;
}
.board-address {
font-size: 9pt;
margin-top: 5px;
font-size: 9pt;
}`;
case 'Futaba':
return `text-align: center;
clear: both;
.banner {
margin: 5px auto;
width: 300px;
height: 100px;
}
img {
border: none;
width: 300px;
height: 100px;
}
.board-title {
font-size: 24pt;
font-weight: 700;
margin-top: 0;
}
.board-address {
font-size: 9pt;
margin-top: 5px;
font-size: 9pt;
}`;
case 'Burichan':
return `text-align: center;
clear: both;
.banner {
margin: 5px auto;
width: 300px;
height: 100px;
}
img {
border: none;
width: 300px;
height: 100px;
}
.board-title {
font-size: 24pt;
font-weight: 700;
margin-top: 0;
color: #af0a0f;
}
.board-address {
font-size: 9pt;
margin-top: 5px;
font-size: 9pt;
}`;
case 'Tomorrow':
return `text-align: center;
clear: both;
.banner {
border: 1px solid #000;
margin: 5px auto;
width: 300px;
height: 100px;
max-width: 100%;
}
img {
border: none;
width: 300px;
height: 100px;
}
.board-title {
font-family: Tahoma, sans-serif;
font-size: 28px;
font-weight: 700;
letter-spacing: -2px;
margin-top: 0;
}
.board-address {
font-size: 9pt;
margin-top: 5px;
font-size: 9pt;
}`;
case 'Photon':
return `text-align: center;
clear: both;
.banner {
border: 1px solid #000;
margin: 5px auto;
width: 300px;
height: 100px;
}
img {
border: none;
width: 300px;
height: 100px;
}
.board-title {
font-family: Tahoma, sans-serif;
font-size: 28px;
font-weight: 700;
letter-spacing: -2px;
margin-top: 0;
color: #004a99;
}
.board-address {
font-size: 9pt;
margin-top: 5px;
font-size: 9pt;
}`;
}
}}
2023-02-04 22:10:54 +01:00
`;
export const Break = styled.hr`
2023-02-08 21:49:36 +01:00
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `width: 90%;
border: none;
border-top: 1px solid #d9bfb7;
height: 0;`;
case 'Yotsuba B':
return `width: 90%;
border: none;
border-top: 1px solid #b7c5d9;
height: 0;`;
case 'Futaba':
return `width: 90%;`;
case 'Burichan':
return `width: 90%;`;
case 'Tomorrow':
return `width: 90%;
border: none;
border-top: 1px solid #282a2e;
height: 0;`;
case 'Photon':
return `width: 90%;
border: none;
border-top: 1px solid #ddd;
height: 0;`;
}
}}
2023-02-04 22:10:54 +01:00
`;
2023-02-11 22:00:13 +01:00
export const PostFormLink = styled.div`
display: ${props => (props.showPostFormLink ? 'block' : 'none')};
`;
export const PostFormTable = styled.table`
display: ${props => (props.showPostForm ? 'table' : 'none')};
2023-02-11 22:29:12 +01:00
width: 418px;
2023-02-11 22:00:13 +01:00
border-spacing: 1px;
margin-left: auto;
margin-right: auto;
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `tbody > tr > td:first-child {
background-color: #ea8;
color: #800;
font-weight: 700;
border: 1px solid #800;
padding: 0 5px;
font-size: 10pt;
}
td {
padding: 0;
font-size: 10pt;
}
tbody > tr > td > input[type="text"] {
width: 244px;
}
input[type="text"], input[type="password"] > tbody textarea {
margin: 0;
margin-right: 2px;
padding: 2px 4px 3px;
border: 1px solid #aaa;
outline: none;
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
}
textarea {
width: 292px;
2023-02-13 12:21:23 +01:00
margin-bottom: 0;
2023-02-11 22:00:13 +01:00
outline: none;
border-radius: none;
2023-02-13 12:05:10 +01:00
margin-top: 0px;
2023-02-15 16:48:21 +01:00
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
2023-02-11 22:00:13 +01:00
}
#t-root {
position: relative;
overflow: hidden;
box-sizing: border-box;
background: #eee;
border: 1px solid #777;
2023-02-13 12:21:23 +01:00
margin: 0;
2023-02-11 22:00:13 +01:00
width: 300px;
}
#t-resp {
width: 254px;
box-sizing: border-box;
text-transform: uppercase;
font-size: 11px;
height: 18px;
margin: 0px;
2023-02-13 12:21:23 +01:00
margin-left: 1px;
2023-02-11 22:00:13 +01:00
padding: 0px 2px;
font-family: monospace;
vertical-align: middle;
-webkit-appearance: none;
}
#t-help {
font-size: 11px;
padding: 0;
width: 20px;
box-sizing: border-box;
margin: 0px 0px 0px 6px;
vertical-align: middle;
height: 18px;
}
#t-cnt {
height: 80px;
margin-top: 2px;
position: relative;
2023-02-15 16:48:21 +01:00
img {
height: 100%;
width: 100%
}
2023-02-11 22:00:13 +01:00
}`;
case 'Yotsuba B':
return `tbody > tr > td:first-child {
background-color: #98e;
color: #000;
font-weight: 700;
border: 1px solid #000;
padding: 0 5px;
font-size: 10pt;
}
td {
padding: 0;
font-size: 10pt;
}
tbody > tr > td > input[type="text"] {
width: 244px;
}
input[type="text"], input[type="password"] > tbody textarea {
margin: 0;
margin-right: 2px;
padding: 2px 4px 3px;
border: 1px solid #aaa;
outline: none;
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
}
textarea {
width: 292px;
2023-02-13 12:21:23 +01:00
margin-bottom: 0;
2023-02-11 22:00:13 +01:00
outline: none;
border-radius: none;
2023-02-13 12:05:10 +01:00
margin-top: 0px;
2023-02-15 16:48:21 +01:00
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
2023-02-11 22:00:13 +01:00
}
#t-root {
position: relative;
overflow: hidden;
box-sizing: border-box;
background: #eee;
border: 1px solid #777;
2023-02-13 12:21:23 +01:00
margin: 0;
2023-02-13 12:05:10 +01:00
margin-bottom: 0px;
2023-02-11 22:00:13 +01:00
width: 300px;
}
#t-resp {
width: 254px;
box-sizing: border-box;
text-transform: uppercase;
font-size: 11px;
height: 18px;
margin: 0px;
2023-02-13 12:21:23 +01:00
margin-left: 1px;
2023-02-11 22:00:13 +01:00
padding: 0px 2px;
font-family: monospace;
vertical-align: middle;
-webkit-appearance: none;
}
#t-help {
font-size: 11px;
padding: 0;
width: 20px;
box-sizing: border-box;
margin: 0px 0px 0px 6px;
vertical-align: middle;
height: 18px;
}
#t-cnt {
height: 80px;
margin-top: 2px;
position: relative;
2023-02-15 16:48:21 +01:00
img {
height: 100%;
width: 100%
}
2023-02-11 22:00:13 +01:00
}`;
case 'Futaba':
return `tbody > tr > td:first-child {
background-color: #ea8;
color: #800;
font-weight: 700;
padding: 0;
}
td {
padding: 0;
2023-02-11 22:29:12 +01:00
font-size: 12pt;
2023-02-11 22:00:13 +01:00
}
tbody > tr > td > input[type="text"] {
width: 244px;
}
input[type="text"], input[type="password"] > tbody textarea {
margin: 0;
margin-right: 2px;
padding: 2px 4px 3px;
border: 1px solid #aaa;
outline: none;
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
}
textarea {
width: 292px;
2023-02-13 12:21:23 +01:00
margin-bottom: 0;
2023-02-11 22:00:13 +01:00
outline: none;
border-radius: none;
2023-02-13 12:05:10 +01:00
margin-top: 0px;
2023-02-15 16:48:21 +01:00
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
2023-02-11 22:00:13 +01:00
}
#t-root {
position: relative;
overflow: hidden;
box-sizing: border-box;
background: #eee;
border: 1px solid #777;
2023-02-13 12:21:23 +01:00
margin: 0;
2023-02-11 22:00:13 +01:00
width: 300px;
2023-02-13 12:05:10 +01:00
margin-bottom: 0px;
2023-02-11 22:00:13 +01:00
}
#t-resp {
width: 254px;
box-sizing: border-box;
text-transform: uppercase;
font-size: 11px;
height: 18px;
margin: 0px;
2023-02-13 12:21:23 +01:00
margin-left: 1px;
margin-bottom: 1px;
2023-02-11 22:00:13 +01:00
padding: 0px 2px;
font-family: monospace;
vertical-align: middle;
-webkit-appearance: none;
}
#t-help {
font-size: 11px;
padding: 0;
width: 20px;
box-sizing: border-box;
margin: 0px 0px 0px 6px;
vertical-align: middle;
height: 18px;
}
#t-cnt {
height: 80px;
margin-top: 2px;
position: relative;
2023-02-15 16:48:21 +01:00
img {
height: 100%;
width: 100%
}
2023-02-11 22:00:13 +01:00
}`;
case 'Burichan':
return `tbody > tr > td:first-child {
background-color: #98e;
color: #000;
font-weight: 700;
padding: 0;
2023-02-11 22:29:12 +01:00
font-size: 12pt;
2023-02-11 22:00:13 +01:00
}
td {
padding: 0;
}
tbody > tr > td > input[type="text"] {
width: 244px;
}
input[type="text"], input[type="password"] > tbody textarea {
margin: 0;
margin-right: 2px;
padding: 2px 4px 3px;
border: 1px solid #aaa;
outline: none;
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
}
textarea {
width: 292px;
2023-02-13 12:21:23 +01:00
margin-bottom: 0;
2023-02-11 22:00:13 +01:00
outline: none;
border-radius: none;
2023-02-13 12:05:10 +01:00
margin-top: 0px;
2023-02-15 16:48:21 +01:00
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
2023-02-11 22:00:13 +01:00
}
#t-root {
position: relative;
overflow: hidden;
box-sizing: border-box;
background: #eee;
border: 1px solid #777;
2023-02-13 12:21:23 +01:00
margin: 0;
2023-02-11 22:00:13 +01:00
width: 300px;
2023-02-13 12:05:10 +01:00
margin-bottom: 0px;
2023-02-11 22:00:13 +01:00
}
#t-resp {
width: 254px;
box-sizing: border-box;
text-transform: uppercase;
font-size: 11px;
height: 18px;
margin: 0px;
2023-02-13 12:21:23 +01:00
margin-left: 1px;
margin-top: 1px;
2023-02-11 22:00:13 +01:00
padding: 0px 2px;
font-family: monospace;
vertical-align: middle;
-webkit-appearance: none;
}
#t-help {
font-size: 11px;
padding: 0;
width: 20px;
box-sizing: border-box;
margin: 0px 0px 0px 6px;
vertical-align: middle;
height: 18px;
}
#t-cnt {
height: 80px;
margin-top: 2px;
position: relative;
2023-02-15 16:48:21 +01:00
img {
height: 100%;
width: 100%
}
2023-02-11 22:00:13 +01:00
}`;
case 'Tomorrow':
return `tbody > tr > td:first-child {
background-color: #282a2e;
color: #c5c8c6;
font-weight: 700;
border: 1px solid #111;
padding: 0 5px;
font-size: 10pt;
}
td {
padding: 0;
font-size: 10pt;
}
tbody > tr > td > input[type="text"] {
width: 244px;
}
input[type="text"], input[type="password"] > tbody textarea {
margin: 0;
margin-right: 2px;
padding: 2px 4px 3px;
2023-02-12 21:20:08 +01:00
border: 1px solid #000;
background-color: #282a2e;
color: #c5c8c6;
2023-02-11 22:00:13 +01:00
outline: none;
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
}
textarea {
width: 292px;
2023-02-13 12:21:23 +01:00
margin-bottom: 0;
2023-02-11 22:00:13 +01:00
outline: none;
border-radius: none;
2023-02-12 21:20:08 +01:00
border: 1px solid #000;
background-color: #282a2e;
color: #c5c8c6;
2023-02-13 12:05:10 +01:00
margin-top: 0px;
2023-02-15 16:48:21 +01:00
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
2023-02-11 22:00:13 +01:00
}
#t-root {
position: relative;
overflow: hidden;
box-sizing: border-box;
2023-02-12 21:20:08 +01:00
background: #2d2d2d;
2023-02-11 22:00:13 +01:00
border: 1px solid #777;
2023-02-13 12:21:23 +01:00
margin: 0;
2023-02-11 22:00:13 +01:00
width: 300px;
2023-02-13 12:05:10 +01:00
margin-bottom: 0px;
2023-02-11 22:00:13 +01:00
}
#t-resp {
width: 254px;
box-sizing: border-box;
text-transform: uppercase;
font-size: 11px;
height: 18px;
margin: 0px;
2023-02-13 12:21:23 +01:00
margin-left: 1px;
2023-02-11 22:00:13 +01:00
padding: 0px 2px;
font-family: monospace;
vertical-align: middle;
-webkit-appearance: none;
}
#t-help {
font-size: 11px;
padding: 0;
width: 20px;
box-sizing: border-box;
margin: 0px 0px 0px 6px;
vertical-align: middle;
height: 18px;
}
#t-cnt {
height: 80px;
margin-top: 2px;
position: relative;
2023-02-15 16:48:21 +01:00
img {
height: 100%;
width: 100%
}
2023-02-12 21:20:08 +01:00
}
#post-button, button {
filter: brightness(80%);
2023-02-11 22:00:13 +01:00
}`;
case 'Photon':
return `tbody > tr > td:first-child {
background-color: #ddd;
color: #333;
font-weight: 700;
border: 1px solid #ccc;
padding: 0 5px;
font-size: 10pt;
}
td {
padding: 0;
font-size: 10pt;
}
tbody > tr > td > input[type="text"] {
width: 244px;
}
input[type="text"], input[type="password"] > tbody textarea {
margin: 0;
margin-right: 2px;
padding: 2px 4px 3px;
border: 1px solid #aaa;
outline: none;
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
}
textarea {
width: 292px;
2023-02-13 12:21:23 +01:00
margin-bottom: 0;
2023-02-11 22:00:13 +01:00
outline: none;
border-radius: none;
2023-02-13 12:05:10 +01:00
margin-top: 0px;
2023-02-15 16:48:21 +01:00
font-family: arial, helvetica, sans-serif;
font-size: 10pt;
2023-02-11 22:00:13 +01:00
}
#t-root {
position: relative;
overflow: hidden;
box-sizing: border-box;
background: #eee;
border: 1px solid #777;
2023-02-13 12:21:23 +01:00
margin: 0;
2023-02-11 22:00:13 +01:00
width: 300px;
2023-02-13 12:05:10 +01:00
margin-bottom: 0px;
2023-02-11 22:00:13 +01:00
}
#t-resp {
width: 254px;
box-sizing: border-box;
text-transform: uppercase;
font-size: 11px;
height: 18px;
margin: 0px;
2023-02-13 12:21:23 +01:00
margin-left: 1px;
2023-02-11 22:00:13 +01:00
padding: 0px 2px;
font-family: monospace;
vertical-align: middle;
-webkit-appearance: none;
}
#t-help {
font-size: 11px;
padding: 0;
width: 20px;
box-sizing: border-box;
margin: 0px 0px 0px 6px;
vertical-align: middle;
height: 18px;
}
#t-cnt {
height: 80px;
margin-top: 2px;
position: relative;
2023-02-15 16:48:21 +01:00
img {
height: 100%;
width: 100%
}
2023-02-11 22:00:13 +01:00
}`;
}
}}
`;
2023-02-15 16:48:21 +01:00
export const PostForm = styled.div`
2023-02-08 21:49:36 +01:00
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `#post-form-link {
font-size: 22px;
font-weight: 700;
text-align: center;
}
2023-02-04 22:10:54 +01:00
2023-02-08 21:49:36 +01:00
a, a:visited {
2023-02-09 13:37:35 +01:00
color: #00e;
2023-02-08 21:49:36 +01:00
text-decoration: none;
}
a:hover {
color: red;
}`;
2023-02-05 18:44:16 +01:00
2023-02-08 21:49:36 +01:00
case 'Yotsuba B':
return `#post-form-link {
font-size: 22px;
font-weight: 700;
text-align: center;
}
a, a:visited {
color: #34345c;
text-decoration: none;
}
a:hover {
2023-02-22 16:31:45 +01:00
color: #d00;
2023-02-08 21:49:36 +01:00
}`;
case 'Futaba':
return `#post-form-link {
font-size: 22px;
font-weight: 700;
text-align: center;
}
a, a:visited {
color: #00e;
2023-02-14 11:29:53 +01:00
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
a:hover {
color: red;
}`;
case 'Burichan':
return `#post-form-link {
font-size: 22px;
font-weight: 700;
text-align: center;
}
a, a:visited {
color: #34345c;
2023-02-14 11:29:53 +01:00
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
a:hover {
color: red;
}`;
case 'Tomorrow':
return `#post-form-link {
font-size: 22px;
font-weight: 700;
text-align: center;
}
a, a:visited {
color: #81a2be;
text-decoration: none;
}
a:hover {
color: #5f89ab;
}`;
case 'Photon':
return `#post-form-link {
font-size: 22px;
font-weight: 700;
text-align: center;
}
a, a:visited {
color: #f60;
text-decoration: none;
}
a:hover {
2023-02-21 14:49:00 +01:00
color: #ff3300;
2023-02-08 21:49:36 +01:00
}`;
}
}}
2023-02-05 18:44:16 +01:00
`;
export const TopBar = styled.div`
2023-02-08 21:49:36 +01:00
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `lear: both;
hr {
border: none;
border-top: 1px solid #d9bfb7;
height: 0;
}
2023-02-05 18:44:16 +01:00
2023-02-08 21:49:36 +01:00
.style-changer {
margin-left: 5px;
2023-02-19 16:48:46 +01:00
margin-right: 10px;
2023-02-08 21:49:36 +01:00
font-size: 10pt;
2023-02-19 16:48:46 +01:00
}
a {
color: #00e;
text-decoration: none;
}
a:hover {
color: red;
2023-02-08 21:49:36 +01:00
}`;
2023-02-05 18:44:16 +01:00
2023-02-08 21:49:36 +01:00
case 'Yotsuba B':
return `clear: both;
hr {
border: none;
border-top: 1px solid #b7c5d9;
height: 0;
}
.style-changer {
margin-left: 5px;
2023-02-19 16:48:46 +01:00
margin-right: 10px;
2023-02-08 21:49:36 +01:00
font-size: 10pt;
2023-02-19 16:48:46 +01:00
}
a {
color: #34345c;
text-decoration: none;
}
a:hover {
2023-02-22 16:31:45 +01:00
color: #d00;
2023-02-08 21:49:36 +01:00
}`;
case 'Futaba':
return `clear: both;
2023-02-19 16:48:46 +01:00
font-size: 12pt;
2023-02-08 21:49:36 +01:00
hr {
clear: both;
}
.style-changer {
margin-left: 5px;
2023-02-19 16:48:46 +01:00
margin-right: 10px;
2023-02-11 22:29:12 +01:00
font-size: 12pt;
2023-02-19 16:48:46 +01:00
}
a {
color: #00e;
text-decoration: underline;
}
a:hover {
color: red;
2023-02-08 21:49:36 +01:00
}`;
case 'Burichan':
return `clear: both;
2023-02-19 16:48:46 +01:00
font-size: 12pt;
2023-02-08 21:49:36 +01:00
hr {
clear: both;
}
.style-changer {
margin-left: 5px;
2023-02-19 16:48:46 +01:00
margin-right: 10px;
2023-02-11 22:29:12 +01:00
font-size: 12pt;
2023-02-19 16:48:46 +01:00
}
a {
color: #34345c;
text-decoration: underline;
}
a:hover {
color: red;
2023-02-08 21:49:36 +01:00
}`;
case 'Tomorrow':
return `clear: both;
hr {
border: none;
border-top: 1px solid #282a2e;
height: 0;
}
.style-changer {
margin-left: 5px;
2023-02-19 16:48:46 +01:00
margin-right: 10px;
2023-02-08 21:49:36 +01:00
font-size: 10pt;
2023-02-19 16:48:46 +01:00
}
a {
color: #81a2be;
text-decoration: none;
}
a:hover {
color: #5f89ab;
2023-02-08 21:49:36 +01:00
}`;
case 'Photon':
return `clear: both;
hr {
border: none;
border-top: 1px solid #ddd;
height: 0;
}
.style-changer {
margin-left: 5px;
2023-02-19 16:48:46 +01:00
margin-right: 10px;
2023-02-08 21:49:36 +01:00
font-size: 10pt;
2023-02-19 16:48:46 +01:00
}
a {
color: #f60;
text-decoration: none;
}
a:hover {
2023-02-21 14:49:00 +01:00
color: #ff3300;
2023-02-08 21:49:36 +01:00
}`;
}
}}
2023-02-05 22:15:38 +01:00
`;
2023-02-15 16:48:21 +01:00
export const BoardForm = styled.div`
2023-02-22 16:31:45 +01:00
.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: 200px;
max-height: 200px;
}
@media (min-width: 600px) {
.post-info {
margin: 3px;
display: block;
width: 100%;
}
}
@media (max-width: 600px) {
.name-block {
display: block;
}
.post-info {
display: flex;
flex-wrap: wrap;
}
}
2023-02-08 21:49:36 +01:00
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `.thread {
margin: 0;
clear: both;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.op-container {
display: inline;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.op {
display: inline;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.post {
overflow: hidden;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
img {
border: none;
}
2023-02-05 22:15:38 +01:00
2023-02-22 16:31:45 +01:00
.file a {
text-decoration: underline;
color: #00e;
2023-02-08 21:49:36 +01:00
}
2023-02-05 22:15:38 +01:00
2023-02-22 16:31:45 +01:00
.file a:hover {
color: red;
2023-02-08 21:49:36 +01:00
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.name {
color: #117743;
font-weight: 700;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.post-number a {
text-decoration: none;
color: maroon;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.post-number a:hover {
color: red;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.reply-link:not(:hover) {
color: #00e !important;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.post-menu-button {
color: #000080;
margin-left: 5px;
text-decoration: none;
line-height: 1em;
display: inline-block;
transition: transform 0.1s;
width: 1em;
height: 1em;
text-align: center;
outline: none;
opacity: 0.8;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.post-menu-button:hover {
color: red;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.backlink {
font-size: 0.8em !important;
display: inline;
padding: 0;
padding-left: 5px;
}
2023-02-06 12:48:35 +01:00
2023-02-08 21:49:36 +01:00
.quote-link {
color: navy;
2023-02-13 12:05:10 +01:00
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.quote-link:hover {
color: red;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
.backlink span {
padding: 0;
}
2023-02-05 22:15:38 +01:00
2023-02-08 21:49:36 +01:00
blockquote {
display: block;
2023-02-18 16:05:03 +01:00
line-height: 1.3em;
2023-02-08 21:49:36 +01:00
}
2023-02-05 22:15:38 +01:00
2023-02-17 18:03:05 +01:00
.title {
color: #cc1105;
font-weight: 700;
}
blockquote > p:first-of-type::before {
content: '>';
2023-02-08 21:49:36 +01:00
color: #789922;
}
2023-02-05 22:15:38 +01:00
2023-02-18 16:05:03 +01:00
.quotelink {
color: navy;
text-decoration: underline;
font-family: arial;
}
.quotelink:hover {
color: red;
}
2023-02-08 21:49:36 +01:00
.side-arrows {
color: #e0bfb7;
float: left;
margin-right: 2px;
margin-top: 0;
margin-left: 2px;
}
2023-02-06 12:48:35 +01:00
2023-02-08 21:49:36 +01:00
.post-reply {
background-color: #f0e0d6;
border: 1px solid #d9bfb7;
margin-top: 2px;
border-left: none;
border-top: none;
display: table;
padding: 2px;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
2023-02-09 16:52:37 +01:00
margin: 4px 0;
2023-02-08 21:49:36 +01:00
}
2023-02-06 12:48:35 +01:00
2023-02-08 21:49:36 +01:00
hr {
border: none;
border-top: 1px solid #d9bfb7;
height: 0;
}`;
2023-02-07 22:55:00 +01:00
2023-02-08 21:49:36 +01:00
case 'Yotsuba B':
return `.thread {
margin: 0;
clear: both;
}
.op-container {
display: inline;
}
.op {
display: inline;
}
.post {
overflow: hidden;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
}
img {
border: none;
}
2023-02-22 16:31:45 +01:00
.file a {
text-decoration: underline;
color: #34345c;
2023-02-08 21:49:36 +01:00
}
2023-02-22 16:31:45 +01:00
.file a:hover {
color: #d00;
2023-02-08 21:49:36 +01:00
}
.name {
color: #117743;
font-weight: 700;
}
.post-number a {
text-decoration: none;
color: #000;
}
.post-number a:hover {
2023-02-22 16:31:45 +01:00
color: #d00;
2023-02-08 21:49:36 +01:00
}
.reply-link:not(:hover) {
color: #34345c !important;
}
.post-menu-button {
color: #34345c;
margin-left: 5px;
text-decoration: none;
line-height: 1em;
display: inline-block;
transition: transform 0.1s;
width: 1em;
height: 1em;
text-align: center;
outline: none;
opacity: 0.8;
}
.post-menu-button:hover {
2023-02-22 16:31:45 +01:00
color: #d00;
2023-02-08 21:49:36 +01:00
}
.backlink {
font-size: 0.8em !important;
display: inline;
padding: 0;
padding-left: 5px;
}
.quote-link {
2023-02-22 16:31:45 +01:00
color: #d00;
2023-02-13 12:05:10 +01:00
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
.backlink span {
padding: 0;
}
blockquote {
display: block;
2023-02-18 16:05:03 +01:00
line-height: 1.3em;
2023-02-08 21:49:36 +01:00
}
2023-02-17 18:03:05 +01:00
.title {
color: #0f0c5d;
font-weight: 700;
}
blockquote > p:first-of-type::before {
content: '>';
2023-02-08 21:49:36 +01:00
color: #789922;
}
2023-02-18 16:05:03 +01:00
.quotelink {
color: #d00;
text-decoration: underline;
font-family: arial;
}
2023-02-08 21:49:36 +01:00
.side-arrows {
2023-02-09 13:37:35 +01:00
color: #b7c5d9;
2023-02-08 21:49:36 +01:00
float: left;
margin-right: 2px;
margin-top: 0;
margin-left: 2px;
}
.post-reply {
background-color: #d6daf0;
border: 1px solid #b7c5d9;
margin-top: 2px;
border-left: none;
border-top: none;
display: table;
padding: 2px;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
2023-02-09 16:52:37 +01:00
margin: 4px 0;
2023-02-08 21:49:36 +01:00
}
hr {
border: none;
border-top: 1px solid #b7c5d9;
height: 0;
}`;
case 'Futaba':
2023-02-11 22:29:12 +01:00
return `
font-size: 12pt;
2023-02-22 16:31:45 +01:00
.thread {
2023-02-08 21:49:36 +01:00
margin: 0;
clear: both;
}
.op-container {
display: inline;
}
.op {
display: inline;
}
.post {
overflow: hidden;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
}
img {
border: none;
}
2023-02-22 16:31:45 +01:00
.file a {
color: #00e;
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
2023-02-22 16:31:45 +01:00
.file a:hover {
color: red;
}
2023-02-08 21:49:36 +01:00
.name {
color: #117743;
font-weight: 700;
}
.post-number a {
text-decoration: none;
color: maroon;
}
.post-number a:hover {
color: red;
}
.reply-link {
text-decoration: underline !important;
}
.reply-link:not(:hover) {
color: #00e !important;
}
.post-menu-button {
color: #00e;
margin-left: 5px;
text-decoration: none;
line-height: 1em;
display: inline-block;
transition: transform 0.1s;
width: 1em;
height: 1em;
text-align: center;
outline: none;
opacity: 0.8;
}
.post-menu-button:hover {
color: red;
}
.backlink {
font-size: 0.8em !important;
display: inline;
padding: 0;
padding-left: 5px;
}
.quote-link {
color: navy;
2023-02-13 12:05:10 +01:00
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
.quote-link:hover {
color: red;
}
.backlink span {
padding: 0;
}
blockquote {
display: block;
2023-02-18 16:05:03 +01:00
line-height: 1.3em;
2023-02-08 21:49:36 +01:00
}
2023-02-17 18:03:05 +01:00
.title {
color: #cc1105;
font-weight: 700;
}
blockquote > p:first-of-type::before {
content: '>';
2023-02-08 21:49:36 +01:00
color: #789922;
}
2023-02-18 16:05:03 +01:00
.quotelink {
color: navy;
text-decoration: underline;
}
.quotelink:hover {
color: red;
}
2023-02-08 21:49:36 +01:00
.side-arrows {
float: left;
margin-right: 2px;
margin-top: 0;
margin-left: 2px;
}
.post-reply {
background-color: #f0e0d6;
border: 1px solid #d9bfb7;
margin-top: 2px;
border-left: none;
border-top: none;
display: table;
padding: 2px;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
2023-02-09 16:52:37 +01:00
margin: 4px 0
2023-02-08 21:49:36 +01:00
}
hr {
2023-02-21 14:49:00 +01:00
clear: both;
2023-02-08 21:49:36 +01:00
}`;
case 'Burichan':
2023-02-11 22:29:12 +01:00
return `
font-size: 12pt;
2023-02-22 16:31:45 +01:00
.thread {
margin: 0;
clear: both;
2023-02-08 21:49:36 +01:00
}
.op-container {
display: inline;
}
.op {
display: inline;
}
.post {
overflow: hidden;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
}
img {
border: none;
}
2023-02-22 16:31:45 +01:00
.file a {
color: #34345c;
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
2023-02-22 16:31:45 +01:00
.file a:hover {
color: red;
}
2023-02-08 21:49:36 +01:00
.name {
color: #117743;
font-weight: 700;
}
.post-number a {
text-decoration: none;
color: #000;
}
.post-number a:hover {
color: red;
}
.reply-link {
text-decoration: underline !important;
}
.reply-link:not(:hover) {
color: #000 !important;
}
.post-menu-button {
color: #34345c;
margin-left: 5px;
text-decoration: none;
line-height: 1em;
display: inline-block;
transition: transform 0.1s;
width: 1em;
height: 1em;
text-align: center;
outline: none;
opacity: 0.8;
}
.post-menu-button:hover {
color: red;
}
.backlink {
font-size: 0.8em !important;
display: inline;
padding: 0;
padding-left: 5px;
}
.quote-link {
2023-02-22 11:22:36 +01:00
color: #34345C;
2023-02-13 12:05:10 +01:00
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
2023-02-22 11:22:36 +01:00
.quote-link:hover {
color: red;
}
2023-02-08 21:49:36 +01:00
.backlink span {
padding: 0;
}
blockquote {
display: block;
2023-02-18 16:05:03 +01:00
line-height: 1.3em;
2023-02-08 21:49:36 +01:00
}
2023-02-17 18:03:05 +01:00
.title {
2023-02-18 16:05:03 +01:00
color: #cc1105;
2023-02-17 18:03:05 +01:00
font-weight: 700;
}
blockquote > p:first-of-type::before {
content: '>';
2023-02-08 21:49:36 +01:00
color: #789922;
}
2023-02-18 16:05:03 +01:00
.quotelink {
color: #d00;
text-decoration: underline;
}
2023-02-08 21:49:36 +01:00
.side-arrows {
float: left;
margin-right: 2px;
margin-top: 0;
margin-left: 2px;
}
.post-reply {
background-color: #d6daf0;
margin-top: 2px;
border-left: none;
border-top: none;
display: table;
padding: 2px;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
2023-02-09 16:52:37 +01:00
margin: 4px 0
2023-02-08 21:49:36 +01:00
}
hr {
clear: both;
}`;
case 'Tomorrow':
return `.thread {
margin: 0;
clear: both;
}
.op-container {
display: inline;
}
.op {
display: inline;
}
.post {
overflow: hidden;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
}
img {
border: none;
}
2023-02-22 16:31:45 +01:00
.file a {
color: #81a2be;
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
2023-02-22 16:31:45 +01:00
.file a:hover {
color: #5f89ab;
}
2023-02-08 21:49:36 +01:00
.name {
color: #c5c8c6;
font-weight: 700;
}
.post-number a {
text-decoration: none;
color: #c5c8c6;
}
.post-number a:hover {
color: #5f89ab;
}
.reply-link:not(:hover) {
color: #81a2be;
}
.reply-link:hover {
color: #5f89ab
}
.post-menu-button {
color: #81a2be;
margin-left: 5px;
text-decoration: none;
line-height: 1em;
display: inline-block;
transition: transform 0.1s;
width: 1em;
height: 1em;
text-align: center;
outline: none;
opacity: 0.8;
}
.post-menu-button:hover {
color: #5f89ab;
}
.backlink {
font-size: 0.8em !important;
display: inline;
padding: 0;
padding-left: 5px;
}
.quote-link {
2023-02-09 13:37:35 +01:00
color: #5f89ac;
2023-02-13 12:05:10 +01:00
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
.quote-link:hover {
2023-02-18 16:05:03 +01:00
color: #81a2be;
2023-02-08 21:49:36 +01:00
}
.backlink span {
padding: 0;
}
blockquote {
display: block;
2023-02-18 16:05:03 +01:00
line-height: 1.3em;
2023-02-08 21:49:36 +01:00
}
2023-02-17 18:03:05 +01:00
.title {
color: #b294bb;
font-weight: 700;
}
blockquote > p:first-of-type::before {
content: '>';
color: #789922;
2023-02-08 21:49:36 +01:00
}
2023-02-18 16:05:03 +01:00
.quotelink {
color: #5f89ac;
text-decoration: underline;
font-family: arial;
}
.quotelink:hover {
color: #81a2be;
}
2023-02-08 21:49:36 +01:00
.side-arrows {
color: #c5c8c6;
float: left;
margin-right: 2px;
margin-top: 0;
margin-left: 2px;
}
.post-reply {
background-color: #282a2e;
border: 1px solid #282a2e;
margin-top: 2px;
border-left: none;
border-top: none;
display: table;
padding: 2px;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
2023-02-09 16:52:37 +01:00
margin: 4px 0
2023-02-08 21:49:36 +01:00
}
hr {
border: none;
border-top: 1px solid #282a2e;
height: 0;
}`;
case 'Photon':
return `.thread {
margin: 0;
clear: both;
}
.op-container {
display: inline;
}
.op {
display: inline;
}
.post {
overflow: hidden;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
}
img {
border: none;
}
2023-02-22 16:31:45 +01:00
.file a {
text-decoration: underline;
color: #f60;
2023-02-08 21:49:36 +01:00
}
2023-02-22 16:31:45 +01:00
.file a:hover {
color: #ff3300;
2023-02-08 21:49:36 +01:00
}
.name {
color: #004a99;
font-weight: 700;
}
.post-number a {
text-decoration: none;
color: #333;
}
.post-number a:hover {
2023-02-21 14:49:00 +01:00
color: #ff3300;
2023-02-08 21:49:36 +01:00
}
.reply-link:not(:hover) {
color: #f60 !important;
}
.post-menu-button {
color: #f60;
margin-left: 5px;
text-decoration: none;
line-height: 1em;
display: inline-block;
transition: transform 0.1s;
width: 1em;
height: 1em;
text-align: center;
outline: none;
opacity: 0.8;
}
.post-menu-button:hover {
2023-02-21 14:49:00 +01:00
color: #ff3300;
2023-02-08 21:49:36 +01:00
}
.backlink {
font-size: 0.8em !important;
display: inline;
padding: 0;
padding-left: 5px;
}
.quote-link {
2023-02-18 16:05:03 +01:00
color: #f60;
2023-02-13 12:05:10 +01:00
text-decoration: underline;
2023-02-08 21:49:36 +01:00
}
.quote-link:hover {
2023-02-21 14:49:00 +01:00
color: #ff3300;
2023-02-08 21:49:36 +01:00
}
.backlink span {
padding: 0;
}
blockquote {
display: block;
2023-02-18 16:05:03 +01:00
line-height: 1.3em;
2023-02-08 21:49:36 +01:00
}
2023-02-17 18:03:05 +01:00
.title {
color: #111;
font-weight: 700;
}
blockquote > p:first-of-type::before {
content: '>';
2023-02-08 21:49:36 +01:00
color: #789922;
}
2023-02-18 16:05:03 +01:00
.quotelink {
color: #f60;
text-decoration: underline;
font-family: arial;
}
.quotelink:hover {
2023-02-21 14:49:00 +01:00
color: #ff3300;
2023-02-18 16:05:03 +01:00
}
2023-02-08 21:49:36 +01:00
.side-arrows {
color: #333;
float: left;
margin-right: 2px;
margin-top: 0;
margin-left: 2px;
}
.post-reply {
background-color: #ddd;
border: 1px solid #ccc;
margin-top: 2px;
border-left: none;
border-top: none;
display: table;
padding: 2px;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
max-width: 100%;
2023-02-09 16:52:37 +01:00
margin: 4px 0
2023-02-08 21:49:36 +01:00
}
hr {
border: none;
border-top: 1px solid #ddd;
height: 0;
}`;
}
}}
2023-02-02 21:58:02 +01:00
`;