[go: up one dir, main page]

Skip to content

afeiship/webkit-sassui-layout-justify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webkit-sassui-layout-justify

Webkit sass ui module for justify skills.

usage:

  • use sass mixin:
.justify-demo {
  //Child must have font-size:
  @include webkit-sassui-justify(14px);
  >*{
    width: 24px;
    line-height: 24px;
    text-align: center;
    background: #333;
    color: white;
    border-radius: 50%;
  }
}
  • OR you can use css directily:
<style media="screen">
.justify-demo>*{
  /*
  1.Child elements must by original inline elements.
  2.Child elements must have height.(If NOT,the box will has a hidden height)
  */
  height:24px;
}
</style>
<div class="webkit-sassui-justify justify-demo">
  <span>item1</span>
  <span>item2</span>
  <span>item3</span>
</div>
  • justify-text(ONLY for 'inline-element')
<div class="webkit-sassui-justify-text justify-text-demo">
  <i>1</i>
  <i>2</i>
  <i>3</i>
  <i>4</i>
</div>

resources:

About

Webkit css ui module for justify skills.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published