Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support mobile devices #176

Merged
merged 19 commits into from
Aug 1, 2016
Merged

Conversation

thatkookooguy
Copy link
Member

@thatkookooguy thatkookooguy commented Jul 25, 2016

Change Summary

  • make kibibit support(-ish) mobile devices. [resolves SUPPORT-ISH FOR MOBILE #180]

    Added a mixin for phone. to use, put this inside the class you want to change on a small width device: @include phone{<...phone styling here...>}

More info

This turned out to look pretty good! I'm proud :-)

  • did you link this PR to an issue?
  • did you lint your changes to both javascript and scss?
  • "I'm pretty sure I'll be able to read and understand this PR, even if I wasn't the author." - _said the PR author_

@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 25, 2016 23:12 Inactive
@@ -291,4 +349,4 @@ md-input-container {
}
// scss-lint:enable IdSelector
// scss-lint:enable NestingDepth
// scss-lint:enable SelectorDepth
// scss-lint:enable SelectorDepth

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Files should end with a trailing newline

@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 25, 2016 23:14 Inactive
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 25, 2016 23:16 Inactive

@include phone {
bottom: 0;
left: 0 !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 25, 2016 23:25 Inactive
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 25, 2016 23:54 Inactive
position: absolute;
right: 0;
top: 0;
width: 100% !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 26, 2016 07:11 Inactive
Since the sidebar and the main-view doesn't share space on mobile, the following things need to happen:

- When selecting a project, the sidebar should open
- When selecting a file in the sidebar, the sidebar should close

This way, you see the right view when you need.
You can still open and close the sidebar yourself using the hamburger and close button
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 27, 2016 11:11 Inactive
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 27, 2016 15:00 Inactive
make menu bar smaller on mobile
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 27, 2016 16:08 Inactive
@include phone {
.main-area {
height: calc(100vh - 52px - 30px) !important;
top: 52px !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used


@include phone {
.main-area {
height: calc(100vh - 52px - 30px) !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!important should not be used

@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 27, 2016 23:45 Inactive
}

.mobile-sidebar {
display: none;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properties should be ordered color, display

@thatkookooguy
Copy link
Member Author

Thought about making this one big media query instead of lots of little ones, but after reading this, performance problems don't worry me as much

…bile

# Conflicts:
#	public/app/views/index.html
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 July 31, 2016 07:57 Inactive
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 August 1, 2016 11:04 Inactive
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 August 1, 2016 12:15 Inactive
+ fixes like:
- no more duplication of sidebar
@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 August 1, 2016 13:49 Inactive
}

.menu-button {
display: none;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properties should be ordered color, display, fill

@thatkookooguy thatkookooguy temporarily deployed to kibibit-demo-pr-176 August 1, 2016 13:51 Inactive
@thatkookooguy thatkookooguy changed the title [DO NOT SUBMIT] Fun with mobile [FEATURE] Support mobile devices Aug 1, 2016
@thatkookooguy thatkookooguy self-assigned this Aug 1, 2016
@thatkookooguy thatkookooguy merged commit c278664 into master Aug 1, 2016
@thatkookooguy thatkookooguy deleted the feature-fun-with-mobile branch August 1, 2016 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SUPPORT-ISH FOR MOBILE
2 participants