Skip to content

Commit

Permalink
[#264] updates styling
Browse files Browse the repository at this point in the history
  • Loading branch information
GentlemanHal committed Feb 20, 2019
1 parent 3e0e7a8 commit f509a7e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/client/backup/GitLabSnippetInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export function GitLabSnippetInput({snippetId, setSnippetId, disabled}) {
<Input value={newSnippetId}
onChange={({target}) => setNewSnippetId(target.value)}
onBlur={() => setSnippetId(newSnippetId)}
disabled={disabled}>
disabled={disabled}
className={styles.snippet}>
<div className={styles.label}>snippet ID</div>
</Input>
)
Expand Down
5 changes: 3 additions & 2 deletions src/client/backup/GitLabUrlInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ export function GitLabUrlInput({url, setUrl, disabled}) {
<Input value={newUrl}
onChange={({target}) => setNewUrl(target.value)}
onBlur={() => setUrl(newUrl)}
disabled={disabled}>
<div className={styles.label}>url</div>
disabled={disabled}
className={styles.url}>
<div className={styles.label}>URL</div>
</Input>
)
}
Expand Down
3 changes: 2 additions & 1 deletion src/client/backup/import/gitlab/GitLab.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export function GitLab({snippetId, gitLabSetSnippetId, url, gitLabSetUrl, loaded
snippetId={snippetId}
setSnippetId={gitLabSetSnippetId}
disabled={disabled}/>
<Password onChange={accessTokenChanged}
<Password className={styles.accessToken}
onChange={accessTokenChanged}
onBlur={accessTokenChanged}
value={accessToken}
disabled={disabled}>
Expand Down
6 changes: 6 additions & 0 deletions src/client/backup/import/gitlab/gitlab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ $label-size: 6em;
.label {
width: $label-size;
}

.accessToken {
@include respond-to(tablet, desktop) {
width: 36em;
}
}
11 changes: 11 additions & 0 deletions src/client/backup/snippet-id-input.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
@import '../common/layout';
@import './export/gitlab/gitlab';

.label {
width: $label-size;
}

.url {
@extend %first;
}

.snippet {
@include respond-to(tablet, desktop) {
width: 36em;
}
}

0 comments on commit f509a7e

Please sign in to comment.