pawanranta
Coder
On the pages of one of the site I'm currently working, the CSS is working fine for mobile devices, but it has no effect on desktop devices.
For example, on this page, CSS works okay while browsing it on mobile devices.
But it has no effect on my Desktop screen.
I have tried experimenting with @media queries, but it had no desired effects.
Screengrabs are attached.
Code:
.arrow-link {
display: flex;
color: #246ddf;
background-color: transparent;
transition: all .4s ease;
font-weight: bold;
cursor: pointer;
align-items: center;
letter-spacing: 1px;
font-size: 14px;
}
.arrow-link > .arrow {
width: 8px;
height: 8px;
border-right: 2px solid #246ddf;
border-bottom: 2px solid #246ddf;
position: relative;
transform: rotate(-45deg);
margin-left: 3px;
transition: all .4s ease;
}
.arrow-link > .arrow::before {
display: block;
background-color: #4fc42f;
width: 3px;
transform-origin: bottom right;
height: 2px;
position: absolute;
opacity: 0;
bottom: calc(-2px / 2);
transform: rotate(45deg);
transition: all .4s ease;
content: "";
right: 0;
}
.arrow-link:hover > .arrow {
transform: rotate(-45deg) translate(4px, 4px);
border-color: #4fc42f;
}
.arrow-link:hover > .arrow::before {
opacity: 1;
width: 8px;
}
.arrow-link:hover {
color: #4fc42f;
}
For example, on this page, CSS works okay while browsing it on mobile devices.
But it has no effect on my Desktop screen.
I have tried experimenting with @media queries, but it had no desired effects.
Screengrabs are attached.


