-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.scss
More file actions
128 lines (108 loc) · 3.19 KB
/
layout.scss
File metadata and controls
128 lines (108 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
$layout_mode: col3; //col3,col3blog,
/* //example widths for blog layout
$col_right_width: 25%;
$col_center_width: 25%;
$col_left_width: 50%;
*/
/* // example widths for 3 col layout
$col_right_width: 25%;
$col_center_width: 50%;
$col_left_width: 25%;
*/
$col_right_width: 25%;
$col_center_width: 50%;
$col_left_width: 25%;
$col_center_padding_left: 2%;
$col_center_padding_right: 2%;
$col_left_padding_left: 2%;
$col_left_padding_right: 2%;
$col_right_padding_left: 2%;
$col_right_padding_right: 2%;
//for all 3 col layouts
body {
margin: 0;
padding: 0;
border: 0;
/* This removes the border around the viewport in old versions of IE */
width: 100%;
background: #fff;
min-width: 600px;
/* Minimum width of layout - remove line if not required */
/* The min-width property does not work in old versions of Internet Explorer */
font-size: 90%;
}
//for all 3 col layouts
/* column container */
.colmask {
position: relative;
/* This fixes the IE7 overflow hidden bug */
clear: both;
float: left;
width: 100%;
/* width of whole page */
overflow: hidden;
/* This chops off any overhanging divs */
}
//for all 3 col layouts
/* common column settings */
.colright,
.colmid,
.colleft {
float: left;
width: 100%;
/* width of page */
position: relative;
}
.col1,
.col2,
.col3 {
float: left;
position: relative;
padding: 0 0 1em 0;
/* no left and right padding on columns, we just make them narrower instead
only padding top and bottom is included here, make it whatever value you need */
overflow: hidden;
}
/* 3 Column settings */
@if $layout_mode == col3{
.threecol .colmid {
right: $col_right_width;
}
.threecol .colleft {
right: $col_center_width;
}
.threecol .col1 {
width: $col_center_width - $col_center_padding_left - $col_center_padding_left;
left: 100% + $col_center_padding_left;
}
.threecol .col2 {
width: $col_left_width - $col_left_padding_left - $col_right_padding_left;
left: $col_right_width + $col_center_padding_left + $col_center_padding_right + $col_left_padding_left;
}
.threecol .col3 {
width: $col_right_width - $col_right_padding_left - $col_right_padding_right;
left: 100% - $col_left_width + $col_center_padding_left + $col_center_padding_right + $col_left_padding_left + $col_left_padding_right + $col_right_padding_left;
}
}
@if $layout_mode == col3blog{
/* 3 Column blog style settings */
.blogstyle .colmid {
right:$col_right_width;
}
.blogstyle .colleft {
right:$col_center_width;
}
.blogstyle .col1 {
width: $col_left_width - $col_left_padding_left - $col_left_padding_right;
left:$col_left_width + $col_left_padding_left;
}
.blogstyle .col2 {
width:$col_left_width - $col_left_padding_left - $col_left_padding_right;
width:$col_center_width - $col_center_padding_left - $col_center_padding_right;
left:$col_left_width + $col_center_padding_left + $col_left_padding_right + $col_left_padding_left;
}
.blogstyle .col3 {
width:$col_right_width - $col_right_padding_left - $col_right_padding_right;
left:100% - $col_left_width + $col_center_padding_left + $col_center_padding_right + $col_left_padding_left + $col_left_padding_right + $col_right_padding_left;
}
}