qiuwen-rnrs/css.php

8 行
1.9 KiB
PHP

<?php
function pageCSS()
{
echo <<<EOF
<style>*{margin:0;padding:0}body,html{min-height:100vh}html{width:100%;background:#fff;color:#000;font-family:"Noto Serif","Source Serif","Noto Serif SC","Source Han Serif SC",Times New Roman,Times,STSong,SimSun,serif;line-height:1.75}body{display:flex;margin:0 auto;max-width:83vw;flex-wrap:wrap;flex-direction:column;justify-content:space-between}header{margin:10vh 0 0;padding-bottom:1em;border-bottom:5px solid #36c}a img{border:0}main{display:flex;margin:0 auto;min-width:70vw;flex-wrap:wrap;flex-direction:column}h1{margin-top:.5em;margin-bottom:.5em;font-size:1.25em}p{margin:.5em 0}ul{margin:.5em 0 .5em 2em}li{margin:.25em 0}a{color:#36c;text-decoration:none}a:hover{text-decoration:underline}code{padding:0 .25em;border:1px solid #aaa;border-radius:.25em;background-color:#eee;color:#c3b}em,footer{color:#777;font-style:normal}footer{margin:0 0 10vh;padding-top:1em;border-top:1px solid #eaecf0;font-size:.9em}.footer-links a{margin-right:.5em;white-space:nowrap}.footer-buttons{display:flex;margin-top:.5em;gap:.5em;flex-wrap:wrap;flex-direction:row;justify-content:flex-end}label{display:inline;margin-right:.7em;width:auto}input[type=checkbox]{width:1.25em;height:1.25em}input[type=text]{padding:6px 8px;line-height:1.25}input[type=button],input[type=submit],input[type=text]{border:1px solid #a2a9b1;border-radius:4px;background:#fff;color:#000}input[type=button],input[type=submit]{display:inline-block;box-sizing:border-box;margin:0;padding:5px 12px;max-width:28.75em;min-width:4em;min-height:32px;vertical-align:middle;text-align:center;font-weight:700;font-size:.85em;font-family:inherit;line-height:1.25em;cursor:pointer}input#button_submit{background:#36c;color:#fff}input[type=button][disabled=disabled],input[type=submit][disabled=disabled]{background:#ccc}input[name=checker],input[name=stage],input[name=userid],label[for=checker],label[for=stage],label[for=userid]{display:none}small{font-size:85%}</style>
EOF;
}