twitter-bootstrap-rails 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of twitter-bootstrap-rails might be problematic. Click here for more details.

@@ -1,142 +1,141 @@
1
- /* Reset.less
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
- // Hover & Active
34
- a:hover,
35
- a:active {
36
- outline: 0;
37
- }
38
-
39
- // Display in IE6-9 and FF3
40
- // -------------------------
41
- // Source: http://github.com/necolas/normalize.css
42
- article,
43
- aside,
44
- details,
45
- figcaption,
46
- figure,
47
- footer,
48
- header,
49
- hgroup,
50
- nav,
51
- section {
52
- display: block;
53
- }
54
-
55
- // Display block in IE6-9 and FF3
56
- // -------------------------
57
- // Source: http://github.com/necolas/normalize.css
58
- audio,
59
- canvas,
60
- video {
61
- display: inline-block;
62
- *display: inline;
63
- *zoom: 1;
64
- }
65
-
66
- // Prevents modern browsers from displaying 'audio' without controls
67
- // -------------------------
68
- // Source: http://github.com/necolas/normalize.css
69
- audio:not([controls]) {
70
- display: none;
71
- }
72
-
73
- // Prevents sub and sup affecting line-height in all browsers
74
- // -------------------------
75
- // Source: http://github.com/necolas/normalize.css
76
- sub,
77
- sup {
78
- font-size: 75%;
79
- line-height: 0;
80
- position: relative;
81
- vertical-align: baseline;
82
- }
83
- sup {
84
- top: -0.5em;
85
- }
86
- sub {
87
- bottom: -0.25em;
88
- }
89
-
90
- // Img border in a's and image quality
91
- // -------------------------
92
- // Source: http://github.com/necolas/normalize.css
93
- img {
94
- border: 0;
95
- -ms-interpolation-mode: bicubic;
96
- }
97
-
98
- // Forms
99
- // -------------------------
100
- // Source: http://github.com/necolas/normalize.css
101
-
102
- // Font size in all browsers, margin changes, misc consistency
103
- button,
104
- input,
105
- select,
106
- textarea {
107
- font-size: 100%;
108
- margin: 0;
109
- vertical-align: baseline;
110
- *vertical-align: middle;
111
- }
112
- button,
113
- input {
114
- line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
115
- *overflow: visible; // Inner spacing ie IE6/7
116
- }
117
- button::-moz-focus-inner,
118
- input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
119
- border: 0;
120
- padding: 0;
121
- }
122
- button,
123
- input[type="button"],
124
- input[type="reset"],
125
- input[type="submit"] {
126
- cursor: pointer; // Cursors on all buttons applied consistently
127
- -webkit-appearance: button; // Style clicable inputs in iOS
128
- }
129
- input[type="search"] { // Appearance in Safari/Chrome
130
- -webkit-appearance: textfield;
131
- -webkit-box-sizing: content-box;
132
- -moz-box-sizing: content-box;
133
- box-sizing: content-box;
134
- }
135
- input[type="search"]::-webkit-search-decoration {
136
- -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
137
- }
138
- textarea {
139
- overflow: auto; // Remove vertical scrollbar in IE6-9
140
- vertical-align: top; // Readability and alignment cross-browser
141
- }
142
-
1
+ /* Reset.less
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
+ // Hover & Active
34
+ a:hover,
35
+ a:active {
36
+ outline: 0;
37
+ }
38
+
39
+ // Display in IE6-9 and FF3
40
+ // -------------------------
41
+ // Source: http://github.com/necolas/normalize.css
42
+ article,
43
+ aside,
44
+ details,
45
+ figcaption,
46
+ figure,
47
+ footer,
48
+ header,
49
+ hgroup,
50
+ nav,
51
+ section {
52
+ display: block;
53
+ }
54
+
55
+ // Display block in IE6-9 and FF3
56
+ // -------------------------
57
+ // Source: http://github.com/necolas/normalize.css
58
+ audio,
59
+ canvas,
60
+ video {
61
+ display: inline-block;
62
+ *display: inline;
63
+ *zoom: 1;
64
+ }
65
+
66
+ // Prevents modern browsers from displaying 'audio' without controls
67
+ // -------------------------
68
+ // Source: http://github.com/necolas/normalize.css
69
+ audio:not([controls]) {
70
+ display: none;
71
+ }
72
+
73
+ // Prevents sub and sup affecting line-height in all browsers
74
+ // -------------------------
75
+ // Source: http://github.com/necolas/normalize.css
76
+ sub,
77
+ sup {
78
+ font-size: 75%;
79
+ line-height: 0;
80
+ position: relative;
81
+ vertical-align: baseline;
82
+ }
83
+ sup {
84
+ top: -0.5em;
85
+ }
86
+ sub {
87
+ bottom: -0.25em;
88
+ }
89
+
90
+ // Img border in a's and image quality
91
+ // -------------------------
92
+ // Source: http://github.com/necolas/normalize.css
93
+ img {
94
+ border: 0;
95
+ -ms-interpolation-mode: bicubic;
96
+ }
97
+
98
+ // Forms
99
+ // -------------------------
100
+ // Source: http://github.com/necolas/normalize.css
101
+
102
+ // Font size in all browsers, margin changes, misc consistency
103
+ button,
104
+ input,
105
+ select,
106
+ textarea {
107
+ font-size: 100%;
108
+ margin: 0;
109
+ vertical-align: baseline;
110
+ *vertical-align: middle;
111
+ }
112
+ button,
113
+ input {
114
+ line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
115
+ *overflow: visible; // Inner spacing ie IE6/7
116
+ }
117
+ button::-moz-focus-inner,
118
+ input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
119
+ border: 0;
120
+ padding: 0;
121
+ }
122
+ button,
123
+ input[type="button"],
124
+ input[type="reset"],
125
+ input[type="submit"] {
126
+ cursor: pointer; // Cursors on all buttons applied consistently
127
+ -webkit-appearance: button; // Style clicable inputs in iOS
128
+ }
129
+ input[type="search"] { // Appearance in Safari/Chrome
130
+ -webkit-appearance: textfield;
131
+ -webkit-box-sizing: content-box;
132
+ -moz-box-sizing: content-box;
133
+ box-sizing: content-box;
134
+ }
135
+ input[type="search"]::-webkit-search-decoration {
136
+ -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
137
+ }
138
+ textarea {
139
+ overflow: auto; // Remove vertical scrollbar in IE6-9
140
+ vertical-align: top; // Readability and alignment cross-browser
141
+ }
@@ -1,136 +1,137 @@
1
- /*
2
- * Scaffolding
3
- * Basic and global styles for generating a grid system, structural layout, and page templates
4
- * ------------------------------------------------------------------------------------------- */
5
-
6
-
7
- // STRUCTURAL LAYOUT
8
- // -----------------
9
-
10
- html, body {
11
- background-color: @white;
12
- }
13
- body {
14
- margin: 0;
15
- #font > .sans-serif(normal,@basefont,@baseline);
16
- color: @grayDark;
17
- }
18
-
19
- // Container (centered, fixed-width layouts)
20
- .container {
21
- .fixed-container();
22
- }
23
-
24
- // Fluid layouts (left aligned, with sidebar, min- & max-width content)
25
- .container-fluid {
26
- position: relative;
27
- min-width: 940px;
28
- padding-left: 20px;
29
- padding-right: 20px;
30
- .clearfix();
31
- > .sidebar {
32
- float: left;
33
- width: 220px;
34
- }
35
- // TODO in v2: rename this and .popover .content to be more specific
36
- > .content {
37
- margin-left: 240px;
38
- }
39
- }
40
-
41
-
42
- // BASE STYLES
43
- // -----------
44
-
45
- // Links
46
- a {
47
- color: @linkColor;
48
- text-decoration: none;
49
- line-height: inherit;
50
- font-weight: inherit;
51
- &:hover {
52
- color: @linkColorHover;
53
- text-decoration: underline;
54
- }
55
- }
56
-
57
- // Quick floats
58
- .pull-right {
59
- float: right;
60
- }
61
- .pull-left {
62
- float: left;
63
- }
64
-
65
- // Toggling content
66
- .hide {
67
- display: none;
68
- }
69
- .show {
70
- display: block;
71
- }
72
-
73
-
74
- // GRID SYSTEM
75
- // -----------
76
- // To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
77
-
78
- .row {
79
- .clearfix();
80
- margin-left: -1 * @gridGutterWidth;
81
- }
82
-
83
- // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
84
- // Credit to @dhg for the idea
85
- [class*="span"] {
86
- .gridColumn();
87
- }
88
-
89
- // Default columns
90
- .span1 { .columns(1); }
91
- .span2 { .columns(2); }
92
- .span3 { .columns(3); }
93
- .span4 { .columns(4); }
94
- .span5 { .columns(5); }
95
- .span6 { .columns(6); }
96
- .span7 { .columns(7); }
97
- .span8 { .columns(8); }
98
- .span9 { .columns(9); }
99
- .span10 { .columns(10); }
100
- .span11 { .columns(11); }
101
- .span12 { .columns(12); }
102
- .span13 { .columns(13); }
103
- .span14 { .columns(14); }
104
- .span15 { .columns(15); }
105
- .span16 { .columns(16); }
106
-
107
- // For optional 24-column grid
108
- .span17 { .columns(17); }
109
- .span18 { .columns(18); }
110
- .span19 { .columns(19); }
111
- .span20 { .columns(20); }
112
- .span21 { .columns(21); }
113
- .span22 { .columns(22); }
114
- .span23 { .columns(23); }
115
- .span24 { .columns(24); }
116
-
117
- // Offset column options
118
- .offset1 { .offset(1); }
119
- .offset2 { .offset(2); }
120
- .offset3 { .offset(3); }
121
- .offset4 { .offset(4); }
122
- .offset5 { .offset(5); }
123
- .offset6 { .offset(6); }
124
- .offset7 { .offset(7); }
125
- .offset8 { .offset(8); }
126
- .offset9 { .offset(9); }
127
- .offset10 { .offset(10); }
128
- .offset11 { .offset(11); }
129
- .offset12 { .offset(12); }
130
-
131
- // Unique column sizes for 16-column grid
132
- .span-one-third { width: 300px; }
133
- .span-two-thirds { width: 620px; }
134
- .offset-one-third { margin-left: 340px; }
135
- .offset-two-thirds { margin-left: 660px; }
136
-
1
+ /*
2
+ * Scaffolding
3
+ * Basic and global styles for generating a grid system, structural layout, and page templates
4
+ * ------------------------------------------------------------------------------------------- */
5
+
6
+
7
+ // STRUCTURAL LAYOUT
8
+ // -----------------
9
+
10
+ body {
11
+ background-color: @white;
12
+ margin: 0;
13
+ #font > .sans-serif(normal,@basefont,@baseline);
14
+ color: @grayDark;
15
+ }
16
+
17
+ // Container (centered, fixed-width layouts)
18
+ .container {
19
+ .fixed-container();
20
+ }
21
+
22
+ // Fluid layouts (left aligned, with sidebar, min- & max-width content)
23
+ .container-fluid {
24
+ position: relative;
25
+ min-width: 940px;
26
+ padding-left: 20px;
27
+ padding-right: 20px;
28
+ .clearfix();
29
+ > .sidebar {
30
+ position: absolute;
31
+ top: 0;
32
+ left: 20px;
33
+ width: 220px;
34
+ }
35
+ // TODO in v2: rename this and .popover .content to be more specific
36
+ > .content {
37
+ margin-left: 240px;
38
+ }
39
+ }
40
+
41
+
42
+ // BASE STYLES
43
+ // -----------
44
+
45
+ // Links
46
+ a {
47
+ color: @linkColor;
48
+ text-decoration: none;
49
+ line-height: inherit;
50
+ font-weight: inherit;
51
+ &:hover {
52
+ color: @linkColorHover;
53
+ text-decoration: underline;
54
+ }
55
+ }
56
+
57
+ // Quick floats
58
+ .pull-right {
59
+ float: right;
60
+ }
61
+ .pull-left {
62
+ float: left;
63
+ }
64
+
65
+ // Toggling content
66
+ .hide {
67
+ display: none;
68
+ }
69
+ .show {
70
+ display: block;
71
+ }
72
+
73
+
74
+ // GRID SYSTEM
75
+ // -----------
76
+ // To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
77
+
78
+ .row {
79
+ .clearfix();
80
+ margin-left: -@gridGutterWidth;
81
+ }
82
+
83
+ // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
84
+ // Credit to @dhg for the idea
85
+ .row > [class*="span"] {
86
+ .gridColumn();
87
+ }
88
+
89
+ // Default columns
90
+ .span1 { .columns(1); }
91
+ .span2 { .columns(2); }
92
+ .span3 { .columns(3); }
93
+ .span4 { .columns(4); }
94
+ .span5 { .columns(5); }
95
+ .span6 { .columns(6); }
96
+ .span7 { .columns(7); }
97
+ .span8 { .columns(8); }
98
+ .span9 { .columns(9); }
99
+ .span10 { .columns(10); }
100
+ .span11 { .columns(11); }
101
+ .span12 { .columns(12); }
102
+ .span13 { .columns(13); }
103
+ .span14 { .columns(14); }
104
+ .span15 { .columns(15); }
105
+ .span16 { .columns(16); }
106
+
107
+ // For optional 24-column grid
108
+ .span17 { .columns(17); }
109
+ .span18 { .columns(18); }
110
+ .span19 { .columns(19); }
111
+ .span20 { .columns(20); }
112
+ .span21 { .columns(21); }
113
+ .span22 { .columns(22); }
114
+ .span23 { .columns(23); }
115
+ .span24 { .columns(24); }
116
+
117
+ // Offset column options
118
+ .row {
119
+ & > .offset1 { .offset(1); }
120
+ & > .offset2 { .offset(2); }
121
+ & > .offset3 { .offset(3); }
122
+ & > .offset4 { .offset(4); }
123
+ & > .offset5 { .offset(5); }
124
+ & > .offset6 { .offset(6); }
125
+ & > .offset7 { .offset(7); }
126
+ & > .offset8 { .offset(8); }
127
+ & > .offset9 { .offset(9); }
128
+ & > .offset10 { .offset(10); }
129
+ & > .offset11 { .offset(11); }
130
+ & > .offset12 { .offset(12); }
131
+ }
132
+
133
+ // Unique column sizes for 16-column grid
134
+ .span-one-third { width: 300px; }
135
+ .span-two-thirds { width: 620px; }
136
+ .offset-one-third { margin-left: 340px; }
137
+ .offset-two-thirds { margin-left: 660px; }