CSS {botões de ação coloridos}

Produz um botão de ação (download, link externo, ...) Pode utilizar cores diferentes.


1. Como utilizar


Incluir no html:
<center> <a class="button blue" href="LINK" target="_blank"><i class="fa fa-download"></i><code>TEXTO</code></a> </center>

2. Resultado


Download em A4 para imprimir

3. CSS implementado no blog


/*========== Botões == Inicio ===========*/
a.button {
    color: #fff;
    text-decoration: none;
}

.button {
    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;
}

.button.small {
    font-size: 14px;
    padding: 10px 20px;
}

/* Efeito hover moderno*/
.button.small:hover,
.button:hover {
    transform: translateY(-2px);
    -webkit-box-shadow: 0 6px 16px rgba(51, 51, 51, 0.3);
    box-shadow: 0 6px 16px rgba(51, 51, 51, 0.3);
    color: #fff;
}

/* Cores com gradientes suaves */
.red {
    background: linear-gradient(135deg, #f34736, #e74c3c);
}
.orange {
    background: linear-gradient(135deg, #f1c232, #f39c12);
}
.green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}
.blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
}
.yellow {
    background: linear-gradient(135deg, #FFD600, #f1c40f);
    color: #333 !important;
}
.pink {
    background: linear-gradient(135deg, #c370e4, #9b59b6);
}
.black {
    background: linear-gradient(135deg, #333333, #2c3e50);
}

.grey {
    background: linear-gradient(135deg, #5e5e5e, #828282);
}

/* Efeito de brilho no hover */
.button::before {
    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;
}

.button:hover::before {
    left: 100%;
}

/* Ícones */
.button .fa {
    margin: 0;
    font-size: 18px;
    transition: transform 0.5s ease;
}

.button:hover .fa {
    transform: scale(1.5);
}

/* Container para botões */
.button-container {
    text-align: center;
    margin: 25px 0;
    padding: 15px 0;
}

.small-button,
.medium-button {
    width: 100%;
    overflow: hidden;
    clear: both;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/*========== Botões == Fim ===========*/


Whatsapp Button works on Mobile Device only

Pesquise no blog