docs.less 2.14 KB
Newer Older
1
2
3
4
5
6
7
body {
  #gradient > .vertical-three-colors(#eee, #fff, 0.15, #fff);
  background-attachment: fixed;
  background-position: 0 40px;
  position: relative;
}

8
9
10
11
12
13
14
15
// Give us some love
header,
section,
footer,
article,
aside {
  display: block;
}
16
17
18

#masthead,
#footer {
19
20
21
22
23
24
  #gradient > .vertical(darken(@blue-dark, 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));
  }
25
26
27
28
29
30
31
32
  h1, p, small {
    color: #fff;
    text-shadow: 0 2px 0 rgba(0,0,0,.25);
  }
}
#masthead {
  margin-top: @baseline * 2;
  margin-bottom: @baseline * -2;
33
34
35
  h1 {
    margin-bottom: 0;
  }
36
  p.lead {
37
38
39
40
41
42
43
44
45
46
47
48
49
    .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);
50
    .transition(all .2s linear);
51
52
53
54
55
56
57
58
59
60
61
62
63
  }
  small {
    display: block;
    text-align: center;
    font-size: 13px;
    line-height: @baseline;
    color: rgba(255,255,255,.5);
    a {
      color: #fff;
    }
  }
}

64
65
66
// Page footer
#footer {
  margin-top: @baseline * 4;
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
}

// Show the grids
.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);
    }
  }
}

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

95
// Hashgrid.js grid
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#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;
114
  border-bottom: 1px solid rgba(255,0,0,.1);
115
116
  margin: 0;
  padding: 0;
117
118
119
  &:nth-child(5n) {
    border-color: rgba(255,0,0,.25);
  }
120
}