aboutsummaryrefslogtreecommitdiff
path: root/less/docs.less
blob: b10eb29a086158582bf13c498588d80e932a6c72 (plain)
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/*
  Baseline's documentation styles
  Special styles for presenting Baseline's documentation and examples
*/


/* Body and structure
-------------------------------------------------- */

// Give us a gradient background
body {
  #gradient > .vertical-three-colors(#eee, #fff, 0.15, #fff);
  background-attachment: fixed;
  background-position: 0 40px;
  position: relative;
}

// Give us some love on HTML5 elements (hardly use these in Basline thus far though)
header,
section,
footer,
article,
aside {
  display: block;
}

// Break up sections
section {
  padding-top: @baseline * 4;
  margin-bottom: @baseline * -2;
}

// Blueprint-style header and footer
#masthead,
#footer {
  #gradient > .vertical(darken(@blue-dark, 7.5%), darken(@blue, 7.5%));
  div.inner {
    background: transparent url(../img/grid-20px.png) 0 -1px;
    padding: 40px 0;
    .box-shadow(inset 0 10px 30px rgba(0,0,0,.25));
  }
  h1, p, small {
    color: #fff;
    text-shadow: 0 2px 0 rgba(0,0,0,.25);
  }
}
#masthead {
  margin-top: @baseline * 2;
  margin-bottom: @baseline * -2;
  h1 {
    margin-bottom: 0;
  }
  p.lead {
    .font(300,20px,30px);
    margin: 5px 0;
  }
  a.btn {
    #gradient > .vertical(@purple, darken(@purple, 15%));
    display: block;
    margin-bottom: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    border: 0;
    @shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.4);
    .box-shadow(@shadow);
    .transition(all .2s linear);
  }
  small {
    display: block;
    text-align: center;
    font-size: 13px;
    line-height: @baseline;
    color: rgba(255,255,255,.5);
    a {
      color: #fff;
    }
  }
}

// Page footer
#footer {
  margin-top: @baseline * 4;
  p {
    margin-bottom: 0;
  }
}


/* Special grid styles
-------------------------------------------------- */

.show-grid {
  margin-top: 20px;
  margin-bottom: 20px;
  .column,
  .columns {
    background: rgba(0,0,0,.1);
    text-align: center;
    .border-radius(3px);
    height: 30px;
    line-height: 30px;
  }
  &:hover {
    .column,
    .columns {
      background: rgba(0,0,0,.25);
    }
  }
}


/* Hashgrid.js grid (press G & H to view)
-------------------------------------------------- */

#grid {
  width: 980px;
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -490px;
}
#grid div.vert {
  width: 39px;
  border: solid darkturquoise;
  border-width: 0 1px;
  margin-right: 19px;
}
#grid div.vert.first-line {
  margin-left: 19px;
}
#grid div.horiz {
  height: 19px;
  border-bottom: 1px solid rgba(255,0,0,.1);
  margin: 0;
  padding: 0;
  &:nth-child(5n) {
    border-color: rgba(255,0,0,.25);
  }
}



/* Render mini layout previews
-------------------------------------------------- */

div.mini-layout {
  height: 340px;
  margin-bottom: @baseline;
  padding: 9px;
  border: 1px solid rgba(0,0,0,.25);
  .border-radius(6px);
  .box-shadow(0 1px 3px rgba(0,0,0,.125));
  // Default mini layout (fixed container)
  div {
    .border-radius(3px);
    &.mini-layout-body {
      background-color: rgba(141,192,219,.25);
      margin: 0 auto;
      width: 450px;
      height: 340px;
    }
  }
  // Fluid layout (sidebar)
  &.fluid {
    div.mini-layout-sidebar,
    div.mini-layout-header,
    div.mini-layout-body {
      float: left;
    }
    div.mini-layout-sidebar {
      background-color: rgba(141,192,219,.5);
      width: 90px;
      height: 340px;
    }
    div.mini-layout-body {
      width: 400px;
      margin-left: 10px;
    }
  }
}



/* Topbar special styles
-------------------------------------------------- */

div.topbar-wrapper {
  position: relative;
  height: 40px;
  margin: 5px 0 15px;
  div.topbar {
    position: absolute;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    .border-radius(4px);
  }
}