bootstrap-sass-rails 3.0.0.0.rc2 → 3.0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. data/README.md +0 -20
  2. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  3. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +228 -0
  4. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  5. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  6. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +3 -3
  7. data/app/assets/javascripts/twitter/bootstrap/modal.js +5 -3
  8. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +9 -5
  9. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -1
  10. data/app/assets/stylesheets/twitter/bootstrap.css.scss +17 -21
  11. data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +7 -11
  12. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +14 -10
  13. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +9 -20
  14. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +7 -2
  15. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +23 -5
  16. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +36 -15
  17. data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +209 -179
  18. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +9 -3
  19. data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +1 -1
  20. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +16 -5
  21. data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +9 -5
  22. data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +5 -5
  23. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +86 -59
  24. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +8 -0
  25. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +253 -191
  26. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +13 -12
  27. data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +1 -1
  28. data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +20 -9
  29. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +28 -8
  30. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +6 -10
  31. data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +69 -45
  32. data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +37 -18
  33. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +84 -59
  34. data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +232 -0
  35. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +8 -19
  36. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +2 -2
  37. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +63 -50
  38. data/lib/bootstrap/sass/rails/version.rb +1 -1
  39. data/test/cases/usage_css_spec.rb +6 -4
  40. metadata +14 -11
  41. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.eot +0 -0
  42. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.otf +0 -0
  43. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.svg +0 -175
  44. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.ttf +0 -0
  45. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.woff +0 -0
@@ -19,7 +19,7 @@
19
19
  > a {
20
20
  position: relative;
21
21
  display: block;
22
- padding: 10px 15px;
22
+ padding: $nav-link-padding;
23
23
  &:hover,
24
24
  &:focus {
25
25
  text-decoration: none;
@@ -42,17 +42,12 @@
42
42
  }
43
43
 
44
44
  // Open dropdowns
45
- &.open > a {
45
+ .open > a {
46
46
  &,
47
47
  &:hover,
48
48
  &:focus {
49
- color: $nav-open-link-hover-color;
50
- background-color: $link-color;
49
+ background-color: $nav-link-hover-bg;
51
50
  border-color: $link-color;
52
- .caret {
53
- border-top-color: $nav-open-caret-border-color;
54
- border-bottom-color: $nav-open-caret-border-color;
55
- }
56
51
  }
57
52
  }
58
53
 
@@ -87,7 +82,7 @@
87
82
  border: 1px solid transparent;
88
83
  border-radius: $border-radius-base $border-radius-base 0 0;
89
84
  &:hover {
90
- border-color: $nav-tabs-link-hover-border-color;
85
+ border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
91
86
  }
92
87
  }
93
88
 
@@ -159,14 +154,20 @@
159
154
 
160
155
  .nav-justified {
161
156
  width: 100%;
157
+
162
158
  > li {
163
159
  float: none;
164
- display: table-cell;
165
- width: 1%;
166
- > a {
160
+ > a {
167
161
  text-align: center;
168
162
  }
169
163
  }
164
+
165
+ @media (min-width: $screen-sm) {
166
+ > li {
167
+ display: table-cell;
168
+ width: 1%;
169
+ }
170
+ }
170
171
  }
171
172
 
172
173
  // Move borders to anchors instead of bottom of list
@@ -23,7 +23,7 @@
23
23
  > a:hover,
24
24
  > a:focus {
25
25
  text-decoration: none;
26
- background-color: $pagination-active-bg;
26
+ background-color: $pagination-hover-bg;
27
27
  }
28
28
  }
29
29
 
@@ -11,18 +11,19 @@
11
11
  display: inline; // Remove list-style and block-level defaults
12
12
  > a,
13
13
  > span {
14
+ position: relative;
14
15
  float: left; // Collapse white-space
15
16
  padding: $padding-base-vertical $padding-base-horizontal;
16
17
  line-height: $line-height-base;
17
18
  text-decoration: none;
18
19
  background-color: $pagination-bg;
19
20
  border: 1px solid $pagination-border;
20
- border-left-width: 0;
21
+ margin-left: -1px;
21
22
  }
22
23
  &:first-child {
23
24
  > a,
24
25
  > span {
25
- border-left-width: 1px;
26
+ margin-left: 0;
26
27
  @include border-left-radius($border-radius-base);
27
28
  }
28
29
  }
@@ -34,16 +35,25 @@
34
35
  }
35
36
  }
36
37
 
37
- > li > a:hover,
38
- > li > a:focus,
39
- > .active > a,
40
- > .active > span {
41
- background-color: $pagination-active-bg;
38
+ > li > a,
39
+ > li > span {
40
+ &:hover,
41
+ &:focus {
42
+ background-color: $pagination-hover-bg;
43
+ }
42
44
  }
45
+
43
46
  > .active > a,
44
47
  > .active > span {
45
- color: $pagination-active-color;
46
- cursor: default;
48
+ &,
49
+ &:hover,
50
+ &:focus {
51
+ z-index: 2;
52
+ color: $pagination-active-color;
53
+ background-color: $pagination-active-bg;
54
+ border-color: $pagination-active-bg;
55
+ cursor: default;
56
+ }
47
57
  }
48
58
 
49
59
  > .disabled {
@@ -53,6 +63,7 @@
53
63
  > a:focus {
54
64
  color: $pagination-disabled-color;
55
65
  background-color: $pagination-bg;
66
+ border-color: $pagination-border;
56
67
  cursor: not-allowed;
57
68
  }
58
69
  }
@@ -7,7 +7,7 @@
7
7
  .panel {
8
8
  margin-bottom: $line-height-computed;
9
9
  background-color: $panel-bg;
10
- border: 1px solid $panel-border;
10
+ border: 1px solid transparent;
11
11
  border-radius: $panel-border-radius;
12
12
  @include box-shadow(0 1px 1px rgba(0,0,0,.05));
13
13
  }
@@ -15,15 +15,17 @@
15
15
  // Panel contents
16
16
  .panel-body {
17
17
  padding: 15px;
18
+ @include clearfix();
18
19
  }
19
20
 
21
+
20
22
  // List groups in panels
21
23
  //
22
24
  // By default, space out list group content from panel headings to account for
23
25
  // any kind of custom content between the two.
24
26
 
25
27
  .panel {
26
- .list-group {
28
+ > .list-group {
27
29
  margin-bottom: 0;
28
30
 
29
31
  .list-group-item {
@@ -47,11 +49,26 @@
47
49
  }
48
50
  }
49
51
 
52
+
53
+ // Tables in panels
54
+ //
55
+ // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
56
+ // watch it go full width.
57
+
58
+ .panel {
59
+ > .table {
60
+ margin-bottom: 0;
61
+ }
62
+ > .panel-body + .table {
63
+ border-top: 1px solid $table-border-color;
64
+ }
65
+ }
66
+
67
+
50
68
  // Optional heading
51
69
  .panel-heading {
52
70
  padding: 10px 15px;
53
- background-color: $panel-heading-bg;
54
- border-bottom: 1px solid $panel-border;
71
+ border-bottom: 1px solid transparent;
55
72
  @include border-top-radius($panel-border-radius - 1);
56
73
  }
57
74
 
@@ -59,7 +76,7 @@
59
76
  .panel-title {
60
77
  margin-top: 0;
61
78
  margin-bottom: 0;
62
- font-size: ($font-size-base * 1.25);
79
+ font-size: ceil(($font-size-base * 1.125));
63
80
  > a {
64
81
  color: inherit;
65
82
  }
@@ -69,7 +86,7 @@
69
86
  .panel-footer {
70
87
  padding: 10px 15px;
71
88
  background-color: $panel-footer-bg;
72
- border-top: 1px solid $panel-border;
89
+ border-top: 1px solid $panel-inner-border;
73
90
  @include border-bottom-radius($panel-border-radius - 1);
74
91
  }
75
92
 
@@ -93,13 +110,13 @@
93
110
  .panel-heading {
94
111
  border-bottom: 0;
95
112
  + .panel-collapse .panel-body {
96
- border-top: 1px solid $panel-border;
113
+ border-top: 1px solid $panel-inner-border;
97
114
  }
98
115
  }
99
116
  .panel-footer {
100
117
  border-top: 0;
101
118
  + .panel-collapse .panel-body {
102
- border-bottom: 1px solid $panel-border;
119
+ border-bottom: 1px solid $panel-inner-border;
103
120
  }
104
121
  }
105
122
 
@@ -111,6 +128,9 @@
111
128
 
112
129
 
113
130
  // Contextual variations
131
+ .panel-default {
132
+ @include panel-variant($panel-default-border, $panel-default-text, $panel-default-heading-bg, $panel-default-border);
133
+ }
114
134
  .panel-primary {
115
135
  @include panel-variant($panel-primary-border, $panel-primary-text, $panel-primary-heading-bg, $panel-primary-border);
116
136
  }
@@ -78,22 +78,18 @@
78
78
  // Variations
79
79
  // -------------------------
80
80
 
81
- // Danger (red)
82
- .progress-bar-danger {
83
- @include progress-bar-variant($progress-bar-danger-bg);
84
- }
85
-
86
- // Success (green)
87
81
  .progress-bar-success {
88
82
  @include progress-bar-variant($progress-bar-success-bg);
89
83
  }
90
84
 
91
- // Warning (orange)
85
+ .progress-bar-info {
86
+ @include progress-bar-variant($progress-bar-info-bg);
87
+ }
88
+
92
89
  .progress-bar-warning {
93
90
  @include progress-bar-variant($progress-bar-warning-bg);
94
91
  }
95
92
 
96
- // Info (teal)
97
- .progress-bar-info {
98
- @include progress-bar-variant($progress-bar-info-bg);
93
+ .progress-bar-danger {
94
+ @include progress-bar-variant($progress-bar-danger-bg);
99
95
  }
@@ -35,91 +35,115 @@
35
35
 
36
36
  // Visibility utilities
37
37
 
38
- @include responsive-visibility('.visible-xs');
39
- @media (min-width: $screen-tablet) and (max-width: $screen-tablet-max) {
40
- @include responsive-invisibility('.visible-xs');
38
+ @include responsive-invisibility('.visible-xs');
39
+ @media (max-width: $screen-xs-max) {
40
+ @include responsive-visibility('.visible-xs');
41
41
  }
42
- @media (min-width: $screen-desktop) and (max-width: $screen-desktop-max) {
43
- @include responsive-invisibility('.visible-xs');
42
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max) {
43
+ @include responsive-visibility('.visible-xs.visible-sm');
44
44
  }
45
- @media (min-width: $screen-large-desktop) {
46
- @include responsive-invisibility('.visible-xs');
45
+ @media (min-width: $screen-md) and (max-width: $screen-md-max) {
46
+ @include responsive-visibility('.visible-xs.visible-md');
47
47
  }
48
+ @media (min-width: $screen-lg) {
49
+ @include responsive-visibility('.visible-xs.visible-lg');
50
+ }
51
+
48
52
  @include responsive-invisibility('.visible-sm');
49
- @media (min-width: $screen-tablet) and (max-width: $screen-tablet-max) {
53
+ @media (max-width: $screen-xs-max) {
54
+ @include responsive-visibility('.visible-sm.visible-xs');
55
+ }
56
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max) {
50
57
  @include responsive-visibility('.visible-sm');
51
58
  }
52
- @media (min-width: $screen-desktop) and (max-width: $screen-desktop-max) {
53
- @include responsive-invisibility('.visible-sm');
59
+ @media (min-width: $screen-md) and (max-width: $screen-md-max) {
60
+ @include responsive-visibility('.visible-sm.visible-md');
54
61
  }
55
- @media (min-width: $screen-large-desktop) {
56
- @include responsive-invisibility('.visible-sm');
62
+ @media (min-width: $screen-lg) {
63
+ @include responsive-visibility('.visible-sm.visible-lg');
57
64
  }
58
65
  @include responsive-invisibility('.visible-md');
59
- @media (min-width: $screen-tablet) and (max-width: $screen-tablet-max) {
60
- @include responsive-invisibility('.visible-md');
66
+ @media (max-width: $screen-xs-max) {
67
+ @include responsive-visibility('.visible-md.visible-xs');
61
68
  }
62
- @media (min-width: $screen-desktop) and (max-width: $screen-desktop-max) {
69
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max) {
70
+ @include responsive-visibility('.visible-md.visible-sm');
71
+ }
72
+ @media (min-width: $screen-md) and (max-width: $screen-md-max) {
63
73
  @include responsive-visibility('.visible-md');
64
74
  }
65
- @media (min-width: $screen-large-desktop) {
66
- @include responsive-invisibility('.visible-md');
75
+ @media (min-width: $screen-lg) {
76
+ @include responsive-visibility('.visible-md.visible-lg');
67
77
  }
68
78
  @include responsive-invisibility('.visible-lg');
69
- @media (min-width: $screen-tablet) and (max-width: $screen-tablet-max) {
70
- @include responsive-invisibility('.visible-lg');
79
+ @media (max-width: $screen-xs-max) {
80
+ @include responsive-visibility('.visible-lg.visible-xs');
81
+ }
82
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max) {
83
+ @include responsive-visibility('.visible-lg.visible-sm');
71
84
  }
72
- @media (min-width: $screen-desktop) and (max-width: $screen-desktop-max) {
73
- @include responsive-invisibility('.visible-lg');
85
+ @media (min-width: $screen-md) and (max-width: $screen-md-max) {
86
+ @include responsive-visibility('.visible-lg.visible-md');
74
87
  }
75
- @media (min-width: $screen-large-desktop) {
88
+ @media (min-width: $screen-lg) {
76
89
  @include responsive-visibility('.visible-lg');
77
90
  }
78
91
 
79
- @include responsive-invisibility('.hidden-xs');
80
- @media (min-width: $screen-tablet) and (max-width: $screen-tablet-max) {
81
- @include responsive-visibility('.hidden-xs');
92
+ @include responsive-visibility('.hidden-xs');
93
+ @media (max-width: $screen-xs-max) {
94
+ @include responsive-invisibility('.hidden-xs');
82
95
  }
83
- @media (min-width: $screen-desktop) and (max-width: $screen-desktop-max) {
84
- @include responsive-visibility('.hidden-xs');
96
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max) {
97
+ @include responsive-invisibility('.hidden-xs.hidden-sm');
85
98
  }
86
- @media (min-width: $screen-large-desktop) {
87
- @include responsive-visibility('.hidden-xs');
99
+ @media (min-width: $screen-md) and (max-width: $screen-md-max) {
100
+ @include responsive-invisibility('.hidden-xs.hidden-md');
101
+ }
102
+ @media (min-width: $screen-lg) {
103
+ @include responsive-invisibility('.hidden-xs.hidden-lg');
88
104
  }
89
105
  @include responsive-visibility('.hidden-sm');
90
- @media (min-width: $screen-tablet) and (max-width: $screen-tablet-max) {
106
+ @media (max-width: $screen-xs-max) {
107
+ @include responsive-invisibility('.hidden-sm.hidden-xs');
108
+ }
109
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max) {
91
110
  @include responsive-invisibility('.hidden-sm');
92
111
  }
93
- @media (min-width: $screen-desktop) and (max-width: $screen-desktop-max) {
94
- @include responsive-visibility('.hidden-sm');
112
+ @media (min-width: $screen-md) and (max-width: $screen-md-max) {
113
+ @include responsive-invisibility('.hidden-sm.hidden-md');
95
114
  }
96
- @media (min-width: $screen-large-desktop) {
97
- @include responsive-visibility('.hidden-sm');
115
+ @media (min-width: $screen-lg) {
116
+ @include responsive-invisibility('.hidden-sm.hidden-lg');
98
117
  }
99
118
  @include responsive-visibility('.hidden-md');
100
- @media (min-width: $screen-tablet) and (max-width: $screen-tablet-max) {
101
- @include responsive-visibility('.hidden-md');
119
+ @media (max-width: $screen-xs-max) {
120
+ @include responsive-invisibility('.hidden-md.hidden-xs');
102
121
  }
103
- @media (min-width: $screen-desktop) and (max-width: $screen-desktop-max) {
122
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max) {
123
+ @include responsive-invisibility('.hidden-md.hidden-sm');
124
+ }
125
+ @media (min-width: $screen-md) and (max-width: $screen-md-max) {
104
126
  @include responsive-invisibility('.hidden-md');
105
127
  }
106
- @media (min-width: $screen-large-desktop) {
107
- @include responsive-visibility('.hidden-md');
128
+ @media (min-width: $screen-lg) {
129
+ @include responsive-invisibility('.hidden-md.hidden-lg');
108
130
  }
109
131
  @include responsive-visibility('.hidden-lg');
110
- @media (min-width: $screen-tablet) and (max-width: $screen-tablet-max) {
111
- @include responsive-visibility('.hidden-lg');
132
+ @media (max-width: $screen-xs-max) {
133
+ @include responsive-invisibility('.hidden-lg.hidden-xs');
134
+ }
135
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max) {
136
+ @include responsive-invisibility('.hidden-lg.hidden-sm');
112
137
  }
113
- @media (min-width: $screen-desktop) and (max-width: $screen-desktop-max) {
114
- @include responsive-visibility('.hidden-lg');
138
+ @media (min-width: $screen-md) and (max-width: $screen-md-max) {
139
+ @include responsive-invisibility('.hidden-lg.hidden-md');
115
140
  }
116
- @media (min-width: $screen-large-desktop) {
141
+ @media (min-width: $screen-lg) {
117
142
  @include responsive-invisibility('.hidden-lg');
118
143
  }
119
144
 
120
145
  // Print utilities
121
146
  @include responsive-invisibility('.visible-print');
122
- .hidden-print { }
123
147
 
124
148
  @media print {
125
149
  @include responsive-visibility('.visible-print');
@@ -4,7 +4,6 @@
4
4
 
5
5
 
6
6
  // Reset the box-sizing
7
- // -------------------------
8
7
 
9
8
  *,
10
9
  *:before,
@@ -14,7 +13,6 @@
14
13
 
15
14
 
16
15
  // Body reset
17
- // -------------------------
18
16
 
19
17
  html {
20
18
  font-size: 62.5%;
@@ -39,26 +37,37 @@ textarea {
39
37
  line-height: inherit;
40
38
  }
41
39
 
40
+ // Reset unusual Firefox-on-Android default style.
41
+ //
42
+ // See https://github.com/necolas/normalize.css/issues/214
43
+
44
+ button,
45
+ input,
46
+ select[multiple],
47
+ textarea {
48
+ background-image: none;
49
+ }
50
+
42
51
 
43
52
  // Links
44
- // -------------------------
45
53
 
46
54
  a {
47
55
  color: $link-color;
48
56
  text-decoration: none;
49
- }
50
- a:hover,
51
- a:focus {
52
- color: $link-hover-color;
53
- text-decoration: underline;
54
- }
55
- a:focus {
56
- @include tab-focus();
57
+
58
+ &:hover,
59
+ &:focus {
60
+ color: $link-hover-color;
61
+ text-decoration: underline;
62
+ }
63
+
64
+ &:focus {
65
+ @include tab-focus();
66
+ }
57
67
  }
58
68
 
59
69
 
60
70
  // Images
61
- // -------------------------
62
71
 
63
72
  img {
64
73
  vertical-align: middle;
@@ -66,9 +75,7 @@ img {
66
75
 
67
76
  // Responsive images (ensure images don't scale beyond their parents)
68
77
  .img-responsive {
69
- display: inline-block;
70
- max-width: 100%; // Part 1: Set a maximum relative to the parent
71
- height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
78
+ @include img-responsive();
72
79
  }
73
80
 
74
81
  // Rounded corners
@@ -77,7 +84,19 @@ img {
77
84
  }
78
85
 
79
86
  // Image thumbnails
80
- // See thumbnails.less for `.img-thumbnail`
87
+ //
88
+ // Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
89
+ .img-thumbnail {
90
+ padding: $thumbnail-padding;
91
+ line-height: $line-height-base;
92
+ background-color: $thumbnail-bg;
93
+ border: 1px solid $thumbnail-border;
94
+ border-radius: $thumbnail-border-radius;
95
+ @include transition(all .2s ease-in-out);
96
+
97
+ // Keep them at most 100% wide
98
+ @include img-responsive(inline-block);
99
+ }
81
100
 
82
101
  // Perfect circle
83
102
  .img-circle {
@@ -86,7 +105,6 @@ img {
86
105
 
87
106
 
88
107
  // Horizontal rules
89
- // -------------------------
90
108
 
91
109
  hr {
92
110
  margin-top: $line-height-computed;
@@ -95,9 +113,10 @@ hr {
95
113
  border-top: 1px solid $hr-border;
96
114
  }
97
115
 
116
+
98
117
  // Only display content to screen readers
118
+ //
99
119
  // See: http://a11yproject.com/posts/how-to-hide-content/
100
- // -------------------------
101
120
 
102
121
  .sr-only {
103
122
  position: absolute;