Skip to content

Commit 41d6c33

Browse files
committed
Optimized sidebar icons location.
screen width >= 1650px
1 parent 290805b commit 41d6c33

2 files changed

Lines changed: 68 additions & 71 deletions

File tree

_includes/sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
</div>
2121

2222
<div class="profile-text mt-3">
23-
<div id="site-title">
23+
<div class="site-title">
2424
<a href="{{ '/' | relative_url }}">{{- site.title -}}</a>
2525
</div>
26-
<div id="site-subtitle" class="font-italic">{{- site.tagline -}}</div>
26+
<div class="site-subtitle font-italic">{{- site.tagline -}}</div>
2727
</div>
2828
</div>
2929

assets/css/_addon/main.scss

Lines changed: 66 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,34 @@ $sidebar-display: "sidebar-display";
7777
overflow-y: auto;
7878
width: $sidebar-width-medium;
7979
z-index: 99;
80-
background: rgb(42, 30, 107);
8180
background: var(--sidebar-bg);
8281
a {
8382
@include sidebar-links;
8483
}
84+
85+
.site-title {
86+
text-align: center;
87+
a {
88+
// color: var(--site-title-color);
89+
font-weight: 900;
90+
font-size: 1.5rem;
91+
letter-spacing: .5px;
92+
&:hover {
93+
color: #fff;
94+
text-decoration: none;
95+
}
96+
}
97+
}
98+
99+
.site-subtitle {
100+
font-size: 95%;
101+
text-align: center;
102+
color: #828282;
103+
line-height: 1.2rem;
104+
word-spacing: 1px;
105+
margin: .5rem 1.5rem 2rem 1.5rem;
106+
}
107+
85108
.sidebar-bottom {
86109
.icon-border+a { // the icon behide mode-toggle
87110
margin-left: .1rem;
@@ -239,29 +262,6 @@ $sidebar-display: "sidebar-display";
239262
}
240263
} // #avatar
241264

242-
#site-title {
243-
text-align: center;
244-
a {
245-
// color: var(--site-title-color);
246-
font-weight: 900;
247-
font-size: 1.5rem;
248-
letter-spacing: .5px;
249-
&:hover {
250-
color: #fff;
251-
text-decoration: none;
252-
}
253-
}
254-
}
255-
256-
#site-subtitle {
257-
font-size: 95%;
258-
text-align: center;
259-
color: #828282;
260-
line-height: 1.2rem;
261-
word-spacing: 1px;
262-
margin: .5rem 1.5rem 2rem 1.5rem;
263-
}
264-
265265
#search-result-wrapper {
266266
display: none;
267267
position: fixed;
@@ -946,7 +946,7 @@ table {
946946
height: 5rem;
947947
}
948948

949-
#site-subtitle {
949+
.site-subtitle {
950950
@include ml-mr(1.8rem);
951951
}
952952

@@ -1188,12 +1188,12 @@ table {
11881188
max-width: 700px;
11891189
}
11901190

1191-
#site-title {
1191+
.site-title {
11921192
font-size: 1.3rem;
11931193
margin-left: 0!important;
11941194
}
11951195

1196-
#site-subtitle {
1196+
.site-subtitle {
11971197
font-size: 90%;
11981198
@include ml-mr(1rem);
11991199
}
@@ -1352,56 +1352,54 @@ table {
13521352
}
13531353

13541354
#profile-wrapper {
1355-
margin-top: 4rem;
1356-
margin-bottom: 3rem;
1357-
padding-left: 18%;
1355+
margin: 4rem 2rem 3rem 4rem;
13581356
-ms-flex-direction: column!important;
1359-
}
13601357

1361-
#avatar {
1362-
-webkit-box-pack: normal !important;
1363-
-ms-flex-pack: normal !important;
1364-
justify-content: normal !important;
1365-
>a {
1366-
width: 6.2rem;
1367-
height: 6.2rem;
1358+
#avatar {
1359+
-webkit-box-pack: normal !important;
1360+
-ms-flex-pack: normal !important;
1361+
justify-content: normal !important;
1362+
>a {
1363+
width: 6.2rem;
1364+
height: 6.2rem;
1365+
}
13681366
}
1369-
}
13701367

1371-
.profile-text {
1372-
padding-left: .5rem;
1373-
/* .d-flex */
1374-
display: -webkit-box!important;
1375-
display: -ms-flexbox!important;
1376-
display: flex!important;
1377-
/* .flex-wrap */
1378-
-ms-flex-wrap: wrap!important;
1379-
flex-wrap: wrap!important;
1380-
/* .align-content-center */
1381-
-ms-flex-line-pack: center!important;
1382-
align-content: center!important;
1368+
.profile-text {
1369+
margin-left: .5rem;
1370+
/* .d-flex */
1371+
display: -webkit-box!important;
1372+
display: -ms-flexbox!important;
1373+
display: flex!important;
1374+
/* .flex-wrap */
1375+
-ms-flex-wrap: wrap!important;
1376+
flex-wrap: wrap!important;
1377+
/* .align-content-center */
1378+
-ms-flex-line-pack: center!important;
1379+
align-content: center!important;
1380+
>div {
1381+
text-align: left !important;
1382+
width: 100%;
1383+
}
1384+
}
13831385
}
13841386

1385-
#site-title a {
1386-
font-size: 1.7rem;
1387-
letter-spacing: 1px;
1388-
}
1387+
#sidebar {
1388+
width: $sidebar-width-large;
13891389

1390-
.profile-text>div {
1391-
text-align: left !important;
1392-
width: 100%;
1393-
}
1390+
.site-title a {
1391+
font-size: 1.7rem;
1392+
letter-spacing: 1px;
1393+
margin: 0;
1394+
}
13941395

1395-
#site-subtitle {
1396-
word-spacing: 0;
1397-
padding-right: 3rem;
1398-
margin: .3rem 0 0 0;
1399-
}
1396+
.site-subtitle {
1397+
word-spacing: 0;
1398+
margin: .3rem 0 0 0;
1399+
}
14001400

1401-
#sidebar {
1402-
width: $sidebar-width-large;
14031401
ul {
1404-
margin-left: 5%;
1402+
margin-left: 3%;
14051403
>li>a {
14061404
padding-left: 2.5rem;
14071405
-webkit-box-pack: start!important;
@@ -1457,10 +1455,8 @@ table {
14571455
margin-left: 0;
14581456
}
14591457
}
1460-
14611458
} // .sidebar-bottom
14621459
} // #sidebar
1463-
14641460
footer>div.d-flex {
14651461
width: 87%;
14661462
max-width: 1140px;
@@ -1475,6 +1471,7 @@ table {
14751471

14761472
} // min-width: 1650px
14771473

1474+
14781475
@media all and (min-width: 1700px) {
14791476
#topbar-wrapper {
14801477
padding-right: calc(100% - #{$sidebar-width-large}

0 commit comments

Comments
 (0)