-
Notifications
You must be signed in to change notification settings - Fork 2k
/
layout.less
167 lines (155 loc) · 2.81 KB
/
layout.less
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
.wrapper {
.clearfix();
.box();
position: relative;
background: #FFF url("@{imagePath}/nav.png") 0 0 repeat-y;
margin-bottom: 20px;
}
.wrapper.no-nav {
background-image: none;
}
[role=main], .main {
position: relative;
padding-top: 10px;
padding-bottom: 20px;
background: @layoutBackgroundColor url("@{bgPath}");
}
[role=main] {
min-height: 350px;
}
.main:after,
[role=main]:after {
bottom: 0;
border-top-width: 1px;
}
[role=main] .primary {
width: 717px;
float: right;
}
[role=main] .secondary {
.makeColumn(3);
margin-left: 0; // Remove grid margin.
float: left;
}
.primary > :last-child,
.secondary > :last-child {
margin-bottom: 0;
}
.primary {
.primary {
float: left;
width: 467px;
margin-left: 0;
margin-bottom: 20px;
h1, h2, h3, h4 {
&:first-child {
margin-top: 0;
}
}
}
.tertiary {
float: left;
width: 180px;
margin-left: 20px;
margin-bottom: 20px;
}
}
.hero {
background: url("@{imagePath}/background-tile.png");
}
.hero:after {
// Need to manually declare this here. If you pass rgba() through to
// #gradient it breaks the filter property in IE7.
.rgba-vertial-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
background-color: @moduleHeadingBackgroundColor;
border-bottom: 1px solid darken(@moduleHeadingBorderColor, 5%);
.border-radius(3px 3px 0 0);
.box-shadow(inset 0 -4px 0 rgba(0, 0, 0, 0.03));
.back:hover {
text-decoration: none;
span {
text-decoration: underline;
}
}
}
.context-info {
.module-content {
padding: 15px;
}
.image {
margin-bottom: 10px;
img,
a {
display: block;
.border-radius(4px);
}
}
p {
overflow: auto;
}
code {
display: block;
font-weight: normal;
padding: 0;
margin: 0;
overflow: auto;
}
h1.heading {
margin: 0 0 5px 0;
font-size: 18px;
line-height: 1.3;
}
.info {
margin-top: 15px;
padding-top: 10px;
border-top: 1px dotted #DDD;
dl dd {
margin-top: 3px;
margin-left: 0;
}
}
.nums {
.clearfix;
margin-top: 15px;
padding-top: 10px;
padding-bottom: 0;
border-top: 1px dotted #DDD;
dl {
float: left;
width: 50%;
margin: 5px 0 0 0;
color: @layoutTextColor;
dt {
display: block;
font-size: 13px;
font-weight: 300;
}
dd {
display: block;
font-size: 30px;
font-weight: 700;
line-height: 36px;
margin-left: 0;
.smallest {
font-size: 13px;
}
.smaller {
font-size: 16px;
}
.small {
font-size: 21px;
}
}
}
}
.follow_button {
margin-top: 15px;
}
&.editing {
.module-heading {
}
.module-content {
margin-top: 0;
}
}
}