From b64ae6fe1af2fc6302b10ee0ca0dcee8afaf902b Mon Sep 17 00:00:00 2001 From: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com> Date: Sat, 22 May 2021 16:37:02 +0800 Subject: [PATCH 1/5] Add pink color theme --- css/sakura-pink.css | 184 ++++++++++++++++++++++++++++++++++++++++++ scss/sakura-pink.scss | 13 +++ 2 files changed, 197 insertions(+) create mode 100644 css/sakura-pink.css create mode 100644 scss/sakura-pink.scss diff --git a/css/sakura-pink.css b/css/sakura-pink.css new file mode 100644 index 0000000..7f4f06f --- /dev/null +++ b/css/sakura-pink.css @@ -0,0 +1,184 @@ +/* Sakura.css v1.3.1 + * ================ + * Minimal css theme. + * Project: https://github.com/oxalorg/sakura/ + */ +/* Body */ +html { + font-size: 62.5%; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; } + +body { + font-size: 1.8rem; + line-height: 1.618; + max-width: 38em; + margin: auto; + color: #49002d; + background-color: #f3e1ec; + padding: 13px; } + +@media (max-width: 684px) { + body { + font-size: 1.53rem; } } + +@media (max-width: 382px) { + body { + font-size: 1.35rem; } } + +h1, h2, h3, h4, h5, h6 { + line-height: 1.1; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; + font-weight: 700; + margin-top: 3rem; + margin-bottom: 1.5rem; + overflow-wrap: break-word; + word-wrap: break-word; + -ms-word-break: break-all; + word-break: break-word; } + +h1 { + font-size: 2.35em; } + +h2 { + font-size: 2.00em; } + +h3 { + font-size: 1.75em; } + +h4 { + font-size: 1.5em; } + +h5 { + font-size: 1.25em; } + +h6 { + font-size: 1em; } + +p { + margin-top: 0px; + margin-bottom: 2.5rem; } + +small, sub, sup { + font-size: 75%; } + +hr { + border-color: #49182f; } + +a { + text-decoration: none; + color: #49182f; } + a:hover { + color: #c75a8f; + border-bottom: 2px solid #49002d; } + a:visited { + color: #230b16; } + +ul { + padding-left: 1.4em; + margin-top: 0px; + margin-bottom: 2.5rem; } + +li { + margin-bottom: 0.4em; } + +blockquote { + margin-left: 0px; + margin-right: 0px; + padding-left: 1em; + padding-top: 0.8em; + padding-bottom: 0.8em; + padding-right: 0.8em; + border-left: 5px solid #49182f; + margin-bottom: 2.5rem; + background-color: #e6cadb; } + +blockquote p { + margin-bottom: 0; } + +img, video { + height: auto; + max-width: 100%; + margin-top: 0px; + margin-bottom: 2.5rem; } + +/* Pre and Code */ +pre { + background-color: #e6cadb; + display: block; + padding: 1em; + overflow-x: auto; + margin-top: 0px; + margin-bottom: 2.5rem; } + +code { + font-size: 0.9em; + padding: 0 0.5em; + background-color: #e6cadb; + white-space: pre-wrap; } + +pre > code { + padding: 0; + background-color: transparent; + white-space: pre; } + +/* Tables */ +table { + text-align: justify; + width: 100%; + border-collapse: collapse; } + +td, th { + padding: 0.5em; + border-bottom: 1px solid #e6cadb; } + +/* Buttons, forms and input */ +input, textarea { + border: 1px solid #49002d; } + input:focus, textarea:focus { + border: 1px solid #49182f; } + +textarea { + width: 100%; } + +.button, button, input[type="submit"], input[type="reset"], input[type="button"] { + display: inline-block; + padding: 5px 10px; + text-align: center; + text-decoration: none; + white-space: nowrap; + background-color: #49182f; + color: #f3e1ec; + border-radius: 1px; + border: 1px solid #49182f; + cursor: pointer; + box-sizing: border-box; } + .button[disabled], button[disabled], input[type="submit"][disabled], input[type="reset"][disabled], input[type="button"][disabled] { + cursor: default; + opacity: .5; } + .button:focus:enabled, .button:hover:enabled, button:focus:enabled, button:hover:enabled, input[type="submit"]:focus:enabled, input[type="submit"]:hover:enabled, input[type="reset"]:focus:enabled, input[type="reset"]:hover:enabled, input[type="button"]:focus:enabled, input[type="button"]:hover:enabled { + background-color: #c75a8f; + border-color: #c75a8f; + color: #f3e1ec; + outline: 0; } + +textarea, select, input { + color: #49002d; + padding: 6px 10px; + /* The 6px vertically centers text on FF, ignored by Webkit */ + margin-bottom: 10px; + background-color: #e6cadb; + border: 1px solid #e6cadb; + border-radius: 4px; + box-shadow: none; + box-sizing: border-box; } + textarea:focus, select:focus, input:focus { + border: 1px solid #49182f; + outline: 0; } + +input[type="checkbox"]:focus { + outline: 1px dotted #49182f; } + +label, legend, fieldset { + display: block; + margin-bottom: .5rem; + font-weight: 600; } diff --git a/scss/sakura-pink.scss b/scss/sakura-pink.scss new file mode 100644 index 0000000..d3bbf95 --- /dev/null +++ b/scss/sakura-pink.scss @@ -0,0 +1,13 @@ +$color-blossom: #49182f; +$color-fade: #c75a8f; + +$color-bg: #f3e1ec; +$color-bg-alt: #e6cadb; + +$color-text: #49002d; +$font-size-base: 1.8rem; + +$font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; +$font-family-heading: $font-family-base; + +@import "main"; From 1ec5732268eb0d2ad90072b01f922aeb66096d56 Mon Sep 17 00:00:00 2001 From: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com> Date: Sat, 22 May 2021 16:41:53 +0800 Subject: [PATCH 2/5] Add reinforce.moe to sites using sakura --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2d33ecf..6aefd08 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,7 @@ to reset *before* using sakura. * [https://mousikofidi.info/](https://mousikofidi.info/) * [https://ocamlbook.org](https://ocamlbook.org) * [https://monkeyjunglejuice.github.io](https://monkeyjunglejuice.github.io) +* [https://reinforce.moe/about-en.md](https://reinforce.moe/about-en.md) ***If you're using sakura, please let me know or make a pull request adding in your name. I would be super happy!! `^_^`*** From 7249d84e1f1209abdaaaac7a2d45631b99fe06fb Mon Sep 17 00:00:00 2001 From: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com> Date: Sat, 22 May 2021 17:24:06 +0800 Subject: [PATCH 3/5] Adjust background color --- css/sakura-pink.css | 18 +++++++++--------- scss/sakura-pink.scss | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/css/sakura-pink.css b/css/sakura-pink.css index 7f4f06f..944b409 100644 --- a/css/sakura-pink.css +++ b/css/sakura-pink.css @@ -14,7 +14,7 @@ body { max-width: 38em; margin: auto; color: #49002d; - background-color: #f3e1ec; + background-color: #ffe4f5; padding: 13px; } @media (max-width: 684px) { @@ -90,7 +90,7 @@ blockquote { padding-right: 0.8em; border-left: 5px solid #49182f; margin-bottom: 2.5rem; - background-color: #e6cadb; } + background-color: #f9c9e6; } blockquote p { margin-bottom: 0; } @@ -103,7 +103,7 @@ img, video { /* Pre and Code */ pre { - background-color: #e6cadb; + background-color: #f9c9e6; display: block; padding: 1em; overflow-x: auto; @@ -113,7 +113,7 @@ pre { code { font-size: 0.9em; padding: 0 0.5em; - background-color: #e6cadb; + background-color: #f9c9e6; white-space: pre-wrap; } pre > code { @@ -129,7 +129,7 @@ table { td, th { padding: 0.5em; - border-bottom: 1px solid #e6cadb; } + border-bottom: 1px solid #f9c9e6; } /* Buttons, forms and input */ input, textarea { @@ -147,7 +147,7 @@ textarea { text-decoration: none; white-space: nowrap; background-color: #49182f; - color: #f3e1ec; + color: #ffe4f5; border-radius: 1px; border: 1px solid #49182f; cursor: pointer; @@ -158,7 +158,7 @@ textarea { .button:focus:enabled, .button:hover:enabled, button:focus:enabled, button:hover:enabled, input[type="submit"]:focus:enabled, input[type="submit"]:hover:enabled, input[type="reset"]:focus:enabled, input[type="reset"]:hover:enabled, input[type="button"]:focus:enabled, input[type="button"]:hover:enabled { background-color: #c75a8f; border-color: #c75a8f; - color: #f3e1ec; + color: #ffe4f5; outline: 0; } textarea, select, input { @@ -166,8 +166,8 @@ textarea, select, input { padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */ margin-bottom: 10px; - background-color: #e6cadb; - border: 1px solid #e6cadb; + background-color: #f9c9e6; + border: 1px solid #f9c9e6; border-radius: 4px; box-shadow: none; box-sizing: border-box; } diff --git a/scss/sakura-pink.scss b/scss/sakura-pink.scss index d3bbf95..d7dabe5 100644 --- a/scss/sakura-pink.scss +++ b/scss/sakura-pink.scss @@ -1,8 +1,8 @@ $color-blossom: #49182f; $color-fade: #c75a8f; -$color-bg: #f3e1ec; -$color-bg-alt: #e6cadb; +$color-bg: #ffe4f5; +$color-bg-alt: #f9c9e6; $color-text: #49002d; $font-size-base: 1.8rem; From a1ba64de3f22e2577b197d015c0a2475b9f1d2d3 Mon Sep 17 00:00:00 2001 From: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com> Date: Sat, 22 May 2021 17:29:00 +0800 Subject: [PATCH 4/5] Adjust alt background color --- css/sakura-pink.css | 12 ++++++------ scss/sakura-pink.scss | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/css/sakura-pink.css b/css/sakura-pink.css index 944b409..60f9d27 100644 --- a/css/sakura-pink.css +++ b/css/sakura-pink.css @@ -90,7 +90,7 @@ blockquote { padding-right: 0.8em; border-left: 5px solid #49182f; margin-bottom: 2.5rem; - background-color: #f9c9e6; } + background-color: #f8d2e9; } blockquote p { margin-bottom: 0; } @@ -103,7 +103,7 @@ img, video { /* Pre and Code */ pre { - background-color: #f9c9e6; + background-color: #f8d2e9; display: block; padding: 1em; overflow-x: auto; @@ -113,7 +113,7 @@ pre { code { font-size: 0.9em; padding: 0 0.5em; - background-color: #f9c9e6; + background-color: #f8d2e9; white-space: pre-wrap; } pre > code { @@ -129,7 +129,7 @@ table { td, th { padding: 0.5em; - border-bottom: 1px solid #f9c9e6; } + border-bottom: 1px solid #f8d2e9; } /* Buttons, forms and input */ input, textarea { @@ -166,8 +166,8 @@ textarea, select, input { padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */ margin-bottom: 10px; - background-color: #f9c9e6; - border: 1px solid #f9c9e6; + background-color: #f8d2e9; + border: 1px solid #f8d2e9; border-radius: 4px; box-shadow: none; box-sizing: border-box; } diff --git a/scss/sakura-pink.scss b/scss/sakura-pink.scss index d7dabe5..c2fdf22 100644 --- a/scss/sakura-pink.scss +++ b/scss/sakura-pink.scss @@ -2,7 +2,7 @@ $color-blossom: #49182f; $color-fade: #c75a8f; $color-bg: #ffe4f5; -$color-bg-alt: #f9c9e6; +$color-bg-alt: #f8d2e9; $color-text: #49002d; $font-size-base: 1.8rem; From cef07fafd920e5bc22a69ad86714cb8462b0a4e2 Mon Sep 17 00:00:00 2001 From: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com> Date: Sun, 23 May 2021 15:25:05 +0800 Subject: [PATCH 5/5] Adjust hyperlink color --- css/sakura-pink.css | 24 ++++++++++++------------ scss/sakura-pink.scss | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/css/sakura-pink.css b/css/sakura-pink.css index 60f9d27..8c5b20e 100644 --- a/css/sakura-pink.css +++ b/css/sakura-pink.css @@ -62,16 +62,16 @@ small, sub, sup { font-size: 75%; } hr { - border-color: #49182f; } + border-color: #980255; } a { text-decoration: none; - color: #49182f; } + color: #980255; } a:hover { - color: #c75a8f; + color: #753851; border-bottom: 2px solid #49002d; } a:visited { - color: #230b16; } + color: #660139; } ul { padding-left: 1.4em; @@ -88,7 +88,7 @@ blockquote { padding-top: 0.8em; padding-bottom: 0.8em; padding-right: 0.8em; - border-left: 5px solid #49182f; + border-left: 5px solid #980255; margin-bottom: 2.5rem; background-color: #f8d2e9; } @@ -135,7 +135,7 @@ td, th { input, textarea { border: 1px solid #49002d; } input:focus, textarea:focus { - border: 1px solid #49182f; } + border: 1px solid #980255; } textarea { width: 100%; } @@ -146,18 +146,18 @@ textarea { text-align: center; text-decoration: none; white-space: nowrap; - background-color: #49182f; + background-color: #980255; color: #ffe4f5; border-radius: 1px; - border: 1px solid #49182f; + border: 1px solid #980255; cursor: pointer; box-sizing: border-box; } .button[disabled], button[disabled], input[type="submit"][disabled], input[type="reset"][disabled], input[type="button"][disabled] { cursor: default; opacity: .5; } .button:focus:enabled, .button:hover:enabled, button:focus:enabled, button:hover:enabled, input[type="submit"]:focus:enabled, input[type="submit"]:hover:enabled, input[type="reset"]:focus:enabled, input[type="reset"]:hover:enabled, input[type="button"]:focus:enabled, input[type="button"]:hover:enabled { - background-color: #c75a8f; - border-color: #c75a8f; + background-color: #753851; + border-color: #753851; color: #ffe4f5; outline: 0; } @@ -172,11 +172,11 @@ textarea, select, input { box-shadow: none; box-sizing: border-box; } textarea:focus, select:focus, input:focus { - border: 1px solid #49182f; + border: 1px solid #980255; outline: 0; } input[type="checkbox"]:focus { - outline: 1px dotted #49182f; } + outline: 1px dotted #980255; } label, legend, fieldset { display: block; diff --git a/scss/sakura-pink.scss b/scss/sakura-pink.scss index c2fdf22..87ab414 100644 --- a/scss/sakura-pink.scss +++ b/scss/sakura-pink.scss @@ -1,5 +1,5 @@ -$color-blossom: #49182f; -$color-fade: #c75a8f; +$color-blossom: #980255; +$color-fade: #753851; $color-bg: #ffe4f5; $color-bg-alt: #f8d2e9;