Skip to content

docs.gradle.org: More readable class descriptions by rybak

Screenshot of docs.gradle.org: More readable class descriptions

Details

Authorrybak

LicenseMIT

Categorydocs.gradle.org

Created

Updated

Size1.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Increases text size in descriptions of classes in Javadocs on docs.gradle.org

Notes

Font size of class Javadocs on https://docs.gradle.org is too small and the description is hard to pick out in the noise.

The font size is configurable. Click on the gear icon ⚙️ in the menu of Stylus extension.

Source code

/* ==UserStyle==
@name        docs.gradle.org: More readable class descriptions
@namespace   github.com/rybak
@version     2
@description Increases text size in descriptions of classes in Javadocs on docs.gradle.org
@homepageURL https://github.com/rybak/
@license     MIT
@author      Andrei Rybak
@preprocessor stylus
@var number fontSize "Font size in pixels" [20, 1, 48, 1, 'px']
==/UserStyle== */

/*
 * Copyright (c) 2023 Andrei Rybak
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

@-moz-document domain("docs.gradle.org") {
    .description .block, .description .block > p {
        font-size: fontSize;
    }
}

Reviews

No reviews yet.