compass_twitter_bootstrap 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,230 @@
1
+ /* Preboot.less
2
+ * Variables and mixins to pre-ignite any new web development project
3
+ * ------------------------------------------------------------------ */
4
+
5
+
6
+ // VARIABLES
7
+ // ---------
8
+
9
+ // Links
10
+ $linkColor: #0069d6;
11
+ $linkColorHover: darken($linkColor, 10);
12
+
13
+ // Grays
14
+ $black: #000;
15
+ $grayDark: lighten($black, 25%);
16
+ $gray: lighten($black, 50%);
17
+ $grayLight: lighten($black, 75%);
18
+ $grayLighter: lighten($black, 90%);
19
+ $white: #fff;
20
+
21
+ // Accent Colors
22
+ $blue: #049CDB;
23
+ $blueDark: #0064CD;
24
+ $green: #46a546;
25
+ $red: #9d261d;
26
+ $yellow: #ffc40d;
27
+ $orange: #f89406;
28
+ $pink: #c3325f;
29
+ $purple: #7a43b6;
30
+
31
+ // Baseline grid
32
+ $basefont: 13px;
33
+ $baseline: 18px;
34
+
35
+ // Griditude
36
+ $gridColumns: 16;
37
+ $gridColumnWidth: 40px;
38
+ $gridGutterWidth: 20px;
39
+ $extraSpace: 40px;
40
+ $siteWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
41
+
42
+ // Color Scheme
43
+ $baseColor: $blue; // Set a base color
44
+ $complement: spin($baseColor, 180); // Determine a complementary color
45
+ $split1: spin($baseColor, 158); // Split complements
46
+ $split2: spin($baseColor, -158);
47
+ $triad1: spin($baseColor, 135); // Triads colors
48
+ $triad2: spin($baseColor, -135);
49
+ $tetra1: spin($baseColor, 90); // Tetra colors
50
+ $tetra2: spin($baseColor, -90);
51
+ $analog1: spin($baseColor, 22); // Analogs colors
52
+ $analog2: spin($baseColor, -22);
53
+
54
+
55
+ // MIXINS
56
+ // ------
57
+
58
+ // Clearfix for clearing floats like a boss h5bp.com/q
59
+ @mixin clearfix {
60
+ zoom: 1;
61
+ &:before, &:after {
62
+ display: table;
63
+ content: "";
64
+ }
65
+ &:after {
66
+ clear: both;
67
+ }
68
+ }
69
+
70
+ // Center-align a block level element
71
+ @mixin center-block {
72
+ display: block;
73
+ margin: 0 auto;
74
+ }
75
+
76
+ // Sizing shortcuts
77
+ @mixin size($height: 5px, $width: 5px) {
78
+ height: $height;
79
+ width: $width;
80
+ }
81
+ @mixin square($size: 5px) {
82
+ @include size($size, $size);
83
+ }
84
+
85
+ // Input placeholder text
86
+ @mixin placeholder($color: $grayLight) {
87
+ :-moz-placeholder {
88
+ color: $color;
89
+ }
90
+ ::-webkit-input-placeholder {
91
+ color: $color;
92
+ }
93
+ }
94
+
95
+ // Font Stacks
96
+ @mixin shorthand($weight: normal, $size: 14px, $lineHeight: 20px) {
97
+ font-size: $size;
98
+ font-weight: $weight;
99
+ line-height: $lineHeight;
100
+ }
101
+ @mixin sans-serif($weight: normal, $size: 14px, $lineHeight: 20px) {
102
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
103
+ font-size: $size;
104
+ font-weight: $weight;
105
+ line-height: $lineHeight;
106
+ }
107
+ @mixin serif($weight: normal, $size: 14px, $lineHeight: 20px) {
108
+ font-family: "Georgia", Times New Roman, Times, serif;
109
+ font-size: $size;
110
+ font-weight: $weight;
111
+ line-height: $lineHeight;
112
+ }
113
+ @mixin monospace($weight: normal, $size: 12px, $lineHeight: 20px) {
114
+ font-family: "Monaco", Courier New, monospace;
115
+ font-size: $size;
116
+ font-weight: $weight;
117
+ line-height: $lineHeight;
118
+ }
119
+
120
+ // Grid System
121
+ @mixin container {
122
+ width: $siteWidth;
123
+ margin: 0 auto;
124
+ @include clearfix();
125
+ }
126
+ @mixin columns($columnSpan: 1) {
127
+ width: ($gridColumnWidth * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1));
128
+ }
129
+ @mixin offset($columnOffset: 1) {
130
+ margin-left: ($gridColumnWidth * $columnOffset) + ($gridGutterWidth * ($columnOffset - 1)) + $extraSpace;
131
+ }
132
+
133
+ // Drop shadows
134
+ //@mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) {
135
+ // @include box-shadow($shadow);
136
+ //}
137
+
138
+ // Transitions
139
+ @mixin transition($transition) {
140
+ -webkit-transition: $transition;
141
+ -moz-transition: $transition;
142
+ transition: $transition;
143
+ }
144
+
145
+ // Background clipping
146
+ //.background-clip($clip) {
147
+ // @include background-clip($clip);
148
+ //}
149
+
150
+ // CSS3 Content Columns
151
+ @mixin content-columns($columnCount, $columnGap: 20px) {
152
+ @include column-count($columnCount);
153
+ @include column-count($columnGap);
154
+ }
155
+
156
+ // Add an alphatransparency value to any background or border color (via Elyse Holladay)
157
+ #translucent {
158
+ @mixin background($color: $white, $alpha: 1) {
159
+ background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
160
+ }
161
+ @mixin border($color: $white, $alpha: 1) {
162
+ border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
163
+ @include background-clip(padding-box);
164
+ }
165
+ }
166
+
167
+ // Gradients
168
+
169
+ @mixin horizontal ($startColor: #555, $endColor: #333) {
170
+ background-color: $endColor;
171
+ background-repeat: repeat-x;
172
+ background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor)); // Konqueror
173
+ background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
174
+ background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
175
+ background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
176
+ background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
177
+ background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
178
+ background-image: linear-gradient(left, $startColor, $endColor); // Le standard
179
+ }
180
+ @mixin vertical ($startColor: #555, $endColor: #333) {
181
+ @include background-image(linear-gradient($startColor, $endColor));
182
+ }
183
+ @mixin directional ($startColor: #555, $endColor: #333, $deg: 45deg) {
184
+ background-color: $endColor;
185
+ background-repeat: repeat-x;
186
+ background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
187
+ background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
188
+ background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
189
+ background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
190
+ background-image: linear-gradient($deg, $startColor, $endColor); // The standard
191
+ }
192
+ @mixin vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
193
+ @include background-image(linear-gradient($startColor, $midColor $colorStop, $endColor));
194
+ }
195
+
196
+ // Gradient Bar Colors for buttons and allerts
197
+ @mixin gradientBar($primaryColor, $secondaryColor) {
198
+ @include vertical($primaryColor, $secondaryColor);
199
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
200
+ border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
201
+ border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
202
+ }
203
+ // Shared colors for buttons and alerts
204
+ .btn,
205
+ .alert-message {
206
+ // Set text color
207
+ &.danger,
208
+ &.danger:hover,
209
+ &.error,
210
+ &.error:hover,
211
+ &.success,
212
+ &.success:hover,
213
+ &.info,
214
+ &.info:hover {
215
+ color: $white
216
+ }
217
+ // Danger and error appear as red
218
+ &.danger,
219
+ &.error {
220
+ @include gradientBar(#ee5f5b, #c43c35);
221
+ }
222
+ // Success appears as green
223
+ &.success {
224
+ @include gradientBar(#62c462, #57a957);
225
+ }
226
+ // Info appears as a neutral blue
227
+ &.info {
228
+ @include gradientBar(#5bc0de, #339bb9);
229
+ }
230
+ }
@@ -0,0 +1,146 @@
1
+ /* Reset.scss
2
+ * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
3
+ * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
4
+
5
+
6
+ // ERIC MEYER RESET
7
+ // --------------------------------------------------
8
+
9
+ html, body { margin: 0; padding: 0; }
10
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; }
11
+ table { border-collapse: collapse; border-spacing: 0; }
12
+ ol, ul { list-style: none; }
13
+ q:before, q:after, blockquote:before, blockquote:after { content: ""; }
14
+
15
+
16
+ // Normalize.css
17
+ // Pulling in select resets form the normalize.css project
18
+ // --------------------------------------------------
19
+
20
+ // Display in IE6-9 and FF3
21
+ // -------------------------
22
+ // Source: http://github.com/necolas/normalize.css
23
+ html {
24
+ overflow-y: scroll;
25
+ font-size: 100%;
26
+ -webkit-text-size-adjust: 100%;
27
+ -ms-text-size-adjust: 100%;
28
+ }
29
+ // Focus states
30
+ a:focus {
31
+ outline: thin dotted;
32
+ }
33
+
34
+ // Display in IE6-9 and FF3
35
+ // -------------------------
36
+ // Source: http://github.com/necolas/normalize.css
37
+ article,
38
+ aside,
39
+ details,
40
+ figcaption,
41
+ figure,
42
+ footer,
43
+ header,
44
+ hgroup,
45
+ nav,
46
+ section {
47
+ display: block;
48
+ }
49
+
50
+ // Display block in IE6-9 and FF3
51
+ // -------------------------
52
+ // Source: http://github.com/necolas/normalize.css
53
+ audio,
54
+ canvas,
55
+ video {
56
+ display: inline-block;
57
+ *display: inline;
58
+ *zoom: 1;
59
+ }
60
+
61
+ // Prevents modern browsers from displaying 'audio' without controls
62
+ // -------------------------
63
+ // Source: http://github.com/necolas/normalize.css
64
+ audio:not([controls]) {
65
+ display: none;
66
+ }
67
+
68
+ // Prevents sub and sup affecting line-height in all browsers
69
+ // -------------------------
70
+ // Source: http://github.com/necolas/normalize.css
71
+ sub,
72
+ sup {
73
+ font-size: 75%;
74
+ line-height: 0;
75
+ position: relative;
76
+ vertical-align: baseline;
77
+ }
78
+ sup {
79
+ top: -0.5em;
80
+ }
81
+ sub {
82
+ bottom: -0.25em;
83
+ }
84
+
85
+ // Img border in a's and image quality
86
+ // -------------------------
87
+ // Source: http://github.com/necolas/normalize.css
88
+ img {
89
+ border: 0;
90
+ -ms-interpolation-mode: bicubic;
91
+ }
92
+
93
+ // Forms
94
+ // -------------------------
95
+ // Source: http://github.com/necolas/normalize.css
96
+
97
+ // Font size in all browsers, margin changes, misc consistency
98
+ button,
99
+ input,
100
+ select,
101
+ textarea {
102
+ font-size: 100%;
103
+ margin: 0;
104
+ vertical-align: baseline;
105
+ *vertical-align: middle;
106
+ }
107
+ button,
108
+ input {
109
+ line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
110
+ *overflow: visible; // Inner spacing ie IE6/7
111
+ }
112
+ button::-moz-focus-inner,
113
+ input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
114
+ border: 0;
115
+ padding: 0;
116
+ }
117
+ button,
118
+ input[type="button"],
119
+ input[type="reset"],
120
+ input[type="submit"] {
121
+ cursor: pointer; // Cursors on all buttons applied consistently
122
+ -webkit-appearance: button; // Style clicable inputs in iOS
123
+ }
124
+ input[type="search"] { // Appearance in Safari/Chrome
125
+ -webkit-appearance: textfield;
126
+ -webkit-box-sizing: content-box;
127
+ -moz-box-sizing: content-box;
128
+ box-sizing: content-box;
129
+ }
130
+ input[type="search"]::-webkit-search-decoration {
131
+ -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
132
+ }
133
+ textarea {
134
+ overflow: auto; // Remove vertical scrollbar in IE6-9
135
+ vertical-align: top; // Readability and alignment cross-browser
136
+ }
137
+
138
+ // Tables
139
+ // -------------------------
140
+ // Source: http://github.com/necolas/normalize.css
141
+
142
+ // Remove spacing between table cells
143
+ table {
144
+ border-collapse: collapse;
145
+ border-spacing: 0;
146
+ }
@@ -0,0 +1,211 @@
1
+ /*
2
+ * Scaffolding
3
+ * Basic and global styles for generating a grid system, structural layout, and page templates
4
+ * ------------------------------------------------------------------------------------------- */
5
+
6
+
7
+ // GRID SYSTEM
8
+ // -----------
9
+
10
+ .row {
11
+ @include clearfix();
12
+ margin-left: -20px;
13
+
14
+ // Default columns
15
+ .span1,
16
+ .span2,
17
+ .span3,
18
+ .span4,
19
+ .span5,
20
+ .span6,
21
+ .span7,
22
+ .span8,
23
+ .span9,
24
+ .span10,
25
+ .span11,
26
+ .span12,
27
+ .span13,
28
+ .span14,
29
+ .span15,
30
+ .span16 {
31
+ display: inline;
32
+ float: left;
33
+ margin-left: 20px;
34
+ }
35
+
36
+ // Default columns
37
+ .span1 { @include columns(1); }
38
+ .span2 { @include columns(2); }
39
+ .span3 { @include columns(3); }
40
+ .span4 { @include columns(4); }
41
+ .span5 { @include columns(5); }
42
+ .span6 { @include columns(6); }
43
+ .span7 { @include columns(7); }
44
+ .span8 { @include columns(8); }
45
+ .span9 { @include columns(9); }
46
+ .span10 { @include columns(10); }
47
+ .span11 { @include columns(11); }
48
+ .span12 { @include columns(12); }
49
+ .span13 { @include columns(13); }
50
+ .span14 { @include columns(14); }
51
+ .span15 { @include columns(15); }
52
+ .span16 { @include columns(16); }
53
+
54
+ // Offset column options
55
+ .offset1 { @include offset(1); }
56
+ .offset2 { @include offset(2); }
57
+ .offset3 { @include offset(3); }
58
+ .offset4 { @include offset(4); }
59
+ .offset5 { @include offset(5); }
60
+ .offset6 { @include offset(6); }
61
+ .offset7 { @include offset(7); }
62
+ .offset8 { @include offset(8); }
63
+ .offset9 { @include offset(9); }
64
+ .offset10 { @include offset(10); }
65
+ .offset11 { @include offset(11); }
66
+ .offset12 { @include offset(12); }
67
+ }
68
+
69
+
70
+ // STRUCTURAL LAYOUT
71
+ // -----------------
72
+
73
+ html, body {
74
+ background-color: #fff;
75
+ }
76
+ body {
77
+ margin: 0;
78
+ @include sans-serif(normal,$basefont,$baseline);
79
+ color: $gray;
80
+ text-rendering: optimizeLegibility;
81
+ }
82
+
83
+ // Container (centered, fixed-width layouts)
84
+ .container {
85
+ width: 940px;
86
+ margin: 0 auto;
87
+ }
88
+
89
+ .container:before, .container:after {
90
+ display: table;
91
+ content: "";
92
+ }
93
+ .container:after {
94
+ clear: both;
95
+ }
96
+
97
+ // Fluid layouts (left aligned, with sidebar, min- & max-width content)
98
+ .container-fluid {
99
+ padding: 0 20px;
100
+ @include clearfix();
101
+ .sidebar {
102
+ float: left;
103
+ width: 220px;
104
+ }
105
+ .content {
106
+ min-width: 700px;
107
+ max-width: 1180px;
108
+ margin-left: 240px;
109
+ }
110
+ }
111
+
112
+
113
+ // BASE STYLES
114
+ // -----------
115
+
116
+ // Links
117
+ a {
118
+ color: $linkColor;
119
+ text-decoration: none;
120
+ line-height: inherit;
121
+ font-weight: inherit;
122
+ &:hover {
123
+ color: $linkColorHover;
124
+ text-decoration: underline;
125
+ }
126
+ }
127
+
128
+ // Buttons
129
+ .btn {
130
+ display: inline-block;
131
+ @include vertical-three-colors(#fff, #fff, 0.25, darken(#fff, 10%));
132
+ padding: 4px 14px;
133
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
134
+ color: #333;
135
+ font-size: 13px;
136
+ line-height: $baseline;
137
+ border: 1px solid #ccc;
138
+ border-bottom-color: #bbb;
139
+ @include border-radius(4px);
140
+ $shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
141
+ @include box-shadow($shadow);
142
+ &:hover {
143
+ @include vertical-three-colors( darken(#fff, 10%), darken(#fff, 10%), 0.25, darken(#fff, 10%));
144
+ color: #333;
145
+ text-decoration: none;
146
+ }
147
+ }
148
+ .primary {
149
+ @include vertical(#049CDB, #0064CD);
150
+ color: #fff;
151
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
152
+ border: 1px solid darken(#0064CD, 10%);
153
+ border-bottom-color: darken(#0064CD, 15%);
154
+ &:hover {
155
+ color: #fff;
156
+ }
157
+ }
158
+
159
+ .btn {
160
+ //.button(#1174C6);
161
+ @include transition(.1s linear all);
162
+ &.primary {
163
+ color: #fff;
164
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
165
+ border-color: $blueDark $blueDark darken($blueDark, 15%);
166
+ border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
167
+ &:hover {
168
+ color: #fff;
169
+ }
170
+ }
171
+ &.large {
172
+ font-size: 16px;
173
+ line-height: 28px;
174
+ @include border-radius(6px);
175
+ }
176
+ &.small {
177
+ padding-right: 9px;
178
+ padding-left: 9px;
179
+ font-size: 11px;
180
+ }
181
+ &.disabled {
182
+ background-image: none;
183
+ @include opacity(65);
184
+ cursor: default;
185
+ @include box-shadow(none);
186
+ }
187
+
188
+ // this can't be included with the .disabled def because IE8 and below will drop it ;_;
189
+ &:disabled {
190
+ background-image: none;
191
+ @include opacity(65);
192
+ cursor: default;
193
+ @include box-shadow(none);
194
+ &.primary {
195
+ color: #fff;
196
+ }
197
+ }
198
+ &:active {
199
+ $shadow: inset 0 3px 7px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
200
+ @include box-shadow($shadow);
201
+ }
202
+ }
203
+
204
+ // Help Firefox not be a jerk about adding extra padding to buttons
205
+ button.btn,
206
+ input[type=submit].btn {
207
+ &::-moz-focus-inner {
208
+ padding: 0;
209
+ border: 0;
210
+ }
211
+ }