Files
5chan/src/components/styled/BoardStats.styled.jsx
T

102 lines
1.7 KiB
React
Raw Normal View History

2023-08-22 16:18:55 +02:00
import styled from "styled-components";
export const BoardStatsContainer = styled.div`
2023-08-25 10:09:57 +02:00
2023-08-22 16:18:55 +02:00
@media (max-width: 480px) {
display: none;
}
@media (min-width: 480px) {
width: 468px;
margin: auto;
2023-08-24 16:11:16 +02:00
line-height: 1;
2023-08-27 20:41:31 +02:00
margin-top: -1px;
2023-08-22 16:18:55 +02:00
table {
border-spacing: 0px;
width: 100%;
2023-08-25 10:09:57 +02:00
margin-top: -1px;
2023-08-27 20:41:31 +02:00
padding-left: 3px;
2023-08-22 16:18:55 +02:00
}
tr {
vertical-align: top;
font-size: 11px;
}
}
2023-08-24 16:11:16 +02:00
tfoot {
text-align: right;
}
.hide-button:hover {
cursor: pointer;
}
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `
#stat-number {
color: #00e;
}
.hide-button:hover {
color: red !important;
}`;
case 'Yotsuba-B':
return `
#stat-number {
color: #34345c;
}
.hide-button:hover {
color: #d00 !important;
}`;
case 'Futaba':
return `
#stat-number {
color: #00e;
}
.hide-button:hover {
color: red !important;
}`;
case 'Burichan':
return `
#stat-number {
color: #34345c;
}
.hide-button:hover {
color: red !important;
}`;
case 'Tomorrow':
return `
#stat-number {
color: #81a2be;
}
.hide-button:hover {
color: #5f89ab !important;
}`;
case 'Photon':
return `
#stat-number {
color: #f60;
}
.hide-button:hover {
color: #ff3300 !important;
}`;
default:
return '';
}
}}
2023-08-22 16:18:55 +02:00
`;