Giter Club home page Giter Club logo

antibase-css's Introduction

antibase-css v0.1.1

This module is web frontend sass library

feature

  • sass modules
  • utility class(margin align text mediaqueries)

setting variable

html type

  • $use_html5 true(default) or false
  • $reset_type "reset"(default) or "normalize"

grid system

  • $content-width: 1000px
  • $desktop-width: $content-width
  • $gutter-width: 20px
  • $sp-width: 640px

margin

  • $tablet-inner-margin: 10px
  • $sp-inner-margin: 10px

font

  • $baseFontSizeNum: 16
  • $baseFontSize: $baseFontSizeNum + px
  • $baseFontFamily: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif

color

  • $bodyBgColor: #fff
  • $baseFontColor: #000
  • $linkColor: $baseFontColor
  • $linkColor-hover: $baseFontColor
  • $baseColor1: #663300
  • $baseColor2: lighten($baseColor1, 10%)
  • $mainColor1: #1983f0
  • $mainColor2: lighten($mainColor1, 10%)
  • $subColor1: #1983f0
  • $subColor2: lighten($subColor1, 10%)

color name

$white : #fff $black : #000

red

$lightRed: #ff6d72 $red: #ff3135 $darkRed: #AB2520

green

$lightGreen: #f0ffcf $green: #8fc31f $darkGreen: #5b8a10

blue

$lightBlue: #eef2f8 $blue: #2253b4 $darkBlue: #4e6c8c

orange

$lightOrange: #ffc400 $orange: #ffc400 $darkOrange: #ff7200

pink

$lightPink: #ffacd1 $pink: #ff4a9b $darkPink: #be5254

purple

$lightPurple: #7347b6 $purple: #7347b6 $darkPurple: #4e6c8c

yellow

$lightYellow: #f4e28e $yellow: #fad704 $darkYellow: #faca6e

gray

$lightGray: #a2a2a2 $gray: #999 $darkGray: #565656

brown

$lightBrown: #59380b $brown: #38210e $darkBrown: #2c1d06

ocher (黄土色)

$lightOcher: #dbb542 $ocher: #dbb542 $darkOcher: #9a8032

and more support browser flag($support-ie6, $support-ie7, $support-ie8, etc...)

utility classes

align

  • u-align--left
  • u-align--center
  • u-align--right
  • u-align--vertical-middle
  • u-align--vertical-base

device

  • u-only--pc
  • u-only--sp
  • u-not--pc
  • u-not--sp
  • u-inner--tablet
    • margin left & right $tablet-inner-margin
  • u-inner--sp
    • margin left & right $sp-inner-margin

margin

  • u-mgt--(0 ~ 100 step 5)
  • u-mgb--(0 ~ 100 step 5)
  • u-mgv--(0 ~ 100 step 5)
  • u-mgl--(0 ~ 100 step 5)
  • u-mgr--(0 ~ 100 step 5)
  • u-mgh--(0 ~ 100 step 5)

text

  • u-txt--strong
  • u-txt--small

install

npm install --save-dev antibase-css

usage

# css/style.sass
@import "../node_modules/antibase-css/sass/antibase"

mixin

device

  • =break($width)
  • =tablet
  • =smartphone

utility

  • =clrfx
  • =absorb

column

  • =row
  • =col($num)
  • =twoCol
  • =twoColFixed
  • =twoColFixedRight
  • =twoColFluid

for IE

  • =innner-block
  • =table-cell($num)

css3

  • =opacity($num)
  • =rem($fontsize, $base: $baseFontSizeNum)
  • =linkListArrow($size: 10px, $right: 10px, $border-size: 2px, $color: #333)

replace images

  • =replaceImg($url, $width, $height, $sp: 0)
  • =replaceImgHover($url, $width, $height, $sp: 0)

antibase-css's People

Contributors

muyuu avatar

Watchers

 avatar

antibase-css's Issues

Getting more done in GitHub with ZenHub

Hola! @muyuu has created a ZenHub account for the muyuu organization. ZenHub is the leading team collaboration and project management solution built for GitHub.


How do I use ZenHub?

To get set up with ZenHub, all you have to do is download the browser extension and log in with your GitHub account. Once you do, you’ll get access to ZenHub’s complete feature-set immediately.

What can ZenHub do?

ZenHub adds a series of enhancements directly inside the GitHub UI:

  • Real-time, customizable task boards for GitHub issues;
  • Burndown charts, estimates, and velocity tracking based on GitHub Milestones;
  • Personal to-do lists and task prioritization;
  • “+1” button for GitHub issues and comments;
  • Drag-and-drop file sharing;
  • Time-saving shortcuts like a quick repo switcher.

Add ZenHub to GitHub

Still curious? See more ZenHub features or read user reviews. This issue was written by your friendly ZenHub bot, posted by request from @muyuu.

ZenHub Board

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.