Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Hatnote/styles.css: Difference between revisions

Template page
>MangoFVTT
No edit summary
>MangoFVTT
No edit summary
Line 5: Line 5:
     box-shadow: var(--ygdren-border-color-base) 0 0 0 1px inset;
     box-shadow: var(--ygdren-border-color-base) 0 0 0 1px inset;
     background: var(--ygdren-color-surface-2);
     background: var(--ygdren-color-surface-2);
     border-radius: 8px;
     border-radius: var(--ygdren-border-radius-medium);
font-size: 0.875rem;
font-size: var(--ygdren-font-size-small);
line-height: 1.375;
line-height: var(--ygdren-line-height-xx-small);
     display: flex;
     display: flex;
     gap: 0.5rem;
     gap: 0.5rem;

Revision as of 13:34, 23 September 2025

.ygdren-hatnote {
    position: relative;
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
    box-shadow: var(--ygdren-border-color-base) 0 0 0 1px inset;
    background: var(--ygdren-color-surface-2);
    border-radius: var(--ygdren-border-radius-medium);
	font-size: var(--ygdren-font-size-small);
	line-height: var(--ygdren-line-height-xx-small);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ygdren-hatnote-icon {
    display: flex;
    align-items: center;
}

.ygdren-hatnote-icon .mw-file-element {
    display: block;
}

.ygdren-hatnote-icon .mw-file-element[src$=".svg"] {
    filter: invert(1) hue-rotate(180deg);
    opacity: 0.5;
}

.ygdren-hatnote.ygdren-hatnote--red {
    background: var(--background-color-destructive-subtle);
    color: var(--color-emphasized);
}

.ygdren-hatnote.ygdren-hatnote--yellow {
    background: var(--background-color-warning-subtle);
    color: var(--color-emphasized);
}

.ygdren-hatnote.ygdren-hatnote--green {
    background: var(--background-color-success-subtle);
    color: var(--color-emphasized);
}