3
I was reading/researching how to apply responsiveness to websites for any type of platform and found this post done right here on Stack @Media
That made me open some doubts:
Is the content of the link still valid? I really have to create an average for each type of resolution?
In order to apply Querie Media correctly I have to
pass all properties again?
Example:
I have this CSS property
.avatar::after {
opacity: 0;
font-family: FontAwesome;
content: "\f040";
color: #fff;
font-size: 2.5rem;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 3px;
left: 4px;
width: 144px;
height: 140px;
z-index: 2;
background-color: rgba(0,0,0,0.5);
border-radius: 50%;
cursor: pointer;
transition: 350ms ease-in-out;
}
And if you wanted to apply some average have to do so (obviously changing the values until it is dynamic)
@media only screen and (max-width: 768px){
.avatar::after {
opacity: 0;
font-family: FontAwesome;
content: "\f040";
color: #fff;
font-size: 2.5rem;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 3px;
left: 4px;
width: 144px;
height: 140px;
z-index: 2;
background-color: rgba(0,0,0,0.5);
border-radius: 50%;
cursor: pointer;
transition: 350ms ease-in-out;
}
}