From 048aac5fac7e4731e6f96aabe5549f4bc844b6aa Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 6 Sep 2020 20:07:57 +0530 Subject: [PATCH] profile-mode: improvements --- assets/css/profileMode.css | 15 +++++++++------ layouts/partials/indexProfile.html | 15 ++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/assets/css/profileMode.css b/assets/css/profileMode.css index 9efd4adf..94cc1450 100644 --- a/assets/css/profileMode.css +++ b/assets/css/profileMode.css @@ -6,7 +6,6 @@ .main>.profile { display: table-cell; vertical-align: middle; - } .main>.profile>.profile_inner { @@ -14,7 +13,7 @@ } .profile_inner h1 { - padding: 8px; + padding: 12px 0; } img { @@ -22,23 +21,27 @@ img { width: 180px; border-radius: 50%; pointer-events: none; - margin: 5px; } @media screen and (max-width: 600px) { img { - width: 130px; + width: 150px; + } + .main>.profile>.profile_inner { + transform: translate(0, 0); } } .social-icons { - padding: 16px; + padding: 12px 0; } .buttons { display: flex; flex-wrap: wrap; justify-content: center; + max-width: 400px; + margin: 0 auto; } .button { @@ -53,6 +56,6 @@ img { padding: 0 8px; } -.button:active, .social-icons>a>svg:active{ +.button:active, .social-icons>a>svg:hover{ transform: scale(0.96); } \ No newline at end of file diff --git a/layouts/partials/indexProfile.html b/layouts/partials/indexProfile.html index 7757d510..f0202bcf 100644 --- a/layouts/partials/indexProfile.html +++ b/layouts/partials/indexProfile.html @@ -1,21 +1,18 @@
+ {{ with .Site.Params.profileMode }}
- {{if .Site.Params.profileMode.imageUrl}} -
- {{ .Site.Params.profileMode.imageTitle}} -
- {{end}} -

{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}} -

- {{- with .Site.Params.socialIcons }} + {{if .imageUrl}}{{ .imageTitle | default {{end}} +

{{ .title | default $.Site.Title }}

+ {{- with $.Site.Params.socialIcons }} {{- end }} - {{- with .Site.Params.profileMode.buttons }} + {{- with .buttons }}
{{ partial "indexProfileButtons.html" . }}
{{- end }}
+ {{end}}
\ No newline at end of file