Giter Site home page Giter Site logo

elifesciences / xpub-responsive-proto Goto Github PK

View Code? Open in Web Editor NEW
0.0 8.0 1.0 46 KB

Demonstrates how the eLife xPub grid system should lay out for the user

Home Page: https://elifesciences.github.io/xpub-responsive-proto/web/sample.html

License: MIT License

JavaScript 3.32% HTML 4.23% CSS 92.45%

xpub-responsive-proto's Introduction

Prototypes and guides

What this prototype covers

  • It demonstrates how components relate to the grid across varying viewport sizes
  • It demonstrates how we apply vertical space at eLife (gridUnit). This may need to differ for PubSweet
  • It demonstrates components’ behaviour when they are not applied to the grid (app bar)
  • It illustrates how we imagine breakpoints will work on the submission wizard so that the same ideas can be applied to other screens. At the moment there are two breakpoints in operation in this prototype: at 768px and 1000px.

What this prototype does not cover

  • This example is based on the eLife grid, but it doesn’t necessarily propose that as an implementation in this case. A different grid system may behave differently and decisions will need to be made by reviewing the layout of the components on the new system
  • PubSweet may have a different approach to the eLife website in regard to a setting vertical space and alignment which will need to be considered

Guidance

  • Our starter point is that our components occupy 12 columns on small devices and then adjust to make use of screen real estate
  • Space either side of the grid and gutter is set to 24px
  • Component widths are set by specifying numbers of columns rather than fixed values whenever possible
  • Components work responsively in a fluid manner with the grid columns and are adjusted to suit the nature of the content, rather than specific device sizes or types (e.g. a text input of 100% browser width is unreasonably wide, so would be set to respond on the grid before reaching this point.). In this way, the UI works on all devices to a certain extent and is as future proof as possible.
  • To keep vertical spacing manageable, and to avoid margins collapsing inconveniently, when vertical space is required, it is applied to the bottom of components, never to the top. If an edge case arises where the required vertical space cannot be achieved with this approach, it is acceptable to create a wrapper in order to add more space. This should only be done sparingly. Vertical space may be applied to the top of such a wrapper instead of the bottom if it’s the only way to achieve the desired result. There will almost always be a better way that does not require top spacing.

xpub-responsive-proto's People

Contributors

davidcmoulton avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

hdrury1

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.