From 34836f7703d4cead049136b3714e3809b6ca35df Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 4 Jan 2020 04:59:09 +0800 Subject: [PATCH] Beautified sidebar in x-large screens. screen width >= 1650px --- _includes/sidebar.html | 2 +- assets/css/main.scss | 31 +++++++++++++++++++------------ 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 6f75601..c35d615 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -43,7 +43,7 @@ {% if item.url == page_urls.last or item.name == "Home" and page.layout == "home" %}active{% endif %}"> - + {{ item.name | upcase }} diff --git a/assets/css/main.scss b/assets/css/main.scss index fc32cbe..b00d753 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -1249,24 +1249,30 @@ div.tooltip-inner { /* Overrided BS4 Tooltip */ width: 350px; } + #sidebar ul { + margin-left: 5%; + } + #profile-wrapper { margin-top: 4rem; - margin-bottom: 5rem; + margin-bottom: 3rem; + padding-left: 18%; -ms-flex-direction: column!important; - flex-direction: row!important; } #avatar { - margin-left: 2.5rem; + -webkit-box-pack: normal !important; + -ms-flex-pack: normal !important; + justify-content: normal !important; } - #avatar>a { - width: 5rem; - height: 5rem; + #avatar > a { + width: 6.2rem; + height: 6.2rem; } .profile-text { - margin-top: 0!important; + padding-left: .5rem; /* .d-flex */ display: -webkit-box!important; display: -ms-flexbox!important; @@ -1280,18 +1286,19 @@ div.tooltip-inner { /* Overrided BS4 Tooltip */ } #site-title a { - text-transform: uppercase; + font-size: 1.7rem; + letter-spacing: 1px; } .profile-text>div { text-align: left !important; - margin-left: .8rem !important; + width: 100%; } #site-subtitle { word-spacing: 0; - margin-top: .3rem; - margin-bottom: 0; + padding-right: 3rem; + margin: .3rem 0 0 0; } #sidebar ul>li>a { @@ -1317,7 +1324,7 @@ div.tooltip-inner { /* Overrided BS4 Tooltip */ } .contact { - margin-left: 2.5rem; + margin-left: 3.5rem; margin-right: 4.5rem; font-size: 1.3rem; padding-bottom: 1rem;