10000 GitHub - r3wt/ez-framework: a rethought approach to responsive web design
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

r3wt/ez-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ez-framework

abstract


  • to provide as small as possible file size.
  • deliver an extensible responsive framework in a single javascript file.
  • instead of using media queries, use a simple concept of device type:
    • mobile
    • tablet
    • desktop
  • needs to render fast
  • no screen flicker
  • no dependencies; PERIOD!
  • familiar 12 column layout concept
  • to be easily customizeable and extendable
    1. drop in sass dependencies
    2. edit sass
    3. edit js
    4. recompile

notes


  1. ez automatically pulls in roboto font and material design icons from googlefonts.
  2. ez has a throttled window listener to check body sizes.
  3. the device detection is basic at this time, and the logical precendence is important for the detection to work. you can see explanation in src/ez.js getSize() function.

roadmap


  1. grid
  2. basic size selection
  3. improve device size selection
  4. basic typography
  5. scaling typography
  6. list & menu components (including navbar)
  7. form components
  8. animated loading indicator

building


  1. clone repo
  2. install dependencies with npm install
  3. build with gulp gulp

usage


<!-- its really this simple -->
<script src="dist/ez.min.js"></script>

js documentation


none yet.

css documentation


  1. .row - a row of columns
  2. .container(.fluid) - a container element with max width of 1200px. add .fluid class for full width.
  3. .col - a column element. default width 100%, so in case of element having class .col.m-12 width will be 100% since no selector other than .col will match.
  4. .col.m-{1-11} m stands for mobile. width of element is 100 / number (in percent), same as bootstrap and foundation.
  5. .col.t-{1-11} t stands for tablet. width of element is 100 / number (in percent), same as bootstrap and foundation.
  6. .col.d-{1-11} m stands for desktop. width of element is 100 / number (in percent), same as bootstrap and foundation.
  7. .loading(.hide-contents) attaching this class will overlay an element with an loading indicator animation. add .hide-contents to hide all other children of the element.
  8. .input works on textarea,select,and inputs.
  9. .btn to be used on buttons, links, and input[type="button"] extra classes coming soon.
  10. .form-group provides a bottom margin to a group of form inputs. identical to the same concept in bootstrap.
  11. .checkbox coming soon
  12. .radio coming soon
  13. .switch coming soon
  14. .slider coming soon

About

a rethought approach to responsive web design

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0