Skip to content

Commit cd997f0

Browse files
authored
remove global scss styles from modular scss files (it's cool to rhyme your commit messages...) (#138)
1 parent 404b6d3 commit cd997f0

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

client/components/CreateProjectForm/CreateProjectForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CreateProjectForm extends Component {
3636
const { handleSubmit } = this.props
3737
return (
3838
<form id="createProjectForm" className={styles.form} onSubmit={handleSubmit(this.createProject.bind(this))}>
39-
<h1>Create New Project</h1>
39+
<h1 className={styles.formHeading}>Create New Project</h1>
4040

4141
<Field name="image"
4242
component={this.renderImageUpload} />

client/components/CreateProjectForm/CreateProjectForm.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@extend %form;
66
}
77

8-
h1 {
8+
.formHeading {
99
grid-column: 1 / 1;
1010
grid-row: 1;
1111
}

client/components/ForgotPasswordForm/ForgotPasswordForm.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
@extend %form;
66
}
77

8-
h1 {
8+
.h1 {
99
grid-column: 1 / 1;
1010
grid-row: 1;
1111
}
1212

13-
h3 {
13+
.h3 {
1414
grid-column: 1 / 1;
1515
grid-row: 2;
1616
}

client/components/ForgotPasswordForm/NewPasswordForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class NewPasswordForm extends Component {
3232

3333
return (
3434
<form className={styles.form} onSubmit={handleSubmit}>
35-
<h1>New Password</h1>
36-
<h3>Set your new password</h3>
35+
<h1 className={styles.h1}>New Password</h1>
36+
<h3 className={styles.h3}>Set your new password</h3>
3737
<Field
3838
name="password"
3939
value={this.props.password}

client/components/ForgotPasswordForm/SendVerificationCodeForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const SendVerificationCodeForm = props => {
1515
const {handleSubmit} = props
1616
return (
1717
<form className={styles.form} onSubmit={handleSubmit}>
18-
<h1>Forgot Password?</h1>
19-
<h3>{"Let's get you a new one!"}</h3>
18+
<h1 className={styles.h1}>Forgot Password?</h1>
19+
<h3 className={styles.h3}>{"Let's get you a new one!"}</h3>
2020

2121
<Field value={props.email}
2222
name="email"

client/components/ForgotPasswordForm/ValidateVerificationCodeForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const ValidateVerificationCodeForm = props => {
1616
const {handleSubmit} = props
1717
return (
1818
<form className={styles.form} onSubmit={handleSubmit}>
19-
<h1>Forgot Password?</h1>
20-
<h3>{"Let's validate your code!"}</h3>
19+
<h1 className={styles.h1}>Forgot Password?</h1>
20+
<h3 className={styles.h3}>{"Let's validate your code!"}</h3>
2121

2222
<Field
2323
value={props.code}

client/components/LoginForm/LoginForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class LoginForm extends Component {
4646

4747
return (
4848
<form id="loginForm" className={styles.form} onSubmit={handleSubmit(this.validateEmailAndPassword.bind(this))}>
49-
<h1>Login</h1>
49+
<h1 className={styles.h1}>Login</h1>
5050

5151
<Field
5252
name="email"

client/components/LoginForm/LoginForm.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@extend %form;
66
}
77

8-
h1 {
8+
.h1 {
99
grid-column: 1 / 1;
1010
grid-row: 1;
1111
}

client/components/SignupForm/SignupForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function SignupForm (props) {
8585

8686
return (
8787
<form className={ styles.form } onSubmit={ handleSubmit(signup) }>
88-
<h1>Signup</h1>
88+
<h1 className={styles.h1}>Signup</h1>
8989

9090
<Field name="email"
9191
component={ EmailField }

client/components/SignupForm/SignupForm.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
.form {
55
@extend %form;
6+
7+
input:focus {
8+
outline: none;
9+
}
610
}
711

8-
h1 {
12+
.h1 {
913
grid-column: 1 / 1;
1014
grid-row: 1;
1115
}
1216

13-
input:focus {
14-
outline: none;
15-
}
16-
1717
.inputEmailContainer {
1818
position: relative;
1919
grid-column: 1 / 1;

0 commit comments

Comments
 (0)