The worlds smallest fully-responsive css framework

Related tags

Frameworks fluidity
Overview

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.

Comments
  • mention the need for markup changes

    mention the need for markup changes

    Note: maybe the divs should be created dynamically with the js (which is currently empty anyway). That would make using fluidity easier and less prone to human error.

    opened by waldyrious 6
  • wording tweaks for clarity

    wording tweaks for clarity

    • "almost 100% responsive; let's fix that" sounds a bit like we're aiming at negating the responsiveness. Changed to an alternative wording that makes it more explicit. Also, add a comma.
    opened by waldyrious 2
  • + minifed header

    + minifed header

    I know it will add about 35 more characters, but I think because of concocting (Browserify, web components, CDNs), it is important to keep minimal info with the file for copyright reasons & checking for updates.

    After you PR this (or something similar, or not), I plan to host this on jsDelivr CDN.

    opened by tomByrer 1
  • make html valid

    make html valid

    • encode invalid characters in URL (pipe and space)
    • add alt attribute to image
    • move iframe's styling attributes to css (100% is an invalid value for the width attribute, and the frameborder attribute is deprecated)

    also harmonize spacing in css, and shorten the line with the bootstrap link.

    opened by waldyrious 1
  • Fluid iFrame height

    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.

    opened by RyanRoberts 1
  • Fix code indentation

    Fix code indentation

    Hi!

    Cool project!

    Excuse me if I am mistaken, but the README seems to render a bit different from what I expect was the intention. This simple commit fixes that.

    Thanks again for a cool project and keep up the good work!

    opened by eiriksm 1
  • Reduce bytes further by negating need for charset declaration

    Reduce bytes further by negating need for charset declaration

    Minimised version is now 115 bytes, the charset declaration was only necessary because of a comment which doesn't even end up in the minimised version.

    opened by danielsmith-eu 1
  • Update `overflow-y` to `overflow-x` in `.overflow-container`

    Update `overflow-y` to `overflow-x` in `.overflow-container`

    • Though .overflow-container works correctly with overflow-y: scroll set, I believe your intent was to force scrolling on the x axis, so I updated overflow-y to overflow-x.
    opened by chrisnager 0
  • Remove overflow scrolling

    Remove overflow scrolling

    I know this is kind of a key part of this, but I think keeping scroll-to-top around is more important than overflow scrolling in these places—especially when this is trying to be as little as possible. Plus, makes it even smaller!

    Also, ignore some files. There’s a separate branch for it if you only want this.

    opened by kennethormandy 0
  • Delete CNAME

    Delete CNAME

    The fluidity.sexy domain is down. This change allows the default GitHub Pages domain to work again, so that the site will be live at https://mrmrs.github.io/fluidity/.

    Addresses #30.

    opened by waldyrious 1
  • `height:100%` seems redundant

    `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+

    opened by thierryk 5
  • why

    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.

    opened by cbracco 0
  • Consider adding form elements

    Consider adding form elements

    By default, select and textarea elements are not fluid.

    There are more, of course, such as input, however I'll just open up the discussion as to which elements should be considered for inclusion.

    http://codepen.io/joeyhoer/pen/wEtCy/

    opened by joeyhoer 2
Releases(v0.2.0)
Owner
murmurs
Generative artist. Computational designer. Exploring what can and can't be computed within design.
murmurs
The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

Bootstrap Sleek, intuitive, and powerful front-end framework for faster and easier web development. Explore Bootstrap docs » Report bug · Request feat

Bootstrap 161.1k Jan 4, 2023
Knockout makes it easier to create rich, responsive UIs with JavaScript

Knockout Knockout is a JavaScript MVVM (a modern variant of MVC) library that makes it easier to create rich, desktop-like user interfaces with JavaSc

Knockout.js 10.3k Jan 4, 2023
Materialize, a CSS Framework based on Material Design

MaterializeCSS Materialize, a CSS Framework based on material design. -- Browse the docs -- Table of Contents Quickstart Documentation Supported Brows

Alvin Wang 38.8k Dec 28, 2022
An HTML5/CSS3 framework used at SAPO for fast and efficient website design and prototyping

Welcome to Ink Ink is an interface kit for quick development of web interfaces, simple to use and expand on. It uses a combination of HTML, CSS and Ja

SAPO 1.9k Dec 15, 2022
🌟 DataFormsJS 🌟 A minimal JavaScript Framework and standalone React and Web Components for rapid development of high quality websites and single page applications.

?? Welcome to DataFormsJS! Thanks for visiting! ?? ?? ?? ?? ?? ?? 中文 (简体) 欢迎来到 DataFormsJS Español Bienvenido a DataFormsJS Português (do Brasil) Bem

DataFormsJS 156 Dec 8, 2022
HTML Framework that allows you not to write JavaScript code.

EHTML (or Extended HTML) can be described as a set of custom elements that you can put on HTML page for different purposes and use cases. The main ide

Guseyn Ismayylov 171 Dec 29, 2022
One framework. Mobile & desktop.

Angular - One framework. Mobile & desktop. Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScr

Angular 85.7k Jan 4, 2023
Ember.js - A JavaScript framework for creating ambitious web applications

Ember.js is a JavaScript framework that greatly reduces the time, effort and resources needed to build any web application. It is focused on making yo

Ember.js 22.4k Jan 8, 2023
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

Supporting Vue.js Vue.js is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome ba

vuejs 201.7k Jan 8, 2023
The tiny framework for building hypertext applications.

Hyperapp The tiny framework for building hypertext applications. Do more with less—We have minimized the concepts you need to learn to get stuff done.

Jorge Bucaran 18.9k Jan 4, 2023
A framework for building native apps with React.

React Native Learn once, write anywhere: Build mobile apps with React. Getting Started · Learn the Basics · Showcase · Contribute · Community · Suppor

Facebook 106.8k Jan 3, 2023
The Backbone Framework

Marionette.js The Backbone Framework Marionette v5 Marionette is dropping its dependency on Backbone. That library is available here: https://github.c

Marionette.js 7.1k Jan 5, 2023
MVC framework making it easy to write realtime, collaborative applications that run in both Node.js and browsers

Derby The Derby MVC framework makes it easy to write realtime, collaborative applications that run in both Node.js and browsers. Derby includes a powe

DerbyJS 4.7k Dec 31, 2022
A JavaScript Framework for Building Brilliant Applications

mithril.js What is Mithril? Installation Documentation Getting Help Contributing What is Mithril? A modern client-side JavaScript framework for buildi

null 13.5k Dec 26, 2022
Better MV-ish Framework

❗ I started working on this project in 2012. React didn't exist, Angular didn't have a stable 1.0 release, Internet Explorer 7, 8, 9 was used by 35% o

Antonio Stoilkov 2.8k Jan 1, 2023
A framework for real-time applications and REST APIs with JavaScript and TypeScript

A framework for real-time applications and REST APIs with JavaScript and TypeScript Feathers is a lightweight web-framework for creating real-time app

Feathers 14.2k Dec 28, 2022
A rugged, minimal framework for composing JavaScript behavior in your markup.

Alpine.js Alpine.js offers you the reactive and declarative nature of big frameworks like Vue or React at a much lower cost. You get to keep your DOM,

Alpine.js 22.5k Dec 30, 2022
Semantic is a UI component framework based around useful principles from natural language.

Semantic UI Semantic is a UI framework designed for theming. Key Features 50+ UI elements 3000 + CSS variables 3 Levels of variable inheritance (simil

Semantic Org 50.3k Jan 3, 2023
A no-dependency, intuitive web framework from scratch in Javascript

Poseidon ?? Intro Poseidon is, to use a nice description by Reef, an anti-framework. It's a a no-dependency, component-based Javascript framework for

Amir Bolous 45 Nov 14, 2022