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

98 lines
1.5 KiB
React
Raw Normal View History

import { createGlobalStyle } from 'styled-components';
export const GlobalStyle = createGlobalStyle`
*:focus {
outline: none;
}
body {
margin: 0;
padding: 0;
background: ${props => props.background};
color: ${props => props.color};
font-family: ${props => props.fontFamily};
}
.tooltip {
z-index: 999;
border-radius: 0;
max-width: 40%;
font-size: 11px;
padding: 3px;
opacity: 100%;
2023-05-03 11:59:12 +02:00
word-wrap: break-word;
}
.line-break {
white-space: pre-line;
}
.custom-paragraph {
margin: 0;
padding: 0;
}
.custom-linebreak {
display: block;
margin: 0;
padding: 0;
}
2023-04-30 13:32:52 +02:00
.expanded-container {
display: inline-block;
}
2023-04-30 13:32:52 +02:00
.enlarged {
display: block;
max-width: 100% !important;
max-height: 100% !important;
}
@media (max-width: 480px) {
.enlarged {
max-width: 100% !important;
max-height: 100% !important;
}
}
.post-menu-catalog {
position: absolute;
font-size: 12px;
line-height: 1.3em;
list-style: none;
ul {
padding: 0;
margin: 0;
white-space: nowrap;
}
li {
cursor: pointer;
position: relative;
padding: 2px 4px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-menu {
display: none;
position: absolute;
left: 100%;
top: 0;
2023-05-26 20:54:23 +02:00
list-style: none;
}
.dropdown:hover .dropdown-menu {
display: block;
}
a {
text-decoration: none;
color: inherit;
}
}
`;