From 0a44536179c5e6fdce71194550cc999dd8331aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Wed, 15 Sep 2021 17:26:10 +0200 Subject: [PATCH] switch spectre by pico.css --- app/public/css/custom.css | 27 ++++++++++++++++++++++++ app/public/index.php | 44 +++++++++++++++++---------------------- 2 files changed, 46 insertions(+), 25 deletions(-) create mode 100644 app/public/css/custom.css diff --git a/app/public/css/custom.css b/app/public/css/custom.css new file mode 100644 index 0000000..f5d38e4 --- /dev/null +++ b/app/public/css/custom.css @@ -0,0 +1,27 @@ + +:root { + --form-element-spacing-vertical: .15rem; + --form-element-spacing-horizontal: 1rem; + --border-radius: .10rem; + --line-height: 1.3; +} + +footer { + text-align: right; +} + +textarea { + height: 80vh; + font-family: monospace; +} + +header button { + margin-top: var(--spacing); +} + +header a { + display: block; + margin-top: var(--spacing); + margin-bottom: var(--spacing); + text-align: center; +} diff --git a/app/public/index.php b/app/public/index.php index b6267db..ac957ee 100644 --- a/app/public/index.php +++ b/app/public/index.php @@ -23,7 +23,7 @@ $buttons = [ $str = $result = $_GET['str'] ?? ''; $action = $_GET['action'] ?? ''; -$help = 'https://www.php.net/manual/en/index.php'; +$help = 'https://www.php.net/manual/'; if ($action == 'reset') { http_response_code(302); @@ -116,44 +116,38 @@ if ($action == 'reset') { - + - Encode/Decode everything - + Decode/Encode everything + - - - + + - +
-
+
$label) { ?> - + - Reset - Help -
+ Reset + Help + -
- -
+
+ +
+ +
- -
- Contact me via email or twitter. Made with pure PHP and Spectre. Code. -