Я попробовал несколько вариантов, но не могу это исправить
Что я пробовал:
- Плавающий: влево
- margin-left
- padding-left
Css
@charset 'utf-8';
@import url('https://fonts.googleapis.com/css2?famil ... splay=swap');
@import url('bootstrap.min.css');
html, body {
height: 100%;
}
body {
display: flex;
flex-flow: row;
justify-content: center;
overflow-x: hidden;
}
.cover-site {
min-width: 100%;
min-height: 100%;
position: fixed;
background: url('../img/bg_site.jpg') no-repeat;
background-position: center;
background-size: cover;
transition: background-image 1s;
background-attachment: fixed;
}
/* FONDO DESENFOQUE */
#bgCover {
height: 100%;
width: 100%;
position: absolute;
background-repeat: no-repeat;
background-size: cover;
background-position: center 20%;
-webkit-filter: blur(20px);
filter: blur(20px);
transition: all .5s linear;
transform: scale(2.2);
z-index: 1;
}
.bg-mask {
min-width: 100%;
min-height: 100%;
position: absolute;
background-color: rgba(0,0,0,0.0);
z-index: 2;
}
.web-player {
height: 100%;
color: #fefefe;
padding: 5px;
position: relative;
z-index: 3;
margin-top: 35px;
padding-top: 0px;
}
@media only screen and (max-width: 668px) { .web-player {
height: 100%;
color: #fefefe;
padding: 5px;
position: relative;
z-index: 3;
padding-top: 120px;
}
}
.cover-album {
max-width: 80%;
margin: auto;
background: url('../img/cover.png') no-repeat;
background-size: cover;
border: 2px solid #fefefe;
box-shadow: 0px 5px 10px 3px rgba(0, 0, 0, 0.4);
transition: background-image 1s;
border-radius: 10px;
margin-bottom: 15px;
}
#currentCoverArt {
width: 100%;
height: 316px;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
border-radius: 10px;
transition: background-image 1s;
}
.logo {
display: none;
}
.info-current-song {
font-family: 'Poppins', sans-serif;
text-align: center;
}
.info-current-song h2 {
font-size: 38px;
text-transform: uppercase;
font-weight: 800;
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
.info-current-song h3 {
font-size: 22px;
font-weight: 600;
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
.current-song {
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
.current-artist {
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
.play-pause {
font-size: 65px;
}
.play-pause i {
cursor: pointer;
}
.volume-icon {
font-size: 25px;
margin-top: -5px;
margin-right: 5px;
}
.volume-slide {
/* Adicionando sombra */
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
.volume-control {
display: none;
}
.vagalume a {
color: #fefefe;
text-decoration: underline;
}
.lyrics {
text-transform: uppercase;
text-decoration: none;
color: #fefefe;
font-size: 1em;
font-weight: 400;
outline: none;
transition: .3s;
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
.lyrics:active {
text-decoration: none;
color: #fefefe;
}
.lyrics:visited {
text-decoration: none;
color: #fefefe;
}
.modal-content {
background-color: rgba(0, 0, 0, 0.8);
color: #fefefe !important;
border-radius: 20px;
}
.modal-content .btn {
border-radius: 20px;
background-color: #00E1E7;
}
.hidden {
display: none;
}
/* Chrome */
input[type=range] {
appearance: none;
background: transparent;
width: 100%;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: 5px;
cursor: pointer;
animation: 0.2s;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background: #fefefe;
}
input[type=range]::-webkit-slider-thumb {
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
height: 20px;
width: 20px;
border-radius: 50%;
background: #fefefe;
cursor: pointer;
-webkit-appearance: none;
margin-top: -8px;
}
/* Firefox */
input[type=range]::-moz-range-track {
width: 100%;
height: 5px;
cursor: pointer;
animation: 0.2s;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background: #fefefe;
}
input[type=range]::-moz-range-thumb {
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
border: 0px solid #000000;
height: 20px;
width: 20px;
border-radius: 50%;
background: #fefefe;
cursor: pointer;
}
/* IE e Edge */
input[type=range]::-ms-track {
width: 100%;
height: 5px;
cursor: pointer;
animation: 0.2s;
background: transparent;
border-color: transparent;
border-width: 10px 0;
top: -10px;
color: transparent;
}
input[type=range]::-ms-fill-lower {
background: #fefefe;
border: 0px solid #000101;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
background: #fefefe;
border: 0px solid #000101;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
}
input[type=range]::-ms-thumb {
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
border: 0px solid #000000;
height: 20px;
width: 20px;
border-radius: 50%;
background: #fefefe;
cursor: pointer;
}
.historic h2 {
color: #fefefe;
border-bottom: 2px solid #fefefe;
font-size: 18px;
font-weight: bold;
text-transform: uppercase;
margin: 10px 0;
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
/* ZONA FONDO CANCIONES SONADAS */
.historic article {
margin: 5px 0;
padding: 10px;
background-color: none;
}
.historic .cover-historic {
width: 95px;
height: 95px;
margin-right: 15px;
float: left;
border-radius: 10px;
background: url('../img/cover.png') no-repeat;
background-size: cover;
border: 2px solid #fefefe;
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
transition: background-image 1s;
}
/* COLOR TEXTO INFO ARTISTA */
.historic .music-info {
color: white;
font-family: 'Poppins', sans-serif;
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
/* COLOR TEXTO CANCION */
.historic .music-info .song {
width: 100%;
font-weight: bold;
font-size: 20px;
text-transform: uppercase;
margin-bottom: -5px;
color: white;
text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}
@media(max-width: 370px) {
.cover-album {
max-width: 100%;
}
}
@media(min-width: 576px) {
.volume-control {
display: flex;
}
.call-lyrics {
margin-top: 20px;
}
}
@media(min-width: 768px) {
body {
align-items: center;
}
.h1-logo {
text-align: center;
}
.logo {
display: block;
z-index: 2;
}
.logo img {
max-width: 200px;
}
.web-player {
height: auto;
margin-top: 220px;
}
.cover-album {
margin: 10px auto;
min-width: 320px;
height: 320px;
}
.logo img {
max-width: 300px;
margin: 65px 0;
}
.info-current-song {
margin-top: 20px;
text-align: left;
}
.volume-control {
margin-top: 10%;
}
}
#buttonPlay {
padding-left: 10px;
}
#playerButton {
color: black;
}
.play-pause i {
cursor: pointer;
}
.btn-play {
background-color: white;
border: none;
color: black;
padding: 10px 20px; /* Reduzindo o preenchimento */
font-size: 14px; /* Reduzindo o tamanho da fonte */
font-weight: bold;
cursor: pointer;
border-radius: 20px;
width: auto; /* Largura automática */
transition: transform .2s;
box-shadow: 1px 3px #30303022;
}
.btn-play:focus {outline:0;}
.btn-play:hover {
box-shadow: 1px 5px #30303022;
transform: scale(1.1);
}
.close{
color: white;
}
#topnav {
width: 100%;
position: fixed;
top: 0;
left: 0;
background-color: rgb(0, 0, 0);
font-family: Arial, sans-serif;
font-size: 15px;
}
.nav-link {
display: inline-block;
width: 115px;
height: 65px;
color: White;
/* centering text */
text-align: center; /* horizontally */
line-height: 55px; /* vertically */
text-decoration: none;
}
.nav-link:hover {
display: inline-block;
width: 115px;
height: 65px;
color: rgb(204, 153, 13);
/* centering text */
text-align: center; /* horizontally */
line-height: 55px; /* vertically */
text-decoration: none;
}
#logo {
width: 120px;
font-weight: bold;
padding-top: 10px;
margin-top: 2px;
}
#about {
position: absolute;
top: 0;
right: 0;
}
.logoimg {
width: 100%;
max-width:44px;
height: 60px;
margin-top: -15px;
}
.contentbox {
background-color: white;
min-width: 100vw;
width: 100%;
color:gray;
position: absolute;
left: 0; /* Position at the far left */
padding: 10px; /* Optional padding */
}
html
FastRadio
Fastradio temporary page, we are working on a new design
Now playing:
Artist:
play
Volume:
80 %

Home
Donate
Contact
Recently played:
Now playing:
Artist:
Now playing:
Artist:
test
Lyrics
×
Close
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js')
.then(function(registration) {
console.log('Service Worker successfully registered:', registration);
}, function(err) {
console.log('Failed to register Service Worker:', err);
});
});
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... -of-center
Мобильная версия