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

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

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); }
}


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

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


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

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

// Buttons
.btn {
  .button();
82
  .transition(.1s linear all);
Jacob Thornton's avatar
Jacob Thornton committed
83
  &.primary {
84
    #gradient > .vertical(@blue, @blueDark);
Jacob Thornton's avatar
Jacob Thornton committed
85
86
87
88
89
90
91
92
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    &:hover {
      color: #fff;
    }
  }
  &.large {
    font-size: 16px;
93
    line-height: 28px;
Jacob Thornton's avatar
Jacob Thornton committed
94
95
96
97
98
99
100
    .border-radius(6px);
  }
  &.small {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 11px;
  }
101
102
103
104
105
106
  &:disabled,
  &.disabled {
    background-image: none;
    .opacity(65);
    cursor: default;
  }
107
  &:focus {
108

109
110
111
112
113
  }
  &: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
114
115
116
117
118
119
120
121
122
}
// 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;
  }
}