summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-08-29 10:41:20 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-08-29 10:41:20 +0530
commitba6d5c462015f8c5976e78736a8f2f114adc3f5e (patch)
tree46741735cb563a528b3be341ca408a6e2d960444
parentdf457f751477fb44f0737e33fea29130eec32c9f (diff)
profileMode : improve buttons,
add theme transition
-rw-r--r--assets/css/profileMode.css13
-rw-r--r--layouts/partials/indexProfileButtons.html4
2 files changed, 12 insertions, 5 deletions
diff --git a/assets/css/profileMode.css b/assets/css/profileMode.css
index 456438a..98feeb8 100644
--- a/assets/css/profileMode.css
+++ b/assets/css/profileMode.css
@@ -37,17 +37,24 @@ img {
}
.buttons {
+ display: flex;
+ flex-wrap: wrap;
max-width: 300px;
- line-height: 2.8;
+ justify-content: center;
}
.button {
background: var(--tertiary);
border-radius: var(--radius);
margin: 8px;
- padding: 8px;
+ padding: 6px;
+ transition: transform 0.1s;
}
.button-inner {
- padding: 10px;
+ padding: 0 8px;
+}
+
+.button:active, .social-icons>a>svg:active{
+ transform: scale(0.96);
} \ No newline at end of file
diff --git a/layouts/partials/indexProfileButtons.html b/layouts/partials/indexProfileButtons.html
index 43ff716..cfd4109 100644
--- a/layouts/partials/indexProfileButtons.html
+++ b/layouts/partials/indexProfileButtons.html
@@ -1,7 +1,7 @@
{{ range . -}}
-<span class="button">
+<div class="button">
<a href="{{ .url }}" rel="noopener" title="{{ .name | humanize }}">
<span class="button-inner">{{ .name }}</span>
</a>
-</span>
+</div>
{{- end -}} \ No newline at end of file