diff --git a/templates/componentes/carrousel_peliculas.html b/templates/componentes/carrousel_peliculas.html index 8977974..d3f2300 100644 --- a/templates/componentes/carrousel_peliculas.html +++ b/templates/componentes/carrousel_peliculas.html @@ -46,6 +46,12 @@ this .tarxeta.inactive>#descripcion { display: none; } + + @media md- { + this .tarxeta.inactive { + display: none; + } + } {% for pelicula in peliculas %} diff --git a/templates/nav.html b/templates/nav.html index 228ba4d..60402e0 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -9,6 +9,7 @@ padding: 0 calc(var(--spacing) * 2); background-color: var(--bg-darker); + z-index: 30; animation-timeline: scroll(root); animation-timing-function: linear; @@ -22,7 +23,6 @@ height: var(--nav-height); border-bottom: 1px solid var(--bg-lighter); - z-index: 30; } this span { @@ -70,8 +70,8 @@ this #banner { position: fixed; top: calc(var(--spacing) * 0.5); - width: 20rem; - left: calc(50% - 10rem); + left: calc(50% - 12rem); + width: 24rem; background-color: var(--fg); color: var(--bg); @@ -81,6 +81,14 @@ border-radius: calc(var(--radius) * 2); } + this #menu-toggle { + display: none; + height: 1.2rem; + width: 1.2rem; + border: none; + background-color: var(--fg); + } + @keyframes logo_hover { 50% { color: var(--fg); @@ -93,95 +101,149 @@ color: var(--accent); } } + + @media lg- { + body { + margin-top: calc( + var(--nav-height) + var(--spacing) * 0.5 + 1.2rem + ); + } + + this { + padding-top: calc(var(--spacing) * 0.5 + 1.2rem); + height: calc(var(--nav-height) + var(--spacing) * 0.5 + 1.2rem); + } + + this #banner { + border-radius: 0; + top: 0; + left: 0; + width: 100%; + padding: calc(var(--spacing) * 0.5); + } + } + + @media md- { + this > div, + #menu { + flex-direction: column; + } + + this #menu { + display: none; + } + + this > div > div { + display: none; + } + + this #menu-toggle { + display: block; + position: absolute; + top: calc(var(--spacing) + 2.2rem); + right: calc(var(--spacing) * 0.5); + } + + #menu-toggle:checked + #menu { + display: flex; + background-color: var(--bg); + width: 100vw; + height: auto; + padding: 2.5rem; + } + }
+

CineMazarelos

- Películas - - Sobre nós - - +
diff --git a/templates/paxinas/inicio.html b/templates/paxinas/inicio.html index 6073513..f6f5500 100644 --- a/templates/paxinas/inicio.html +++ b/templates/paxinas/inicio.html @@ -19,7 +19,7 @@ left: 0; height: 40rem; width: 100%; - z-index: -1; + z-index: -100; } @@ -39,7 +39,7 @@ flex: 50%; } - @media sm- { + @media md- { this { flex-direction: column; } }