From 61cbbee16ca08bd652d6e3eab75706248be63a4c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 29 Sep 2020 16:43:41 +0530 Subject: css: refactor --- assets/css/profile-mode.css | 61 +++++++++++++++++++++++++++++++++++++++++++++ assets/css/profileMode.css | 61 --------------------------------------------- layouts/partials/head.html | 2 +- 3 files changed, 62 insertions(+), 62 deletions(-) create mode 100644 assets/css/profile-mode.css delete mode 100644 assets/css/profileMode.css diff --git a/assets/css/profile-mode.css b/assets/css/profile-mode.css new file mode 100644 index 0000000..94cc145 --- /dev/null +++ b/assets/css/profile-mode.css @@ -0,0 +1,61 @@ +.main { + text-align: center; + display: table; +} + +.main>.profile { + display: table-cell; + vertical-align: middle; +} + +.main>.profile>.profile_inner { + transform: translate(0, -10%); +} + +.profile_inner h1 { + padding: 12px 0; +} + +img { + display: inline-table; + width: 180px; + border-radius: 50%; + pointer-events: none; +} + +@media screen and (max-width: 600px) { + img { + width: 150px; + } + .main>.profile>.profile_inner { + transform: translate(0, 0); + } +} + +.social-icons { + padding: 12px 0; +} + +.buttons { + display: flex; + flex-wrap: wrap; + justify-content: center; + max-width: 400px; + margin: 0 auto; +} + +.button { + background: var(--tertiary); + border-radius: var(--radius); + margin: 8px; + padding: 6px; + transition: transform 0.1s; +} + +.button-inner { + padding: 0 8px; +} + +.button:active, .social-icons>a>svg:hover{ + transform: scale(0.96); +} \ No newline at end of file diff --git a/assets/css/profileMode.css b/assets/css/profileMode.css deleted file mode 100644 index 94cc145..0000000 --- a/assets/css/profileMode.css +++ /dev/null @@ -1,61 +0,0 @@ -.main { - text-align: center; - display: table; -} - -.main>.profile { - display: table-cell; - vertical-align: middle; -} - -.main>.profile>.profile_inner { - transform: translate(0, -10%); -} - -.profile_inner h1 { - padding: 12px 0; -} - -img { - display: inline-table; - width: 180px; - border-radius: 50%; - pointer-events: none; -} - -@media screen and (max-width: 600px) { - img { - width: 150px; - } - .main>.profile>.profile_inner { - transform: translate(0, 0); - } -} - -.social-icons { - padding: 12px 0; -} - -.buttons { - display: flex; - flex-wrap: wrap; - justify-content: center; - max-width: 400px; - margin: 0 auto; -} - -.button { - background: var(--tertiary); - border-radius: var(--radius); - margin: 8px; - padding: 6px; - transition: transform 0.1s; -} - -.button-inner { - padding: 0 8px; -} - -.button:active, .social-icons>a>svg:hover{ - transform: scale(0.96); -} \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8e82a28..add9497 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -32,7 +32,7 @@ {{- if (and (.Site.Params.profileMode.enabled) (.IsHome)) }} -{{- $profileMode := resources.Get "css/profileMode.css" | minify | fingerprint }} +{{- $profileMode := resources.Get "css/profile-mode.css" | minify | fingerprint }} {{- end }} -- cgit v1.2.3