small css video fix

thumb
km0 2 years ago
parent 7f3b869af8
commit 0175e858d2

@ -1,4 +1,5 @@
html, body { html,
body {
margin: 0; margin: 0;
box-sizing: border-box; box-sizing: border-box;
} }
@ -48,8 +49,6 @@ nav .return:hover{
color: var(--accent); color: var(--accent);
} }
.project--header { .project--header {
position: relative; position: relative;
height: 100vh; height: 100vh;
@ -67,7 +66,6 @@ nav .return:hover{
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0 auto; margin: 0 auto;
} }
.header--cover img { .header--cover img {
@ -107,14 +105,11 @@ nav .return:hover{
grid-gap: 8px; grid-gap: 8px;
pointer-events: none; pointer-events: none;
} }
.header--links a { .header--links a {
background-color: white; background-color: white;
pointer-events: all; pointer-events: all;
} }
.header--categories { .header--categories {
@ -128,23 +123,13 @@ nav .return:hover{
} }
.header--categories .tag { .header--categories .tag {
padding: 0 4px; padding: 0 4px;
background-color: white; background-color: white;
border-left-width: 6px; border-left-width: 6px;
border-left-style: solid; border-left-style: solid;
border-left-color: #D5DDE8; border-left-color: #d5dde8;
} }
.project--content { .project--content {
padding: 0 var(--app-margin); padding: 0 var(--app-margin);
max-width: var(--content-width); max-width: var(--content-width);
@ -159,12 +144,18 @@ nav .return:hover{
grid-column: 1 / span 3; grid-column: 1 / span 3;
} }
.project--content p,
.project--content p, div, code, pre, ul, ol, h3 { div,
code,
pre,
ul,
ol,
h3,
video {
grid-column: 4 / span 5; grid-column: 4 / span 5;
} }
.project--content > video, .project--content > img { .project--content > img {
grid-column: 1 / -1; grid-column: 1 / -1;
margin: 32px 0; margin: 32px 0;
} }
@ -172,13 +163,9 @@ nav .return:hover{
.project--content p img { .project--content p img {
width: 100%; width: 100%;
height: auto; height: auto;
} }
@media (max-width: 991.98px) { @media (max-width: 991.98px) {
nav { nav {
padding: 0; padding: 0;
} }
@ -213,7 +200,9 @@ nav .return:hover{
min-height: 100vh; min-height: 100vh;
} }
.header--title, .header--categories, .header--links { .header--title,
.header--categories,
.header--links {
font-size: 1rem; font-size: 1rem;
position: relative; position: relative;
width: auto; width: auto;
@ -222,16 +211,15 @@ nav .return:hover{
transform: none !important; transform: none !important;
left: auto; left: auto;
top: auto; top: auto;
} }
h1.header--title { h1.header--title {
margin: 0 var(--app-margin); margin: 0 var(--app-margin);
transform: none !important; transform: none !important;
} }
.header--categories, .header--links { .header--categories,
.header--links {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
flex-wrap: wrap; flex-wrap: wrap;
@ -239,17 +227,12 @@ nav .return:hover{
grid-gap: 8px; grid-gap: 8px;
} }
.header--categories .tag { .header--categories .tag {
padding: 0 4px; padding: 0 4px;
position: relative; position: relative;
transform: none !important; transform: none !important;
} }
.project--content { .project--content {
display: block; display: block;
} }
@ -257,13 +240,9 @@ nav .return:hover{
code { code {
white-space: pre-wrap; white-space: pre-wrap;
} }
} }
@media print { @media print {
nav { nav {
position: absolute !important; position: absolute !important;
top: 0; top: 0;

Loading…
Cancel
Save