Skip to content

beta.ordbok.uib.no by emsixteen

Screenshot of beta.ordbok.uib.no

Details

Authoremsixteen

LicenseNo License

Categoryuib.no

Created

Updated

Size3.5 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Tidies up the appearance of this beta.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         beta.ordbok.uib.no
@version      20211026.07.05
@namespace    userstyles.world/user/emsixteen
@description  Tidies up the appearance of this beta.
@author       emsixteen
@license      No License
==/UserStyle== */

@-moz-document domain("beta.ordbok.uib.no") {
.v-text-field--rounded,
article {
    border-radius: 1em;
}

/* The whole shebang */
#app {
    color: var(--v-text-lighten1);
}

/* Homepage welcome area */
.welcome {
    background-size: cover;
    position: relative;
}

.welcome::before {
    opacity: 0.6;
    background: var(--v-primary-darken4);
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Header */
header {
    background: var(--v-tertiary-darken1);
}

/* The entry column */
article {
    overflow: hidden;
}

/* The search results area */
#search_results {
    margin-bottom: 2em;
}

/* Word name */
article h2 {
    padding-top: 1rem;
}

/* Label at top saying which language */
.dict-label {
    background: var(--v-tertiary-darken1);
    width: 100%;
    left: 0;
    top: 0;
    text-align: center;
    border-bottom: 1px solid var(--v-border-lighten2);
}

/* Inflections button when closed */
.header details > summary {
    border-radius: .5em;
    border-width: 1px;
    background: var(--v-primary-base);
    color: #fff;
    padding: .8em 1.25em;
    display: inline-block;
    max-width: 100%;
    width: 15em;
    min-width: max-content;
    box-shadow: none;
    border: 0;
}

/* Inflections button when open */
.header details[open] > summary {
    box-shadow: none;
    border: 0;
}

/* Inflections icon when closed */
.header details > summary::after {
    content: "\25BC";
    position: relative;
    display: inline;
    right: unset;
    top: unset;
    font-weight: normal;
    margin-right: 0;
    margin-left: .5em;
    color: var(--v-primary-lighten5);
}

/* Inflections icon when open */
.header details[open] > summary::after {
    content: "\25B2";
    font-weight: normal;
    position: relative;
    right: unset;
    top: unset;
    margin-right: 0;
}

/* Inflections table */
.infl-wrapper {
    width: max-content;
}

/* Inflections table cells */
.infl-wrapper td,
.infl-wrapper th {
    border-color: var(--v-tertiary-darken3);
}

/* Inflection label */
.infl-label {
    color: var(--v-primary-base);
}

/* Word definition */
li.level2.definition {
    margin: 1em 0;
    border-radius: .5em;
    border: 1px solid var(--v-border-lighten2);
    padding: 1em;
}

/* Word definition focus/hover/active */
li.level2.definition:hover,
li.level2.definition:focus,
li.level2.definition:active {
    border-color: var(--v-border-base);
}

/* The weird definition of the uh, definition example */
li.level2.definition .example > span:nth-of-type(2) {
    color: var(--v-text-lighten5);
    ;
}

/* Word definition - alternating */
li.level2.definition:nth-of-type(2n+2) {
    background: #f5f5f5;
}

/* Word subdefinitions */
.sub_definitions {
    margin-top: 1em;
}

.sub_definitions li.explanation {
    padding-bottom: 0!important;
}

.sub_definitions .definition {
    margin-bottom: .5em;
}

/* Expressions using the word */
.expressions {
    background: var(--v-tertiary-base);
    border-radius: .5em;
    padding: 1em;
}

/* Title in definitions and expressions */
.expressions h3,
.definitions h3 {
    border-bottom: 1px solid var(--v-tertiary-darken2);
    padding-bottom: .25em;
    margin-bottom: .25em;
}
}

Reviews

No reviews yet.