Toblerone
Samstag, 14. Mai 2011

Testing LESS

.box-shadow (@x: 0, @y: 0, @blur: 1px, @alpha) {
  @val: @x @y @blur rgba(0, 0, 0, @alpha);
  box-shadow: @val;
  -webkit-box-shadow: @val;
  -moz-box-shadow: @val;
}

.rounded-corners (@radius: 5px) {
  border-radius: @radius;
  -webkit-border-radius: @radius;
  -moz-border-radius: @radius;
}

.less-box { 
   display: inline-block;
   margin: 5px 0;
   padding: 10px;
   border: 1px solid #ff4040;
   .box-shadow(4px, 4px, 6px, 0.5);
   .rounded-corners;
}
Sie sind nicht angemeldet