I was reading / researching how to apply responsiveness to websites for any type of platform and found this post right here on Stack @ Media
This has left me some doubts:
Is the content of the link still valid? Do I really have to create an average for each kind of resolution?
In order to apply the Media Queries 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 media you have to do this (obviously changing the values until you get 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;
}
}