All Projects → asika32764 → Silicone

asika32764 / Silicone

Licence: mit
A simple css helper to extend bootstrap and other css frameworks

Projects that are alternatives of or similar to Silicone

Agilejs
AgileJS - The Css3 Creation Engine 🍖🌭🍔
Stars: ✭ 489 (+1037.21%)
Mutual labels:  css-framework
Water.css
A drop-in collection of CSS styles to make simple websites just a little nicer
Stars: ✭ 6,666 (+15402.33%)
Mutual labels:  css-framework
Hive Framework
A website development framework built with Sass, and incorporating jQuery UI.
Stars: ✭ 14 (-67.44%)
Mutual labels:  css-framework
Hartija Css Print Framework
Universal CSS for web printing
Stars: ✭ 509 (+1083.72%)
Mutual labels:  css-framework
Cardinalcss
A modular, “mobile-first” CSS framework built with performance and scalability in mind.
Stars: ✭ 714 (+1560.47%)
Mutual labels:  css-framework
Ajcss
Stars: ✭ 6 (-86.05%)
Mutual labels:  css-framework
Evie
A production-ready theme for your projects with a minimal style guide https://evie.undraw.co
Stars: ✭ 481 (+1018.6%)
Mutual labels:  css-framework
Mustard Ui
A starter CSS framework that actually looks good.
Stars: ✭ 968 (+2151.16%)
Mutual labels:  css-framework
Cirrus
☁️ The CSS framework for the modern web.
Stars: ✭ 716 (+1565.12%)
Mutual labels:  css-framework
Metro Ui Css
Impressive component library for expressive web development! Build responsive projects on the web with the first front-end component library in Metro Style. And now there are even more opportunities every day!
Stars: ✭ 6,843 (+15813.95%)
Mutual labels:  css-framework
Nhsuk Frontend
NHS.UK frontend contains the code you need to start building user interfaces for NHS websites and services.
Stars: ✭ 511 (+1088.37%)
Mutual labels:  css-framework
Basic.css
Basic.css - Classless CSS Starter File
Stars: ✭ 621 (+1344.19%)
Mutual labels:  css-framework
Kico Style
🍰 一个可口的极简 CSS 前端框架
Stars: ✭ 24 (-44.19%)
Mutual labels:  css-framework
Siimple
The minimal CSS toolkit for flat and clean designs
Stars: ✭ 502 (+1067.44%)
Mutual labels:  css-framework
Bojler
Bojler is an email framework
Stars: ✭ 885 (+1958.14%)
Mutual labels:  css-framework
Mui
Lightweight CSS framework
Stars: ✭ 4,462 (+10276.74%)
Mutual labels:  css-framework
Primitive
⛏️ ‎ A front-end design toolkit for developing web apps.
Stars: ✭ 783 (+1720.93%)
Mutual labels:  css-framework
Beamwind
a collection of packages to compile Tailwind CSS like shorthand syntax into CSS at runtime
Stars: ✭ 32 (-25.58%)
Mutual labels:  css-framework
Fuckcaptcha
AI check CAPTCHA;本项目实现了对拼图型验证码的识别与自动拖动,在某主流验证码的官网上的测试通过率达到95%,允许图片中包含文字、干扰线、颜色差别、大小写字母等,使用传统算法,不进行模型训练。本项目同时发现了国内某大型验证码公司所谓的拖动轨迹分析存粹就是个渣渣,啥也不是。
Stars: ✭ 33 (-23.26%)
Mutual labels:  css-framework
Csscaffold
The original CSScaffold by Anthony Short... He deleted the original repository when he released the newer version.
Stars: ✭ 25 (-41.86%)
Mutual labels:  css-framework

Silicone.css

A simple css helper to use with every css frameworks.

Getting Started

Download latest version or install by bower:

bower install silicone

Then just include it by HTML link:

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

CDN

Use Unpkg to get latest version file.

https://unpkg.com/silicone/dist/silicone.min.css

Box Centered

Use .box-center to make an <div> element align centered. (By using margin: 0 auto;)

It will remove float styles from this element.

Vertical Align

<div class="vertical-align" style="height: 200px">
    <div class="vertical-align-middle">
        Content
    </div>
</div>

This is an full example.

<div class="container">
    <div class="row">
        <div class="col-md-6">
            <h2>Middle</h2>
            <div class="well vertical-align" style="height: 200px">
                <div class="vertical-align-middle">
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit.
                    </p>
                </div>
            </div>
        </div>

        <div class="col-md-6">
            <h2>Bottom</h2>
            <div class="well vertical-align" style="height: 200px">
                <div class="vertical-align-bottom">
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit.
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>

p-2016-12-31-001

Use .table-layout

table-layout can help us do vertical align with display: table method but won't break bootstrap col-* classes.

Also supported media queries (xs- ~ lg-) to create RWD sites.

<div class="row table-layout">
    <div class="col-md-6 md-table-cell vertical-align-middle">
       ...
    </div>

    <div class="col-md-6 md-table-cell vertical-align-middle">
        ...
    </div>
</div>

Clearfix

Use float-group class to wrap elements, this name is more semantic.

<div class="float-group">
    <div class="pull-left"></div>
    <div class="pull-left"></div>
    <div class="pull-left"></div>
</div>

Or use classic sc-clearfix class.

<div>
    <div class="pull-left"></div>
    <div class="pull-left"></div>
    <div class="pull-left"></div>

    <div class="sc-clearfix"></div>
</div>

Sizing

Height

A simple class set to set vh height to elements.

  • .height-xs: 20vh
  • .height-sm: 40vh
  • .height-md: 60vh
  • .height-lg: 80vh
  • .height-full: 100vh

Width

Width classes is useful if you want some elements full width in RWD.

This example will make button 100% width when breakpoint small than 767px.

<button class="btn btn-primary sm-width-full">Submit</button>
  • .xs-width-full: Full width if <= 479px
  • .sm-width-full: Full width if <= 575px
  • .md-width-full: Full width if <= 991px
  • .lg-width-full: Full width if <= 1199px
  • .xl-width-full: Always full width.

Grid Columns Equal Height

Use .equal-hight on row div to make child columns equal height.

<div class="row equal-height">
    <div class="col-lg-4"></div>
    <div class="col-lg-4"></div>
    <div class="col-lg-4"></div>
</div>

This class uses flex-wrap property.

Background Mask

bg-mask class helps us set a background mask to element.

This example use bg-mask to create black ::before element and bg-mask-op-5 add opacity 0.5 to overlay the background image. And the bg-mask-content make sure content text will float on the top.

<div class="bg-mask bg-mask-op-5" style="background-image: url(http://i.imgur.com/6FWMGdH.jpg);">
    <div class="bg-mask-content">
        <h1 style="color: white">Hello World</h1>
    </div>
</div>

The full example is:

<div class="bg-mask bg-mask-op-5 text-center bg-cover bg-center-center"
    style="background-image: url(http://i.imgur.com/6FWMGdH.jpg);">
    <div class="height-md vertical-align">
        <div class="vertical-align-middle bg-mask-content">
            <h1 style="color: white">Hello World</h1>
        </div>
    </div>
</div>

p-2016-12-31-002

The bg-mask-op-* support 1 to 9.

bg-cover is a helpful class to set background-size: cover.

Background Blur

<div class="bg-blur bg-blur-full">
    <div class="bg-blur-content">
        ...
    </div>
</div>

Background Position

You can use .bg-{position} classes to set background position.

  • .bg-center-center
  • .bg-top
  • .bg-middle
  • .bg-bottpm
  • .bg-left
  • .bg-center
  • .bg-right

Margin and Padding

Margin and Padding is a fork of less-space library.

<div class="container">
  <div class="row">
    <div id="content" class="col-md-8 xs-mb-40 md-mb-20">
    </div><!-- content -->
    <div id="sidebar" class="col-md-4 xs-mb-40 md-mb-20">
    </div><!-- sidebar -->
  </div><!-- "row" -->
</div><!-- "container" -->

You don't need to know Bootstrap or any other CSS Framework to understand xs-mb-20 actually does. Let's examine these 3 parted class with a visual diagram.

Red area:

This section defines which viewport that element belongs right now.

  • xs Mobile phones and bigger screen sizes.. xs represents global viewport size by the way. If we want margin or padding values stay same on all screen sizes, we use xs to achieve that.
  • sm (>= 576px) Tablet devices and bigger screens.
  • md (>= 768px) Desktop and bigger screens
  • lg (>= 992px) Large viewport sizes.
  • xl (>= 1200px) Extra large wide viewport sizes.

Blue area

This section defines the attribute that you want to use, either margin or padding

  • p padding
  • pt padding-top
  • pr padding-right
  • pb padding-bottom
  • pl padding-left
  • m margin
  • mt margin-top
  • mr margin-right
  • mb margin-bottom
  • ml margin-left

Green area

This is the integer section that you want to set.

  • It could be zero "0"
  • Only digits.
  • Minus values will not be accepted. (I Didn't define them consider its using rate.)
  • Currently supports: 5, 10, 15, 20, 25, 30, 40, 50, 75, 100
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].