mirror of
https://github.com/rjNemo/rust-web
synced 2026-06-06 02:46:41 +00:00
feat: nice css
This commit is contained in:
parent
07a9e021f3
commit
e42def4f00
1 changed files with 18 additions and 7 deletions
|
|
@ -3,15 +3,24 @@
|
||||||
<head>
|
<head>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
max-width: 650px;
|
max-width: 70ch;
|
||||||
margin: 40px auto;
|
margin: auto;
|
||||||
padding: 0 10px;
|
padding: 3em 1em;
|
||||||
font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
line-height: 1.75;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
|
font-size: 1.25em;
|
||||||
color: #444
|
color: #444
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
line-height: 1.2
|
line-height: 1.2;
|
||||||
|
margin: 3em 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
p, ul, ol {
|
||||||
|
margin-bottom: 2em;
|
||||||
|
color: #1d1d1d;
|
||||||
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
|
|
@ -38,7 +47,9 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Rust client</h1>
|
<h1>Rust client</h1>
|
||||||
<pre id="result"></pre>
|
<pre id="result">
|
||||||
|
hi
|
||||||
|
</pre>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
const consoleSignatureStyle = "font-size: 16px;" +
|
const consoleSignatureStyle = "font-size: 16px;" +
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue