Next.js Discord

Discord Forum

trouble shooting in global.css

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
when i tries my website in mobile version its global.css doesnt work proper
i tired many ways but still getting same porblem
(https://aditya-pamar-qr3g.vercel.app/)



@import url("https://fonts.googleapis.com/css2?family=Cedarville+Cursive&display=swap");
&913086567042674719 base;
&913086567042674719 components;
&913086567042674719 utilities;
.cursive {
font-family: "Cedarville Cursive", cursive;
}
.Welcome-text {
background: linear-gradient(
0deg,
rgba(255, 255, 255, 0.4),
rgba(255, 255, 255, 0.4)
),
linear-gradient(90.01deg, #e59cff 0.01%, #ba9cff 50.01%, #9cb2ff 100%);
background-blend-mode: normal, screen;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.Welcome-box {
isolation: isolate;
overflow: hidden;
align-items: center;
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
border-radius: 32px;
box-shadow: inset 0 -7px 11px #a48fff1f;
display: flex;
position: relative;
width: -moz-max-content;
width: max-content;
transition: 0.45s cubic-bezier(0.6, 0.6, 0, 1) box-shadow;
}
.button-primary {
background: linear-gradient(
180deg,
rgba(60, 8, 126, 0) 0%,
rgba(60, 8, 126, 0.32) 100%
),
rgba(113, 47, 255, 0.12);
box-shadow: inset 0 0 12px #bf97ff3d;
}
.button-primary:hover {
background: linear-gradient(
180deg,
rgba(60, 8, 126, 0) 0%,
rgba(60, 8, 126, 0.42) 100%
),
rgba(113, 47, 255, 0.24);
box-shadow: inset 0 0 12px #bf97ff70;
}
/* Hide scrollbar for IE, Edge and Firefox /
.scrollbar-hidden {
-ms-overflow-style: none; /
IE and Edge /
scrollbar-width: none; /
Firefox /
}
.scrollbar-hidden::-webkit-scrollbar {
display: none;
}
html {
scroll-behavior: smooth;
}
/
Canvas Loader Animation */
.canvas-loader {
width: 10px;
height: 10px;
border-radius: 50%;
display: block;
margin: 15px auto;
position: relative;
color: #7042f8;
box-sizing: border-box;
animation: animloader 2s linear infinite;
}
@keyframes animloader {
0% {
box-shadow: 14px 0 0 -2px, 38px 0 0 -2px, -14px 0 0 -2px, -38px 0 0 -2px;
}
25% {
box-shadow: 14px 0 0 -2px, 38px 0 0 -2px, -14px 0 0 -2px, -38px 0 0 2px;
}
50% {
box-shadow: 14px 0 0 -2px, 38px 0 0 -2px, -14px 0 0 2px, -38px 0 0 -2px;
}
75% {
box-shadow: 14px 0 0 2px, 38px 0 0 -2px, -14px 0 0 -2px, -38px 0 0 -2px;
}
100% {
box-shadow: 14px 0 0 -2px, 38px 0 0 2px, -14px 0 0 -2px, -38px 0 0 -2px;
}
}
html {
scroll-behavior: smooth;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes scale-in {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
.animate-fade-in {
animation: fade-in 0.3s ease-out;
}
.animate-scale-in {
animation: scale-in 0.3s ease-out;
}

15 Replies

@Giant panda when i tries my website in mobile version its global.css doesnt work proper i tired many ways but still getting same porblem (https://aditya-pamar-qr3g.vercel.app/) @import url("https://fonts.googleapis.com/css2?family=Cedarville+Cursive&display=swap"); <@&913086567042674719> base; <@&913086567042674719> components; <@&913086567042674719> utilities; .cursive { font-family: "Cedarville Cursive", cursive; } .Welcome-text { background: linear-gradient( 0deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4) ), linear-gradient(90.01deg, #e59cff 0.01%, #ba9cff 50.01%, #9cb2ff 100%); background-blend-mode: normal, screen; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } .Welcome-box { isolation: isolate; overflow: hidden; align-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 32px; box-shadow: inset 0 -7px 11px #a48fff1f; display: flex; position: relative; width: -moz-max-content; width: max-content; transition: 0.45s cubic-bezier(0.6, 0.6, 0, 1) box-shadow; } .button-primary { background: linear-gradient( 180deg, rgba(60, 8, 126, 0) 0%, rgba(60, 8, 126, 0.32) 100% ), rgba(113, 47, 255, 0.12); box-shadow: inset 0 0 12px #bf97ff3d; } .button-primary:hover { background: linear-gradient( 180deg, rgba(60, 8, 126, 0) 0%, rgba(60, 8, 126, 0.42) 100% ), rgba(113, 47, 255, 0.24); box-shadow: inset 0 0 12px #bf97ff70; } /* Hide scrollbar for IE, Edge and Firefox */ .scrollbar-hidden { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } .scrollbar-hidden::-webkit-scrollbar { display: none; } html { scroll-behavior: smooth; } /* Canvas Loader Animation */ .canvas-loader { width: 10px; height: 10px; border-radius: 50%; display: block; margin: 15px auto; position: relative; color: #7042f8; box-sizing: border-box; animation: animloader 2s linear infinite; } @keyframes animloader { 0% { box-shadow: 14px 0 0 -2px, 38px 0 0 -2px, -14px 0 0 -2px, -38px 0 0 -2px; } 25% { box-shadow: 14px 0 0 -2px, 38px 0 0 -2px, -14px 0 0 -2px, -38px 0 0 2px; } 50% { box-shadow: 14px 0 0 -2px, 38px 0 0 -2px, -14px 0 0 2px, -38px 0 0 -2px; } 75% { box-shadow: 14px 0 0 2px, 38px 0 0 -2px, -14px 0 0 -2px, -38px 0 0 -2px; } 100% { box-shadow: 14px 0 0 -2px, 38px 0 0 2px, -14px 0 0 -2px, -38px 0 0 -2px; } } html { scroll-behavior: smooth; } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes scale-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } .animate-fade-in { animation: fade-in 0.3s ease-out; } .animate-scale-in { animation: scale-in 0.3s ease-out; }
what problem? what have you tried? what is expected to do?
@alfonsüs ardani what problem? what have you tried? what is expected to do?
Giant pandaOP
this is the problem in the mobile view
basically this is because of globalcss and i provided you with the code
what have you tried to debug this issue?
i dont think this is CSS issue as it works fine in PC
this is rather
a JS issue on whoever is rendering the background
@alfonsüs ardani i dont think this is CSS issue as it works fine in PC
Giant pandaOP
I did the same with my pc
But i open the link with my mobile it shows this error
@alfonsüs ardani a JS issue on whoever is rendering the background
Giant pandaOP
Hmm
Tconfig file??
@Giant panda Hmm Tconfig file??
your phone's browser probably can't load the background
@alfonsüs ardani your phone's browser probably can't load the background
Giant pandaOP
Its not mine
I ask to try with different mobiles :sadcat:
can it load on your phone?
like
you have to realize there are lots of web features that aren't available in mobile browsers