Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit e5cc79e

Browse files
committed
tweak things to perfection
1 parent 3e68673 commit e5cc79e

File tree

13 files changed

+603
-634
lines changed

13 files changed

+603
-634
lines changed

hearth/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<link rel="stylesheet" href="/media/css/site.styl.css">
1313
<link rel="stylesheet" href="/media/css/header.styl.css">
1414
<link rel="stylesheet" href="/media/css/cat-dropdown.styl.css">
15-
<link rel="stylesheet" href="/media/css/tile.styl.css">
1615
<link rel="stylesheet" href="/media/css/listing.styl.css">
16+
<link rel="stylesheet" href="/media/css/infobox.styl.css">
1717

1818
<!-- These styles don't need to be in an order. -->
1919
<link rel="stylesheet" href="/media/css/abuse.styl.css">
@@ -22,7 +22,6 @@
2222
<link rel="stylesheet" href="/media/css/buttons.styl.css">
2323
<link rel="stylesheet" href="/media/css/detail.styl.css">
2424
<link rel="stylesheet" href="/media/css/forms.styl.css">
25-
<link rel="stylesheet" href="/media/css/infobox.styl.css">
2625
<link rel="stylesheet" href="/media/css/lightbox.styl.css">
2726
<link rel="stylesheet" href="/media/css/menu.styl.css">
2827
<link rel="stylesheet" href="/media/css/notification.styl.css">

hearth/media/css/cat-dropdown.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $cat-icon-size-desktop = 60px;
8989
content: '';
9090
display: block;
9191
// Pseudo shadow under dropdown
92-
gradientLinear(unquote('to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%'));
92+
gradientLinear(unquote('to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.375) 100%'));
9393
height: 3px;
9494
position: absolute;
9595
width: 100%;

hearth/media/css/detail.styl

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,35 @@
1818
background-color: #fff;
1919
}
2020

21+
.detail {
22+
h3 {
23+
font-size: 15px;
24+
font-weight: 500;
25+
line-height: 18px;
26+
}
27+
}
28+
2129
.blurbs {
2230
clear: both;
2331
color: $dark-gray;
2432
line-height: 22px;
25-
.summary {
26-
margin: 0;
33+
> div {
34+
padding: 0 10px 24px;
2735
}
2836
h3, p, ol, ul, dl {
29-
margin: 15px 0;
37+
margin: 0;
38+
padding: 24px 0;
3039
}
31-
h3 {
32-
font-size: 15px;
33-
font-weight: 500;
34-
line-height: 18px;
40+
.summary:only-child {
41+
padding-bottom: 0;
42+
}
43+
.summary + div > {
44+
h3:first-child {
45+
padding-top: 0;
46+
}
47+
:last-child {
48+
padding-bottom: 0;
49+
}
3550
}
3651
blockquote {
3752
background: $faint-gray;
@@ -43,9 +58,7 @@
4358
}
4459

4560
.reviews h3 {
46-
color: #333;
47-
font-weight: 500;
48-
margin-bottom: 20px;
61+
margin: 24px 0 18px;
4962
}
5063

5164
.show-toggle {
@@ -157,16 +170,12 @@
157170
// ***************** Wide Mobile (> 671px)
158171

159172
@media $at-least-desktop {
160-
.blurbs {
161-
> div {
162-
text-columns(2, 24px);
163-
}
164-
h3, p, ol, ul, dl {
165-
margin: 24px 0;
166-
}
167-
.summary {
168-
position: relative;
173+
.blurbs > div {
174+
padding: 24px 15px;
175+
p.summary {
176+
padding-top: 0;
169177
}
178+
text-columns(2, 24px);
170179
}
171180
#reviews-detail {
172181
font-size: 15px;

hearth/media/css/header.styl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,8 @@
158158
&::-webkit-input-placeholder {
159159
color: darken($cement-gray, 5%);
160160
}
161-
&:not([data-context]):invalid ~ .search-clear,
162-
&[data-context]:invalid:focus ~ .search-clear {
161+
&:invalid ~ .search-clear {
163162
// Hide the X icon when the search field is empty.
164-
// Hide the X icon when the search field is focused if there's a category placeholder.
165163
display: none;
166164
}
167165
&:valid {
@@ -468,11 +466,11 @@ main {
468466
}
469467

470468
#search-q {
471-
font-size: 24px;
469+
font-size: 18px;
472470
font-weight: 400;
473471
height: 48px;
474472
line-height: 48px;
475-
padding: 7px 15px 3px;
473+
padding: 6px 15px 4px;
476474
&:valid {
477475
// Adjust width for padding for the X icon.
478476
padding-right: 42px;
@@ -536,6 +534,11 @@ main {
536534
top: 13px;
537535
right: 0;
538536
}
537+
// Even if there's no Popular/New tabs, we show an orange border on
538+
/// desktop but not on mobile.
539+
.category .not-paginated {
540+
border-top: 7px solid $flamin-hot-cheetos-orange;
541+
}
539542
}
540543

541544
@media (max-width: 540px) {

0 commit comments

Comments
 (0)