Spaces:
Running
Running
/* .gradio-container { | |
background: url('https://storage.googleapis.com/wpassets.junyiacademy.org/1/2023/11/background-scaled.jpg'); | |
background-size: cover; | |
background-position: center center; | |
background-repeat: no-repeat; | |
} */ | |
#player_avatar_container { | |
place-items: center; | |
} | |
#player_avatar { | |
background-color: transparent ; | |
width: 20vw; | |
height: 20vw; | |
border-radius: 50% ; | |
box-shadow: 0 10px 15px rgba(0,0,0,0.1); | |
border-color: #fff ; | |
} | |
.achievements{ | |
margin: 0 auto; | |
width: 80%; | |
height: 200px ; | |
overflow: auto ; | |
} | |
.achievements [data-testid="block-label"] { | |
display: none; | |
} | |
[data-testid="number-input"] { | |
display: None ; | |
} | |
#adventure_slider { | |
overflow: auto ; | |
height: 200px; | |
} | |
#adventure_slider div{ | |
color: #232323 ; | |
font-size: large; | |
} | |
.textfield > * { | |
border-radius: 8px ; | |
display: block; | |
padding-left: .75rem ; | |
margin: 0.3rem auto; | |
margin-left: 0px ; | |
} | |
#adventure_container { | |
height: 200px; | |
} | |
#player_avatar_description h1{ | |
font-size: 2.5rem; | |
text-align: center; | |
} | |
h1{ | |
font-size: 2rem; | |
text-align: center; | |
font-weight: 100 ; | |
} | |
h1::after { | |
content: ''; | |
display: block; | |
width: 25%; /* Adjust this value to control the width of the line */ | |
height: 4px; /* Thickness of the line */ | |
border-radius: 4px; | |
background: #12d2ab; /* Color of the line */ | |
position: absolute; | |
bottom: -7px; | |
left: 50%; | |
transform: translateX(-50%); /* This centers the line */ | |
} | |
#achievements_description h1{ | |
font-size: 2rem; | |
text-align: center; | |
} | |
#badge_avatar_description h1{ | |
font-size: 2rem; | |
text-align: center; | |
} | |
#adventure_description h1{ | |
font-size: 2rem; | |
text-align: center; | |
} | |
#adventure_log { | |
margin: 2.5rem auto 0 auto; | |
} | |
#achievement_log { | |
overflow: auto ; | |
height: 200px; | |
} | |
#pet_gallery .grid-wrap button { | |
margin: .5vh; | |
background: transparent ; | |
border-color: transparent ; | |
height: 150px ; | |
width: 6vh ; | |
border-radius: 20px; | |
box-shadow: 0 0 10px rgba(0,0,0,0.3); | |
} | |
#pet_gallery .grid-container { | |
grid-template-columns: repeat(30, minmax(6vh, 1fr)); | |
} | |
#badge_gallery .grid-wrap button { | |
margin: .5vh; | |
height: 150px ; | |
width: 10vh ; | |
background: transparent ; | |
border-color: transparent ; | |
border-radius: 20px; | |
box-shadow: 0 0 10px rgba(0,0,0,0.3); | |
backdrop-filter: blur(10px); | |
} | |
.preview button { | |
color: #000; | |
} | |
::-webkit-scrollbar { | |
width: 5px; | |
height: 10px; | |
} | |
[data-testid="block-label"] { | |
opacity: 0; | |
} | |
[for="range_id_0"] div{ | |
background: #e4e4e48a; | |
border-radius: 20px; | |
padding: 5%; | |
margin: 5%; | |
line-height: 1.8; | |
} | |
[aria-label="Share"] { | |
opacity: 0; | |
} | |
#adventure_slider { | |
display: flex; | |
flex-direction: column; | |
} | |
input[type="range"]{ | |
order: -1; | |
} | |
input[type="range"] { | |
-webkit-appearance: none; /* Removes default styling for Webkit browsers */ | |
height: 20px; /* Makes the track thicker */ | |
background: linear-gradient(#12d2ab, #16a1b1); | |
box-shadow: 0 0 10px #16a1b1; | |
border-radius: 20px; /* Round corners of the track */ | |
padding: 20px; | |
margin: 10px 0; | |
order: -1; | |
} | |
/* Styles for the slider thumb for Webkit browsers like Chrome and Safari */ | |
input[type="range"]::-webkit-slider-thumb { | |
-webkit-appearance: none; /* Overrides default webkit styles */ | |
appearance: none; | |
height: 24px; /* Height of the thumb */ | |
width: 24px; /* Width of the thumb */ | |
border-radius: 50%; /* Rounded corners of the thumb */ | |
background: #f3b968; /* Background color of the thumb */ | |
margin-top: -6px; /* Ensures the thumb aligns with the track */ | |
box-shadow: 0px -2px 5px #eb6584 inset, 0px 2px 5px #b7456e; | |
} | |
/* Styles for the slider thumb for Firefox */ | |
input[type="range"]::-moz-range-thumb { | |
width: 20px; /* Width of the thumb */ | |
height: 28px; /* Height of the thumb */ | |
border-radius: 5px; /* Rounded corners of the thumb */ | |
background: #4CAF50; /* Background color of the thumb */ | |
} | |
/* Styles for the slider thumb for IE */ | |
input[type="range"]::-ms-thumb { | |
width: 20px; /* Width of the thumb */ | |
height: 28px; /* Height of the thumb */ | |
border-radius: 5px; /* Rounded corners of the thumb */ | |
background: #4CAF50; /* Background color of the thumb */ | |
} | |
/* Styles for the track (progress) for Webkit browsers */ | |
input[type="range"]::-webkit-slider-runnable-track { | |
width: 100%; | |
height: 10px; /* Height of the track */ | |
background: #eee; | |
box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.75) inset; | |
border-radius: 10px; /* Rounded corners of the track */ | |
} | |
/* Styles for the track for Firefox */ | |
input[type="range"]::-moz-range-track { | |
width: 100%; | |
height: 30px; /* Height of the track */ | |
background: #eee; | |
border-radius: 10px; /* Rounded corners of the track */ | |
} | |
/* Styles for the track for IE */ | |
input[type="range"]::-ms-track { | |
width: 100%; | |
height: 30px; /* Height of the track */ | |
background: #eee; | |
border-radius: 10px; /* Rounded corners of the track */ | |
border: none; /* IE may require removing the border */ | |
} | |