svrjs-mods-directory/css/main.css

1021 lines
No EOL
20 KiB
CSS

html,
body {
margin: 0;
padding: 0;
font-family: Poppins, sans-serif;
background-color: #ffffff;
color: #000000;
}
.wrapper {
width: 100%;
max-width: 1440px;
margin: 0 auto;
}
a {
color: #16a34a;
}
header {
background-color: #ffffff;
border-bottom: 1px solid #e4e4e7;
padding: 0.5em;
position: -webkit-sticky;
position: sticky;
top: 0;
}
header::after {
display: table;
content: '';
clear: both;
}
header .header-logo {
display: inline-block;
background-image: url('../img/logo.png');
-webkit-background-size: 162px 40px;
-moz-background-size: 162px 40px;
-o-background-size: 162px 40px;
background-size: 162px 40px;
width: 162px;
height: 40px;
margin-right: 1em;
vertical-align: middle;
}
header nav {
background-color: #ffffff;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
float: right;
min-height: 40px;
}
header nav ul {
display: inline-block;
padding: 0;
margin: 0;
list-style-type: none;
-webkit-align-self: center;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center;
}
header nav ul li {
display: inline-block;
}
header nav ul li form {
display: inline-block;
margin: 0;
padding: 0;
}
header nav ul li a,
header nav ul li form input[type="submit"],
header nav ul li form button {
display: inline-block;
padding: 0.5em 0.75em;
margin: 0 0.1em;
background-color: inherit;
color: #000000;
text-decoration: none;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
header nav ul li a.nav-active,
header nav ul li form input.nav-active[type="submit"],
header nav ul li form button.nav-active {
background-color: #e2e2e4;
color: #000000;
}
header nav ul li a:hover,
header nav ul li form input[type="submit"]:hover,
header nav ul li form button:hover {
background-color: #f4f4f5;
color: #000000;
}
header nav ul li a:focus,
header nav ul li form input[type="submit"]:focus,
header nav ul li form button:focus {
outline: revert;
}
header .header-hamburger {
display: none;
float: right;
height: 40px;
width: 40px;
cursor: pointer;
}
header .header-hamburger .header-hamburger-bar {
display: block;
background-color: #000000;
width: 30px;
height: 5px;
margin: 6.25px 5px;
-webkit-border-radius: 2.5px;
-moz-border-radius: 2.5px;
border-radius: 2.5px;
}
header.header-nav-opened {
display: block;
border-bottom: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99;
}
header.header-nav-opened nav {
display: block;
float: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding: 50px 0.5em 0.5em 0.5em;
text-align: center;
z-index: 100;
}
header.header-js.header-nav-opened nav {
display: block;
}
header.header-nav-opened nav ul {
display: block;
height: 100%;
overflow: auto;
}
header.header-nav-opened nav ul li {
display: block;
}
header.header-nav-opened nav ul li form {
display: block;
}
header.header-nav-opened nav ul li a,
header.header-nav-opened nav ul li form input[type="submit"],
header.header-nav-opened nav ul li form button {
display: block;
text-align: left;
width: 100%;
margin: 0.25em 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
header.header-nav-opened .header-logo {
position: fixed;
display: block;
top: 0.5em;
left: 0.5em;
z-index: 101;
}
header.header-nav-opened .header-hamburger {
position: fixed;
display: block;
top: 0.5em;
right: 0.5em;
z-index: 101;
}
section.hero {
padding: 3em 0.5em;
text-align: center;
background-color: #fafafa;
border-bottom: 1px solid #e4e4e7;
}
section.hero h1 {
font-size: 4em;
line-height: 1;
}
section.hero p {
font-size: 1.25em;
color: #71717a;
}
form.search-form {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
width: 100%;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-moz-box-orient: horizontal;
-moz-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
margin: 1em auto;
}
form.search-form input[name="q"] {
width: 128px;
margin-right: 0.5em;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-moz-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
form.search-form input[type="submit"],
form.search-form input[type="reset"],
form.search-form input[type="button"],
form.search-form button {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
}
section.hero form.search-form {
margin: 3em auto;
max-width: 800px;
}
main {
padding: 0.5em;
}
main.content {
width: 100%;
max-width: 1280px;
margin: 0 auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input,
select,
textarea {
display: inline-block;
background-color: #f6f6f7;
color: #000000;
font-family: inherit;
font-size: 1em;
padding: 0.5em 1em;
border: 0;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
textarea {
display: block;
min-height: 10em;
}
input:focus,
select:focus,
textarea:focus {
outline: 2px solid #2cac5b;
}
input[type="checkbox"],
input[type="radio"] {
width: 1.25em;
height: 1.25em;
vertical-align: middle;
}
input[type="checkbox"]+label,
input[type="radio"]+label {
vertical-align: middle;
}
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.btn {
display: inline-block;
background-color: #16a34a;
color: #ffffff;
font-family: inherit;
font-size: 1em;
padding: 0.5em 1em;
border: 0;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
text-decoration: none;
}
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.btn:hover {
background-color: #2cac5b;
color: #ffffff;
cursor: pointer;
}
.btn-secondary {
background-color: #f4f4f5;
color: #000000;
}
.btn-secondary:hover {
background-color: #f4f4f5;
color: #000000;
}
.category-headline {
font-size: 2em;
}
.category {
padding: 0.5em;
background-color: #f9f9fa;
border: 1px solid #e4e4e7;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin: 0.5em 0;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-moz-box-orient: horizontal;
-moz-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.category h3 {
margin: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-moz-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-webkit-align-self: center;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center;
}
.category p {
margin: 0;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
-webkit-align-self: center;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center;
}
footer {
background-color: #fafafa;
border-top: 1px solid #e4e4e7;
padding: 0.5em;
}
.mods {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-moz-box-orient: horizontal;
-moz-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.mods .mods-mod-container {
width: 33.3333%;
padding: 0.5em;
position: relative;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.mods .mods-mod-container .mods-mod-card {
background-color: #f9f9fa;
border: 1px solid #e4e4e7;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 100%;
}
.mods .mods-mod-container .mods-mod-card img {
width: 100%;
-webkit-border-radius: 10px 10px 0 0;
-moz-border-radius: 10px 10px 0 0;
border-radius: 10px 10px 0 0;
display: block;
}
.mods .mods-mod-container .mods-mod-card .mods-mod-card-contents {
padding: 0.5em;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-moz-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
height: 100%;
}
.mods .mods-mod-container .mods-mod-card .mods-mod-card-contents h2 {
margin-top: 0;
margin-bottom: 0;
}
.mods .mods-mod-container .mods-mod-card .mods-mod-card-contents p {
margin-top: 0.75em;
margin-bottom: 0.75em;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-moz-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
.mods .mods-mod-container .mods-mod-card .mods-mod-card-contents .mods-mod-card-bottom {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-moz-box-orient: horizontal;
-moz-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.mods .mods-mod-container .mods-mod-card .mods-mod-card-contents .mods-mod-card-bottom p.mods-mod-card-publisher {
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-moz-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
margin-top: 0;
margin-bottom: 0;
}
.badge {
background-color: #16a34a;
color: #ffffff;
-webkit-border-radius: 9999px;
-moz-border-radius: 9999px;
border-radius: 9999px;
display: inline-block;
padding: 0 0.5em;
margin: 0 0.25em;
height: 1.5em;
}
.pagination {
display: block;
margin: 1em 0;
text-align: center;
}
.pagination a,
.pagination span {
display: inline-block;
margin: 0 0.5em;
}
img.mod-cover {
width: 100%;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
max-width: 1024px;
margin: 0 auto;
display: block;
}
.button-container {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-moz-box-orient: horizontal;
-moz-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.button-container .btn {
margin-right: 0.5em;
}
.mod-links {
font-size: 1.2em;
}
.mod-badges {
font-size: 1.2em;
margin: 0.5em 0;
}
.mod-header {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-moz-box-orient: horizontal;
-moz-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.mod-header h1 {
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-moz-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-webkit-align-self: center;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center;
}
.mod-header .mod-badges {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
-webkit-align-self: center;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center;
}
form.form {
display: block;
}
form.form .form-block {
display: block;
margin: 0.5em 0;
}
form.form .form-block-checkbox {
display: block;
margin: 0.25em 0;
}
.form-error {
color: #ff0000;
font-weight: bold;
}
form.form .form-captcha-container div {
display: inline-block;
}
.password-weak {
color: #ff0000;
font-weight: bold;
}
.password-medium {
color: #ff7f00;
font-weight: bold;
}
.password-strong {
color: #007f00;
font-weight: bold;
}
.rating {
font-size: 2em;
margin: 0.5em 0;
}
.rating-rating {
font-weight: bold;
font-size: 1.5em;
margin: 0.25em 0;
line-height: 1;
vertical-align: middle;
}
.rating-stars {
vertical-align: middle;
display: inline-block;
margin: 0.25em;
}
.rating-star.rating-star-higlighted {
color: #16a34a;
}
.review {
background-color: #f9f9fa;
border: 1px solid #e4e4e7;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
padding: 0.25em 0.5em;
margin: 0.5em 0;
}
.review .review-header {
font-size: 1.25em;
}
.review p {
margin: 0.5em 0;
}
.rating-select {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -moz-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-moz-box-orient: horizontal;
-moz-box-direction: reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
font-size: 1.25em;
}
.rating-select input {
display: none;
}
.rating-select label {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
}
.rating-select input:not(:checked)~label:hover,
.rating-select input:not(:checked)~label:hover~label {
color: #16a34a;
}
.rating-select input:checked~label {
color: #16a34a;
}
@media screen and (max-width: 1024px) {
.mods .mods-mod-container {
width: 50%;
}
}
@media screen and (max-width: 768px) {
header.header-js .header-hamburger {
display: block;
}
header.header-js nav {
display: none;
}
section.hero {
padding-top: 2em;
padding-bottom: 2em;
}
section.hero h1 {
font-size: 3em;
}
.category {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.category h3,
.category p {
-webkit-align-self: auto;
-ms-flex-item-align: auto;
-ms-grid-row-align: auto;
align-self: auto;
}
.mods {
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.mods .mods-mod-container {
width: 100%;
}
.button-container {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.button-container .btn {
margin: 0.25em 0;
text-align: center;
}
.mod-links {
font-size: 1em;
}
.mod-badges {
font-size: 1em;
margin-bottom: 1em;
}
.mod-header {
display: block;
}
.mod-header h1 {
margin-bottom: 0.25em;
}
form.form .form-block input,
form.form .form-block label,
form.form .form-block textarea,
form.form .form-block select,
form.form .form-block button {
display: block;
width: 100%;
}
form.form .form-captcha-container {
text-align: center;
}
.review-header {
font-size: 1em;
}
}
@media screen and (prefers-color-scheme: dark) {
html,
body {
background-color: #0c0a09;
color: #f2f2f2;
}
a {
color: #22c55e;
}
header {
background-color: #0c0a09;
border-bottom-color: #27272a;
}
header .header-logo {
background-image: url('../img/logo-dark.png');
}
header nav {
background-color: #0c0a09;
}
header nav ul li a,
header nav ul li form input[type="submit"],
header nav ul li form input[type="reset"],
header nav ul li form input[type="button"],
header nav ul li form button {
background-color: inherit;
color: #f2f2f2;
}
header nav ul li a.nav-active,
header nav ul li form input.nav-active[type="submit"],
header nav ul li form button.nav-active {
background-color: #2a2829;
color: #f2f2f2;
}
header nav ul li a:hover,
header nav ul li form input[type="submit"]:hover,
header nav ul li form input[type="reset"]:hover,
header nav ul li form input[type="button"]:hover,
header nav ul li form button:hover {
background-color: #292524;
color: #f2f2f2;
}
header .header-hamburger .header-hamburger-bar {
background-color: #f2f2f2;
}
section.hero {
background-color: #090907;
border-bottom-color: #27272a;
}
section.hero p {
color: #a1a1aa;
}
input,
select,
textarea {
background-color: #221f1e;
color: #f2f2f2;
}
input:focus,
select:focus,
textarea:focus {
outline: 2px solid #2cac5b;
}
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.btn {
background-color: #22c55e;
color: #0c0a09;
}
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.btn:hover {
background-color: #21b356;
color: #0c0a09;
}
.btn-secondary {
background-color: #292524;
color: #f2f2f2;
}
.btn-secondary:hover {
background-color: #292524;
color: #f2f2f2;
}
.category {
background-color: #191817;
border-color: #27272a;
}
footer {
background-color: #090907;
border-top-color: #27272a;
}
.mods .mods-mod-container .mods-mod-card {
background-color: #191817;
border-color: #27272a;
}
.badge {
background-color: #22c55e;
color: #0c0a09;
}
.form-error {
color: #ea4648;
}
.password-weak {
color: #ea4648;
}
.password-medium {
color: #ff7f00;
}
.password-strong {
color: #00ff00;
}
.rating-star.rating-star-higlighted {
color: #22c55e;
}
.review {
background-color: #191817;
border-color: #27272a;
}
.rating-select input:not(:checked)~label:hover,
.rating-select input:not(:checked)~label:hover~label {
color: #22c55e;
}
.rating-select input:checked~label {
color: #22c55e;
}
}