Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| wiki:basic.less [2025/08/31 08:52] – ancienne révision (2025/08/31 08:50) restaurée err404 | wiki:basic.less [Date inconnue] (Version actuelle) – modification externe (Date inconnue) 127.0.0.1 | ||
|---|---|---|---|
| Ligne 8: | Ligne 8: | ||
| * @author Anika Henke < | * @author Anika Henke < | ||
| */ | */ | ||
| + | |||
| + | :: | ||
| + | background: var(--selection_background, | ||
| + | color: var(--selection_color, | ||
| + | } | ||
| + | |||
| + | ::selection { | ||
| + | background: var(--selection_background, | ||
| + | color: var(--selection_color, | ||
| + | } | ||
| html { | html { | ||
| Ligne 15: | Ligne 25: | ||
| html, | html, | ||
| body { | body { | ||
| - | color: | + | color: |
| - | background: | + | background: |
| margin: 0; | margin: 0; | ||
| padding: 0; | padding: 0; | ||
| } | } | ||
| body { | body { | ||
| - | font: normal | + | font: normal |
| /* default font size: 100% => 16px; 93.75% => 15px; 87.5% => 14px; 81.25% => 13px; 75% => 12px */ | /* default font size: 100% => 16px; 93.75% => 15px; 87.5% => 14px; 81.25% => 13px; 75% => 12px */ | ||
| -webkit-text-size-adjust: | -webkit-text-size-adjust: | ||
| } | } | ||
| + | / | ||
| + | /* The emerging W3C standard | ||
| + | that is currently Firefox-only */ | ||
| + | * { | ||
| + | scrollbar-color: | ||
| + | } | ||
| + | | ||
| + | /* Works on Chrome/ | ||
| + | :: | ||
| + | background: var(--scrollbar_track); | ||
| + | width: 12px; | ||
| + | height: 12px; | ||
| + | } | ||
| + | |||
| + | :: | ||
| + | background: var(--scrollbar_thumb); | ||
| + | } | ||
| + | |||
| + | / | ||
| + | |||
| + | # | ||
| + | color: var(--text, #000); | ||
| + | background-color: | ||
| + | } | ||
| + | |||
| + | # | ||
| + | font-size: 85%; | ||
| + | background-color: | ||
| + | } | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | background-color: | ||
| + | border: 1px solid var(--border,# | ||
| + | color: var(--text,# | ||
| + | } | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | background-color: | ||
| + | border: 1px solid var(--border,# | ||
| + | color: var(--text,# | ||
| + | } | ||
| + | |||
| + | # | ||
| + | background-color: | ||
| + | color: var(--text, #333); | ||
| + | border-bottom: | ||
| + | } | ||
| + | |||
| + | # | ||
| + | background-color: | ||
| + | } | ||
| + | |||
| + | # | ||
| + | color: var(--text, #000); | ||
| + | background-color: | ||
| + | } | ||
| + | |||
| + | # | ||
| + | background-color: | ||
| + | border: 1px solid var(--text_alt, | ||
| + | } | ||
| + | |||
| + | # | ||
| + | background-color: | ||
| + | } | ||
| / | / | ||
| Ligne 45: | Ligne 127: | ||
| font-weight: | font-weight: | ||
| padding: 0; | padding: 0; | ||
| - | line-height: | + | line-height: |
| clear: left; /* ideally ' | clear: left; /* ideally ' | ||
| } | } | ||
| Ligne 60: | Ligne 142: | ||
| font-size: 2em; | font-size: 2em; | ||
| margin: 0 0 0.444em; | margin: 0 0 0.444em; | ||
| + | border-bottom: | ||
| } | } | ||
| h2 { | h2 { | ||
| font-size: 1.5em; | font-size: 1.5em; | ||
| - | margin: | + | margin: |
| + | border-bottom: | ||
| } | } | ||
| h3 { | h3 { | ||
| font-size: 1.125em; | font-size: 1.125em; | ||
| - | margin: | + | margin: |
| } | } | ||
| h4 { | h4 { | ||
| font-size: 1em; | font-size: 1em; | ||
| - | margin: 0 0 1.0em; | + | margin: |
| } | } | ||
| h5 { | h5 { | ||
| font-size: .875em; | font-size: .875em; | ||
| - | margin: 0 0 1.1428em; | + | margin: |
| } | } | ||
| h6 { | h6 { | ||
| font-size: .75em; | font-size: .75em; | ||
| - | margin: 0 0 1.333em; | + | margin: |
| } | } | ||
| /* bottom margin = 1 / font-size */ | /* bottom margin = 1 / font-size */ | ||
| Ligne 98: | Ligne 182: | ||
| fieldset, | fieldset, | ||
| address { | address { | ||
| - | margin: 0 0 1.4em 0; /* bottom margin = line-height */ | + | margin: 0 0 0.6em 0; |
| padding: 0; | padding: 0; | ||
| } | } | ||
| Ligne 149: | Ligne 233: | ||
| } | } | ||
| - | ul { list-style: | + | ul { list-style: |
| ol { list-style: decimal outside; } | ol { list-style: decimal outside; } | ||
| ol ol { list-style-type: | ol ol { list-style-type: | ||
| - | ol ol ol { list-style-type: | + | ol ol ol { list-style-type: |
| - | ol ol ol ol { list-style-type: | + | ol ol ol ol { list-style-type: |
| - | ol ol ol ol ol { list-style-type: | + | ol ol ol ol ol { list-style-type: |
| Ligne 163: | Ligne 247: | ||
| empty-cells: | empty-cells: | ||
| border-spacing: | border-spacing: | ||
| - | border: 1px solid @ini_border; | + | border: 1px solid var(--border, |
| } | } | ||
| Ligne 179: | Ligne 263: | ||
| margin: 0; | margin: 0; | ||
| vertical-align: | vertical-align: | ||
| - | border: 1px solid @ini_border; | + | border: 1px solid var(--border, |
| } | } | ||
| th { | th { | ||
| font-weight: | font-weight: | ||
| - | background-color: | + | background-color: |
| text-align: left; | text-align: left; | ||
| } | } | ||
| Ligne 199: | Ligne 283: | ||
| a:visited { | a:visited { | ||
| text-decoration: | text-decoration: | ||
| - | color: | + | color: |
| } | } | ||
| a: | a: | ||
| Ligne 216: | Ligne 300: | ||
| border-width: | border-width: | ||
| vertical-align: | vertical-align: | ||
| - | color: #666; | + | color: |
| background-color: | background-color: | ||
| font-style: italic; | font-style: italic; | ||
| - | | + | |
| } | } | ||
| video { | video { | ||
| Ligne 234: | Ligne 318: | ||
| button img { | button img { | ||
| max-width: none; | max-width: none; | ||
| - | } | ||
| - | table img { | ||
| - | max-width: 50vw; | ||
| } | } | ||
| hr { | hr { | ||
| - | border-top: solid @ini_border; | + | border-top: solid var(--border, |
| - | border-bottom: | + | border-bottom: |
| border-width: | border-width: | ||
| height: 0; | height: 0; | ||
| Ligne 252: | Ligne 333: | ||
| cursor: help; | cursor: help; | ||
| border-bottom: | border-bottom: | ||
| - | text-decoration: | ||
| font-style: normal; | font-style: normal; | ||
| } | } | ||
| Ligne 261: | Ligne 341: | ||
| mark { | mark { | ||
| - | background-color: | + | background-color: |
| color: inherit; | color: inherit; | ||
| } | } | ||
| - | pre, | ||
| code, | code, | ||
| samp, | samp, | ||
| Ligne 271: | Ligne 350: | ||
| font-family: | font-family: | ||
| /* same font stack should be used for " | /* same font stack should be used for " | ||
| - | font-size: | + | font-size: |
| direction: ltr; | direction: ltr; | ||
| text-align: left; | text-align: left; | ||
| - | background-color: | + | background-color: |
| - | color: | + | color: |
| - | box-shadow: | + | box-shadow: |
| border-radius: | border-radius: | ||
| + | padding: 1.5px 4px 1.5px 4px; | ||
| } | } | ||
| + | |||
| pre { | pre { | ||
| + | font-family: | ||
| + | /* same font stack should be used for " | ||
| + | font-size: 1em; | ||
| + | direction: ltr; | ||
| + | text-align: left; | ||
| + | background-color: | ||
| + | color: var(--text, #333); | ||
| + | box-shadow: none; | ||
| + | border-radius: | ||
| overflow: auto; | overflow: auto; | ||
| word-wrap: normal; | word-wrap: normal; | ||
| - | border: 1px solid @ini_border; | + | border: 1px solid var(--border, |
| border-radius: | border-radius: | ||
| - | box-shadow: | + | box-shadow: |
| padding: .7em 1em; | padding: .7em 1em; | ||
| } | } | ||
| Ligne 290: | Ligne 380: | ||
| blockquote { | blockquote { | ||
| padding: 0 .5em; | padding: 0 .5em; | ||
| - | border: solid @ini_border; | + | border: solid var(--border, |
| border-width: | border-width: | ||
| } | } | ||
| Ligne 315: | Ligne 405: | ||
| small { | small { | ||
| font-size: .8em; | font-size: .8em; | ||
| - | } | ||
| - | |||
| - | wbr { | ||
| - | display: inline-block; | ||
| } | } | ||
| Ligne 333: | Ligne 419: | ||
| padding: .7em 1em 0; | padding: .7em 1em 0; | ||
| padding: .7rem 1rem; /* for those browsers understanding :last-child */ | padding: .7rem 1rem; /* for those browsers understanding :last-child */ | ||
| - | border: 1px solid @ini_text_alt; | + | border: 1px solid var(--text_alt, |
| } | } | ||
| fieldset > :last-child { | fieldset > :last-child { | ||
| Ligne 359: | Ligne 445: | ||
| font: inherit; | font: inherit; | ||
| font-weight: | font-weight: | ||
| - | color: #333; | + | color: |
| - | background-color: | + | background-color: |
| line-height: | line-height: | ||
| margin: 0; | margin: 0; | ||
| Ligne 377: | Ligne 463: | ||
| font-style: normal; | font-style: normal; | ||
| font-weight: | font-weight: | ||
| - | } | ||
| - | option: | ||
| - | background-color: | ||
| } | } | ||
| Ligne 386: | Ligne 469: | ||
| select, | select, | ||
| keygen { | keygen { | ||
| - | border: 1px solid #ccc; | + | border: 1px solid var(--border, |
| - | box-shadow: | + | box-shadow: |
| border-radius: | border-radius: | ||
| } | } | ||
| Ligne 416: | Ligne 499: | ||
| button, | button, | ||
| .qq-upload-button { | .qq-upload-button { | ||
| - | color: | + | color: |
| - | background-color: #eee; | + | background-color: var(--background_alt, #eee); |
| - | background-image: url(data: | + | border: 1px solid var(--border, |
| - | background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #eeeeee 99%, #cccccc 99%); | + | |
| - | border: 1px solid #ccc; | + | |
| border-radius: | border-radius: | ||
| padding: .1em .5em; | padding: .1em .5em; | ||
| Ligne 445: | Ligne 526: | ||
| button: | button: | ||
| .qq-upload-button: | .qq-upload-button: | ||
| - | border-color: | + | border-color: |
| - | background-color: | + | background-color: var(--background_neu, #ddd); |
| - | background-image:url(data: | + | |
| - | background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #dddddd 99%, #bbbbbb 99%); | + | |
| } | } | ||
| Ligne 468: | Ligne 547: | ||
| cursor: auto; | cursor: auto; | ||
| opacity: .5; | opacity: .5; | ||
| - | background-color: | + | background-color: |
| + | color: var(--text_alt, | ||
| } | } | ||