From 88ad9b8a53721813deea7c6dadbe812b52f9e491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Tue, 8 Sep 2015 20:25:50 +0800 Subject: [PATCH] Misc fixes --- botan-start.py | 2 +- .../src/Astro/Blog/Components/Entry/Tag.css | 2 +- .../Components/ToggleButton/DeleteArticle.css | 1 + .../Blog/Components/ToggleButton/_this.css | 2 +- .../Astro/Blog/Components/VerticalNote.css | 2 - botanjs/src/Astro/Blog/Element/Header.css | 42 ++++++++++++++++++- settings.ini | 2 +- 7 files changed, 45 insertions(+), 8 deletions(-) diff --git a/botan-start.py b/botan-start.py index 4e9fce3..157a66a 100755 --- a/botan-start.py +++ b/botan-start.py @@ -65,7 +65,7 @@ if __name__ == "__main__": , "beat" , "-l" , "info" - ]).communicate() + ]) WebAPI( jsCache = config["Paths"]["Cache"] diff --git a/botanjs/src/Astro/Blog/Components/Entry/Tag.css b/botanjs/src/Astro/Blog/Components/Entry/Tag.css index 8ed0d8b..7b92c6a 100644 --- a/botanjs/src/Astro/Blog/Components/Entry/Tag.css +++ b/botanjs/src/Astro/Blog/Components/Entry/Tag.css @@ -24,7 +24,7 @@ ul.n-archive h4 { } ul.n-archive a { - color: #777; + color: #666; width: 100%; display: inline-block; diff --git a/botanjs/src/Astro/Blog/Components/ToggleButton/DeleteArticle.css b/botanjs/src/Astro/Blog/Components/ToggleButton/DeleteArticle.css index 74ee3cc..02e743d 100644 --- a/botanjs/src/Astro/Blog/Components/ToggleButton/DeleteArticle.css +++ b/botanjs/src/Astro/Blog/Components/ToggleButton/DeleteArticle.css @@ -28,6 +28,7 @@ width: 100%; height: 100%; text-align: center; + padding-top: 0.15em; top: 0; right: 0; } diff --git a/botanjs/src/Astro/Blog/Components/ToggleButton/_this.css b/botanjs/src/Astro/Blog/Components/ToggleButton/_this.css index 3034041..93265de 100644 --- a/botanjs/src/Astro/Blog/Components/ToggleButton/_this.css +++ b/botanjs/src/Astro/Blog/Components/ToggleButton/_this.css @@ -34,7 +34,7 @@ text-align: center; position: absolute; - font-size: 1.2em; + padding-top: 0.15em; width: 100%; height: 100%; diff --git a/botanjs/src/Astro/Blog/Components/VerticalNote.css b/botanjs/src/Astro/Blog/Components/VerticalNote.css index 4cdd177..6d9c556 100644 --- a/botanjs/src/Astro/Blog/Components/VerticalNote.css +++ b/botanjs/src/Astro/Blog/Components/VerticalNote.css @@ -1,7 +1,5 @@ .vsign { position: relative; - overflow-x: scroll; - overflow-y: hidden; } .vertical-text { float: right; diff --git a/botanjs/src/Astro/Blog/Element/Header.css b/botanjs/src/Astro/Blog/Element/Header.css index 9774ba9..4bb9637 100644 --- a/botanjs/src/Astro/Blog/Element/Header.css +++ b/botanjs/src/Astro/Blog/Element/Header.css @@ -62,6 +62,16 @@ header { text-align: center; } +.contact:before { + content: ""; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + background-color: rgba( 255, 255, 255, 0.6 ); +} + .begin-wrapper:before { content: ""; position: absolute; @@ -70,10 +80,11 @@ header { height: 100%; width: 100%; - background-image: url(http://file.astropenguin.net/blog/layout-images/home.png); + background-image: url(http://file.astropenguin.net/blog/layout-images/home-blur.png); background-position: 50% 0; background-repeat: no-repeat; - opacity: 0.2; + + opacity: 0.6; } .contact-wrapper { @@ -99,6 +110,33 @@ header { margin-bottom: 0.5em; } +.contact-form textarea, .contact-form input { + background-color: rgba( 0, 0, 0, 0.1 ); + padding: 0.5em; + font-size: 0.8em; +} + +.contact-form ::-webkit-input-placeholder { /* WebKit, Blink, Edge */ + color: #AAA;; +} +.contact-form :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ + color: #AAA;; + opacity: 1; +} +.contact-form ::-moz-placeholder { /* Mozilla Firefox 19+ */ + color: #AAA;; + opacity: 1; +} +.contact-form :-ms-input-placeholder { /* Internet Explorer 10-11 */ + color: #AAA;; +} + +.contact-form textarea:hover, .contact-form input:hover +, .contact-form textarea:focus, .contact-form input:focus { + color: white; + background-color: rgba( 0, 0, 0, 0.5 ); +} + .contact-form > input[type="submit"] { width: auto; } diff --git a/settings.ini b/settings.ini index 42409f5..fba8f52 100644 --- a/settings.ini +++ b/settings.ini @@ -9,7 +9,7 @@ SrcDir = ${Paths:Runtime}/botanjs/src REDIS_PASS = RJszCzFoeZaULKyY3w5W0kMVF4Ei5ZsqMVexk8wxFzQEYnRuLsdGOkHIAXYe4XNuByZHfbee7GxLsuo9xvEIKdYVpvVRYMUbcf25cuOIWV1sLgxhRv0q9KtH7cLpBroa1BIiqHtbzkd3erenel6siIqyHQxV0jPVFfm0ayCvYmdHiVL1VphBpTSnAX8JNvR2Iim5Q7aGiDpLxQD0nnnc1uQuJjwBNA3jkjddMMvHgN8iYleq4SA2xycqNNFzejlT -CeleryBroker = redis://:${REDIS_PASS}@192.168.100.98:6379/9 +CeleryBroker = redis://:${REDIS_PASS}@192.168.80.100:6379/9 [Service]