Skip to content

Commit c9ebb23

Browse files
author
Parth Shah
committed
merging updates from challenge
1 parent 84d9030 commit c9ebb23

File tree

14 files changed

+251
-115
lines changed

14 files changed

+251
-115
lines changed

components/Dropdown/Dropdown.scss

Lines changed: 58 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
.Dropdown {
1010
background-color: #fff;
11-
box-shadow: 0px 2px 7px 1px rgba(0, 0, 0, 0.17);
11+
box-shadow: 0 2px 7px rgba(0, 0, 0, 0.17);
1212
border-radius: 5px;
1313
display: inline-block;
1414
position: absolute;
@@ -83,22 +83,67 @@
8383
}
8484

8585
.Dropdown:before {
86-
content: " ";
87-
width: 15px;
88-
height: 15px;
89-
display: block;
90-
transform: rotate(45deg);
91-
background-color: #fff;
86+
width: 14px;
87+
height: 7px;
9288
position: absolute;
93-
right: 15px;
94-
top: -6px;
95-
border-radius: 5px;
89+
display: block;
90+
content: '';
91+
right: 24px;
92+
top: -7px;
93+
background: url("./arrow-dropdown.png") left top no-repeat;
94+
background-size: 14px 7px;
95+
z-index:999;
9696
}
9797

9898
.Dropdown.pointer-hide:before {
9999
display: none;
100100
}
101101

102-
.Dropdown.pointer-shadow:before {
103-
box-shadow: 0px 2px 7px 1px rgba(0, 0, 0, 0.17);
104-
}
102+
.new-theme {
103+
text-align: left;
104+
height: 30px;
105+
color: $tc-black;
106+
background: $tc-gray-neutral-light;
107+
border: 1px solid $tc-gray-20;
108+
@include roboto;
109+
font-size: 13px;
110+
line-height: 20px;
111+
width: 100%;
112+
border-radius: 2px;
113+
position: relative;
114+
.dropdown-menu-header {
115+
width: 100%;
116+
border: 0;
117+
height: 28px;
118+
line-height: 28px;
119+
margin: 0;
120+
padding: 0 0 0 10px;
121+
color: $tc-gray-50;
122+
font-size: 13px;
123+
}
124+
&:after{
125+
display: block;
126+
content: '';
127+
position: absolute;
128+
width: 10px;
129+
height: 14px;
130+
right: 11px;
131+
top: 50%;
132+
margin-top: -7px;
133+
background: url("./icon-select.png") left top no-repeat;
134+
background-size: 10px 14px;
135+
z-index:2;
136+
}
137+
.Dropdown {
138+
ul.dropdown-menu-list {
139+
padding: 10px 0px;
140+
li {
141+
padding: 0 20px;
142+
@include ellipsis;
143+
}
144+
li:hover {
145+
background-color: $tc-gray-neutral-dark;
146+
}
147+
}
148+
}
149+
}
1.03 KB
Loading
1.39 KB
Loading

components/Forms/TiledCheckboxInput.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import React, { PropTypes } from 'react'
44
import classNames from 'classnames'
55
import _ from 'lodash'
66
import BaseInputField from './BaseInputField'
7+
import './FormFields.scss'
78

89
class TiledCheckboxInput extends BaseInputField {
910

components/Formsy/FormFields.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ textarea{
176176
display: flex;
177177
flex-flow: row wrap;
178178
overflow: hidden;
179+
justify-content: center;
179180
}
180181
a.tiled-group-item {
181182
-webkit-flex: initial;

components/MenuBar/MenuBar.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
display: flex;
1313
justify-content: center;
1414
margin: 0px 15px;
15-
16-
a {
17-
padding-bottom: 6px;
18-
}
1915
}
2016
}
2117

@@ -31,7 +27,7 @@
3127
display: flex;
3228

3329
&.selected {
34-
border-bottom: 2px solid $tc-dark-blue-70;
30+
border-bottom: 2px solid $tc-orange-70;
3531

3632
a {
3733
color: $tc-black;
@@ -43,10 +39,14 @@
4339
}
4440

4541
a {
46-
text-transform: uppercase;
47-
font-size: 12px;
48-
line-height: 14px;
42+
display: inline-block;
43+
@include roboto-medium;
44+
font-size: $tc-label-lg;
4945
color: $tc-gray-50;
46+
line-height: 32px;
47+
&:hover{
48+
color: $tc-black;
49+
}
5050
}
5151
}
5252

components/SearchBar/SearchBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class SearchBar extends Component {
198198
<span className="search-typeahead-text">{ typeaheadText }</span>
199199
<img className="search-bar__clear" src={ require('./x-mark.svg') } onClick={ this.clearSearch }/>
200200
<div className="search-icon-wrap" onClick={ this.search }>
201-
<img className="search-bar__icon" src={ require('./ico-mobile-search-selected.svg') } />
201+
<img className="search-bar__icon" src={ require('./icon-search.png') } />
202202
</div>
203203
<div className="suggestions-panel">
204204
{results}

components/SearchBar/SearchBar.scss

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import 'tc-includes';
22

33
.SearchBar {
4+
@include roboto;
45
background-color: white;
56
height: 40px;
67
width: 100%;
@@ -17,22 +18,19 @@
1718
}
1819

1920
&.state-empty:before {
20-
content: "Search Topcoder for challenges, people or content";
21+
content: "Search for projects";
2122
position: absolute;
2223
left: 15px;
2324
top: 50%;
25+
text-align: left;
2426
transform: translateY(-50%);
2527
color: $tc-gray-40;
26-
font-size: 15px;
28+
font-size: 13px;
2729
line-height: 20px;
2830
width: 75%;
2931
white-space: nowrap;
3032
overflow-x: hidden;
3133
text-overflow: ellipsis;
32-
33-
@media screen and (max-width: 768px) {
34-
content: "Search Topcoder";
35-
}
3634
}
3735

3836
&.state-focused:before,
@@ -49,7 +47,6 @@
4947

5048
.search-icon-wrap {
5149
cursor: pointer;
52-
background-color: $tc-gray-50;
5350
}
5451

5552
.suggestions-panel {
@@ -76,7 +73,7 @@
7673

7774
.search-bar__text,
7875
.search-typeahead-text {
79-
font-family: "Roboto", Arial, Helvetica, sans-serif;
76+
@include roboto;
8077
outline: 0px;
8178
border: 0px none;
8279
font-size: 17px;
@@ -87,10 +84,10 @@
8784
left: 15px;
8885
top: 50%;
8986
transform: translateY(-50%);
90-
background-color: transparent;
87+
background-color: transparent !important;
9188
z-index: 20;
9289
padding-left: 0px;
93-
height: 38px;
90+
height: 30px;
9491
}
9592

9693
.search-bar__text {
@@ -119,17 +116,19 @@
119116
}
120117

121118
.search-icon-wrap {
122-
width: 46px;
123-
height: 40px;
119+
height: 30px;
120+
width: 36px;
124121
position: absolute;
125122
top: -1px;
126123
right: -1px;
127-
background-color: $tc-gray-neutral-dark;
124+
background-color: $tc-gray-40;
128125
border-top-right-radius: 4px;
129126
border-bottom-right-radius: 4px;
130127

131128
.search-bar__icon {
132129
position: absolute;
130+
width: 17px;
131+
height: 17px;
133132
top: 50%;
134133
left: 50%;
135134
transform: translate(-50%, -50%);
@@ -139,7 +138,7 @@
139138
.suggestions-panel {
140139
display: none;
141140
position: absolute;
142-
top: 43px;
141+
top: 30px;
143142
left: 0;
144143
width: 100%;
145144
z-index: 1000;
@@ -153,4 +152,4 @@
153152
}
154153
}
155154
}
156-
}
155+
}
1.57 KB
Loading
Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
import React from 'react'
2-
import classNames from 'classnames'
3-
import ReactSwitchButton from 'react-switch-button'
4-
52
require('./SwitchButton.scss')
6-
require('react-switch-button/dist/react-switch-button.min.css')
7-
8-
const SwitchButton = (props) => {
9-
const switchButtonClass = classNames(
10-
'SwitchButton'
11-
)
3+
const SwitchButton = ({label, ...props}) => {
124
return (
13-
<div className={switchButtonClass}>
14-
<ReactSwitchButton {...props} />
5+
<div className="SwitchButton clearfix">
6+
<span className="label">{label}</span>
7+
<label>
8+
<input type="checkbox" {...props} />
9+
<i/>
10+
</label>
1511
</div>
1612
)
17-
}
13+
}
14+
1815
export default SwitchButton

0 commit comments

Comments
 (0)