Files
5chan/src/views/home/home.module.css
T

357 lines
5.9 KiB
CSS
Raw Normal View History

2024-02-28 21:18:37 +01:00
.content {
width: 100%;
height: 100%;
margin: auto;
2024-02-28 21:18:37 +01:00
text-align: left;
width: 750px;
2024-02-28 21:18:37 +01:00
min-width: 750px;
}
.logo img {
height: 120px;
}
.logo {
margin: 0px auto;
text-align: center;
}
.box {
2024-03-01 20:42:21 +01:00
position: relative;
background: var(--homepage-box-background-color);
color: var(--homepage-infobox-text-color);
border: 1px solid var(--homepage-box-border-color);
margin-bottom: 0.5em;
padding-bottom: 0.5em;
}
2024-07-02 19:05:48 +02:00
.infoBox {
border: 1px solid black;
}
2024-05-02 22:09:41 +02:00
.boardsBox {
overflow: hidden;
min-height: 150px;
2024-05-02 22:09:41 +02:00
}
2024-03-21 22:16:24 +01:00
.boxBar, .infoboxBar {
padding-left: 0.5em;
line-height: 2em;
2024-05-06 16:20:54 +02:00
text-transform: capitalize;
}
2024-03-21 22:16:24 +01:00
.infoboxBar {
background: var(--homepage-infobox-bar-background-color);
color: var(--homepage-infobox-bar-text-color);
2024-03-01 13:18:01 +01:00
}
2024-03-21 22:16:24 +01:00
.boxBar {
background: var(--homepage-box-bar-background-color);
color: var(--homepage-box-bar-text-color);
2024-03-01 13:18:01 +01:00
}
2024-03-21 22:16:24 +01:00
.boxBar h2, .infoboxBar h2{
font-size: 131%;
font-weight: 700;
}
2024-03-01 20:42:21 +01:00
.boxBar span {
position: absolute;
top: 0;
right: 0;
padding-right: 0.25em;
text-transform: lowercase;
}
.boxBar span:hover {
cursor: pointer;
color: var(--homepage-box-bar-text-color-hover);
2024-03-01 20:42:21 +01:00
}
.boxContent {
line-height: 1.5em;
font-size: 93%;
padding: 0.5em;
padding-top: 0.25em;
padding-bottom: 0;
}
2024-03-15 22:42:13 +01:00
.boxContent a {
text-decoration: underline;
}
.boxContent a, .boxContent a:visited{
color: var(--homepage-infobox-link-text-color);
}
.searchBar form {
display: flex;
text-align: center;
justify-content: center;
margin-bottom: 20px;
}
.searchBar input {
font-size: 18px;
height: 30px;
box-sizing: border-box;
appearance: none;
border-radius: 0px;
border: 1px solid rgb(170, 170, 170);
outline: none;
flex-grow: 1;
min-width: 0;
max-width: 400px;
}
.searchBar input {
width: 400px;
padding: 3px 10px;
}
2024-07-02 19:20:43 +02:00
.searchBar input:focus {
border-color: #ea8;
}
.searchButton {
margin-left: 4px;
2024-03-01 13:18:01 +01:00
padding: 3px 5px;
display: inline-block;
text-transform: capitalize;
font-size: 14px;
white-space: nowrap;
flex-shrink: 0;
cursor: pointer;
}
.filterModal {
position: absolute;
top: 30px;
right: 5px;
display: inline-block;
position: absolute;
text-align: right;
background: #fff;
border: 1px solid gray;
box-shadow: 2px 2px 0 1px rgba(0, 0, 0, .1);
padding: 4px 0;
line-height: 1.7em;
z-index: 100;
}
.filterModal .separator {
border-bottom: 1px solid #ccc;
margin: 6px 0 4px;
padding: 0;
}
.filterModal .option {
padding: 0 10px;
}
.filterModal .option:hover {
background-color: #fca;
cursor: pointer;
}
.filterModal .selected::before {
content: '✔ ';
2024-02-28 21:18:37 +01:00
}
2024-03-01 20:42:21 +01:00
.list a {
color: var(--homepage-box-link-text-color);
text-decoration: var(--homepage-box-link-text-decoration);
2024-03-01 20:42:21 +01:00
}
.list a:hover {
color: var(--homepage-box-link-text-color-hover);
text-decoration: var(--homepage-box-link-text-decoration-hover);
2024-03-01 20:42:21 +01:00
}
.nsfw {
color: red;
font-weight: 700;
text-transform: uppercase;
font-size: smaller;
}
.offlineIcon {
background-image: url('/public/assets/icons/offline.png');
display: inline-block;
vertical-align: text-top;
margin-right: 2px;
width: 13px;
height: 13px;
background-repeat: no-repeat;
background-size: contain;
image-rendering: pixelated;
}
2024-03-01 20:42:21 +01:00
.boardsBoxContent {
font-size: 93%;
padding: 0.5em;
padding-top: 0.25em;
padding-bottom: 0;
line-height: 130%;
display: table;
}
.boardsBoxContent .column {
float: left;
width: 168px;
margin-right: 15px;
word-break: break-word;
2024-03-01 20:42:21 +01:00
}
.boardsBoxContent h3 {
font-size: 100%;
font-weight: 700;
text-decoration: underline;
text-transform: capitalize;
color: var(--homepage-box-bar-text-color);
2024-03-15 22:42:13 +01:00
}
.footer a {
text-transform: capitalize;
}
2024-04-10 17:56:34 +02:00
.version {
text-align: center;
padding-top: 2em;
padding-bottom: 1em;
font-size: 11px;
}
.version a {
text-decoration: none;
color: unset;
}
.version a:hover {
text-decoration: underline;
}
2024-05-02 22:09:41 +02:00
.popularThreads {
font-size: 93%;
padding: 0.5em;
padding-top: 0.25em;
padding-bottom: 0;
line-height: 130%;
text-align: center;
}
.popularThread {
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;
color: #800;
}
.popularThread .title {
font-weight: 700;
overflow: hidden;
text-overflow: ellipsis;
display: block;
white-space: nowrap;
margin-bottom: 5px;
}
.popularThread .mediaContainer {
width: auto;
height: auto;
border: 1px solid #800;
display: inline-block;
overflow: hidden;
position: relative;
line-height: 0;
}
2024-05-03 15:00:25 +02:00
.popularThread .mediaContainer img, .popularThread .mediaContainer video {
2024-05-02 22:09:41 +02:00
max-width: 150px;
max-height: 150px;
}
.popularThread .threadContent {
margin-bottom: 5px;
padding: 0 2px;
white-space: pre-line;
}
2024-05-03 21:31:36 +02:00
.stats {
margin-top: 5px;
text-align: center;
color: #800;
}
.stats .stat {
display: inline-block;
width: 33%;
2024-05-06 16:20:54 +02:00
text-transform: capitalize;
2024-05-03 21:31:36 +02:00
}
2024-03-18 15:04:30 +01:00
@media (max-width: 640px) {
2024-02-28 21:18:37 +01:00
.content {
2024-03-01 13:18:01 +01:00
min-width: 0;
2024-02-28 21:18:37 +01:00
width: auto;
2024-03-01 13:18:01 +01:00
padding: 10px;
2024-02-28 21:18:37 +01:00
}
2024-03-16 13:35:41 +01:00
.footer {
text-align: center;
}
.footer ul {
margin: auto;
}
.footer li {
display: inline-table;
line-height: 1.7;
white-space: nowrap;
padding: 2px 1em 2px 1em;
}
.footer a {
color: var(--homepage-infobox-link-text-color);
2024-03-16 13:35:41 +01:00
text-decoration: underline;
}
}
@media (min-width: 640px) {
.footer {
border-top: 1px solid;
width: 750px;
display: inline-flex;
justify-content: center;
font-size: 12px;
}
.footer li {
2024-03-21 22:16:24 +01:00
background: var(--footer-item-background-color-desktop);
2024-03-16 13:35:41 +01:00
border: 1px solid;
padding: 2px 1em 2px 1em;
border-left: none;
margin-top: -1px;
list-style: none;
}
.footer li:first-child {
border-left: 1px solid !important;
}
.footer a {
color: var(--homepage-box-bar-text-color);
2024-03-16 13:35:41 +01:00
text-decoration: none;
}
2024-06-12 21:30:28 +02:00
.footer a:hover {
color: var(--homepage-box-bar-text-color-hover);
}
2024-02-27 17:58:08 +01:00
}