Analysis of Bootstrap well.less

Source: Internet
Author: User
So

Embedded simple effects
WELL-LG: A wide range of situations
WELL-SM: A small range of circumstances
well.less Analysis of a medium-range situation

Use padding and Boder-radius to control the size of LG and SM

. It's {
  min-height:20px;
  padding:19px;
  margin-bottom:20px;
  Background-color: @well-bg;
  border:1px solid @well-border;
  Border-radius: @border-radius-base;
  Box-shadow (inset 0 1px 1px rgba (0,0,0,.05));
  blockquote {
    border-color: #ddd;
    Border-color:rgba (0,0,0,.15);
  }

Sizes
. well-lg {
  padding:24px;
  Border-radius: @border-radius-large;
}
. WELL-SM {
  padding:9px;
  Border-radius: @border-radius-small;
}

Variables.less the related variables are defined
@well-BG:                     #f5f5f5;
@well-border:                 Darken (@well-bg, 7%);
Box-shadow Property

Add a shadowed property to the.

Http://www.runoob.com/cssref/css3-pr-box-shadow.html

Inset: Changes shadow inside Shadow from Outer shadow (start)
corresponding to the. Box-showdow function under Mixins-> vendor-prefixes.less

Grammar:

Box-shadow:h-shadow v-shadow blur spread color inset;

H-shadow: Horizontal distance of Shadow
V-shadow: The vertical distance of the shadow
Blur: Fuzzy degree
Spread: The size of the shadow
Color: The Colors of shadows
Inset: From outside to Inside (default is from inside to outside) blockquote

Defines the style of the. blockquote

    <div class= "OK" >
      <blockquote>look, I ' m in a well!</blockquote>
    </div>
Darken ()

Less function to deepen the color
http://lesscss.org/functions/#color-operations-darken

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.