Skip to content

⚙️Eventos do chess.com (pt-BR) by chessskins

Screenshot of ⚙️Eventos do chess.com (pt-BR)

Details

Authorchessskins

LicenseNO-REDISTRIBUTION

Categorychess.com

Created

Updated

Size2.6 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Altera tamanhos e cores nas informações dos jogadores

Notes

Você pode alterar o tamanho das imagens e da fontes relacionadas aos jogadores nas páginas de eventos do chess.com. As bandeiras passam da resolução 16px para 32px.

Source code

/* ==UserStyle==
@name           ⚙️Eventos do chess.com (pt-BR)
@author         ChessSkins
@namespace      ChessSkins
@homepageURL    https://www.chess.com/blog/ChessSkins
@description    `Altera tamanhos e cores nas informações dos jogadores`
@version        1.0.4
@license        NO-REDISTRIBUTION
@preprocessor   stylus


@var    range    avatarSize  "Tamanho da Foto" [10, 8, 10, 0.5, "rem"]
@var    range    titleFontSize  "Fonte do título" [1.2, 1, 1.4, 0.01, "rem"]
@var color    titleBackCol  "Cor de fundo"   #7d0d0d

@var    range    playerFontSize  "Fonte do nome" [1.4, 1, 1.6, 0.01, "rem"]
@var select   playerFontWeight   "Espessura"    ["400", "600*", "700", "800"]
@var color    playerFontCol  "Cor do texto"   #ffbe26

@var    range    ratingFontSize  "Fonte do rating" [1.4, 1, 1.6, 0.01, "rem"]
@var select   ratingFontWeight   "Espessura"    ["400*", "600", "700", "800"]
@var color    ratingFontCol  "Cor do texto"   #fffc

==/UserStyle== */

@-moz-document url-prefix("https://www.chess.com/events/"), url-prefix("https://www.chess.com/pt/events/"), url-prefix("https://www.chess.com/es/events/") {

    bigFlags="https://www.chess.com/bundles/web/images/sprites/flags-32.1ee1691e.png";
    
    @media (min-width: 75em){
        .player-component {
        --avatarSize: avatarSize;
        }
        .player-title{        
            font-size: titleFontSize!important;
        }
        .user-chess-title-component{
            background-color: titleBackCol;
        }   
        .player-details .player-name {
            color: playerFontCol!important;
            white-space: normal!important;
            font-size: playerFontSize!important;
            font-weight: playerFontWeight!important;
            //margin-top:0.2rem!important;
        }
        .player-details .player-rating{
            color: ratingFontCol!important;
            font-size: ratingFontSize!important;
            font-weight: ratingFontWeight!important;
        }
        .player-details .country-flag-small, .player-details .country-flags-component {
            align-items: center;
            background-image: url(bigFlags);
            background-size: 27rem 51.5rem;
            display: inline-flex;
            flex-shrink: 0;
            height: 2rem;
            justify-content: center;
            width: @height;
        }
    }
    //selected move
    .dark-mode .vertical-move-list .black.selected, .dark-mode .vertical-move-list .white.selected {
        background-color: rgba(255, 225, 0, .25);
        border-color: rgba(255, 204, 0, .37);
    }
}

Reviews

No reviews yet.