Página 1 de 1

Custom 404

Enviado: 12 Jan 2026, 07:43
por Fred Rimbert
Hi Chico

I just downloaded version 1.0.2 of this extension on GitHub, the error image does not appear when accessing a page that does not exist

Look at this URL: https://www.medias.rimbertweb.fr/feed/

custom_404.png
custom_404.png (82.58 KiB) Exibido 140 vezes

Re: Custom 404

Enviado: 12 Jan 2026, 17:16
por Chico Gois
Have you enabled image display?

EX.: (2)

https://mundophpbb.com.br/phpBB3/error

error404

Re: Custom 404

Enviado: 12 Jan 2026, 22:24
por Fred Rimbert
Yes find it

Re: Custom 404

Enviado: 12 Jan 2026, 22:41
por Chico Gois
erro404.png
erro404.png (9.87 KiB) Exibido 67 vezes

Re: Custom 404

Enviado: 12 Jan 2026, 23:30
por Chico Gois
Use this CSS based on BLUE.
Código: Selecionar todos
/* Estilos para a página 404 (tema claro, inspirado em prosilver padrão) */
.custom404-panel {
    box-sizing: border-box;
    margin: 1.5rem auto;
    padding: 1.5rem;
    background: #ffffff;          /* Fundo branco puro, padrão prosilver */
    border-radius: 8px;
    max-width: 800px;
   /* border: 1px solid #b1cbeb;    /* Borda azul clara suave, típica do prosilver */
}

.custom404-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.custom404-image {
    text-align: center;
    margin: 1rem 0;
    width: 100%;
}

.custom404-image img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    background-color: #f5f7fa;     /* Fundo muito claro, como áreas do prosilver */
}

.custom404-title {
    text-align: center;
    color: #536482;               /* Cor de texto principal padrão prosilver */
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
}

.custom404-message {
    text-align: center;
   /* font-size: clamp(0.9rem, 3.5vw, 1.1rem); */
    color: #536482;
    margin: 0;
    max-width: 90%;
    line-height: 1.5;
}

.custom404-return {
    text-align: center;
}

#custom404 a,
.custom404-button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    color: #105289;               /* Azul padrão de links no prosilver */
    background: #f5f7fa;           /* Fundo neutro claro */
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    border-radius: 6px;
    border: 1px solid #b1cbeb;    /* Borda sutil azul clara */
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: 'Bai Jamjuree', 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

#custom404 a::before,
.custom404-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #105289;          /* Azul clássico prosilver (sem gradiente forte) */
    border-radius: 4px 0 0 4px;
    /* Removi a animação pulse para ficar mais clean/padrão */
}

#custom404 a:hover,
.custom404-button:hover {
    background: #e6f0ff;          /* Azul bem claro no hover, como links do prosilver */
    color: #0f4987;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

#custom404 a:active,
.custom404-button:active {
    transform: translateY(0);
    background: #d1e3ff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#custom404 a:visited,
#custom404 a:focus,
.custom404-button:visited,
.custom404-button:focus {
    color: #105289;
    text-decoration: none;
    background: #f5f7fa;
    outline: 2px solid #105289;
    outline-offset: 2px;
}

/* Estilos para Citações (Quotes) - Geral e Página 404 */
blockquote,
blockquote.uncited {
    margin: 1.5rem 0;
    padding: 1rem 1rem 1rem 2rem;
    position: relative;
    font-style: italic;
    color: #536482;
    background: #f5f7fa;           /* Fundo neutro prosilver para quotes */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: 'Bai Jamjuree', 'Arial', sans-serif;
}

blockquote::before,
blockquote.uncited::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #105289;          /* Azul padrão prosilver */
    border-radius: 4px;
    /* Sem animação para manter clean */
}

blockquote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: #105289;               /* Azul prosilver para cite */
    margin-top: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-family: 'Bai Jamjuree', 'Arial', sans-serif;
}

blockquote p,
blockquote.uncited div {
    margin: 0;
    padding: 0;
    font-size: clamp(0.9rem, 1.9vw, 1rem);
    font-family: 'Bai Jamjuree', 'Arial', sans-serif;
}

/* Ajustes específicos para a página 404 */
#custom404 .custom404-message blockquote,
#custom404 .custom404-message blockquote.uncited {
    margin: 1.5rem 1rem;
    padding: 1rem 1rem 1rem 1.5rem;
}

/* Suporte para acessibilidade (desativar animação) */
@media (prefers-reduced-motion: reduce) {
    #custom404 a::before,
    .custom404-button::before,
    blockquote::before,
    blockquote.uncited::before {
        /* Já não tem animação, mas mantido por segurança */
    }
}

/* Responsividade (mantida igual) */
@media (max-width: 768px) {
    .custom404-panel {
        padding: 1rem 1.5rem;
        margin: 2rem 1rem;
    }
    .custom404-image img {
        max-width: 60%;
    }
    .custom404-title {
        font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    }
    .custom404-message {
        max-width: 95%;
    }
    #custom404 a,
    .custom404-button {
        padding: 0.6rem 1.4rem;
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    }
    blockquote,
    blockquote.uncited {
        margin: 1rem 0.5rem;
        padding: 0.8rem 0.8rem 0.8rem 1.5rem;
    }
    blockquote cite {
        font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    }
    blockquote p,
    blockquote.uncited div {
        font-size: clamp(0.85rem, 1.7vw, 0.95rem);
    }
}

@media (max-width: 480px) {
    .custom404-panel {
        padding: 0.75rem 1rem;
        margin: 1.5rem 0.75rem;
    }
    .custom404-image img {
        max-width: 70%;
    }
    #custom404 a,
    .custom404-button {
        padding: 0.5rem 1.2rem;
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }
    blockquote,
    blockquote.uncited {
        margin: 0.7rem 0.3rem;
        padding: 0.7rem 0.7rem 0.7rem 1.2rem;
    }
    blockquote cite {
        font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    }
    blockquote p,
    blockquote.uncited div {
        font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    }
}