cinetrack/style.css

186 lines
2.9 KiB
CSS

/* 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;
}
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+ */
}
body {
color: var(--text);
font-family: var(--font);
text-align: center;
margin: 0 auto;
}
a {
color: var(--text);
}
header {
background: rgba(0, 0, 0, 50);
backdrop-filter: blur(12px);
margin: 0;
padding: .5rem;
text-align: left;
}
.error {
color: var(--red);
}
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;
}
.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);
margin: 10% auto;
padding: 20px;
border: thin solid var(--darker);
border-radius: 1rem;
width: 80%;
max-width: 60vw;
overflow: hidden;
}
.close {
color: var(--darker);
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: var(--text);
text-decoration: none;
cursor: pointer;
}
input[type=text],
input[type=password],
input[type=submit],
input[type=number],
.btn {
background: rgba(0, 0, 0, 0.5);
border: thin solid var(--darker);
padding: .5rem;
color: var(--text);
border-radius: 1rem;
text-decoration: none;
font-family: var(--font);
font-size: 100%;
transition: background 200ms;
}
input[type=number] {
padding: .5rem 1.5rem;
}
input[type=submit]: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;
}
input[type=number] {
width: 10ch;
}