moved styled-components code

This commit is contained in:
plebbitor
2023-04-09 08:37:29 +02:00
parent 60374f5724
commit fa64e0616c
15 changed files with 625 additions and 622 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,241 @@
import styled from "styled-components";
import Modal from 'react-modal';
export const StyledModal = styled(Modal)`
.hide-modal-overlay {
display: none;
}
.modal-content {
position: fixed;
top: calc(50% - 150px);
left: calc(50% - 150px);
display: block;
padding: 2px;
font-size: 10pt;
border-left: none;
border-top: none;
}
.modal-header {
font-size: 10pt;
text-align: center;
margin-bottom: 1px;
padding: 0;
height: 18px;
line-height: 18px;
cursor: move;
font-weight: 700;
}
.icon {
all: unset;
float: right;
cursor: pointer;
margin-bottom: -4px;
width: 18px;
height: 18px;
border: none;
}
#field {
border: 1px solid #aaa;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
outline: medium none;
width: 298px;
padding: 2px;
}
textarea {
min-width: 296px;
float: left;
font-size: 10pt;
font-family: Arial, Helvetica, sans-serif;
}
#captcha-container {
position: relative;
clear: both;
width: 302px;
overflow: hidden;
margin-bottom: 3px;
}
#response {
width: 100%;
box-sizing: border-box;
font-size: 11px;
height: 18px;
margin: 0px;
padding: 0px 2px;
font-family: monospace;
vertical-align: middle;
}
img {
height: 100%;
width: 100%;
margin-top: 2px;
position: relative;
display: block;
}
#nav {
float: right;
margin: 0;
width: 40px;
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `
.modal-content {
background-color: #f0e0d6;
border: 1px solid #d9bfb7;
}
.modal-header {
background-color: #ea8;
color: #800;
border: 1px solid #800;
}
.icon {
background-image: url(/assets/buttons/cross_red.png);
}
span {
color: maroon;
}`;
case 'Yotsuba-B':
return `
.modal-content {
background-color: #d6daf0;
border: 1px solid #b7c5d9;
}
.modal-header {
background-color: #98e;
color: #000;
border: 1px solid #000;
}
.icon {
background-image: url(/assets/buttons/cross_blue.png);
}
span {
color: #000;
}`;
case 'Futaba':
return `
.modal-content {
background-color: #f0e0d6;
border: 1px solid #d9bfb7;
}
.modal-header {
background-color: #ea8;
color: #800;
border: 1px solid #800;
}
.icon {
background-image: url(/assets/buttons/cross_red.png);
}
span {
color: maroon;
}`;
case 'Burichan':
return `
.modal-content {
background-color: #d6daf0;
border: 1px solid #b7c5d9;
}
.modal-header {
background-color: #98e;
color: #000;
border: 1px solid #000;
}
.icon {
background-image: url(/assets/buttons/cross_blue.png);
}
span {
color: #000;
}`;
case 'Tomorrow':
return `
.modal-content {
background-color: #282a2e;
border: 1px solid #111;
}
.modal-header {
background-color: #282a2e;
color: #c5c8c6;
}
.icon {
background-image: url(/assets/buttons/cross_dark.png);
}
#field {
background-color: #282a2e;
color: #c5c8c6;
border: 1px solid #515151;
width: 296px;
}
textarea {
background-color: #282a2e;
color: #c5c8c6;
border: 1px solid #515151;
}
#response {
background-color: #282a2e;
color: #c5c8c6;
outline: none;
border: 1px solid #515151;
}
span {
color: #c5c8c6;
}
#next {
filter: brightness(80%);
}`;
case 'Photon':
return `
.modal-content {
background-color: #ddd;
border: 1px solid #ccc;
}
.modal-header {
background-color: #ddd;
color: #333;
}
.icon {
background-image: url(/assets/buttons/cross_photon.png);
}
span {
color: #333;
}`;
}
}}
`;
+61
View File
@@ -0,0 +1,61 @@
import styled from 'styled-components';
export const Threads = styled.div`
padding: 20px 0;
text-align: center;
margin: 0;
.thread {
width: 180px;
max-height: 320px;
vertical-align: top;
display: inline-block;
word-wrap: break-word;
overflow: hidden;
margin-top: 5px;
margin-bottom: 20px;
padding: 5px 0 3px;
position: relative;
}
video, audio, img {
max-width: 150px;
max-height: 150px;
}
img {
display: inline;
margin: auto;
box-shadow: 0 0 5px rgba(0, 0, 0, .25);
border: 0;
}
.thread-icons {
display: inline;
height: 16px;
margin: 2px 0 0 -101px;
position: absolute;
width: 100px;
text-align: right;
}
.sticky-icon {
background-image: url(/assets/sticky.gif);
width: 16px;
height: 16px;
display: inline-block;
}
.meta {
cursor: help;
font-size: 11px;
line-height: 8px;
margin-top: 2px;
margin-bottom: 1px;
}
.teaser {
display: block;
padding: 0 15px;
}
`;
+310
View File
@@ -0,0 +1,310 @@
import styled from 'styled-components';
export const Container = styled.div`
height: 100%;
color: #800;
font: 13px/1.231 arial, helvetica, clean, sans-serif;
text-align: center;
margin: auto;
text-align: left;
width: 57.69em;
min-width: 750px;
padding: 0;
@media (max-device-width: 640px) {
min-width: 0;
width: auto;
padding: 10px;
}
`;
export const Header = styled.div`
margin-bottom: 0;
margin: 0;
padding: 0;
`;
export const Logo = styled.div`
font-size: 1px;
line-height: 0;
height: 120px;
overflow: hidden;
margin: 0 auto;
width: 300px;
img {
margin: auto;
display: block;
border: none;
width: 100%;
}
`;
export const Search = styled.div`
text-align: center;
margin-bottom: 20px;
input[type="text"] {
width: 400px;
height: 30px;
font-size: 18px;
padding: 3px 10px;
box-sizing: border-box;
-webkit-appearance: none;
-webkit-border-radius: 0;
border-radius: 0;
margin: 0;
margin-right: 2px;
border: 1px solid #aaa;
outline: none;
font-family: arial, helvetica, sans-serif;
}
input[type="submit"] {
width: 60px;
height: 30px;
font-size: 14px;
margin-left: 5px;
}
@-moz-document url-prefix() {
input[type="submit"] {
vertical-align: top;
}
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
input[type="submit"] {
vertical-align: center;
}
}
@media not all and (min-resolution:.001dpcm) {
input[type="submit"] {
vertical-align: top;
}
}
@media only screen and (max-width: 480px) {
text-align: center;
input[type="text"] {
width: 80%;
height: 35px;
font-size: 20px;
padding: 5px;
box-sizing: border-box;
border-radius: 0;
}
input[type="submit"] {
height: 35px;
font-size: 14px;
padding: 5px;
box-sizing: border-box;
vertical-align: top;
width: 60px;
-webkit-appearance: none;
}
}
`;
export const Page = styled.div`
margin: 0;
padding: 0;
`;
export const About = styled.div`
background: #fff;
color: #000;
border: 1px solid;
margin-bottom: .5em;
padding-bottom: .5em;
`;
export const AboutTitle = styled.div`
background: #800;
color: #fff;
position: relative;
padding-left: .5em;
line-height: 2em;
h2 {
font-size: 131%;
font-weight: 700;
margin: 0;
padding: 0;
}
`;
export const AboutContent = styled.div`
line-height: 1.5em;
font-size: 93%;
padding: .5em;
padding-top: .25em;
padding-bottom: 0;
min-height: 91px;
#content {
min-height: 91px;
}
a:visited {
color: blue;
}
p {
margin: 0;
padding: 0;
}
`;
export const Boards = styled.div`
border: 1px solid;
margin: 0;
padding: 0;
padding-bottom: .5em;
background: #fff;
`;
export const BoardsTitle = styled.div`
background: #fca;
color: #800;
position: relative;
padding-left: .5em;
line-height: 2em;
h2 {
font-size: 131%;
font-weight: 700;
margin: 0;
padding: 0;
}
`;
export const BoardsContent = styled.div`
font-size: 93%;
padding: .5em;
padding-top: .25em;
padding-bottom: 0;
line-height: 130%;
text-align: center;
.board {
vertical-align: top;
display: inline-block;
word-wrap: break-word;
overflow: hidden;
margin-top: 5px;
padding: 5px 0 3px;
position: relative;
width: 175px;
max-height: 320px;
margin-bottom: 10px;
}
.board-title {
font-weight: 700;
overflow: hidden;
text-overflow: ellipsis;
display: block;
white-space: nowrap;
margin-bottom: 5px;
}
img {
border: 1px solid #800;
display: inline-block;
width: 150px;
height: 150px;
}
.board-text {
margin-bottom: 5px;
padding: 0 2px;
white-space: pre-line;
}
`;
export const Footer = styled.div`
font-size: 93%;
text-align: center;
clear: both;
padding-top: .5em;
padding-bottom: 5em;
ul {
border-top: 1px solid;
display: table;
margin: auto;
width: 750px;
padding: 0;
}
li {
background: #fed;
display: block;
float: left;
border: 1px solid;
padding: 2px 1em 2px 1em;
border-left: none;
margin-top: -1px;
list-style: none;
}
.fill {
border-top: 1x solid;
border-right: 0;
border-bottom: 0;
border-left: 0;
background: #ffe;
width: 10.5%;
}
.first {
border-left: 1px solid;
}
a {
color: #800;
text-decoration: none;
}
@media (max-device-width: 640px) {
padding-top: 2em;
padding-bottom: 3em;
ul {
width: auto;
border-top: none;
line-height: 2;
display: flex;
flex-wrap: wrap;
justify-content: center;
row-gap: 10px;
}
.fill {
display: none;
background: inherit;
}
li {
background: inherit;
display: inline;
float: none;
border: none;
white-space: nowrap;
}
.first {
border-left: none;
}
a {
color: blue;
text-decoration: underline;
}
}
`;
+242
View File
@@ -0,0 +1,242 @@
import styled from "styled-components";
export const StyledModal = styled(Modal)`
.hide-modal-overlay {
display: none;
}
.modal-content {
position: fixed;
top: calc(50% - 150px);
left: calc(50% - 150px);
display: block;
padding: 2px;
font-size: 10pt;
border-left: none;
border-top: none;
}
.modal-header {
font-size: 10pt;
text-align: center;
margin-bottom: 1px;
padding: 0;
height: 18px;
line-height: 18px;
cursor: move;
font-weight: 700;
}
.icon {
all: unset;
float: right;
cursor: pointer;
margin-bottom: -4px;
width: 18px;
height: 18px;
border: none;
}
#name {
border: 1px solid #aaa;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
outline: medium none;
width: 298px;
padding: 2px;
margin-bottom: 1px;
}
textarea {
min-width: 296px;
float: left;
font-size: 10pt;
font-family: Arial, Helvetica, sans-serif;
margin-top: 0.5px;
}
#captcha-container {
position: relative;
clear: both;
width: 302px;
overflow: hidden;
margin-bottom: 3px;
}
#response {
width: 100%;
box-sizing: border-box;
font-size: 11px;
height: 18px;
margin: 0px;
padding: 0px 2px;
font-family: monospace;
vertical-align: middle;
}
img {
height: 100%;
width: 100%;
margin-top: 2px;
position: relative;
display: block;
}
#next {
float: right;
margin: 0;
width: 75px;
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `
.modal-content {
background-color: #f0e0d6;
border: 1px solid #d9bfb7;
}
.modal-header {
background-color: #ea8;
color: #800;
border: 1px solid #800;
}
.icon {
background-image: url(/assets/buttons/cross_red.png);
}
span {
color: maroon;
}`;
case 'Yotsuba-B':
return `
.modal-content {
background-color: #d6daf0;
border: 1px solid #b7c5d9;
}
.modal-header {
background-color: #98e;
color: #000;
border: 1px solid #000;
}
.icon {
background-image: url(/assets/buttons/cross_blue.png);
}
span {
color: #000;
}`;
case 'Futaba':
return `
.modal-content {
background-color: #f0e0d6;
border: 1px solid #d9bfb7;
}
.modal-header {
background-color: #ea8;
color: #800;
border: 1px solid #800;
}
.icon {
background-image: url(/assets/buttons/cross_red.png);
}
span {
color: maroon;
}`;
case 'Burichan':
return `
.modal-content {
background-color: #d6daf0;
border: 1px solid #b7c5d9;
}
.modal-header {
background-color: #98e;
color: #000;
border: 1px solid #000;
}
.icon {
background-image: url(/assets/buttons/cross_blue.png);
}
span {
color: #000;
}`;
case 'Tomorrow':
return `
.modal-content {
background-color: #282a2e;
border: 1px solid #111;
}
.modal-header {
background-color: #282a2e;
color: #c5c8c6;
}
.icon {
background-image: url(/assets/buttons/cross_dark.png);
}
#name {
background-color: #282a2e;
color: #c5c8c6;
border: 1px solid #515151;
width: 296px;
}
textarea {
background-color: #282a2e;
color: #c5c8c6;
border: 1px solid #515151;
}
#response {
background-color: #282a2e;
color: #c5c8c6;
outline: none;
border: 1px solid #515151;
}
span {
color: #c5c8c6;
}
#next {
filter: brightness(80%);
}`;
case 'Photon':
return `
.modal-content {
background-color: #ddd;
border: 1px solid #ccc;
}
.modal-header {
background-color: #ddd;
color: #333;
}
.icon {
background-image: url(/assets/buttons/cross_photon.png);
}
span {
color: #333;
}`;
}
}}
`;
@@ -0,0 +1,131 @@
import styled from "styled-components";
import Modal from 'react-modal';
export const StyledModal = styled(Modal)`
.panel {
top: 60px;
width: 330px;
left: 50%;
margin-left: -178px;
position: absolute;
padding: 2px 5px 5px;
font-size: 14px;
box-shadow: 0 0 5px rgba(0, 0, 0, .25);
}
.panel-header {
font-size: 16px;
font-weight: 700;
margin-bottom: 5px;
margin-top: 5px;
padding-bottom: 5px;
text-align: center;
line-height: 14px;
}
.icon {
right: 5px;
width: 18px;
height: 18px;
display: block;
background-size: 100%;
cursor: pointer;
position: absolute;
top: 5px;
}
h4 {
font-size: 14px;
padding: 0;
margin: 10px 0 5px;
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `
.panel {
background-color: #f0e0d6;
}
.panel-header {
border-bottom: 1px solid #d9bfb7;
}
.icon {
background-image: url(/assets/buttons/cross_red.png);
}`;
case 'Yotsuba-B':
return `
.panel {
background-color: #d6daf0;
}
.panel-header {
border-bottom: 1px solid #b7c5d9;
}
.icon {
background-image: url(/assets/buttons/cross_blue.png);
}`;
case 'Futaba':
return `
.panel {
background-color: #f0e0d6;
}
.panel-header {
border-bottom: 1px solid rgba(0,0,0,.2);
}
.icon {
background-image: url(/assets/buttons/cross_red.png);
}`;
case 'Burichan':
return `
.panel {
background-color: #d6daf0;
}
.panel-header {
border-bottom: 1px solid rgba(0,0,0,.2);
}
.icon {
background-image: url(/assets/buttons/cross_blue.png);
}`;
case 'Tomorrow':
return `
.panel {
background-color: #282a2e;
}
.panel-header {
border-bottom: 1px solid #111;
}
.icon {
background-image: url(/assets/buttons/cross_dark.png);
}`;
case 'Photon':
return `
.panel {
background-color: #ddd;
}
.panel-header {
border-bottom: 1px solid rgba(0, 0, 0, 0.20);
}
.icon {
background-image: url(/assets/buttons/cross_photon.png);
}`;
}
}}
`;
+685
View File
@@ -0,0 +1,685 @@
import styled from 'styled-components';
export const ReplyFormLink = styled.div`
@media (min-width: 480px) {
display: ${props => (props.showReplyFormLink ? 'block' : 'none')};
#post-form-link-mobile, #return-button-mobile, #catalog-button-mobile, #bottom-button-mobile {
display: none;
}
}
@media (max-width: 480px) {
display: ${props => (props.showReplyFormLink ? 'block' : 'none')};
#post-form-link-desktop {
display: none;
}
#post-form-link-mobile {
margin: 11px 0;
font-size: 13px;
text-align: center;
font-weight: 700;
display: block !important;
padding-top: 10px;
}
#return-button-mobile, #catalog-button-mobile, #bottom-button-mobile, #bottom-bar-top {
font-size: 10pt;
display: inline-block;
margin: 0 2px;
}
.post-button-mobile {
padding-bottom: 10px;
}
#btns-container {
text-align: center;
margin-bottom: 50px;
}
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `.btn-wrap {
background-color: #f0e0d6;
background-image: url(/assets/buttonfade.png);
border: 1px solid #c0a69d;
color: #800;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
}
.btn-wrap a {
text-decoration: none;
border: none;
color: inherit !important;
white-space: nowrap;
}
}`;
case 'Yotsuba-B':
return `.btn-wrap {
background-color: #d6daf0;
background-image: url(/assets/buttonfade-blue.png);
border: 1px solid #b7c5d9;
color: #34345c !important;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
}
.btn-wrap a {
text-decoration: none;
border: none;
color: #34345c !important;
white-space: nowrap;
}`;
case 'Futaba':
return `.btn-wrap {
background-color: #f0e0d6;
background-image: url(/assets/buttonfade.png);
border: 1px solid #c0a69d;
color: #800;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
font-size: 16px;
}
.btn-wrap a {
text-decoration: none !important;
border: none;
color: inherit !important;
white-space: nowrap;
}`;
case 'Burichan':
return `.btn-wrap {
background-color: #d6daf0;
background-image: url(/assets/buttonfade-blue.png);
border: 1px solid #b7c5d9;
color: #34345c;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
font-size: 16px;
}
.btn-wrap a {
text-decoration: none !important;
border: none;
color: inherit !important;
white-space: nowrap;
}
}`;
case 'Tomorrow':
return `.btn-wrap {
background-color: #1b1c1e;
background-image: url(/assets/buttonfade-dark.png);
border: 1px solid #282a2e;
color: #707070;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
}
.btn-wrap a {
text-decoration: none !important;
border: none;
color: #707070 !important;
white-space: nowrap;
}`;
case 'Photon':
return `.btn-wrap {
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;
}
.btn-wrap a {
text-decoration: none;
border: none;
color: #333 !important;
white-space: nowrap;
}`;
}
}}
`;
export const TopBar = styled.div`
@media (min-width: 480px) {
#return-button-mobile {
display: none;
}
.reply-stat {
margin-top: 5px;
}
}
@media (max-width: 480px) {
line-height: 30px;
#return-button-desktop, #catalog-button-desktop, #bottom-button-desktop {
display: none;
}
#return-button-mobile {
position: absolute;
left: 50%;
display: inline-block;
transform: translateX(-50%);
font-size: 10pt;
}
hr {
display: none;
}
}
.return-button {
display: inline-block;
}
.reply-stat {
position: relative;
float: right;
margin-right: 5px;
}
.catalog-button {
margin-left: 3px !important;
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `clear: both;
hr {
border: none;
border-top: 1px solid #d9bfb7;
height: 0;
}
.style-changer {
margin-left: 5px;
font-size: 10pt;
}
.return-button {
margin-left: 10px;
a, a:visited {
color: #00e !important;
text-decoration: none;
}
a:hover {
color: red !important;
}
}`;
case 'Yotsuba-B':
return `clear: both;
hr {
border: none;
border-top: 1px solid #b7c5d9;
height: 0;
}
.style-changer {
margin-left: 5px;
font-size: 10pt;
}
.return-button {
margin-left: 10px;
a, a:visited {
color: #34345c !important;
text-decoration: none;
}
a:hover {
color: red !important;
}
}`;
case 'Futaba':
return `clear: both;
hr {
clear: both;
}
.style-changer {
margin-left: 5px;
font-size: 12pt;
}
.return-button {
margin-left: 10px;
padding-top: 2px;
font-size: 12pt;
a, a:visited {
color: #00e !important;
text-decoration: underline;
}
a:hover {
color: red !important;
}
}
.reply-stat {
font-size: 12pt;
bottom: 2px;
}`;
case 'Burichan':
return `clear: both;
hr {
clear: both;
}
.style-changer {
margin-left: 5px;
font-size: 12pt;
}
.return-button {
margin-left: 10px;
padding-top: 2px;
font-size: 12pt;
a, a:visited {
color: #34345c !important;
text-decoration: underline;
}
a:hover {
color: red !important;
}
}
.reply-stat {
font-size: 12pt;
bottom: 2px;
}`;
case 'Tomorrow':
return `clear: both;
hr {
border: none;
border-top: 1px solid #282a2e;
height: 0;
}
.style-changer {
margin-left: 5px;
font-size: 10pt;
}
#style-selector {
background-color: #282a2e;
color: #c5c8c6;
border: 1px solid #373b41;
}
.return-button {
margin-left: 10px;
a, a:visited {
color: #81a2be !important;
text-decoration: none;
}
a:hover {
color: #5f89ab !important;
}
}`;
case 'Photon':
return `clear: both;
hr {
border: none;
border-top: 1px solid #ddd;
height: 0;
}
.style-changer {
margin-left: 5px;
font-size: 10pt;
}
.return-button {
margin-left: 10px;
a, a:visited {
color: #f60 !important;
text-decoration: none;
}
a:hover {
color: #ff3300 !important;
}
}`;
}
}}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `.btn-wrap {
background-color: #f0e0d6;
background-image: url(/assets/buttonfade.png);
border: 1px solid #c0a69d;
color: #800;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
}
.btn-wrap a {
text-decoration: none;
border: none;
color: inherit !important;
white-space: nowrap;
}
}`;
case 'Yotsuba-B':
return `.btn-wrap {
background-color: #d6daf0;
background-image: url(/assets/buttonfade-blue.png);
border: 1px solid #b7c5d9;
color: #34345c !important;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
}
.btn-wrap a {
text-decoration: none;
border: none;
color: #34345c !important;
white-space: nowrap;
}`;
case 'Futaba':
return `.btn-wrap {
background-color: #f0e0d6;
background-image: url(/assets/buttonfade.png);
border: 1px solid #c0a69d;
color: #800;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
font-size: 16px;
}
.btn-wrap a {
text-decoration: none !important;
border: none;
color: inherit !important;
white-space: nowrap;
}`;
case 'Burichan':
return `.btn-wrap {
background-color: #d6daf0;
background-image: url(/assets/buttonfade-blue.png);
border: 1px solid #b7c5d9;
color: #34345c;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
font-size: 16px;
}
.btn-wrap a {
text-decoration: none !important;
border: none;
color: inherit !important;
white-space: nowrap;
}
}`;
case 'Tomorrow':
return `.btn-wrap {
background-color: #1b1c1e;
background-image: url(/assets/buttonfade-dark.png);
border: 1px solid #282a2e;
color: #707070;
border-radius: 3px 3px 3px 3px;
font-weight: 700;
padding: 6px 10px 5px;
background-repeat: repeat-x;
cursor: pointer;
}
.btn-wrap a {
text-decoration: none !important;
border: none;
color: #707070 !important;
white-space: nowrap;
}`;
case 'Photon':
return `.btn-wrap {
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;
}
.btn-wrap a {
text-decoration: none;
border: none;
color: #333 !important;
white-space: nowrap;
}`;
}
}}
`;
export const BottomBar = styled.div`
.reply-stat {
position: relative;
float: right;
margin-right: 5px;
transform: translateY(-50%);
}
.quickreply-button {
text-align: center;
width: 200px;
position: absolute;
margin-left: 50%;
left: -100px;
transform: translateY(-50%);
}
.bottom-bar-return {
position: absolute;
transform: translateY(-50%);
}
.bottom-bar-catalog {
position: absolute;
transform: translateY(-50%);
left: 56px;
}
.bottom-bar-top {
position: absolute;
transform: translateY(-50%);
left: 113px;
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `
a, a:visited {
color: #00e !important;
text-decoration: none;
}
a:hover {
color: red !important;
}
hr {
height: 0;
clear: both;
padding-bottom: 5px;
padding-top: 5px;
}`;
case 'Yotsuba-B':
return `
a, a:visited {
color: #34345c !important;
text-decoration: none;
}
a:hover {
color: red !important;
}
hr {
height: 0;
clear: both;
padding-bottom: 5px;
padding-top: 5px;
}`;
case 'Futaba':
return `
a, a:visited {
color: #00e !important;
text-decoration: underline;
}
a:hover {
color: red !important;
}
hr {
height: 0;
clear: both;
margin-top: 5px;
margin-bottom: 15px;
}
.bottom-bar-catalog {
left: 62px;
}
.bottom-bar-top {
left: 125px;
}`;
case 'Burichan':
return `
a, a:visited {
color: #34345c !important;
text-decoration: underline;
}
a:hover {
color: red !important;
}
hr {
height: 0;
clear: both;
margin-top: 5px;
margin-bottom: 15px;
}
.bottom-bar-catalog {
left: 62px;
}
.bottom-bar-top {
left: 125px;
}`;
case 'Tomorrow':
return `
a, a:visited {
color: #81a2be !important;
text-decoration: none;
}
a:hover {
color: #5f89ab !important;
}
hr {
height: 0;
clear: both;
padding-bottom: 5px;
padding-top: 5px;
}`;
case 'Photon':
return `
a, a:visited {
color: #f60 !important;
text-decoration: none;
}
a:hover {
color: #ff3300 !important;
}
hr {
height: 0;
clear: both;
padding-bottom: 5px;
padding-top: 5px;
}`;
}
}}
`;