Skip to content

Commit fa47c8a

Browse files
committed
Change the patching panel CSS to SCSS.
1 parent 9bd69ba commit fa47c8a

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

src/components/patching-panel/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import React, { Component } from 'react';
66
/**
77
* Internal dependencies
88
*/
9-
import './style.css';
9+
import './style.scss';
1010

1111
const { ipcRenderer } = window.require( 'electron' );
1212

@@ -41,18 +41,18 @@ class PatchingPanel extends Component {
4141
const { patchLocation, uploadTicket, wporgUsername, wporgPassword } = this.state;
4242

4343
return (
44-
<div className="patching">
44+
<div className="patching-panel">
4545
<h3>Apply a Patch</h3>
4646
<p>Paste the link to the <tt>.patch</tt> or <tt>.diff</tt> file.</p>
4747
<p>
4848
<input
49-
className="patching-apply-input"
49+
className="patching-panel__apply-input"
5050
type="text"
5151
value={ patchLocation }
5252
onChange={ ( event ) => this.setState( { patchLocation: event.target.value } ) }
5353
/>
5454
<button
55-
className="patching-apply-button"
55+
className="patching-panel__apply-button"
5656
onClick={ this.applyPatch }
5757
>
5858
Apply
@@ -63,29 +63,29 @@ class PatchingPanel extends Component {
6363
<p>
6464
Ticket:
6565
<input
66-
className="patching-upload-input"
66+
className="patching-panel__upload-input"
6767
type="text"
6868
value={ uploadTicket }
6969
onChange={ ( event ) => this.setState( { uploadTicket: event.target.value } ) }
7070
/>
7171
<br />
7272
Username:
7373
<input
74-
className="patching-upload-username"
74+
className="patching-panel__upload-username"
7575
type="text"
7676
value={ wporgUsername }
7777
onChange={ ( event ) => this.setState( { wporgUsername: event.target.value } ) }
7878
/>
7979
<br />
8080
Password:
8181
<input
82-
className="patching-upload-password"
82+
className="patching-panel__upload-password"
8383
type="password"
8484
value={ wporgPassword }
8585
onChange={ ( event ) => this.setState( { wporgPassword: event.target.value } ) }
8686
/>
8787
<button
88-
className="patching-upload-button"
88+
className="patching-panel__upload-button"
8989
onClick={ this.uploadPatch }
9090
>
9191
Upload

src/components/patching-panel/style.css

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.patching-panel {
2+
margin: 0 15px;
3+
4+
p {
5+
font-size: 15px;
6+
line-height: 1.3;
7+
}
8+
9+
input,
10+
button {
11+
padding: 5px 10px;
12+
background-color: #f6f6f6;
13+
border: 1px solid #e8e8e8;
14+
border-radius: 3px;
15+
margin-left: 10px;
16+
}
17+
}

0 commit comments

Comments
 (0)