From 1a65d7591011868de17f046e04d9c46e69d0d8d1 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Sat, 26 Mar 2022 14:47:09 +0300 Subject: [PATCH] autoformat --- templates/Japanese sentences/template.css | 40 +++++++++++++---------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/templates/Japanese sentences/template.css b/templates/Japanese sentences/template.css index b9a4e65..7cdcf5a 100644 --- a/templates/Japanese sentences/template.css +++ b/templates/Japanese sentences/template.css @@ -48,6 +48,7 @@ .card2 .jpsentence ruby rt { opacity: 0; } + .card2 .jpsentence:hover ruby rt { opacity: 1; } @@ -58,6 +59,7 @@ display: flex; justify-content: center; } + .wrap { width: 800px; padding: 0 5px 0; @@ -66,6 +68,7 @@ border-right: 1px solid #c9bcbc; min-height: 100vh; } + .wrap .wrap { width: auto; padding: 0; @@ -118,7 +121,7 @@ header .tags { border-radius: 0px 0px 3px 3px; } -header > div:not(:last-child) { +header>div:not(:last-child) { margin-right: 3px; } @@ -127,7 +130,7 @@ header > div:not(:last-child) { margin-top: 16px; } -.images > img { +.images>img { margin-bottom: 16px; } @@ -152,7 +155,7 @@ header > div:not(:last-child) { /* English */ -div.ensentence > a.hint { +div.ensentence>a.hint { color: #555; font-size: 14px; display: block; @@ -161,7 +164,8 @@ div.ensentence > a.hint { padding: 2px 10px; margin: 4px 0; } -div.ensentence > a.hint:hover { + +div.ensentence>a.hint:hover { color: #111; background-color: rgba(0, 0, 0, 0.03); } @@ -234,18 +238,18 @@ footer { text-align: center; } -footer > a { +footer>a { text-decoration: none; } -footer > a:after { +footer>a:after { content: "·"; color: brown; display: inline-block; width: 6px; } -footer > a:last-child:after { +footer>a:last-child:after { content: ""; width: 0; } @@ -264,11 +268,11 @@ footer > a:last-child:after { display: none; } -.vocab > .tags { +.vocab>.tags { vertical-align: top; } -.notes > .tags { +.notes>.tags { vertical-align: bottom; } @@ -283,13 +287,13 @@ footer > a:last-child:after { justify-content: space-evenly; } -.images > img { +.images>img { max-width: 47%; border-radius: 4px; filter: sepia(33%); } -.images > img:only-child { +.images>img:only-child { max-width: 100%; } @@ -348,15 +352,15 @@ ol { /* Fix for Yomichan pitch accents */ -.vocab ol > li { +.vocab ol>li { display: inline; } -.vocab ol > li:after { +.vocab ol>li:after { content: "・"; } -.vocab ol > li:last-child:after { +.vocab ol>li:last-child:after { content: ""; } @@ -401,16 +405,16 @@ ol { color: gray; } -.nightMode .images > img { +.nightMode .images>img { filter: sepia(0%); } -.nightMode div.ensentence > a.hint { +.nightMode div.ensentence>a.hint { color: #FFFFFF; border: 1px solid #FFFFFF; } -.nightMode div.ensentence > a.hint:hover { +.nightMode div.ensentence>a.hint:hover { color: gray; background-color: rgba(0, 0, 0, 0.20); } @@ -419,4 +423,4 @@ ol { .jpsentence ruby rt { user-select: none; -} +} \ No newline at end of file