Skip to content

Better docs.unity3d.com by nulta

Screenshot of Better docs.unity3d.com

Details

Authornulta

LicenseMIT

Categorydocs.unity3d.com

Created

Updated

Size2.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Style for docs.unity3d.com
Dark theme, more proper layout w/max-width

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         docs.unity3d.com
@version      20230401.19.14
@namespace    ?
==/UserStyle== */

@-moz-document regexp("https?://docs.unity3d.com/\\d\\d\\d\\d?(\\.\\d)?/.+") {
@import url('/kr/2021.3/StaticFiles/css/core.css');
@import url('/kr/2021.3/StaticFiles/css/custom.css');
}

@-moz-document domain("docs.unity3d.com") {
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css');

div.content div.section, div.content div.footer-wrapper {
    max-width: 900px;
}

div.content-wrap div.content div.section {
    margin-right: 0;
}

body {
    font-family: "Pretendard Variable", "Pretendard", sans-serif;
    font-size: 17px;
}

#master-wrapper, .body-content {
    color: var(--main-text-color);
}

.sidebar-wrap > .content {
    background-color: #191a1c;
}

.sidebar {
    height: fit-content;
}

body {
    --main-bg-color: #1f2023;
    --main-text-color: #ddd;
}

div.header-wrapper {
    position: unset;
}

div.master-wrapper {
    padding-top: 0px;
}

@media only screen and (min-width: 901px) {
    div.sidebar {
        position: sticky !important;
        top: 50px;
        margin-top: 0 !important;
    }

    div.sidebar-wrap {
        position: unset;
        height: 100vh;
        border-right: none;
    }
}

@media only screen and (max-width: 900px) {

    div#content-wrap.opened-sidebar {
        width: unset !important;
        left: 0 !important;
    }
}

div#content-wrap.opened-sidebar {
    width: unset !important;
}

div.sidebar-menu {
    border: 1px solid #333;
}

div#master-wrapper {
    height: unset !important;
}

#content-wrap.opened-sidebar {
    padding-left: unset !important;
}

#master-wrapper {
    width: fit-content;
    margin-left: auto !important;
    margin-right: auto !important;
}


pre {
    padding: 10px;
    background: #15151c !important;
}

pre > code {
    background: none !important;
}

code {
    color: inherit;
    background-color: #2a425587 !important;
    padding: 2px;
}


.content .section h2 {
    margin-top: 1.25em;
}

#master-wrapper .content-wrap a {
    color: #8ff0f0de !important;
}

#feedbackbox {
    display: none;
}

.content .section hr:last-of-type {
    margin-top: 2.5em;
}

figure {
    text-align: center
}


html, body {
    background-color: var(--main-bg-color);
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #ffffff14;
}

h1, h2, h3, h4, h5, pre, cite, th {
    color: inherit;
}

div.version-number {
    float: left !important;
}

#ot-sdk-btn-floating {
    transition: opacity 0.2s !important;
}
#ot-sdk-btn-floating:not(:hover, .ot-pc-open) {
    opacity: 0.1 !important;
}

}

Reviews

No reviews yet.