Skip to content

⚙️Events - chess.com (Eng) by chessskins

Screenshot of ⚙️Events - chess.com (Eng)

Details

Authorchessskins

LicenseNO-REDISTRIBUTION

Categorychess.com

Created

Updated

Size4.5 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Tweaks for chess.com events page

Notes

It can change player picture size, font size, font color and set board and sidebar scale as it use to be too big.

Source code

/* ==UserStyle==
@name           ⚙️Events - chess.com (Eng)
@author         ChessSkins
@namespace      ChessSkins
@homepageURL    https://www.chess.com/blog/ChessSkins
@description    `Tweaks for chess.com events page`
@version        1.0.9
@license        NO-REDISTRIBUTION
@preprocessor   stylus

@var    range    setscale  "Zoom" [1, 0.8, 1, 0.05, ""]
@var    range    avatarSize  "Picture" [10, 8, 10, 0.5, "rem"]
@var    range    titleFontSize  "Player Title font" [1.2, 1, 1.4, 0.01, "rem"]
@var color    titleBackCol  "Title Bg color"   #7d0d0d

@var    range    playerFontSize  "Player font size" [1.4, 1, 1.6, 0.01, "rem"]
@var select   playerFontWeight   "Font weight"    ["400", "600*", "700", "800"]
@var color    playerFontCol  "Font color"   #ffbe26

@var    range    ratingFontSize  "Rating font size" [1.4, 1, 1.6, 0.01, "rem"]
@var select   ratingFontWeight   "Rating f. weight"    ["400*", "600", "700", "800"]
@var color    ratingFontCol  "Rating f. color"   #fffc

@var color    movListHLcolor  "Move list highlight color"   #5b522387

==/UserStyle== */

@-moz-document regexp("https?://(www\\.)?chess\\.com/([a-zA-Z]{2}/?)?events/?.*") {

    @media (min-width: 75em){
        bigFlags="https://www.chess.com/bundles/web/images/sprites/flags-32.1ee1691e.png";
        :root { 
          --mzoom: setscale;
          }
        .board-layout-sidebar{
            margin-left: calc(-40em * (1 - var(--mzoom)));
        }
        .board-layout-sidebar,
        .board-layout-main {
            transform: scale(setscale);
        }
        .accuracy-component {
            padding: 0.8rem!important;
        }
        .player-component {
            --avatarSize: avatarSize;
        }
        .player-title{        
            font-size: titleFontSize!important;
        }
        #board-layout-player-top .player-title{ 
            top: calc(var(--avatarSize) - 0.8rem);
        }
        #board-layout-player-bottom .player-title{ 
            top: calc(var(--avatarSize) - 1.8rem);
        }
        .user-chess-title-component{
            background-color: titleBackCol;
        }
        .player-details .player-name-name,
        .player-details .player-name {
            color: playerFontCol!important;
            white-space: normal!important;
            font-size: playerFontSize!important;
            font-weight: playerFontWeight!important;
            max-height: 4rem;
            //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;
        }
        .player-tagline-rating {
            color: #dfd73bd6!important;
            text-shadow: rgb(0, 0, 0) 1px 1px 1px;
        }
        .player-card-component {
            background-color: #272424cf!important;
        }
        .player-card-bio:after {
            background: linear-gradient(180deg,hsla(0,0%,100%,0),#252222 70%)!important;
        }
        body.events-layout-v2:not(.events-player-names-above-and-below) #board-layout-player-top .player-player{
            padding-top: 1rem!important;
        }
        body.events-layout-v2:not(.events-player-names-above-and-below) #board-layout-player-bottom .player-player{
            padding-bottom: 1rem!important;
        }
        body.events-layout-v2:not(.events-player-names-above-and-below) .board-layout-player {
            width:11rem;
        }
        body.events-layout-v2:not(.events-player-names-above-and-below) .board-layout-player {
            margin-left:-1rem;
        }
        if setscale < 1{
            body.events-layout-v2:not(.events-player-names-above-and-below) .board-layout-player {
                margin-left:-2.4rem;
            }
        }
    }
    //selected move (in move list)
    .chessboard-pkg-move-list-component .node .node-highlight-content.selected,
    .dark-mode .vertical-move-list .black.selected, .dark-mode .vertical-move-list .white.selected {
        background-color: movListHLcolor!important;
        border-color: lighten(shade(movListHLcolor, 5%), 50)!important;
    }
}

Reviews

No reviews yet.