This repository has been archived on 2019-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
smalkil/layout.less

90 lines
1.4 KiB
Plaintext
Raw Normal View History

2012-12-17 19:07:32 +02:00
@basesize: 1em; //base font size
@columns: 16; //number of columns - for grid
@gutter: 1.5%;
2012-12-12 06:26:11 +02:00
2012-12-14 06:32:05 +02:00
.clearfix() {
*zoom: 1;
&:before,
&:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
2012-12-12 06:26:11 +02:00
body{
margin: @basesize 2 * @basesize;
font-size: @basesize;
line-height: 1.5 * @basesize;
margin-bottom: 1.5 * @basesize;
}
h1 {
font-size: 2 * @basesize;
line-height: 0.75 * @basesize;
}
h2 {
font-size: 1.5 * @basesize;
line-height: @basesize;
}
p {
text-indent: 2 * @basesize;
2012-12-14 09:36:44 +02:00
text-align: justify;
2012-12-12 06:26:11 +02:00
}
2012-12-14 13:26:28 +02:00
blockquote {
padding-left: 0.5 * @basesize;
border-left: 1px dashed @background4;
}
2012-12-12 06:26:11 +02:00
pre, code { }
small { }
2012-12-14 09:36:44 +02:00
acronym, abbr {
2012-12-12 07:13:08 +02:00
border-bottom: 1px dashed @foreground4;
color: @foreground4;
}
2012-12-12 06:26:11 +02:00
2012-12-14 10:55:03 +02:00
table {
border:0px;
border-collapse:collapse;
td{
padding:0px;
}
}
2012-12-12 06:26:11 +02:00
.hidden {
display: none;
}
2012-12-14 06:32:05 +02:00
2012-12-17 19:07:32 +02:00
.grid () {
2012-12-14 06:32:05 +02:00
.clearfix();
2012-12-17 19:07:32 +02:00
margin-left: -@gutter;
}
.col(@width: 1) {
float: left;
padding-left: @gutter;
width: percentage(@width / @columns) - @gutter;
2012-12-14 06:32:05 +02:00
}
2012-12-17 19:07:32 +02:00
2012-12-14 08:20:02 +02:00
// classes for use in plain CSS
2012-12-17 19:07:32 +02:00
.column { .col(); }
.column2 { .col(2); }
.column3 { .col(3); }
.column4 { .col(4); }
.column5 { .col(5); }
.column6 { .col(6); }
.column7 { .col(7); }
.column8 { .col(8); }
.column9 { .col(9); }
.column10 { .col(10); }
.column11 { .col(11); }
.column12 { .col(12); }
.column13 { .col(13); }
.column14 { .col(14); }
.column15 { .col(15); }
.column16 { .col(16); }