Coder Social home page Coder Social logo

alfajango / foundation-mobile Goto Github PK

View Code? Open in Web Editor NEW
57.0 57.0 8.0 1.58 MB

Mobile UI for Foundation-based apps

Home Page: http://os.alfajango.com/foundation-mobile/

License: MIT License

Ruby 4.60% Shell 1.33% JavaScript 60.58% CSS 33.49%

foundation-mobile's People

Contributors

jangosteve avatar patrickmcsweeny avatar scouttyg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

foundation-mobile's Issues

Full-window drop-downs

Foundation has sort-of-modal (not really modal but show up on top of everything) drop-downs, like this one on the split buttons:

screen shot 2013-06-12 at 3 21 08 pm

It'd be nice on mobile to have the option of making those drop-downs take up the full screen. From the screenshot, you can see Foundation already makes them full-width on mobile, so we'd just need to add the ability to make them full height, which would need to be done via JavaScript.

For instance, the drop-down in the screenshot (from the Foundation docs) has an id of drop4, so I can make it full height with this line:

var $window = $(window),
    $dropdown = $('#drop4');
$dropdown.height($window.height() - ($dropdown.offset().top - $window.scrollTop()) - 10)

Something like this could be called on $('.f-dropdown').click.

This detects the current height of the window, the position of the top of the drop-down, relative to the current window scrollTop, and sizes it so that the bottom is 10 pixels from the bottom of the window:

screen shot 2013-06-12 at 3 21 24 pm

Add has-mobile-list to dropdowns

Currently if we do a drop-down with a mobile-list, it looks like this:

screen shot 2013-06-26 at 12 21 45 pm

It'd be nice to get rid of the surrounding padding and extra border, so that you just get a dropdown that is the list. I'm not sure if this should be done by putting a ul.mobile-list inside the dropdown element, or if we could make it so that the dropdown is the .mobile-list element, since a dropdown can be a ul.

For example, the code that produced the above looks like this:

<a href="#" data-dropdown="drop2" class="button dropdown">Dropdown Button</a>

<ul id="drop2" data-dropdown-content class="f-dropdown full-size mobile-list">
  <li><a href="#">This is a link</a></li>
  <li><a href="#">This is another</a></li>
  <li><a href="#">Yet another</a></li>
</ul>

Notice that the ul is both the .f-dropdown and the .mobile-list element.

Responsive tables

Implement CSS/JS for one or more responsive table approaches shown here. I'm partial to the "No More Tables" approach.

Global loading indicator

I'd like to do a global loading indicator for apps. The idea is you'd have one loading indicator for your whole app, maybe in the title bar, or if you really wanted, centered on the screen. It'd be similar to how native apps usually do.

The reason I want this is because I think it's great UX to always be able to immediately show the user that their click or action was recognized and the app is doing something.

We could even have some default binding attached to the page unload event, such that any time the user clicks a link, the loading indicator would let them know the next page is being fetched.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.