﻿/*htmlTagsHelper*/
html {
    font-family: var(--oo-font-family);
    font-size: var(--oo-font-size);
}

body {
    margin: 0;
}

iframe {
    border: none;
}

table {
    border-collapse: collapse;
}

h1, h2, h3, h4, h5, h6, h7, h8 {
    margin: 0;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none;
}

    a[href^="mailto:"] {
        word-break: break-all;
    }

textarea {
    resize: none;
}

input {
    filter: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 60px #fff inset !important;
    background-color: #fff !important;
    background-clip: content-box !important;
}

img {
    vertical-align: middle;
    max-width: 100%;
}

p {
    margin: 0;
}

b, strong {
    font-weight: 600;
}

abbr[title] {
    text-decoration-color: var(--oo-primary);
}

svg {
}

canvas {
    image-rendering: pixelated;
}


* {
    color: inherit;
    line-height: inherit;
}

button, input, select, optgroup, textarea {
    font: inherit;
}

/* Code braucht eine Festbreitenschrift; die Regel oben ersetzte sie sonst durch die App-Schrift.
   Ohne Ligaturen, damit etwa != nicht als ≠ erscheint. Mermaid-Diagramme stehen ebenfalls in einem pre,
   zeichnen ihre Beschriftung aber in der App-Schrift. */
html :is(pre, code, kbd, samp):not(.mermaid) {
    font-family: var(--oo-font-family-mono) !important;
    font-variant-ligatures: none;
}

/* Textfarbe aus dem Theme statt Browser-Schwarz – sonst bleibt freier Text im Dunkel-Theme unlesbar */
body {
    /*font-size: var(--oo-font-size-md);*/
    color: var(--oo-color-text);
}

/*General*/
*,
*::before,
*::after {
    box-sizing: border-box;
}


/*Meins*/
/* Festbreitenschrift etwas kleiner als Fließtext; pre code erbt unten die Blockgröße. */
pre:not(.mermaid),
code {
    font-size: 0.9em;
}

pre {
    background: var(--oo-surface-2, #f3f4f6);
    border: 1px solid var(--oo-color-border, #e0e0e0);
    border-radius: var(--oo-radius-md);
    padding: var(--oo-space-4) var(--oo-space-4);
    overflow-x: auto;
}

code {
    background: var(--oo-surface-2, #eee);
    padding: 0 var(--oo-space-1);
    border-radius: var(--oo-radius-sm);
}

pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}
