Skip to content

Eurogamer CMS by wsjudd

Details

Authorwsjudd

LicenseNo License

Categoryeurogamer

Created

Updated

Size5.4 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

EG CMS tweaks.

Current features:

Larger, nicer monospace font.
Layout improved for users at 1278px (eg Chrome at 2560 pixels wide, or 4K @ 150% scaling).

Planned features:

The return of dark mode.

Bugs:

None afaik.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         Eurogamer CMS
@version      20231012.17.09
@namespace    userstyles.world/user/wsjudd
@description  EG CMS tweaks. Dark mode aware (based on your Mac / Windows setting). Uses Gibson (website) font for the editor if you have it installed via Adobe Creative Cloud. Larger layout as well.
@author       wsjudd
@license      No License
==/UserStyle== */

@-moz-document url-prefix("https://lynn.gamer-network.net/") {
 /* Eurogamer CMS changes */
/* text editor changes */
div.editor-wrapper .editor-placeholder {
    font-family: "Fira Code", "Inconsolata", "Source Code Pro", "Bergon Mono", "Dank Mono", "MonoLisa", "Apercu Mono", monospace !important;
    font-size: 19px !important;
    line-height: 24px !important;
    letter-spacing: -1px !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Good fonts to try: "MonoLisa", "Apercu Mono", "Dank Mono", "Hack" */
/* Fun fonts to try: "Bergen Mono", "Alma Mono", "Livemono", "Input Mono", "Monoid" */


/* I wish this let me change input from text to textarea 

input#id_form-0-meta_description {
        word-wrap: break-word !important;
        word-break: break-all !important;
        height: 80px !important;
}

*/

/* can't remember what this does */
.attract.table,
.generic-table {
    width: 100%;
}

/* fix first row of buttons for 1440p/4K@150% screens */
.document .page-header > div .actions,
.dynamic-tag-form .button,
.generic-form .button {
    font-size: 0.83rem;
}

/* fix second row of buttons for 1440p/4K@150% screens */
@media only screen and (min-width: 1278px) {

    div.editor-word-count {
        display: none !important;
    }

    /* Slightly widen the editor window to fit all the buttons on one row */
    .grid > .grid-8 {
        width: 70%;
    }
    .grid > .grid-4 {
        width: 30%;
    }

    /* Apply CSS changes to 1278px and above to suit half-width windows at 1440p */
    .asset-explorer-items {
        --columns: 2
    }

    .editor-page.fullscreen {
        bottom: 1rem;
        left: 1rem;
        max-width: none;
        position: fixed;
        right: 1rem;
        top: 1rem;
        z-index: 14
    }

    .editor-page.fullscreen > * {
        clear: both;
        float: none;
        margin: 0 auto;
        max-width: 1220px;
        position: relative;
        width: 96vw
    }

    .editor-page.fullscreen .editor-wrapper {
        height: calc(100vh - 5rem)
    }

    .fullscreen-overlay {
        background-color: rgba(0, 0, 0, .675);
        bottom: 0;
        content: "";
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 12
    }

    .editor-toolbar .editor-word-count,
    .editor-toolbar-buttons,
    .editor-toolbar-insert {
        display: inline-block;
        margin: 0
    }

    .editor-toolbar .editor-word-count--inline,
    .editor-toolbar-buttons--inline,
    .editor-toolbar-insert--inline {
        float: none
    }

    .editor-toolbar .editor-word-count--fullscreen,
    .editor-toolbar-buttons--fullscreen,
    .editor-toolbar-insert--fullscreen {
        display: block;
        float: right
    }

    .editor-toolbar-pulldown {
        border-radius: 0 .25rem .25rem .25rem;
        border-width: 1px;
        padding: 1rem .5rem;
        position: absolute;
        width: 30rem
    }

    .editor-toolbar-pulldown:before {
        background-color: #fff;
        border-left: 1px solid #dadada;
        content: "";
        font-size: 20px;
        height: 3px;
        left: -1px;
        line-height: 1;
        position: absolute;
        top: -2px;
        width: 159px
    }

    .editor-toolbar-groups {
        grid-template-columns: 1fr 1fr
    }

    .editor-toolbar-group:first-of-type {
        border-right: 1px solid #dadada;
        margin: 0;
        padding-right: .66666667rem
    }

    .editor-toolbar-group:last-of-type {
        padding-left: .66666667rem
    }

    .uploaded-files ul li {
        width: 16.66666667%
    }

    .uploaded-files ul li:nth-of-type(odd) {
        clear: none
    }

    .uploaded-files ul li:nth-of-type(6n+1) {
        clear: left
    }

    .stack-manager .available,
    .stack-manager .current,
    .stack-manager .overview {
        margin: 0
    }

    .stack-manager .overview {
        padding-right: 2rem;
        width: 18%
    }

    .stack-manager .available {
        border-right: 1px solid #dadada;
        padding: 0 2rem 0 0;
        width: 30%
    }

    .stack-manager .available .stack {
        border-top-left-radius: 0
    }

    .stack-manager .available .stack-item .buttons {
        display: none
    }

    .stack-manager .current {
        padding-left: 2rem;
        width: 52%
    }

    .stack-manager .current .stack-item {
        padding-right: 3rem
    }
}

/* DF Graph improvements */
/* Hide remove graph button to reduce row height */
tbody.ui-sortable button.button.outline.remove {
    display: none;
}

/* Force label to not wrap to reduce row height */
tbody.ui-sortable a {
    color: #0072b2;
    white-space: nowrap;
}

/* Reduce font size of headings to reduce column width */
table.generic-table.draggable-table th {
    font-size: 8px;
}

.dynamic-tag-form .form-section.checkbox, .dynamic-tag-form .form-section.radio, .generic-form .form-section.checkbox, .generic-form .form-section.radio {
    max-height:200px;
    overflow:auto;
}
}

Reviews

No reviews yet.