Skip to content

Improved Horse Overview by nagapie

Screenshot of Improved Horse Overview

Details

Authornagapie

LicenseCC0 1.0 Universal

CategoryHorse Reality

Created

Updated

Size1.8 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

This style combines all the horse overview improvements made by me for ease of use.

Huge thanks to Nofia for helping me get started with UserStyles!

Notes

Update 8.12.2024

Added CC0 license to clarify that this style is free to use and modify. Tidied up script, added fixes to stable block editing buttons not being vertically centered. Removed alternating row colors because that is available as a HR setting nowadays. Row styling now applies to compact list as well.

Source code

/* ==UserStyle==
@name           Improved Horse Overview
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    Changes the overall appearance of the HR Horse Overview page.
@author         Nagapie
@license        CC0 1.0 Universal
==/UserStyle== */
@-moz-document url-prefix("https://v2.horsereality.com/horses/") {

    /* Make stable blocks wrap and hide side arrows */
    .tabs.stall-tabs {
        display: flex;
        flex-wrap: wrap !important;
        overflow: visible;
        .tab {
            margin-bottom: 3px;
        }
    }
    .horses-stall-left,
    .horses-stall-right {
        display: none;
    }

    /* Vertically center stable block editing buttons */
    .tab .stall-actions {
        transform: none;
        right: -10px;
        top: unset;
    }
    .stall-tab-edit form {
        padding-right: 40px
    }
    .stall-tab-edit.editing form {
        padding-right: 20px
    }
    .tabs .tab.stall-tab-create-action a > i {
        margin-right: 0px;
    }

    form .save-stall.normalize {
        top: unset !important;
        height: 20px;
        padding: 0px !important;
        transform: none;
        display: block;
    }

    /* Reduce horse cards to rows  */
    .horse-list .horse-item {
        margin-bottom: 0px;
    }
    .horse-list.compact .horse-item {
        margin-bottom: 0px !important;
    }
    .horse-item .content {
        border-radius: 0px;
    }

    /* Make horse stat icons monochrome */
    .horse-stats .horse-stat-energy i {
        color: #030d27;
    }
    .horse-stats .horse-stat-fitness i {
        color: #030d27;
    }
    .horse-stats .horse-stat-affection i {
        color: #030d27;
    }
    .horse-stats .horse-stat--low span {
        color: #030d27;
    }
}

Reviews

No reviews yet.