降低字体尺寸

pull/1/head
韩天峰 3 years ago
parent f7018ddf8e
commit a51e865d7f
  1. 5
      web/include/config.php
  2. 14
      web/include/toolbar.php
  3. 11
      web/public/input.php
  4. 12
      web/public/output.php

@ -0,0 +1,5 @@
<?php
return [
'font-size' => '11',
'line-height' => '200',
];

@ -0,0 +1,14 @@
<?php
$config = include ROOT_PATH . '/include/config.php';
?>
<p style="height: 36px">
风格:
<?php include ROOT_PATH . '/include/style.php'; ?>
字体:
<?php include ROOT_PATH . '/include/font.php'; ?>
字体尺寸:
<input id="inputFontSize" type="number" step="1" value="<?= $config['font-size'] ?>" style="width: 40px;"/>
行高 (%):
<input id="lineHeight" type="number" step="10" value="<?= $config['line-height'] ?>" style="width: 50px;"/>
</p>

@ -33,16 +33,7 @@
<?php
define('ROOT_PATH', dirname(__DIR__));
?>
<p style="height: 36px">
风格:
<?php include ROOT_PATH . '/include/style.php'; ?>
字体:
<?php include ROOT_PATH . '/include/font.php'; ?>
字体尺寸:
<input id="inputFontSize" type="number" step="1" value="12" style="width: 40px;"/>
行高 (%):
<input id="lineHeight" type="number" step="10" value="200" style="width: 50px;"/>
</p>
<?php include ROOT_PATH . '/include/toolbar.php'; ?>
<div id="divCodeWrapper">
<pre><code style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" class="lineNumbers"></code></pre>

@ -33,16 +33,8 @@
<?php
define('ROOT_PATH', dirname(__DIR__));
?>
<p style="height: 36px">
风格:
<?php include ROOT_PATH . '/include/style.php'; ?>
字体:
<?php include ROOT_PATH . '/include/font.php'; ?>
字体尺寸:
<input id="inputFontSize" type="number" step="1" value="12" style="width: 40px;"/>
行高 (%):
<input id="lineHeight" type="number" step="10" value="200" style="width: 50px;"/>
</p>
<?php include ROOT_PATH . '/include/toolbar.php'; ?>
<div id="divCodeWrapper">
<pre><code style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" class="lineNumbers"></code></pre>

Loading…
Cancel
Save