From 26cf5364eeb5c2d3fcd8a09aca1137b4bdb58513 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 31 Jul 2021 20:18:27 -0300 Subject: [PATCH] fix: copy button Signed-off-by: Carlos Alexandro Becker --- static/styles.css | 23 ++++++++++++++--------- static/templates/index.html | 32 ++++++++++++++++++++++++-------- 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/static/styles.css b/static/styles.css index bc77a84..2e1e26b 100644 --- a/static/styles.css +++ b/static/styles.css @@ -108,11 +108,19 @@ div.main>form>input[type=text] { border-radius: 4px; box-sizing: border-box; font-family: inherit; - font-size: 1rem; + font-size: 1rem; color: #555; } -div.main>form>input[type=submit] { + +p.error { + color: #e76060; + font-weight: bold; + margin-top: 1em; + margin-bottom: 1em; +} + +.btn { width: 100%; background-color: #3F3D56; color: white; @@ -122,13 +130,10 @@ div.main>form>input[type=submit] { border-radius: 4px; cursor: pointer; font-family: inherit; - font-size: 1rem; - font-weight: 450; + font-size: 1rem; + font-weight: 450; } -p.error { - color: #e76060; - font-weight: bold; - margin-top: 1em; - margin-bottom: 1em; +.btn.copy-btn { + margin-top: -20px; } diff --git a/static/templates/index.html b/static/templates/index.html index f65c697..d333279 100644 --- a/static/templates/index.html +++ b/static/templates/index.html @@ -13,8 +13,10 @@ Star Charts - - + + @@ -23,7 +25,7 @@ starcharts Plot your repository stars over time. - {{ if .FullName }} + {{ with .Details }}

{{ if .StargazersCount }} @@ -48,11 +50,14 @@ You can include the chart on your repository's README.md as follows: -


+
+
 ## Stargazers over time
 
 [![Stargazers over time](https://starchart.cc/{{ .FullName }}.svg)](https://starchart.cc/{{ .FullName }})
-      
+
+ +

{{ end }} - - + + + +