From 3b6db5d8f41a7888af6cb78853931316dc9c3da2 Mon Sep 17 00:00:00 2001 From: "yakumo.izuru" Date: Fri, 20 Oct 2023 00:18:32 +0000 Subject: [PATCH] =?UTF-8?q?I=20<3=20=E3=82=81=E3=81=84=E3=81=99=E3=81=8D?= =?UTF-8?q?=E3=83=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Izuru Yakumo git-svn-id: file:///srv/svn/repo/mai/trunk@54 e410bdd4-646f-c54f-a7ce-fffcc4f439ae --- .gitignore | 2 ++ Makefile | 8 ++++---- static/style.css | 14 ++++++++++---- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index e69de29..71a5fec 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +_build/simplytranslate +*.gz diff --git a/Makefile b/Makefile index 29c2bc6..eb999a5 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,14 @@ PREFIX ?= /usr/local build: - go build -v ./cmd/simplytranslate + mkdir _build + go build -v -o _build/simplytranslate ./cmd/simplytranslate clean: - rm -f simplytranslate + rm -rf _build install: - install -Dm0755 simplytranslate ${DESTDIR}${PREFIX}/bin/simplytranslate + install -Dm0755 _build/simplytranslate ${DESTDIR}${PREFIX}/bin/simplytranslate mkdir -p ${DESTDIR}${PREFIX}/share/simplytranslate cp -R static views ${DESTDIR}${PREFIX}/share/simplytranslate - @echo "Remember to launch the program with -s ${DESTDIR}${PREFIX}/share/simplytranslate/static -t ${DESTDIR}${PREFIX}/share/simplytranslate/views" uninstall: rm -f ${DESTDIR}${PREFIX}/bin/simplytranslate rm -rf ${DESTDIR}${PREFIX}/share/simplytranslate diff --git a/static/style.css b/static/style.css index a0e626f..3ada609 100644 --- a/static/style.css +++ b/static/style.css @@ -1,5 +1,10 @@ +/* +Light theme is based on Lavender (https://github.com/mei23/misskey/blob/mei-m544/src/client/themes/lavender.json5) +while the Dark theme is based on エレガントなお嬢様 (https://github.com/mei23/misskey/blob/mei-m544/src/client/themes/promo.json5) +*/ + body { - background-color: #ffffff; + background-color: #f8cfd2; color: rgb(206, 147, 191); } a { @@ -49,6 +54,8 @@ a:visited { white-space: nowrap; } button { + background-color: #ce93bf; + color: #ffffff; font-size: 1rem; padding: 4px 10px; border: 2px solid #888888; @@ -73,8 +80,8 @@ input:focus, select:focus, textarea:focus, button:focus { - border-color: #478061; - outline: 1px solid #478061; + border-color: #faf4f8; + outline: 1px solid #faf4f8; } @@ -127,7 +134,6 @@ a { text-decoration: none; } @media screen and (prefers-color-scheme: dark) { - /* Loosely based on エレガントなお嬢様 - https://github.com/mei23/misskey/blob/mei-m544/src/client/themes/promo.json5 */ body { background-color: #700000; color: #ffffff;