Skip to content

Commit 97b2737

Browse files
authored
Merge pull request #511 from pastelsky/sidecar-design
Sidecar design
2 parents 73d461b + c53d933 commit 97b2737

File tree

6 files changed

+28
-25
lines changed

6 files changed

+28
-25
lines changed

components/sidecar/sidecar-style.scss

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@
1515

1616
.sidecar__link {
1717
display: inline-block;
18-
padding: 0.75em;
18+
padding: 0.65em;
1919
float: right;
2020
clear: both;
21-
color: getColor(alto);
21+
color: getColor(concrete);
2222
transition: all 250ms;
2323

24+
&:first-of-type {
25+
border-top-left-radius: 3px;
26+
}
27+
28+
&:last-of-type {
29+
border-bottom-left-radius: 3px;
30+
}
31+
2432
&:hover {
33+
border-top-left-radius: 3px;
34+
border-bottom-left-radius: 3px;
2535
color: getColor(white);
2636
}
2737
}
@@ -38,8 +48,9 @@
3848

3949
.sidecar__icon {
4050
display: inline-block;
41-
width: 16px;
51+
width: 18px;
4252
vertical-align: middle;
53+
font-size: 18px;
4354
}
4455

4556
// TODO: Fix hardcoded widths using flex perhaps, can't animate to width auto
@@ -68,10 +79,10 @@
6879
}
6980

7081
.sidecar__link--medium {
71-
background: desaturate(#19aa6e, 15%);
82+
background: desaturate(#02b875, 15%);
7283

7384
&:hover {
74-
background: #19aa6e;
85+
background: #02b875;
7586

7687
.sidecar__label {
7788
width: 115px;
@@ -80,10 +91,10 @@
8091
}
8192

8293
.sidecar__link--so {
83-
background: desaturate(#f48024, 15%);
94+
background: desaturate(#fe7a15, 15%);
8495

8596
&:hover {
86-
background: #f48024;
97+
background: #fe7a15;
8798

8899
.sidecar__label {
89100
width: 125px;

components/sidecar/sidecar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default props => {
1919
</Link>
2020
<Link className="sidecar__link sidecar__link--so" to="//stackoverflow.com/questions/tagged/webpack">
2121
<span className="sidecar__label">Stack Overflow</span>
22-
<i className="sidecar__icon icon-stack-exchange" />
22+
<i className="sidecar__icon icon-stack-overflow" />
2323
</Link>
2424
</aside>
2525
);

styles/icons/github.svg

Lines changed: 3 additions & 15 deletions
Loading

styles/icons/medium.svg

Lines changed: 3 additions & 1 deletion
Loading

styles/icons/stack-exchange.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

styles/icons/stack-overflow.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)