Giter Club home page Giter Club logo

dench.css's Introduction

The Idea

Create a CSS file I can use, with classes I'd find useful, so that no time's wasted in setting up a new sideproject.

Todo

  • come up with a name
  • Gridding with Flexbox
  • Classes for background/foreground color
  • Header/Body Styling
  • Sticky footer with Flex
  • Finish off docs
    • _vars.css
    • boiler.css
    • box.css
    • color.css
    • grid.css
    • text.css
  • Helpful CSS classes
    • Material design button
    • Better looking forms
    • Material/Semantic inspired 'paper'

Docs

Gridding

The gridding system utilises Flexbox to operate. A standard, and sane (ahem, semantic-ui) grid, comprising of 12 columns is used. Columns live inside rows, which themselves live inside of a main container. A by-product of using this main container is that by default, the footer is stickied to the bottom. A typical setup may be:

<div class="container">
    <div class="row">
        <div class="col sm6">A column that takes up 50% of the page</div>
        <div class="col sm6">Another column that takes up 50% of the page</div>
    </div>
</div>

Responsive Design

The grid allows for responsive design, with sm, md and lg prefixes.

  • sm is for mobiles - <768px in width
  • md is for larger devices that are <992px in width;
  • lg is for normal pages >=992pox in width.

Column Spacing

As well as having columns with a default spacing of 1%, we can also add more with spc-$N,where $N is one of 12, 24, 40 and describe the amount of pixel padding on the left and the right.

Push and Pull

Conventional push and pull isn't a part of this framework, but there does exist the option to center the columns - using flex. This can be easily achieved by adding .cols-center as a class to your row div.

Font

Colors

CSS Box Model

  • The Box model. Of the form BB-PP-SS
    • .mg-hz-20 yields a border on the left and right of size 20%.
    • BB - Box - either:
      • Padding: pa;
      • Margin: mg _ PP - Position (optional)
      • Left/Right/Top/Bottom: [l|r|t|b]
      • Vertical/Horizontal: [hz|vt]
    • SS - Size
      • Measured in percentages, one of [20|40|60|80]

Helpers

dench.css's People

Contributors

hjfitz avatar

Watchers

James Cloos avatar  avatar

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.