Skip to content

Commit 1ecbc3b

Browse files
authored
Merge pull request #1178 from jesseaborden/style/blog-typography
Blog: Style Updates
2 parents e80247a + 89ce167 commit 1ecbc3b

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

assets/stylesheets/new-stylesheets/_themes.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
--site-tabs-active-background: #ffffff;
1616
--site-navigation-menu-toggle-invert: invert(0);
1717
--site-navigation-item-border: 1px solid #051416;
18+
--site-navigation-selected-background: rgba(230, 150, 80, 0.9);
1819
--site-code-box-text: #3d3d3d;
1920
--site-link-with-right-arrow-color: #384fea;
2021
--site-link-with-right-arrow-icon-filter: none;
@@ -36,7 +37,7 @@
3637
--install-release-box-tr-border-bottom: 1px solid #f2f2f2;
3738
--install-release-box-tr-bg: #ffffff;
3839

39-
--blog-page-time-text-color: #8D8D8D;
40+
--blog-page-time-text-color: #8d8d8d;
4041
--blog-page-code-bg: #f2f2f2;
4142
--blog-divider-border: #979797;
4243

@@ -140,6 +141,7 @@
140141
--site-tabs-active-background: #505f83;
141142
--site-navigation-menu-toggle-invert: invert(1);
142143
--site-navigation-item-border: 1px solid #ffffff;
144+
--site-navigation-selected-background: rgb(221, 93, 67);
143145
--site-code-box-text: #ffffff;
144146
--site-link-with-right-arrow-color: #1ec1fd;
145147
--site-link-with-right-arrow-icon-filter: invert(66%) sepia(89%)
@@ -162,7 +164,7 @@
162164
--install-release-box-tr-border-bottom: 1px solid #051416;
163165
--install-release-box-tr-bg: #384461;
164166

165-
--blog-page-time-text-color: #8D8D8D;
167+
--blog-page-time-text-color: #8d8d8d;
166168
--blog-page-code-bg: #111727;
167169
--blog-divider-border: #979797;
168170

assets/stylesheets/new-stylesheets/includes/navigation/_base.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353
transition:
5454
background-color 0.2s ease,
5555
color 0.2s ease; // smooth hover
56-
57-
& > span {
58-
padding: 12px 15px;
59-
border-radius: 36px;
60-
}
56+
57+
& > span {
58+
padding: 12px 15px;
59+
border-radius: 36px;
60+
}
6161

6262
// hover/focus states
6363
&:hover,
@@ -81,7 +81,7 @@
8181
outline: none; // basic focus outline removal
8282

8383
& > span {
84-
background-color: rgba(230, 150, 80, .9);
84+
background-color: var(--site-navigation-selected-background);
8585
}
8686
}
8787
}

assets/stylesheets/new-stylesheets/pages/_blog.scss

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@
7171
display: block;
7272
color: var(--blog-muted-color);
7373
margin-bottom: 10px;
74+
font-weight: 500;
7475
}
7576

7677
.blog-title {
7778
display: block;
7879
font-size: 22px;
7980
line-height: 1.2;
8081
margin: 0 0 5px;
82+
font-weight: 500;
8183
}
8284

8385
.blog-excerpt {
@@ -111,8 +113,8 @@
111113

112114
.blog-featured-grid-headline {
113115
font-size: 48px;
116+
font-weight: 500;
114117
margin-bottom: 16px;
115-
font-weight: 300;
116118
color: var(--site-text-color);
117119
text-align: left;
118120

@@ -145,7 +147,7 @@
145147

146148
.blog-featured-grid-category-headline {
147149
font-size: 24px;
148-
font-weight: 400;
150+
font-weight: 600;
149151
margin-bottom: 13px;
150152
line-height: 1.2;
151153
}
@@ -295,8 +297,10 @@
295297
margin-bottom: 20px;
296298
cursor: pointer;
297299

298-
&:hover {
299-
background-color: var(--blog-dropdown-toggle-outline-color);
300+
@media (pointer: fine) {
301+
&:hover {
302+
background-color: var(--blog-dropdown-toggle-outline-color);
303+
}
300304
}
301305

302306
.dropdown-toggle-arrow {
@@ -376,8 +380,10 @@
376380
width: 100%;
377381
box-sizing: border-box;
378382

379-
&:hover {
380-
background-color: var(--blog-dropdown-toggle-outline-color);
383+
@media (pointer: fine) {
384+
&:hover {
385+
background-color: var(--blog-dropdown-toggle-outline-color);
386+
}
381387
}
382388
}
383389

@@ -452,7 +458,7 @@
452458

453459
h3 {
454460
font-size: 22px;
455-
font-weight: 400;
461+
font-weight: 600;
456462
color: var(--site-text-color);
457463
}
458464

0 commit comments

Comments
 (0)