470 lines
7.2 KiB
CSS
470 lines
7.2 KiB
CSS
/* BASE */
|
||
|
||
:root {
|
||
--color-primary: #375a7f;
|
||
--color-background: #343c3d;
|
||
--plyr-color-main: var(--color-primary) !important;
|
||
}
|
||
|
||
#nav {
|
||
z-index: 101;
|
||
}
|
||
|
||
#nav.is-fixed-top {
|
||
position: sticky;
|
||
top: -1px;
|
||
}
|
||
|
||
#menu.force-display {
|
||
display: flex !important;
|
||
}
|
||
|
||
.navbar-item img {
|
||
width: 100%;
|
||
}
|
||
|
||
.navbar-burger {
|
||
margin-left: 0;
|
||
}
|
||
|
||
/* Cada flecha en los títulos de secciones */
|
||
.arrows {
|
||
font-size: 1.5rem;
|
||
}
|
||
|
||
.arrows:before {
|
||
content: " ❯❯";
|
||
}
|
||
|
||
/* HOME */
|
||
|
||
/* Cada sección de pelis */
|
||
|
||
.hero-cartels {
|
||
margin-bottom: 0;
|
||
padding-bottom: 0;
|
||
}
|
||
|
||
.cartels {
|
||
clear: both;
|
||
width: calc(100% + 3rem);
|
||
margin-left: -1.5rem !important;
|
||
padding-left: 0;
|
||
display: grid;
|
||
align-items: center;
|
||
grid-template-columns: repeat(1, 1fr);
|
||
}
|
||
|
||
@media screen and (min-width: 300px) {
|
||
.cartels {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
}
|
||
|
||
@media screen and (min-width: 450px) {
|
||
.cartels {
|
||
grid-template-columns: repeat(3, 1fr);
|
||
}
|
||
}
|
||
|
||
@media screen and (min-width: 600px) {
|
||
.cartels {
|
||
grid-template-columns: repeat(4, 1fr);
|
||
}
|
||
}
|
||
|
||
@media screen and (min-width: 750px) {
|
||
.cartels {
|
||
grid-template-columns: repeat(5, 1fr);
|
||
}
|
||
}
|
||
|
||
@media screen and (min-width: 900px) {
|
||
.cartels {
|
||
grid-template-columns: repeat(6, 1fr);
|
||
}
|
||
}
|
||
|
||
@media screen and (min-width: 1920px) {
|
||
.cartels {
|
||
width: auto;
|
||
margin: 0 !important;
|
||
grid-template-columns: repeat(6, 1fr);
|
||
}
|
||
}
|
||
|
||
/* Cada peli */
|
||
|
||
.cartel {
|
||
position: relative;
|
||
float: left;
|
||
min-width: 150px;
|
||
min-height: 225px;
|
||
max-width: 300px;
|
||
max-height: 450px;
|
||
}
|
||
|
||
.cartel img {
|
||
object-fit: cover;
|
||
}
|
||
|
||
.cartel .info {
|
||
display: none;
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
z-index: 102;
|
||
}
|
||
|
||
/* HOME / MOVIE */
|
||
|
||
/* Cada ficha de peli */
|
||
|
||
.movie-head {
|
||
padding: 2rem 2rem 0 2rem !important;
|
||
}
|
||
|
||
.movie-body {
|
||
padding: 2rem !important;
|
||
}
|
||
|
||
.full .movie-body {
|
||
padding: 0 2rem !important;
|
||
line-height: 2;
|
||
}
|
||
|
||
.movie-body video {
|
||
display: block;
|
||
height: 100%;
|
||
width: auto;
|
||
margin: auto;
|
||
}
|
||
|
||
.info {
|
||
background-color: var(--color-background);
|
||
}
|
||
|
||
.info .full {
|
||
height: 100%;
|
||
min-height: 100%;
|
||
}
|
||
|
||
.stats span {
|
||
padding-right: 2rem;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.stats i {
|
||
display: inline-block;
|
||
margin-right: .5rem;
|
||
}
|
||
|
||
.stats i.gg-time {
|
||
font-size: 1rem;
|
||
}
|
||
|
||
.stars {
|
||
font-size: 1.5rem;
|
||
}
|
||
|
||
.about {
|
||
max-width: 70rem;
|
||
margin: auto;
|
||
margin-bottom: 2rem;
|
||
}
|
||
|
||
.about p + p {
|
||
margin-top: 1rem;
|
||
}
|
||
|
||
.about *:not(h2) + h2 {
|
||
margin-top: 1.5rem;
|
||
}
|
||
|
||
.infobox td:first-child {
|
||
text-align: right;
|
||
width: 8rem;
|
||
}
|
||
|
||
.extra-info {
|
||
position: absolute;
|
||
bottom: 0;
|
||
width: 100%;
|
||
background-color: var(--color-primary);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.about figure {
|
||
width: 50%;
|
||
height: auto;
|
||
max-width: 300px;
|
||
max-height: 450px;
|
||
margin: auto;
|
||
}
|
||
|
||
@media screen and (max-width: 1024px) {
|
||
table {
|
||
margin: auto;
|
||
}
|
||
}
|
||
|
||
/* Despliegue de la ficha; Cfr:
|
||
* https://stackoverflow.com/questions/42177216/manipulate-css-class-without-javascript
|
||
* https://stackoverflow.com/questions/55858255/custom-checkbox-with-css-before-not-working-in-firefox-edge
|
||
*/
|
||
|
||
.toggle:checked ~ .info {
|
||
display: block;
|
||
}
|
||
|
||
.toggle {
|
||
position: absolute;
|
||
z-index: 100;
|
||
width: 100%;
|
||
height: 100%;
|
||
opacity: 0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.toggle:checked {
|
||
display: block;
|
||
z-index: 103;
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
width: 100%;
|
||
height: calc(100% - 3em);
|
||
}
|
||
|
||
/* Tooltip de la ficha; Cfr:
|
||
* https://www.w3schools.com/howto/howto_css_tooltip.asp
|
||
*/
|
||
|
||
/* Tooltip container */
|
||
.tooltip {
|
||
position: relative;
|
||
}
|
||
|
||
/* Tooltip text */
|
||
.tooltip .tooltiptext {
|
||
visibility: hidden;
|
||
opacity: 0;
|
||
width: 100%;
|
||
background-color: var(--color-background);
|
||
color: #fff;
|
||
border-top: 3px solid var(--color-primary);
|
||
text-align: center;
|
||
font-size: 1.25rem;
|
||
padding: .5em;
|
||
position: absolute;
|
||
z-index: 1;
|
||
top: 0;
|
||
left: 0;
|
||
transition: opacity 0.3s;
|
||
-webkit-user-select: none; /* Safari */
|
||
-ms-user-select: none; /* IE 10 and IE 11 */
|
||
user-select: none; /* Standard syntax */
|
||
}
|
||
|
||
/* Show the tooltip text when you mouse over the tooltip container */
|
||
.tooltip:hover .tooltiptext {
|
||
visibility: visible;
|
||
opacity: 1;
|
||
}
|
||
|
||
/* Reproductor */
|
||
|
||
button.plyr__control--overlaid {
|
||
opacity: 1;
|
||
}
|
||
|
||
section#notice {
|
||
position: absolute;
|
||
width: 100%;
|
||
z-index: 3;
|
||
}
|
||
|
||
section#notice div {
|
||
padding: 1rem;
|
||
}
|
||
|
||
section#notice p {
|
||
font-weight: bold;
|
||
color: white;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
section#notice a {
|
||
display: block;
|
||
width: fit-content;
|
||
margin: auto;
|
||
}
|
||
|
||
/* SEARCH */
|
||
|
||
#search-form {
|
||
width: 80vw;
|
||
margin: auto auto auto 3rem;
|
||
}
|
||
|
||
.search-div > * {
|
||
display: inline-block;
|
||
}
|
||
|
||
.search-div input {
|
||
width: calc(100% - 4.1rem);
|
||
vertical-align: text-top;
|
||
}
|
||
|
||
.search-div button {
|
||
width: 2.9rem;
|
||
height: 2.9rem;
|
||
}
|
||
|
||
/* LOGIN / LOGOUT */
|
||
|
||
#login-form {
|
||
width: 16rem;
|
||
margin: auto;
|
||
text-align: center;
|
||
}
|
||
|
||
#login-form > * {
|
||
margin-top: .5rem;
|
||
}
|
||
|
||
/* ICONS; cfr: https://css.gg */
|
||
|
||
.gg-time {
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
display: block;
|
||
transform: scale(var(--ggs,1));
|
||
width: 14px;
|
||
height: 14px;
|
||
border-radius: 100%;
|
||
border: 2px solid transparent;
|
||
box-shadow: 0 0 0 2px currentColor;
|
||
}
|
||
|
||
.gg-time::after {
|
||
content: "";
|
||
display: block;
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
width: 6px;
|
||
height: 6px;
|
||
border-left: 2px solid;
|
||
border-bottom: 2px solid;
|
||
top: 0;
|
||
left: 4px;
|
||
}
|
||
|
||
.gg-software-download {
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
display: block;
|
||
transform: scale(var(--ggs,1));
|
||
width: 16px;
|
||
height: 6px;
|
||
border: 2px solid;
|
||
border-top: 0;
|
||
border-bottom-left-radius: 2px;
|
||
border-bottom-right-radius: 2px;
|
||
margin-top: 8px
|
||
}
|
||
|
||
.gg-software-download::after {
|
||
content: "";
|
||
display: block;
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
width: 8px;
|
||
height: 8px;
|
||
border-left: 2px solid;
|
||
border-bottom: 2px solid;
|
||
transform: rotate(-45deg);
|
||
left: 2px;
|
||
bottom: 4px
|
||
}
|
||
|
||
.gg-software-download::before {
|
||
content: "";
|
||
display: block;
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
border-radius: 3px;
|
||
width: 2px;
|
||
height: 10px;
|
||
background: currentColor;
|
||
left: 5px;
|
||
bottom: 5px
|
||
}
|
||
|
||
.gg-link {
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
display: block;
|
||
transform: rotate(-45deg) scale(var(--ggs,1));
|
||
width: 8px;
|
||
height: 2px;
|
||
background: currentColor;
|
||
border-radius: 4px
|
||
}
|
||
|
||
.gg-link::after,
|
||
.gg-link::before {
|
||
content: "";
|
||
display: block;
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
border-radius: 3px;
|
||
width: 8px;
|
||
height: 10px;
|
||
border: 2px solid;
|
||
top: -4px
|
||
}
|
||
|
||
.gg-link::before {
|
||
border-right: 0;
|
||
border-top-left-radius: 40px;
|
||
border-bottom-left-radius: 40px;
|
||
left: -6px
|
||
}
|
||
|
||
.gg-link::after {
|
||
border-left: 0;
|
||
border-top-right-radius: 40px;
|
||
border-bottom-right-radius: 40px;
|
||
right: -6px
|
||
}
|
||
|
||
.gg-search {
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
display: block;
|
||
transform: scale(var(--ggs,1));
|
||
width: 16px;
|
||
height: 16px;
|
||
border: 2px solid;
|
||
border-radius: 100%;
|
||
margin-left: -4px;
|
||
margin-top: -4px
|
||
}
|
||
|
||
.gg-search::after {
|
||
content: "";
|
||
display: block;
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
border-radius: 3px;
|
||
width: 2px;
|
||
height: 8px;
|
||
background: currentColor;
|
||
transform: rotate(-45deg);
|
||
top: 10px;
|
||
left: 12px
|
||
}
|