Coder Social home page Coder Social logo

fluidity's Introduction

FLUIDITY

A fully responsive css framework that is impossibly small

HTML is almost 100% responsive out of the box. This stylesheet patches the remaining holes to get to 100% and in just 247 minified bytes. Let's make the web just a bit more responsive shall we?

Installing fluidity

Production

Just include the fluidity css file in the head of your html file:

<link rel="stylesheet" href="css/fluidity.min.css">

For elements that need to retain widths that might be wider than a device's viewport (i.e tables), wrap them in a div with the class 'overflow-container' like so:

  <div class="overflow-container">
    <table>
      ...
    </table>
  </div>

Development

If you want to develop with the uncompressed version, include instead:

<link rel="stylesheet" href="css/fluidity.css">

Available build / dev tools

If you'd like to use the available build tools just run:

cd fluidity
npm install -g gulp
npm install
gulp

Gulp Tasks

Gulp is a JavaScript task runner. http://gulpjs.com

There are a few common tasks that gulp takes care of here:

  • Livereload
  • CSS minification
  • Autoprefixer
  • Sass
  • Lints the compiled css

Run these from the root directory of the project. The command

gulp

runs a live reload server and starts sass compilation while running csslint, while

gulp production

also minifies the css.

License

The MIT License (MIT)

Copyright (c) 2014 @mrmrs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

fluidity's People

Contributors

chrisnager avatar danielsmith-eu avatar eiriksm avatar homeworkprod avatar kennethormandy avatar kristinabrown avatar techwraith avatar tombyrer avatar waldyrious 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  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  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

fluidity's Issues

`height:100%` seems redundant

The height and width here and here do not seem to serve a purpose since the element is styled with the following:

position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;

The offsets alone should be enough to stretch the box vertically and horizontally in IE7+

Bower support?

would it make since for fluidity to be installable through bower?

why "overflow-y: scroll;" on .table-container?

Hey dude!

Question: why you are using overflow-y: scroll; instead of overflow-x on the .table-container property? Isn't it on the x-axis that the container is supposed to allow overflow? Just curious ... seems to work fine, regardless.

Fluid iFrame height

Here's a quick example of how to make the iFrame fully respond rather than being a fixed height: http://codepen.io/RyanRoberts/pen/Ckgas/

One important point to note is that the height is relative to the container width (in this case the .wrapper width) and not the module width itself. Pretty standard RWD stuff.

Maybe consider this as an additional module for Fluidity? My own version uses BEM style classes so that I can apply it to just about anything and not just iFrames.

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.