diff --git a/lib/views/git-logo.js b/lib/views/git-logo.js deleted file mode 100644 index 51012c5618..0000000000 --- a/lib/views/git-logo.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; - -export default class GitLogo extends React.Component { - render() { - /* eslint-disable max-len */ - return ( - - - - - - - - ); - /* eslint-enable max-len */ - } -} diff --git a/lib/views/git-tab-view.js b/lib/views/git-tab-view.js index 4ec74fde66..20e54b9164 100644 --- a/lib/views/git-tab-view.js +++ b/lib/views/git-tab-view.js @@ -4,7 +4,6 @@ import cx from 'classnames'; import {CompositeDisposable} from 'atom'; import StagingView from './staging-view'; -import GitLogo from './git-logo'; import CommitController from '../controllers/commit-controller'; import RecentCommitsController from '../controllers/recent-commits-controller'; import RefHolder from '../models/ref-holder'; @@ -89,11 +88,9 @@ export default class GitTabView extends React.Component { if (this.props.repository.isTooLarge()) { return (
-
-
- -
-

Too many changes

+
+
+

Too many changes

The repository at {this.props.workingDirectoryPath} has too many changed files to display in Atom. Ensure that you have set up an appropriate .gitignore file. @@ -105,11 +102,9 @@ export default class GitTabView extends React.Component { !isValidWorkdir(this.props.repository.getWorkingDirectoryPath())) { return (
-
-
- -
-

Unsupported directory

+
+
+

Unsupported directory

Atom does not support managing Git repositories in your home or root directories.
@@ -129,9 +124,8 @@ export default class GitTabView extends React.Component { return (
-
- -
+
+

Create Repository

{message}
@@ -55,13 +60,14 @@ export default class GithubLoginView extends React.Component { renderTokenInput() { return (
-

- Step 1: Visit github.atom.io/login to generate - an authentication token. -

-

- Step 2: Enter the token below: -

+
+

Enter Token

+
    +
  1. Visit github.atom.io/login to generate + an authentication token.
  2. +
  3. Enter the token below:
  4. +
+ -
- - -
+
    +
  • + +
  • +
  • + +
  • +
); } diff --git a/lib/views/github-tab-view.js b/lib/views/github-tab-view.js index 5417345ad9..48dbd17119 100644 --- a/lib/views/github-tab-view.js +++ b/lib/views/github-tab-view.js @@ -81,7 +81,8 @@ export default class GitHubTabView extends React.Component { // TODO: display a view that lets you create a repository on GitHub return (
-
+
+

No Remotes

This repository does not have any remotes hosted at GitHub.com.
diff --git a/lib/views/remote-selector-view.js b/lib/views/remote-selector-view.js index 9dd3624372..4f31aa36fb 100644 --- a/lib/views/remote-selector-view.js +++ b/lib/views/remote-selector-view.js @@ -15,8 +15,8 @@ export default class RemoteSelectorView extends React.Component { // todo: ask Ash how to test this before merging. return (
-
- +
+

Select a Remote

This repository has multiple remotes hosted at GitHub.com. Select a remote to see pull requests associated diff --git a/styles/git-tab.less b/styles/git-tab.less index 54d6ff2bcf..26a955d4ed 100644 --- a/styles/git-tab.less +++ b/styles/git-tab.less @@ -17,31 +17,39 @@ -webkit-user-select: none; cursor: default; - &.no-repository { - padding: @component-padding * 3; - text-align: center; - } - &.is-loading { color: @text-color-subtle; } - &.no-repository { + &.no-repository, + &.too-many-changes, + &.unsupported-directory { display: flex; justify-content: center; font-size: 1.25em; + padding: @component-padding * 3; + text-align: center; > * { margin: @component-padding 0; } - .git-logo-path { - fill: mix(@base-background-color, @text-color, 66%); // 2/3 of bg color + h1 { + margin-bottom: @component-padding * 3; } - .btn.btn-primary { + button { overflow: hidden; text-overflow: ellipsis; } } + + &-LargeIcon:before { + margin-right: 0; + margin-bottom: @component-padding * 5; + width: auto; + height: auto; + font-size: 8em; + color: mix(@base-background-color, @text-color, 66%); // 2/3 of bg color + } } diff --git a/styles/github-login-view.less b/styles/github-login-view.less index 974ff37e4f..9559a89ac8 100644 --- a/styles/github-login-view.less +++ b/styles/github-login-view.less @@ -1,40 +1,47 @@ -.github-GithubLoginView-Container { - height: 100%; - display: flex; -} - .github-GithubLoginView { - height: 100%; + flex: 1; display: flex; + flex-direction: column; + font-size: 1.25em; .github-GithubLoginView-Subview { flex: 1; display: flex; flex-direction: column; - align-self: center; - align-items: center; - padding: 20px; + justify-content: center; + text-align: center; + padding: @component-padding * 3; - > button, > input { - margin: @component-padding; + > * { + margin: @component-padding 0; } - } - p { - text-align: center; - font-size: @font-size * 1.25; - margin: 0; + h1 { + margin-bottom: @component-padding * 3; + } - &:first-child { - margin-bottom: 20px; + button { + width: 100%; + overflow: hidden; + text-overflow: ellipsis; } - a { - color: @text-color-info; + ol { + text-align: left; + padding: @component-padding 0; + + a { + color: @text-color-info; + } } - } - input[type=text] { - width: 100%; + ul { + list-style: none; + padding-left: 0; + + li:not(:last-child) { + margin-bottom: @component-padding; + } + } } } diff --git a/styles/github-tab.less b/styles/github-tab.less index d837b1fb1b..5d9dc35114 100644 --- a/styles/github-tab.less +++ b/styles/github-tab.less @@ -33,27 +33,35 @@ > * { margin: @component-padding 0; } + + h1 { + margin-bottom: @component-padding * 3; + } } .github-RemoteSelector { ul { list-style: none; padding-left: 0; + + li:not(:last-child) { + margin-bottom: @component-padding; + } } button { width: 100%; - margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; } } - &-largeGitHubLogo:before { + &-LargeIcon:before { margin-right: 0; + margin-bottom: @component-padding * 5; width: auto; height: auto; - font-size: 6em; + font-size: 8em; color: mix(@base-background-color, @text-color, 66%); // 2/3 of bg color } }