bootstrap-sass-rails 3.0.0.3 → 3.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +24 -113
  3. data/app/assets/javascripts/twitter/bootstrap/affix.js +1 -126
  4. data/app/assets/javascripts/twitter/bootstrap/alert.js +1 -98
  5. data/app/assets/javascripts/twitter/bootstrap/button.js +1 -109
  6. data/app/assets/javascripts/twitter/bootstrap/carousel.js +1 -217
  7. data/app/assets/javascripts/twitter/bootstrap/collapse.js +1 -179
  8. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +1 -154
  9. data/app/assets/javascripts/twitter/bootstrap/modal.js +1 -246
  10. data/app/assets/javascripts/twitter/bootstrap/popover.js +1 -117
  11. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +1 -158
  12. data/app/assets/javascripts/twitter/bootstrap/tab.js +1 -135
  13. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +1 -386
  14. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -56
  15. data/app/assets/javascripts/twitter/bootstrap.js +1 -12
  16. data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +1 -67
  17. data/app/assets/stylesheets/twitter/bootstrap/_badges.scss +1 -51
  18. data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +1 -23
  19. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +1 -248
  20. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +1 -160
  21. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +1 -209
  22. data/app/assets/stylesheets/twitter/bootstrap/_close.scss +1 -33
  23. data/app/assets/stylesheets/twitter/bootstrap/_code.scss +1 -56
  24. data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +1 -29
  25. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +1 -193
  26. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +1 -350
  27. data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +1 -232
  28. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +1 -346
  29. data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +1 -127
  30. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +1 -40
  31. data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +1 -58
  32. data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +1 -89
  33. data/app/assets/stylesheets/twitter/bootstrap/_media.scss +1 -56
  34. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +1 -736
  35. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +1 -145
  36. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +1 -625
  37. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +1 -229
  38. data/app/assets/stylesheets/twitter/bootstrap/_normalize.scss +1 -396
  39. data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +1 -55
  40. data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +1 -83
  41. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +1 -148
  42. data/app/assets/stylesheets/twitter/bootstrap/_popovers.scss +1 -133
  43. data/app/assets/stylesheets/twitter/bootstrap/_print.scss +1 -100
  44. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +1 -95
  45. data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +1 -209
  46. data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +1 -130
  47. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +1 -236
  48. data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +1 -232
  49. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +1 -31
  50. data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +1 -95
  51. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +1 -238
  52. data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +1 -42
  53. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +1 -620
  54. data/app/assets/stylesheets/twitter/bootstrap/_wells.scss +1 -29
  55. data/app/assets/stylesheets/twitter/bootstrap.css.scss +1 -59
  56. data/lib/bootstrap/sass/rails/engine.rb +4 -1
  57. data/lib/bootstrap/sass/rails/version.rb +2 -1
  58. data/lib/bootstrap-sass-rails.rb +1 -1
  59. data/lib/generators/bootstrap/customize_generator.rb +37 -0
  60. data/lib/generators/bootstrap/templates/USAGE +23 -0
  61. data/lib/generators/bootstrap/templates/bootstrap-custom.css.scss +18 -0
  62. data/lib/generators/bootstrap/templates/bootstrap-custom.js +3 -0
  63. data/test/cases/less_to_sass_spec.rb +1 -1
  64. data/test/cases/usage_css_spec.rb +0 -3
  65. metadata +60 -18
  66. checksums.yaml +0 -15
  67. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  68. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +0 -228
  69. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  70. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  71. data/lib/bootstrap/sass/extensions/functions.rb +0 -15
  72. data/lib/bootstrap/sass/extensions.rb +0 -5
@@ -1,127 +1 @@
1
- //
2
- // Input groups
3
- // --------------------------------------------------
4
-
5
- // Base styles
6
- // -------------------------
7
- .input-group {
8
- position: relative; // For dropdowns
9
- display: table;
10
- border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
11
-
12
- // Undo padding and float of grid classes
13
- &.col {
14
- float: none;
15
- padding-left: 0;
16
- padding-right: 0;
17
- }
18
-
19
- .form-control {
20
- width: 100%;
21
- margin-bottom: 0;
22
- }
23
- }
24
-
25
- // Sizing options
26
- //
27
- // Remix the default form control sizing classes into new ones for easier
28
- // manipulation.
29
-
30
- .input-group-lg > .form-control,
31
- .input-group-lg > .input-group-addon,
32
- .input-group-lg > .input-group-btn > .btn { @extend .input-lg; }
33
- .input-group-sm > .form-control,
34
- .input-group-sm > .input-group-addon,
35
- .input-group-sm > .input-group-btn > .btn { @extend .input-sm; }
36
-
37
-
38
- // Display as table-cell
39
- // -------------------------
40
- .input-group-addon,
41
- .input-group-btn,
42
- .input-group .form-control {
43
- display: table-cell;
44
-
45
- &:not(:first-child):not(:last-child) {
46
- border-radius: 0;
47
- }
48
- }
49
- // Addon and addon wrapper for buttons
50
- .input-group-addon,
51
- .input-group-btn {
52
- width: 1%;
53
- white-space: nowrap;
54
- vertical-align: middle; // Match the inputs
55
- }
56
-
57
- // Text input groups
58
- // -------------------------
59
- .input-group-addon {
60
- padding: $padding-base-vertical $padding-base-horizontal;
61
- font-size: $font-size-base;
62
- font-weight: normal;
63
- line-height: 1;
64
- text-align: center;
65
- background-color: $input-group-addon-bg;
66
- border: 1px solid $input-group-addon-border-color;
67
- border-radius: $border-radius-base;
68
-
69
- // Sizing
70
- &.input-sm {
71
- padding: $padding-small-vertical $padding-small-horizontal;
72
- font-size: $font-size-small;
73
- border-radius: $border-radius-small;
74
- }
75
- &.input-lg {
76
- padding: $padding-large-vertical $padding-large-horizontal;
77
- font-size: $font-size-large;
78
- border-radius: $border-radius-large;
79
- }
80
-
81
- // Nuke default margins from checkboxes and radios to vertically center within.
82
- input[type="radio"],
83
- input[type="checkbox"] {
84
- margin-top: 0;
85
- }
86
- }
87
-
88
- // Reset rounded corners
89
- .input-group .form-control:first-child,
90
- .input-group-addon:first-child,
91
- .input-group-btn:first-child > .btn,
92
- .input-group-btn:first-child > .dropdown-toggle,
93
- .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
94
- @include border-right-radius(0);
95
- }
96
- .input-group-addon:first-child {
97
- border-right: 0;
98
- }
99
- .input-group .form-control:last-child,
100
- .input-group-addon:last-child,
101
- .input-group-btn:last-child > .btn,
102
- .input-group-btn:last-child > .dropdown-toggle,
103
- .input-group-btn:first-child > .btn:not(:first-child) {
104
- @include border-left-radius(0);
105
- }
106
- .input-group-addon:last-child {
107
- border-left: 0;
108
- }
109
-
110
- // Button input groups
111
- // -------------------------
112
- .input-group-btn {
113
- position: relative;
114
- white-space: nowrap;
115
- }
116
- .input-group-btn > .btn {
117
- position: relative;
118
- // Jankily prevent input button groups from wrapping
119
- + .btn {
120
- margin-left: -4px;
121
- }
122
- // Bring the "active" button to the front
123
- &:hover,
124
- &:active {
125
- z-index: 2;
126
- }
127
- }
1
+ @import "bootstrap/input-groups";
@@ -1,40 +1 @@
1
- //
2
- // Jumbotron
3
- // --------------------------------------------------
4
-
5
-
6
- .jumbotron {
7
- padding: $jumbotron-padding;
8
- margin-bottom: $jumbotron-padding;
9
- font-size: ($font-size-base * 1.5);
10
- font-weight: 200;
11
- line-height: ($line-height-base * 1.5);
12
- color: $jumbotron-color;
13
- background-color: $jumbotron-bg;
14
-
15
- h1 {
16
- line-height: 1;
17
- color: $jumbotron-heading-color;
18
- }
19
- p {
20
- line-height: 1.4;
21
- }
22
-
23
- .container & {
24
- border-radius: $border-radius-large; // Only round corners at higher resolutions if contained in a container
25
- }
26
-
27
- @media screen and (min-width: $screen-tablet) {
28
- padding-top: ($jumbotron-padding * 1.6);
29
- padding-bottom: ($jumbotron-padding * 1.6);
30
-
31
- .container & {
32
- padding-left: ($jumbotron-padding * 2);
33
- padding-right: ($jumbotron-padding * 2);
34
- }
35
-
36
- h1 {
37
- font-size: ($font-size-base * 4.5);
38
- }
39
- }
40
- }
1
+ @import "bootstrap/jumbotron";
@@ -1,58 +1 @@
1
- //
2
- // Labels
3
- // --------------------------------------------------
4
-
5
- .label {
6
- display: inline;
7
- padding: .2em .6em .3em;
8
- font-size: 75%;
9
- font-weight: bold;
10
- line-height: 1;
11
- color: $label-color;
12
- text-align: center;
13
- white-space: nowrap;
14
- vertical-align: baseline;
15
- border-radius: .25em;
16
-
17
- // Add hover effects, but only for links
18
- &[href] {
19
- &:hover,
20
- &:focus {
21
- color: $label-link-hover-color;
22
- text-decoration: none;
23
- cursor: pointer;
24
- }
25
- }
26
-
27
- // Empty labels collapse automatically (not available in IE8)
28
- &:empty {
29
- display: none;
30
- }
31
- }
32
-
33
- // Colors
34
- // Contextual variations (linked labels get darker on :hover)
35
-
36
- .label-default {
37
- @include label-variant($label-default-bg);
38
- }
39
-
40
- .label-primary {
41
- @include label-variant($label-primary-bg);
42
- }
43
-
44
- .label-success {
45
- @include label-variant($label-success-bg);
46
- }
47
-
48
- .label-info {
49
- @include label-variant($label-info-bg);
50
- }
51
-
52
- .label-warning {
53
- @include label-variant($label-warning-bg);
54
- }
55
-
56
- .label-danger {
57
- @include label-variant($label-danger-bg);
58
- }
1
+ @import "bootstrap/labels";
@@ -1,89 +1 @@
1
- //
2
- // List groups
3
- // --------------------------------------------------
4
-
5
- // Base class
6
- //
7
- // Easily usable on <ul>, <ol>, or <div>.
8
- .list-group {
9
- // No need to set list-style: none; since .list-group-item is block level
10
- margin-bottom: 20px;
11
- padding-left: 0; // reset padding because ul and ol
12
- }
13
-
14
- // Individual list items
15
- // -------------------------
16
-
17
- .list-group-item {
18
- position: relative;
19
- display: block;
20
- padding: 10px 15px;
21
- // Place the border on the list items and negative margin up for better styling
22
- margin-bottom: -1px;
23
- background-color: $list-group-bg;
24
- border: 1px solid $list-group-border;
25
-
26
- // Round the first and last items
27
- &:first-child {
28
- @include border-top-radius($list-group-border-radius);
29
- }
30
- &:last-child {
31
- margin-bottom: 0;
32
- @include border-bottom-radius($list-group-border-radius);
33
- }
34
-
35
- // Align badges within list items
36
- > .badge {
37
- float: right;
38
- }
39
- > .badge + .badge {
40
- margin-right: 5px;
41
- }
42
-
43
-
44
-
45
- // Active class on item itself, not parent
46
- &.active,
47
- &.active:hover,
48
- &.active:focus {
49
- z-index: 2; // Place active items above their siblings for proper border styling
50
- color: $list-group-active-color;
51
- background-color: $list-group-active-bg;
52
- border-color: $list-group-active-border;
53
-
54
- // Force color to inherit for custom content
55
- .list-group-item-heading {
56
- color: inherit;
57
- }
58
- .list-group-item-text {
59
- color: lighten($list-group-active-bg, 40%);
60
- }
61
- }
62
- }
63
- // Linked list items
64
- a.list-group-item {
65
- color: $list-group-link-color;
66
-
67
- .list-group-item-heading {
68
- color: $list-group-link-heading-color;
69
- }
70
-
71
- // Hover state
72
- &:hover,
73
- &:focus {
74
- text-decoration: none;
75
- background-color: $list-group-hover-bg;
76
- }
77
- }
78
-
79
- // Custom content options
80
- // -------------------------
81
-
82
- .list-group-item-heading {
83
- margin-top: 0;
84
- margin-bottom: 5px;
85
- }
86
- .list-group-item-text {
87
- margin-bottom: 0;
88
- line-height: 1.3;
89
- }
1
+ @import "bootstrap/list-group";
@@ -1,56 +1 @@
1
- // Media objects
2
- // Source: http://stubbornella.org/content/?p=497
3
- // --------------------------------------------------
4
-
5
-
6
- // Common styles
7
- // -------------------------
8
-
9
- // Clear the floats
10
- .media,
11
- .media-body {
12
- overflow: hidden;
13
- zoom: 1;
14
- }
15
-
16
- // Proper spacing between instances of .media
17
- .media,
18
- .media .media {
19
- margin-top: 15px;
20
- }
21
- .media:first-child {
22
- margin-top: 0;
23
- }
24
-
25
- // For images and videos, set to block
26
- .media-object {
27
- display: block;
28
- }
29
-
30
- // Reset margins on headings for tighter default spacing
31
- .media-heading {
32
- margin: 0 0 5px;
33
- }
34
-
35
-
36
- // Media image alignment
37
- // -------------------------
38
-
39
- .media {
40
- > .pull-left {
41
- margin-right: 10px;
42
- }
43
- > .pull-right {
44
- margin-left: 10px;
45
- }
46
- }
47
-
48
-
49
- // Media list variation
50
- // -------------------------
51
-
52
- // Undo default ul/ol styles
53
- .media-list {
54
- padding-left: 0;
55
- list-style: none;
56
- }
1
+ @import "bootstrap/media";