File tree Expand file tree Collapse file tree 17 files changed +410
-150
lines changed Expand file tree Collapse file tree 17 files changed +410
-150
lines changed Original file line number Diff line number Diff line change 15
15
16
16
.sidecar__link {
17
17
display : inline-block ;
18
- padding : 0.75 em ;
18
+ padding : 0.65 em ;
19
19
float : right ;
20
20
clear : both ;
21
- color : getColor (alto );
21
+ color : getColor (concrete );
22
22
transition : all 250ms ;
23
23
24
+ & :first-of-type {
25
+ border-top-left-radius : 3px ;
26
+ }
27
+
28
+ & :last-of-type {
29
+ border-bottom-left-radius : 3px ;
30
+ }
31
+
24
32
& :hover {
33
+ border-top-left-radius : 3px ;
34
+ border-bottom-left-radius : 3px ;
25
35
color : getColor (white );
26
36
}
27
37
}
38
48
39
49
.sidecar__icon {
40
50
display : inline-block ;
41
- width : 16 px ;
51
+ width : 18 px ;
42
52
vertical-align : middle ;
53
+ font-size : 18px ;
43
54
}
44
55
45
56
// TODO: Fix hardcoded widths using flex perhaps, can't animate to width auto
68
79
}
69
80
70
81
.sidecar__link--medium {
71
- background : desaturate (#19aa6e , 15% );
82
+ background : desaturate (#02b875 , 15% );
72
83
73
84
& :hover {
74
- background : #19aa6e ;
85
+ background : #02b875 ;
75
86
76
87
.sidecar__label {
77
88
width : 115px ;
80
91
}
81
92
82
93
.sidecar__link--so {
83
- background : desaturate (#f48024 , 15% );
94
+ background : desaturate (#fe7a15 , 15% );
84
95
85
96
& :hover {
86
- background : #f48024 ;
97
+ background : #fe7a15 ;
87
98
88
99
.sidecar__label {
89
100
width : 125px ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default props => {
19
19
</ Link >
20
20
< Link className = "sidecar__link sidecar__link--so" to = "//stackoverflow.com/questions/tagged/webpack" >
21
21
< span className = "sidecar__label" > Stack Overflow</ span >
22
- < i className = "sidecar__icon icon-stack-exchange " />
22
+ < i className = "sidecar__icon icon-stack-overflow " />
23
23
</ Link >
24
24
</ aside >
25
25
) ;
Original file line number Diff line number Diff line change @@ -12,25 +12,14 @@ let lists = {
12
12
{
13
13
name : "influence" ,
14
14
currency : "influence" ,
15
- maximum : 30 ,
16
15
score : 1 ,
17
- step : 2 ,
18
16
color : "blue"
19
17
} ,
20
18
{
21
19
name : "golden" ,
22
20
currency : "goldenInfluence" ,
23
21
score : 1 ,
24
- step : 10 ,
25
22
color : "#bfa203"
26
- } ,
27
- {
28
- name : "thumb" ,
29
- minimum : - 5 ,
30
- maximum : 5 ,
31
- score : 5 ,
32
- step : 1 ,
33
- color : "#535353"
34
23
}
35
24
] ,
36
25
items : [
Original file line number Diff line number Diff line change 5
5
.vote-app {
6
6
margin : 1.5em ;
7
7
8
- & __influence-descriptions {
8
+ & __top {
9
9
display : flex ;
10
10
flex-direction : column ;
11
11
14
14
}
15
15
}
16
16
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
+
17
43
& __influence-section {
18
- flex : 0 0 100 % ;
44
+ flex : 0 0 50 % ;
19
45
}
20
46
21
47
& __influence-disclaimer {
22
48
padding : 1em 0 ;
23
- flex : 0 0 100% ;
24
49
font-size : smaller ;
25
50
color : red ;
51
+
26
52
@include break (medium ) {
27
53
text-align : center ;
28
54
}
29
55
}
30
56
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
+
31
103
& __self-info {
32
104
margin-top : 10px ;
33
105
}
34
106
107
+ & __button-area {
108
+ margin : 5px 0 ;
109
+ }
110
+
35
111
& __update-button {
36
- float : right ;
112
+
37
113
}
38
114
39
115
h1 {
40
- font-size : 20 pt ;
116
+ font-size : 16 pt ;
41
117
font-weight : bold ;
118
+ margin-bottom : 10px ;
42
119
}
43
120
44
121
& __item-title {
56
133
}
57
134
}
58
135
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
+ }
61
156
}
62
157
63
158
& __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
+ }
67
177
}
68
178
69
179
& __items-list {
70
180
display : block ;
71
181
72
182
& > li {
73
183
display : block ;
74
- padding : 5px ;
184
+ padding : 5px 0 ;
75
185
}
76
186
}
77
187
You can’t perform that action at this time.
0 commit comments