Skip to content

ЦК BMSTU Dark Theme Fix by dp0sk

Details

Authordp0sk

LicenseNo License

Categorybmstu.ru

Created

Updated

Size3.2 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Исправляет тём ную тему на сайте Цифровой Кафедры

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           bmstu.ru
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         Me
==/UserStyle== */
@-moz-document domain("lms.bmstu.ru") {
    .theme-dark .popover-region-toggle.rui-topbar-special-btn path {
        fill-rule: evenodd;
        fill: white;
    }

    .theme-dark .que.coderunner tr td {
        background-color: #1C2625
    }

    .theme-dark .que .specificfeedback p {
        color: #EAF4DD;
    }

    .que.coderunner div.coderunner-test-results.good {
        background-color: #EAF4DD
    }

    .theme-dark .que.coderunner div.coderunner-test-results.good {
        background-color: #0a6457;
    }

    .theme-dark .que.coderunner div.coderunner-test-results.bad {
        background-color: #998341;
    }

    .theme-dark .answersaved .feedback {
        background-color: #0a6457;
    }

    #page-mod-quiz-attempt .submitbtns,
    #page-mod-quiz-review .submitbtns,
    .feedback{
        margin-top: .5em !important;
    }

    .theme-dark .correct .content .feedback {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23EAF4DD' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M8.75 4.75H15.25C17.4591 4.75 19.25 6.54086 19.25 8.75V15.25C19.25 17.4591 17.4591 19.25 15.25 19.25H8.75C6.54086 19.25 4.75 17.4591 4.75 15.25V8.75C4.75 6.54086 6.54086 4.75 8.75 4.75Z'/%3E%3Cpath stroke='%23EAF4DD' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M7.75 12.75C7.75 12.75 9 15.25 12 15.25C15 15.25 16.25 12.75 16.25 12.75'/%3E%3Ccircle cx='14' cy='10' r='1' fill='%23EAF4DD'/%3E%3Ccircle cx='10' cy='10' r='1' fill='%23EAF4DD'/%3E%3C/svg%3E");
    }

    .que tr {
        display: table-row !important;
    }

    /* Terminal */
    .que.coderunner div.ui_wrapper,
    .que .content .feedback/* Не терминал, просто для красоты */
    {
        border-radius: 10px
    }

    .theme-dark .que.coderunner div.ui_wrapper {
        border: 1px inset #25282c !important;
        background-color: #25282c
    }

    /* Tables - Maybe broken */
    .que .content .feedback {
        padding: 10px 0px 10px 40px;
    }

    .rightanswer {
        margin-right: 40px
    }

    .theme-dark table,
    .theme-dark tr,
    .theme-dark td {
        border: 1px inset #121818 !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
    }

    .theme-dark #page-question-type-coderunner table.coderunner-test-results .header,
    .theme-dark .que.coderunner table.coderunner-test-results .header,
    .theme-dark .que.coderunner table.coderunnerexamples .header {
        background-color: #191C1C;
        color: #AFB1B0;
    }

    .theme-dark .que.coderunner table.coderunner-test-results th {
        border: none;
        border-left: 1px inset #101212 !important;
        border-right: 1px inset #101212 !important;
    }

    @media (min-width: 1080px) {
        .show-drawer-right .wrapper-course {
            width: 100%;
        }
    }

    .theme-dark code {
        color: white
    }
}

Reviews

No reviews yet.