scaffolding.less 2.31 KB
Newer Older
1
/* Scaffolding.less
2
 * Basic and global styles for generating a grid system, structural layout, and page templates
3
 * ------------------------------------------------------------------------------------------- */
Jacob Thornton's avatar
Jacob Thornton committed
4

5
6
// Baseline Grid System
// --------------------
Jacob Thornton's avatar
Jacob Thornton committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

div.row {
  .clearfix();
  div.span1   { .columns(1); }
  div.span2   { .columns(2); }
  div.span3   { .columns(3); }
  div.span4   { .columns(4); }
  div.span5   { .columns(5); }
  div.span6   { .columns(6); }
  div.span7   { .columns(7); }
  div.span8   { .columns(8); }
  div.span9   { .columns(9); }
  div.span10  { .columns(10); }
  div.span11  { .columns(11); }
  div.span12  { .columns(12); }
  div.span13  { .columns(13); }
  div.span14  { .columns(14); }
  div.span15  { .columns(15); }
  div.span16  { .columns(16); }
}


29
30
// Structural Layout
// -----------------
Jacob Thornton's avatar
Jacob Thornton committed
31
32
33
34
35
36

html, body {
  background-color: #fff;
}
body {
  margin: 0;
37
  #font > .sans-serif(normal,@basefont,@baseline);
Jacob Thornton's avatar
Jacob Thornton committed
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
  color: @gray;
  text-rendering: optimizeLegibility;
}

// Container (centered, fixed-width layouts)
div.container {
  width: 940px;
  margin: 0 auto;
}

// Fluid layouts (left aligned, with sidebar, min- & max-width content)
div.container-fluid {
  padding: 20px;
  .clearfix();
  div.sidebar {
    float: left;
    width: 220px;
  }
  div.content {
    min-width: 700px;
    max-width: 1180px;
    margin-left: 240px;
  }
}


64
65
// Base Styles
// -----------
Jacob Thornton's avatar
Jacob Thornton committed
66
67
68

// Links
a {
69
  color: @linkColor;
Jacob Thornton's avatar
Jacob Thornton committed
70
71
72
  text-decoration: none;
  line-height: inherit;
  &:hover {
73
    color: @linkColorHover;
Jacob Thornton's avatar
Jacob Thornton committed
74
75
76
77
78
79
80
    text-decoration: underline;
  }
}

// Buttons
.btn {
  .button();
81
  .transition(.1s linear all);
Jacob Thornton's avatar
Jacob Thornton committed
82
  &.primary {
83
    #gradient > .vertical(@blue, @blueDark);
Jacob Thornton's avatar
Jacob Thornton committed
84
85
86
87
88
89
90
91
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    &:hover {
      color: #fff;
    }
  }
  &.large {
    font-size: 16px;
92
    line-height: 28px;
Jacob Thornton's avatar
Jacob Thornton committed
93
94
95
96
97
98
99
    .border-radius(6px);
  }
  &.small {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 11px;
  }
100
101
102
103
104
105
  &:disabled,
  &.disabled {
    background-image: none;
    .opacity(65);
    cursor: default;
  }
106
107
108
109
110
111
112
  &:focus {
    
  }
  &:active {
    @shadow: inset 0 3px 7px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.05);
    .box-shadow(@shadow);
  }
Jacob Thornton's avatar
Jacob Thornton committed
113
114
115
116
117
118
119
120
121
}
// Help Firefox not be a douche about adding extra padding to buttons
button.btn,
input[type=submit].btn {
  &::-moz-focus-inner {
  	padding: 0;
  	border: 0;
  }
}