cinetrack/style.css

219 lines
3.4 KiB
CSS
Raw Permalink Normal View History

2023-07-10 01:12:14 +02:00
/* Boilerplate */
* {
box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
/* CSS */
@font-face {
font-family: 'Source Sans Pro';
src: url('fonts/SourceSansPro-Regular.ttf.woff2');
}
:root {
--red: #fe5f55;
--bg-1: #2b5876;
--bg-2: #4e4376;
--text: #d8d8f6;
--darker: #7f9c96;
--font: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
2023-07-10 01:12:14 +02:00
}
html {
background: var(--bg-1); /* fallback for old browsers */
background: -webkit-linear-gradient(to right, var(--bg-1), var(--bg-2)); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, var(--bg-1), var(--bg-2)); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
2023-07-10 01:12:14 +02:00
}
body {
color: var(--text);
font-family: var(--font);
2023-07-10 01:12:14 +02:00
text-align: center;
margin: 0 auto;
}
a {
color: var(--text);
2023-07-10 01:12:14 +02:00
}
header {
2023-07-11 11:45:17 +02:00
background: rgba(0, 0, 0, .5);
2023-07-10 01:12:14 +02:00
margin: 0;
padding: .5rem;
text-align: left;
}
2023-07-10 16:20:06 +02:00
.settings-link {
float: right;
font-size: 175%;
text-decoration: none;
min-height: 3rem;
display: flex;
padding: 0 .5rem;
align-items: center;
}
.error {
color: var(--red);
}
2023-07-10 01:12:14 +02:00
div {
margin: 0 auto;
}
form {
margin: 1rem auto;
}
.left_container {
width: 12rem;
}
.left_container img {
border-radius: 1rem;
}
.right_container {
padding: 1rem;
width: 80%;
}
@media screen and (min-width: 900px) {
.left_container {
float: left;
}
.right_container {
float: right;
width: calc(60vw - 15rem);
}
}
.auto-fit {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.auto-fit div img {
border-radius: 1rem;
}
.entry {
position: relative;
text-align: center;
}
.info {
position: absolute;
bottom: 1rem;
left: 50%;
transform: translate(-50%, 0);
opacity: 0;
transition: opacity 200ms;
padding: .5rem 1rem;
border-radius: 1rem;
background: rgba(0, 0, 0, 0.7);
width: calc(100% - 2rem);
}
.info span {
font-size: 150%;
}
.entry:hover > .info {
opacity: 1;
}
2023-07-10 01:12:14 +02:00
.popup {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
}
.popup-content {
background-color: var(--bg-1);
2023-07-10 01:12:14 +02:00
margin: 10% auto;
padding: 20px;
border: thin solid var(--darker);
2023-07-10 01:12:14 +02:00
border-radius: 1rem;
width: 80%;
max-width: 60vw;
overflow: hidden;
}
.close {
color: var(--darker);
2023-07-10 01:12:14 +02:00
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: var(--text);
2023-07-10 01:12:14 +02:00
text-decoration: none;
cursor: pointer;
}
input[type=text],
input[type=password],
input[type=submit],
input[type=number],
2023-07-10 16:20:06 +02:00
input[type=button],
.btn {
2023-07-10 01:12:14 +02:00
background: rgba(0, 0, 0, 0.5);
border: thin solid var(--darker);
2023-07-10 01:12:14 +02:00
padding: .5rem;
color: var(--text);
2023-07-10 01:12:14 +02:00
border-radius: 1rem;
text-decoration: none;
font-family: var(--font);
font-size: 100%;
transition: background 200ms;
2023-07-10 01:12:14 +02:00
}
input[type=number] {
2023-07-10 16:20:06 +02:00
padding: .5rem 1rem;
width: 13ch;
}
input[type=submit]:hover,
2023-07-10 16:20:06 +02:00
input[type=button]:hover,
input[type=text]:hover,
input[type=text]:focus,
input[type=password]:hover,
input[type=password]:focus,
.btn:hover {
background: rgba(0, 0, 0, 0.7);
outline: none;
}
input[type=submit]:active,
.btn:active {
background: rgba(0, 0, 0, 0.8);
}
.poster {
width: 12rem;
}
.invisible_input {
width: 0;
height: 0;
border: none;
padding: 0 !important;
}