Skip to content

Commit e68995c

Browse files
committed
Remove date input styles Hacker0x01#396
1 parent 8e2e905 commit e68995c

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

docs-site/src/style.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,18 @@ strong {
9393
}
9494
}
9595
}
96+
97+
input {
98+
font-size: 13px;
99+
border-radius: 4px;
100+
box-shadow: inset 0 2px 2px #e9e9e9;
101+
border: 1px solid #aeaeae;
102+
line-height: 16px;
103+
padding: 6px 10px 5px;
104+
105+
&:focus {
106+
outline: none;
107+
border-color: #aeaeae;
108+
box-shadow: inset 0 2px 2px #e9e9e9, 0 0 10px 0 rgba(73, 107, 125, .3);
109+
}
110+
}

src/date_input.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import moment from 'moment'
22
import React from 'react'
3-
import classnames from 'classnames'
43
import { isSameDay, isDayDisabled } from './date_utils'
54

65
var DateInput = React.createClass({
76
displayName: 'DateInput',
87

98
propTypes: {
10-
className: React.PropTypes.string,
119
date: React.PropTypes.object,
1210
dateFormat: React.PropTypes.string,
1311
disabled: React.PropTypes.bool,
@@ -93,8 +91,7 @@ var DateInput = React.createClass({
9391
{...this.props}
9492
value={this.state.maybeDate}
9593
onBlur={this.handleBlur}
96-
onChange={this.handleChange}
97-
className={classnames('react-datepicker__input', this.props.className)} />
94+
onChange={this.handleChange} />
9895
}
9996
})
10097

src/stylesheets/datepicker.scss

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,22 +155,6 @@
155155
}
156156
}
157157

158-
.react-datepicker__input {
159-
position: relative;
160-
font-size: 13px;
161-
border-radius: $border-radius;
162-
box-shadow: inset 0 2px 2px #e9e9e9;
163-
border: 1px solid $border-color;
164-
line-height: 16px;
165-
padding: 6px 10px 5px;
166-
167-
&:focus {
168-
outline: none;
169-
border-color: $border-color;
170-
box-shadow: inset 0 2px 2px #e9e9e9, 0 0 10px 0 rgba(73, 107, 125, .3);
171-
}
172-
}
173-
174158
.react-datepicker__input-container {
175159
position: relative;
176160
}

0 commit comments

Comments
 (0)