CSS {botão download no drive}

Produz um botão azul com ícone do Drive


1. Como utilizar


Incluir no html:
<div class="download-btn-container"> <a href="LINK" class="download-btn drive-btn" target="_blank"> TEXTO </a> </div>

2. Resultado



3. CSS implementado no blog


/*========== Botão Download == Inicio ==========*/
.download-btn-container {
    text-align: center;
    margin: 30px 0;
    padding: 10px 0;
}

.download-btn {
    font-size: 15px;
    padding: 18px 28px;
    margin: 8px;
    color: #fff;
    text-align: center;
    border: 0;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: monospace;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* CORREÇÃO: Mantém o texto branco e sem sublinhado no hover */
.download-btn:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    color: #fff !important; /* Mantém o texto branco */
    text-decoration: none !important; /* Remove sublinhado */
}

/* CORREÇÃO EXTRA: Garante que links dentro do botão também fiquem brancos */
.download-btn:hover,
.download-btn:focus,
.download-btn:active {
    color: #fff !important;
    text-decoration: none !important;
}

/* Ícone do Drive via CSS (pseudo-elemento) */
.download-btn.drive-btn::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7.71,3.5L1.15,15L4.58,21L11.13,9.5M9.73,15L6.3,21H19.42L22.85,15M22.28,14L15.42,2H8.58L8.57,2L15.43,14H22.28Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.download-btn:hover::before {
    transform: scale(1.5);
}

/* Efeito de brilho no hover */
.download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::after {
    left: 100%;
}
/*========== Botão Download == Fim ==========*/

Whatsapp Button works on Mobile Device only

Pesquise no blog