Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added container decorator

  • Loading branch information...
commit 52ff83cbae6fb27c8d2dd0e5ec1a5bf3ee386387 1 parent e49616c
Yuri Komarov authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 less/deco.less
View
18 less/deco.less
@@ -126,3 +126,21 @@
border: 1px solid @bordercolor;
}
+// containers
+.container(@padding: 10px, @bgColor: #fff, @borderColor: lighten(#000, 90%), @borderRadius: 5px){
+ // generic properties
+ padding: @padding;
+ background: @bgColor;
+ .border-radius(@borderRadius);
+ border: 1px solid @borderColor;
+
+ // childs
+ > h1:first-child {
+ .b();
+ .bg(lighten(@grayLighter, 5));
+ .margin(-@padding, -@padding, @padding, -@padding);
+ padding: @padding;
+ font-size: 1.1em;
+ line-height: 1.2;
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.