Update css/style.css

correzione css
This commit is contained in:
2026-02-04 01:02:11 +01:00
parent 0d76cd4794
commit c3bac71ad2

View File

@@ -1,426 +1,426 @@
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-Black.ttf') format('truetype'); src: url('fonts/Poppins-Black.ttf') format('truetype');
font-weight: 900; font-weight: 900;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-BlackItalic.ttf') format('truetype'); src: url('fonts/Poppins-BlackItalic.ttf') format('truetype');
font-weight: 900; font-weight: 900;
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-Bold.ttf') format('truetype'); src: url('fonts/Poppins-Bold.ttf') format('truetype');
font-weight: 700; font-weight: 700;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-BoldItalic.ttf') format('truetype'); src: url('fonts/Poppins-BoldItalic.ttf') format('truetype');
font-weight: 700; font-weight: 700;
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-Medium.ttf') format('truetype'); src: url('fonts/Poppins-Medium.ttf') format('truetype');
font-weight: 500; font-weight: 500;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-MediumItalic.ttf') format('truetype'); src: url('fonts/Poppins-MediumItalic.ttf') format('truetype');
font-weight: 500; font-weight: 500;
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-Regular.ttf') format('truetype'); src: url('fonts/Poppins-Regular.ttf') format('truetype');
font-weight: 400; font-weight: 400;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-Italic.ttf') format('truetype'); src: url('fonts/Poppins-Italic.ttf') format('truetype');
font-weight: 400; font-weight: 400;
font-style: italic; font-style: italic;
} }
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-Light.ttf') format('truetype'); src: url('fonts/Poppins-Light.ttf') format('truetype');
font-weight: 300; font-weight: 300;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('fonts/Poppins-LightItalic.ttf') format('truetype'); src: url('fonts/Poppins-LightItalic.ttf') format('truetype');
font-weight: 300; font-weight: 300;
font-style: italic; font-style: italic;
} }
body { body {
font-family: 'Poppins', sans-serif !important; font-family: 'Poppins', sans-serif !important;
} }
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
user-select: none; user-select: none;
} }
html, html,
body { body {
overscroll-behavior: none; overscroll-behavior: none;
} }
body { body {
font-family: "Poppins", sans-serif; font-family: "Poppins", sans-serif;
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
} }
/* DESKTOP SECTION */ /* DESKTOP SECTION */
body.desktopBody { body.desktopBody {
background: #2a377e; background: #2a377e;
color: white; color: white;
} }
div.dbox, div.dbox,
div.dbox_mobile { div.dbox_mobile {
position: fixed; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
background: #4358ca8f; background: #4358ca8f;
padding: 25px; padding: 25px;
border-radius: 50px; border-radius: 50px;
text-align: center; text-align: center;
width: 500px; width: 500px;
} }
div.dbox_mobile { div.dbox_mobile {
width: 90%; width: 90%;
max-width: 450px; max-width: 450px;
color: white; color: white;
border-radius: 10px; border-radius: 10px;
max-height: 475px; max-height: 475px;
overflow: auto; overflow: auto;
} }
div.dbox>h1.title, div.dbox>h1.title,
div.dbox_mobile>h1.title { div.dbox_mobile>h1.title {
margin-bottom: 0px; margin-bottom: 0px;
} }
div.dbox>hr, div.dbox>hr,
div.dbox_mobile>hr { div.dbox_mobile>hr {
margin: 2rem 0; margin: 2rem 0;
} }
div.dbox>.dbtn, div.dbox>.dbtn,
div.dbox_mobile>.dbtn { div.dbox_mobile>.dbtn {
border: none; border: none;
border-radius: 50px; border-radius: 50px;
padding: 10px 20px; padding: 10px 20px;
background: #f0f0f0; background: #f0f0f0;
color: black; color: black;
text-decoration: none; text-decoration: none;
font-weight: 600; font-weight: 600;
-webkit-appearance: button; -webkit-appearance: button;
} }
div.dbox>.dbtn:hover { div.dbox>.dbtn:hover {
background: #e0e0e0; background: #e0e0e0;
cursor: pointer; cursor: pointer;
} }
div.dfooter { div.dfooter {
position: fixed; position: fixed;
bottom: 15px; bottom: 15px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
text-align: center; text-align: center;
color: #ffffff90; color: #ffffff90;
font-size: 13px; font-size: 13px;
width: 100%; width: 100%;
} }
/* MOBILE SECTION */ /* MOBILE SECTION */
.appBody { .appBody {
background-color: #10194b; background-color: #10194b;
max-width: 450px; max-width: 450px;
min-width: 330px; min-width: 330px;
margin: auto; margin: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
} }
.header>.logo-section, .header>.logo-section,
.header>.menu-section { .header>.menu-section {
text-align: center; text-align: center;
} }
.header>.logo-section, .header>.logo-section,
.footer>.copyright-section { .footer>.copyright-section {
background-color: #2a377e; background-color: #2a377e;
padding: 15px 0; padding: 15px 0;
} }
.header>.menu-section { .header>.menu-section {
background-color: #3849a8; background-color: #3849a8;
padding: 13px 0; padding: 13px 0;
} }
.header>.logo-section>img { .header>.logo-section>img {
width: 250px; width: 250px;
} }
.header>.menu-section>.navLink { .header>.menu-section>.navLink {
color: white; color: white;
text-decoration: none; text-decoration: none;
margin: 0 15px; margin: 0 15px;
} }
.header>.menu-section>.navLink.active { .header>.menu-section>.navLink.active {
color: #2a377e; color: #2a377e;
margin: 0; margin: 0;
padding: 3px 15px; padding: 3px 15px;
background: white; background: white;
border-radius: 50px; border-radius: 50px;
font-weight: 500; font-weight: 500;
} }
main { main {
background-color: white; background-color: white;
flex: 1; flex: 1;
overflow: auto; overflow: auto;
} }
.titlePage { .titlePage {
text-align: center; text-align: center;
font-weight: 600; font-weight: 600;
margin: 15px 0 20px; margin: 15px 0 20px;
} }
.subtitlePage { .subtitlePage {
text-align: center; text-align: center;
font-weight: 500; font-weight: 500;
margin: -15px 0 20px; margin: -15px 0 20px;
} }
.linkBox { .linkBox {
text-decoration: none; text-decoration: none;
color: black; color: black;
} }
.clickBox { .clickBox {
width: 100%; width: 100%;
border: 2px solid #2a377e; border: 2px solid #2a377e;
text-align: center; text-align: center;
border-radius: 20px; border-radius: 20px;
font-weight: 500; font-weight: 500;
/* margin-bottom: 10px; */ /* margin-bottom: 10px; */
padding: 4px; padding: 4px;
} }
.clickBox.Squared { .clickBox.Squared {
font-weight: 600; font-weight: 600;
border: solid 4px #2a377e; border: solid 4px #2a377e;
} }
.clickBox>img { .clickBox>img {
width: 80%; width: 80%;
} }
.changelogTitle { .changelogTitle {
font-weight: 600; font-weight: 600;
padding: 0 13px; padding: 0 13px;
margin: 0 0 15px; margin: 0 0 15px;
} }
.changelogList, .changelogList,
.tec, .tec,
.stationList { .stationList {
padding: 0 13px; padding: 0 13px;
margin: 0 0 7px; margin: 0 0 7px;
text-align: justify; text-align: justify;
hyphens: auto; hyphens: auto;
} }
.stationList { .stationList {
text-align: center; text-align: center;
} }
.stationCard>a.stationLink { .stationCard>a.stationLink {
padding: 0; padding: 0;
} }
.stationCard>a.stationLink>img { .stationCard>a.stationLink>img {
width: 100%; width: 100%;
border-radius: 20px; border-radius: 20px;
} }
/* .stationCard>.thematicBadge { /* .stationCard>.thematicBadge {
position: relative; position: relative;
background: #f7b835; background: #f7b835;
padding: 1px 5px; padding: 1px 5px;
font-size: 0.8rem; font-size: 0.8rem;
border-radius: 27px; border-radius: 27px;
font-style: italic; font-style: italic;
font-weight: 600; font-weight: 600;
top: 31px; top: 31px;
left: 35px; left: 35px;
margin: 0; margin: 0;
} */ } */
.stationCard.isthematic { .stationCard.isthematic {
text-align: right; text-align: right;
margin-top: -24px; margin-top: -24px;
} }
.stationCard.isthematic:before { .stationCard.isthematic:before {
content: "Tematica"; content: "Tematica";
position: relative; position: relative;
background: #f7b835; background: #f7b835;
padding: 1px 5px; padding: 1px 5px;
font-size: 0.8rem; font-size: 0.8rem;
border-radius: 27px; border-radius: 27px;
font-style: italic; font-style: italic;
font-weight: 600; font-weight: 600;
top: 30px; top: 30px;
right: 7px; right: 7px;
margin: 0; margin: 0;
} }
iframe.contentplayer { iframe.contentplayer {
position: absolute; position: absolute;
left: 50%; left: 50%;
height: calc(100vh - 312px); height: calc(100vh - 312px);
width: 100%; width: 100%;
max-width: 450px; max-width: 450px;
transform: translateX(-50%); transform: translateX(-50%);
} }
.footer_player { .footer_player {
background: #f7b835; background: #f7b835;
color: #2a377d; color: #2a377d;
position: fixed; position: fixed;
z-index: 90; z-index: 90;
bottom: 70px; bottom: 70px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: 100%; width: 100%;
max-width: 450px; max-width: 450px;
height: 100px; height: 100px;
border-top-left-radius: 8px; border-top-left-radius: 8px;
border-top-right-radius: 8px; border-top-right-radius: 8px;
padding: 20px; padding: 20px;
} }
.footer_player>.row>.col-2>img { .footer_player>.row>.col-2>img {
border-radius: 5px; border-radius: 5px;
} }
button#playPauseBtn { button#playPauseBtn {
background: none; background: none;
border: none; border: none;
} }
.footer, .footer,
.header { .header {
z-index: 1000; z-index: 10000;
} }
.footer>.menu-section { .footer>.menu-section {
background: #3849a8; background: #3849a8;
font-size: 0.7rem; font-size: 0.7rem;
padding: 7px 0; padding: 7px 0;
text-align: center; text-align: center;
} }
.footer>.menu-section>a { .footer>.menu-section>a {
color: white; color: white;
text-decoration: none; text-decoration: none;
margin: 0 5px; margin: 0 5px;
} }
.footer>.copyright-section { .footer>.copyright-section {
color: white; color: white;
font-size: 0.8rem; font-size: 0.8rem;
text-align: center; text-align: center;
padding: 10px; padding: 10px;
font-weight: 500; font-weight: 500;
} }
@media (max-width: 450px) { @media (max-width: 450px) {
.appBody { .appBody {
background-color: #2a377e; background-color: #2a377e;
} }
} }
/* Loading spinner */ /* Loading spinner */
.loading { .loading {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
min-height: 200px; min-height: 200px;
} }
.spinner { .spinner {
width: 40px; width: 40px;
height: 40px; height: 40px;
border: 4px solid rgba(0, 0, 0, 0.1); border: 4px solid rgba(0, 0, 0, 0.1);
border-radius: 50%; border-radius: 50%;
border-top-color: #3498db; border-top-color: #3498db;
animation: spin 1s ease-in-out infinite; animation: spin 1s ease-in-out infinite;
} }
@keyframes spin { @keyframes spin {
to { to {
transform: rotate(360deg); transform: rotate(360deg);
} }
} }
/* Forza orientamento portrait - nasconde contenuto in landscape */ /* Forza orientamento portrait - nasconde contenuto in landscape */
@media screen and (orientation: landscape) and (max-height: 450px) { @media screen and (orientation: landscape) and (max-height: 450px) {
body.appBody::after { body.appBody::after {
content: "Ruota il dispositivo in verticale"; content: "Ruota il dispositivo in verticale";
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: #2a377e; background: #2a377e;
color: white; color: white;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 1.2rem; font-size: 1.2rem;
font-weight: 600; font-weight: 600;
z-index: 9999; z-index: 9999;
text-align: center; text-align: center;
padding: 20px; padding: 20px;
} }
body.appBody>* { body.appBody>* {
display: none !important; display: none !important;
} }
} }