Code Monkey home page Code Monkey logo

skelett-media-queries's Introduction

Skelett Media-Queries

A barebones (German: Skelett) media query library without any styling.

Used by skelett-flexbox-grid and sekelett-container.

The Skelett

  • The Skelett repos are a bunch of standalone scss libraries without any styling so they don't interfere with your very beautiful project.
  • No padding
  • No margin
  • no colors
  • no nothing
  • ITCSS naming to prevent style injections
Size px Example Selector Example Selector (downwards)
Extra small ≥320px @include xs__up { … } @include xs__down { … }
Small ≥576px @include sm__up { … } @include sm__down { … }
Medium ≥768px @include md__up { … } @include md__down { … }
Large ≥992px @include lg__up { … } @include lg__down { … }
Extra large ≥1200px @include xl__up { … } @include xl__down { … }

Example of usage

foo.scss

@include sm__up {
  body {
    background: red;
  }
};

Compiles to

@media (min-width: 576px) {
  body {
    background: red;
    }
};

Visibility Classes

There are visibility Extends as well:

.hidden-sm__down { @include sm__down { display: none; } }

This would hide an element on Lg size and below.

Extend, Mixin, HTML

You can now add Visibility Classes as a extend, as a Mixin or as a class directly in your HTML:

As a Extend:

.yourThing { @extend %hidden-sm__down; }

As a Mixin:

.yourThing { @include hidden-sm__down; }

Or directely in HTML:

<li class="hidden-sm__down">Gugus Dada</li>

skelett-media-queries's People

Contributors

kaspar-allenbach avatar

Watchers

 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.