@font-face {
font-family: 'Nova Slim';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/novaslim/v14/Z9XUDmZNQAuem8jyZcnOz8mJ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body {
display:flex;
justify-content: center;
flex-direction:column;
margin: 0px;
background-color: rgba(100,125,150,1);
/* background-color: rgba(100,125,150,1); */
}
#header {
position:fixed;
top: 0px;
width: 100%;
max-height:100px;
background: rgba(100,125,150,1);
z-index:999
}
#nav-bar {
display:flex;
justify-content: space-between;
}
#header-img {
height:100px;
}
ul {
display:flex;
flex-direction: row;
list-style: none;
}
li {
transform:translatey(35%);
}
.nav-link {
text-decoration: none;
Font-family: Nova Slim;
text-transform:uppercase;
font-weight: 600;
font-size: 1.5em;
margin: 0px 3em;
color: rgba(255,255,255,.7);
}
.nav-link:hover {
color: rgba(255,255,150,1);
transition-duration: 400ms;
}
#background-img {
background-image: url(https://images.unsplash.com/photo-1585747860715-2ba37e788b70?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1653&q=80);
background-attachment: fixed;
margin: 0px;
text-align:center;
font-family: Nova Slim;
width:100%;
height:35em;
}
.slogan {
margin: 0px;
font-size: 5em;
text-align:center;
background-color: rgba(25,75,100,.2);
background-blend-mode:multiply;
color:rgba(255,255,235,1);
padding:2.9em 5em 2.9em 5em;
max-height:inherit;
animation-name: drop;
animation-duration: 3s;
animation-iteration-count: 1;
animation-play-state:
}
.section {
width:100%;
height:5em;
margin: 0px;
text-align: center;
font-family: Nova Slim;
font-size: 10em;
animation-name: gradient;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-direction:alternate;
}
.section1 {
background-color: rgba(250,250,250,1);
height: 600px;
display:flex;
width: 1500px;
align-items: center;
justify-content:space-evenly;
flex-direction: row;
margin:auto;
}
#card {
background-color: rgba(50,150,255,1);
width: 200px;
height: 300px;
border-radius: 5px;
border: rgba(50,150,255,.8) solid 2px;
box-shadow: 7px 4px 12px 3px rgba(0,0,0,0.3)
}
#product-image {
width:inherit;
height:inherit/2;
}
#button-purchase {
border-radius: 5px;
position: absolute;
margin:1em 4.7em 0em;
}
#button-purchase:hover {
background-color: rgba(50,150,255,1);
color: rgba(255,255,50,1);
transition-duration: 400ms;
}
#about {
}
article {
display:flex;
flex-direction: row;
justify-content: center;
font-family: sans-serif;
font-weight: 800;
font-size:5em;
height: 10em;
color:rgba(255,255,235,1);
margin:auto;
}
#video {
width:600px;
height:400px;
transform: translatex(203px);
margin: 0px 1em 0px 0px;
}
#support {
position:relative;
background-color: rgba(50,150,255,1);
background-size: cover;
display:flex;
justify-content:center;
width: 50%;
height: 40em;
margin:auto;
border-radius:10%;
overflow:hidden;
}
#form {
position:absolute;
top: 80px;
left: 100px;
}
#name,
#email,
#tel,
#submit {
font-family: Nova Slim;
font-size:2em;
width: 12em;
border-radius: 5px;
}
#submit {
margin-left: 4em;
}
#submit:hover {
margin-left: 4em;
background:rgba(0,0,0,0.1);
color: rgba(255,255,50,1);
transition-duration: 400ms;
}
#support-img {
position:absolute;
right: 50px;
top: 7px;
width:inherit;
height: 450px;
border-radius:10%;
}
h1 {
margin: 0px;
padding-top: 1em;
font-weight: 800;
color:rgba(235,235,235,1);
}
p {
font-family: sans-serif;
font-size: 1em;
padding: 0em 2em 1em;
width: 17ch;
max-height: 2.5em;
overflow:hidden;
margin: 1em 0px;
}
h2 {
font-family: sans-serif;
font-weight:800;
font-size: 2em;
}
@keyframes gradient{
0% {
background: rgba(100,125,150,1);
}
100%{
background: rgba(50,150,255,1);
}
}
@keyframes drop {
0% {
opacity:0;
transform: translatey(-10%);
background-color: transparent;
}
50% {
background-color: transparent;
transform: translatey(0%)
}
100% {
opacity: 1;
}
}
#menu {
display: none;
}
@media (max-width:1300px) {
body {
display:flex;
justify-content: center;
flex-direction:column;
margin: 0px;
background-color: rgba(100,125,150,1);
/* background-color: rgba(100,125,150,1); */
}
#header {
position:fixed;
top: -1px;
width: 100%;
min-height:50px;
max-height:10vh;
background: rgba(100,125,150,1);
margin: 0px;
z-index:999
}
#menu {
display:inline;
float:;
}
#menu:checked ~ nav {
background: rgba(100,125,150,1);
background-size:cover;
float: right;
max-width: 50vw;
min-width: 10vw;
height: 100vh;
display:flex;
justify-content:center;
flex-direction: column;
}
#nav-bar {
display:none;
}
#header-img {
position: absolute;
top: 0px;
right:0px;
width:50vw;
height: 100vh;
}
ul {
display:flex;
flex-direction: column;
list-style: none;
}
.nav-link {
text-decoration: none;
Font-family: Nova Slim;
text-transform:uppercase;
font-weight: 600;
font-size: 1.5em;
margin: 2em 1em 2em .25em;
color: rgba(255,255,255,1);
display:flex;
}
#slogan {
all: unset;
background-color: transparent;
font-size: 1em;
padding: 0;
overflow: hidden;
}
}
can someone explain to me why the @media not working? basically I am trying to change the slogan, I’ve tried using the function all: unset; doesn’t seem to work in code pen, basically what’s happening is some things are changing and some things aren’t I am not certain what could cause some properties to be over written.
- I am in the right window size
- all: unset; should be a valid function.
- I am missing something. and I bet it is super basic.