Skip to content

Commit ac32f30

Browse files
committed
Merge branch 'develop' into feature/organization-refactoring
2 parents 7ebd94c + 97b2737 commit ac32f30

File tree

17 files changed

+410
-150
lines changed

17 files changed

+410
-150
lines changed

assets/github-logo.svg

Lines changed: 38 additions & 0 deletions
Loading

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
);

components/vote/api.dev.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,14 @@ let lists = {
1212
{
1313
name: "influence",
1414
currency: "influence",
15-
maximum: 30,
1615
score: 1,
17-
step: 2,
1816
color: "blue"
1917
},
2018
{
2119
name: "golden",
2220
currency: "goldenInfluence",
2321
score: 1,
24-
step: 10,
2522
color: "#bfa203"
26-
},
27-
{
28-
name: "thumb",
29-
minimum: -5,
30-
maximum: 5,
31-
score: 5,
32-
step: 1,
33-
color: "#535353"
3423
}
3524
],
3625
items: [

components/vote/app-style.scss

Lines changed: 121 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
.vote-app {
66
margin: 1.5em;
77

8-
&__influence-descriptions {
8+
&__top {
99
display: flex;
1010
flex-direction: column;
1111

@@ -14,31 +14,108 @@
1414
}
1515
}
1616

17+
&__influence {
18+
flex: 0 0 75%;
19+
}
20+
21+
&__influence-description {
22+
display: flex;
23+
flex-direction: column;
24+
25+
@include break(medium) {
26+
flex-direction: row;
27+
}
28+
}
29+
30+
&__user-section {
31+
flex: 0 0 25%;
32+
padding: 0 0 30px;
33+
34+
@include break(medium) {
35+
padding: 0 0 0 20px;
36+
}
37+
38+
@include break(large) {
39+
border-left: 2px solid getColor(elephant);
40+
}
41+
}
42+
1743
&__influence-section {
18-
flex: 0 0 100%;
44+
flex: 0 0 50%;
1945
}
2046

2147
&__influence-disclaimer {
2248
padding: 1em 0;
23-
flex: 0 0 100%;
2449
font-size: smaller;
2550
color: red;
51+
2652
@include break(medium) {
2753
text-align: center;
2854
}
2955
}
3056

57+
&__login-button {
58+
margin: 20px 0;
59+
60+
button {
61+
border: none;
62+
outline: none;
63+
color: getColor(white);
64+
background: getColor(elephant);
65+
padding: 5px 10px 5px 10px;
66+
border-radius: 2px;
67+
font-size: 13px;
68+
cursor: pointer;
69+
70+
&:hover {
71+
background: black;
72+
}
73+
74+
&:active {
75+
background: getColor(elephant)
76+
}
77+
}
78+
79+
img {
80+
height: 25px;
81+
vertical-align: middle;
82+
padding-left: 5px;
83+
}
84+
}
85+
86+
&__userinfo {
87+
outline: none;
88+
border: none;
89+
background: getColor(elephant);
90+
color: white;
91+
border-radius: 3px;
92+
font-size: 13px;
93+
display: inline-block;
94+
padding: 3px 10px;
95+
96+
img {
97+
height: 25px;
98+
vertical-align: middle;
99+
margin-right: 10px;
100+
}
101+
}
102+
31103
&__self-info {
32104
margin-top: 10px;
33105
}
34106

107+
&__button-area {
108+
margin: 5px 0;
109+
}
110+
35111
&__update-button {
36-
float: right;
112+
37113
}
38114

39115
h1 {
40-
font-size: 20pt;
116+
font-size: 16pt;
41117
font-weight: bold;
118+
margin-bottom: 10px;
42119
}
43120

44121
&__item-title {
@@ -56,22 +133,55 @@
56133
}
57134
}
58135

59-
&__item-table td {
60-
vertical-align: middle;
136+
&__item-card {
137+
display: flex;
138+
flex-direction: column;
139+
140+
@include break(medium){
141+
flex-direction: row;
142+
}
143+
}
144+
145+
&__score-section {
146+
display: flex;
147+
flex: 0 0 40%;
148+
border: 1px solid lightgray;
149+
user-select: none;
150+
flex-wrap: wrap;
151+
152+
@include break(medium){
153+
margin-right: 30px;
154+
padding: 0 0 0 20px;
155+
}
61156
}
62157

63158
&__item-score {
64-
font-size: 150%;
65-
width: 90px;
66-
text-align: right;
159+
align-self: center;
160+
font-size: 20pt;
161+
flex: 0 0 100%;
162+
text-align: center;
163+
164+
@include break(medium){
165+
flex: 0 0 20%;
166+
text-align: left;
167+
}
168+
}
169+
170+
&__item-button {
171+
flex: 0 0 50%;
172+
align-self: center;
173+
174+
@include break(medium){
175+
flex: 0 0 40%;
176+
}
67177
}
68178

69179
&__items-list {
70180
display: block;
71181

72182
& > li {
73183
display: block;
74-
padding: 5px;
184+
padding: 5px 0;
75185
}
76186
}
77187

0 commit comments

Comments
 (0)