bootstrap-sass-rails 3.0.0.3 → 3.1.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.
- data/LICENSE +1 -1
- data/README.md +24 -113
- data/app/assets/javascripts/twitter/bootstrap/affix.js +1 -126
- data/app/assets/javascripts/twitter/bootstrap/alert.js +1 -98
- data/app/assets/javascripts/twitter/bootstrap/button.js +1 -109
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +1 -217
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +1 -179
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +1 -154
- data/app/assets/javascripts/twitter/bootstrap/modal.js +1 -246
- data/app/assets/javascripts/twitter/bootstrap/popover.js +1 -117
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +1 -158
- data/app/assets/javascripts/twitter/bootstrap/tab.js +1 -135
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +1 -386
- data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -56
- data/app/assets/javascripts/twitter/bootstrap.js +1 -12
- data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +1 -67
- data/app/assets/stylesheets/twitter/bootstrap/_badges.scss +1 -51
- data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +1 -23
- data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +1 -248
- data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +1 -160
- data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +1 -209
- data/app/assets/stylesheets/twitter/bootstrap/_close.scss +1 -33
- data/app/assets/stylesheets/twitter/bootstrap/_code.scss +1 -56
- data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +1 -29
- data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +1 -193
- data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +1 -350
- data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +1 -232
- data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +1 -346
- data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +1 -127
- data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +1 -40
- data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +1 -58
- data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +1 -89
- data/app/assets/stylesheets/twitter/bootstrap/_media.scss +1 -56
- data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +1 -736
- data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +1 -145
- data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +1 -625
- data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +1 -229
- data/app/assets/stylesheets/twitter/bootstrap/_normalize.scss +1 -396
- data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +1 -55
- data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +1 -83
- data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +1 -148
- data/app/assets/stylesheets/twitter/bootstrap/_popovers.scss +1 -133
- data/app/assets/stylesheets/twitter/bootstrap/_print.scss +1 -100
- data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +1 -95
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +1 -209
- data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +1 -130
- data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +1 -236
- data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +1 -232
- data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +1 -31
- data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +1 -95
- data/app/assets/stylesheets/twitter/bootstrap/_type.scss +1 -238
- data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +1 -42
- data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +1 -620
- data/app/assets/stylesheets/twitter/bootstrap/_wells.scss +1 -29
- data/app/assets/stylesheets/twitter/bootstrap.css.scss +1 -59
- data/lib/bootstrap/sass/rails/engine.rb +4 -1
- data/lib/bootstrap/sass/rails/version.rb +2 -1
- data/lib/bootstrap-sass-rails.rb +1 -1
- data/lib/generators/bootstrap/customize_generator.rb +37 -0
- data/lib/generators/bootstrap/templates/USAGE +23 -0
- data/lib/generators/bootstrap/templates/bootstrap-custom.css.scss +18 -0
- data/lib/generators/bootstrap/templates/bootstrap-custom.js +3 -0
- data/test/cases/less_to_sass_spec.rb +1 -1
- data/test/cases/usage_css_spec.rb +0 -3
- metadata +60 -18
- checksums.yaml +0 -15
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +0 -228
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/lib/bootstrap/sass/extensions/functions.rb +0 -15
- data/lib/bootstrap/sass/extensions.rb +0 -5
@@ -1,145 +1 @@
|
|
1
|
-
|
2
|
-
// Modals
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
// .modal-open - body class for killing the scroll
|
6
|
-
// .modal - container to scroll within
|
7
|
-
// .modal-dialog - positioning shell for the actual modal
|
8
|
-
// .modal-content - actual modal w/ bg and corners and shit
|
9
|
-
|
10
|
-
// Kill the scroll on the body
|
11
|
-
.modal-open {
|
12
|
-
overflow: hidden;
|
13
|
-
|
14
|
-
|
15
|
-
// Account for hiding of scrollbar
|
16
|
-
|
17
|
-
|
18
|
-
.navbar-fixed-top,
|
19
|
-
.navbar-fixed-bottom {
|
20
|
-
margin-right: 15px
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
body.modal-open {
|
25
|
-
margin-right: 15px
|
26
|
-
}
|
27
|
-
|
28
|
-
// Container that the modal scrolls within
|
29
|
-
.modal {
|
30
|
-
display: none;
|
31
|
-
overflow: auto;
|
32
|
-
overflow-y: scroll;
|
33
|
-
position: fixed;
|
34
|
-
top: 0;
|
35
|
-
right: 0;
|
36
|
-
bottom: 0;
|
37
|
-
left: 0;
|
38
|
-
z-index: $zindex-modal-background;
|
39
|
-
|
40
|
-
// When fading in the modal, animate it to slide down
|
41
|
-
&.fade .modal-dialog {
|
42
|
-
@include translate(0, -25%);
|
43
|
-
@include transition-transform(0.3s ease-out);
|
44
|
-
}
|
45
|
-
&.in .modal-dialog { @include translate(0, 0)}
|
46
|
-
}
|
47
|
-
|
48
|
-
// Shell div to position the modal with bottom padding
|
49
|
-
.modal-dialog {
|
50
|
-
margin-left: auto;
|
51
|
-
margin-right: auto;
|
52
|
-
width: auto;
|
53
|
-
padding: 10px;
|
54
|
-
z-index: ($zindex-modal-background + 10);
|
55
|
-
}
|
56
|
-
|
57
|
-
// Actual modal
|
58
|
-
.modal-content {
|
59
|
-
position: relative;
|
60
|
-
background-color: $modal-content-bg;
|
61
|
-
border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
|
62
|
-
border: 1px solid $modal-content-border-color;
|
63
|
-
border-radius: $border-radius-large;
|
64
|
-
@include box-shadow(0 3px 9px rgba(0,0,0,.5));
|
65
|
-
background-clip: padding-box;
|
66
|
-
// Remove focus outline from opened modal
|
67
|
-
outline: none;
|
68
|
-
}
|
69
|
-
|
70
|
-
// Modal background
|
71
|
-
.modal-backdrop {
|
72
|
-
position: fixed;
|
73
|
-
top: 0;
|
74
|
-
right: 0;
|
75
|
-
bottom: 0;
|
76
|
-
left: 0;
|
77
|
-
z-index: ($zindex-modal-background - 10);
|
78
|
-
background-color: $modal-backdrop-bg;
|
79
|
-
// Fade for backdrop
|
80
|
-
&.fade { @include opacity(0); }
|
81
|
-
&.in { @include opacity(.5); }
|
82
|
-
}
|
83
|
-
|
84
|
-
// Modal header
|
85
|
-
// Top section of the modal w/ title and dismiss
|
86
|
-
.modal-header {
|
87
|
-
padding: $modal-title-padding;
|
88
|
-
border-bottom: 1px solid $modal-header-border-color;
|
89
|
-
min-height: ($modal-title-padding + $modal-title-line-height);
|
90
|
-
}
|
91
|
-
// Close icon
|
92
|
-
.modal-header .close {
|
93
|
-
margin-top: -2px;
|
94
|
-
}
|
95
|
-
|
96
|
-
// Title text within header
|
97
|
-
.modal-title {
|
98
|
-
margin: 0;
|
99
|
-
line-height: $modal-title-line-height;
|
100
|
-
}
|
101
|
-
|
102
|
-
// Modal body
|
103
|
-
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
104
|
-
.modal-body {
|
105
|
-
position: relative;
|
106
|
-
padding: $modal-inner-padding;
|
107
|
-
}
|
108
|
-
|
109
|
-
// Footer (for actions)
|
110
|
-
.modal-footer {
|
111
|
-
margin-top: 15px;
|
112
|
-
padding: ($modal-inner-padding - 1) $modal-inner-padding $modal-inner-padding;
|
113
|
-
text-align: right; // right align buttons
|
114
|
-
border-top: 1px solid $modal-footer-border-color;
|
115
|
-
@include clearfix(); // clear it in case folks use .pull-* classes on buttons
|
116
|
-
|
117
|
-
// Properly space out buttons
|
118
|
-
.btn + .btn {
|
119
|
-
margin-left: 5px;
|
120
|
-
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
121
|
-
}
|
122
|
-
// but override that for button groups
|
123
|
-
.btn-group .btn + .btn {
|
124
|
-
margin-left: -1px;
|
125
|
-
}
|
126
|
-
// and override it for block buttons as well
|
127
|
-
.btn-block + .btn-block {
|
128
|
-
margin-left: 0;
|
129
|
-
}
|
130
|
-
}
|
131
|
-
|
132
|
-
// Scale up the modal
|
133
|
-
@media screen and (min-width: $screen-tablet) {
|
134
|
-
|
135
|
-
.modal-dialog {
|
136
|
-
left: 50%;
|
137
|
-
right: auto;
|
138
|
-
width: 600px;
|
139
|
-
padding-top: 30px;
|
140
|
-
padding-bottom: 30px;
|
141
|
-
}
|
142
|
-
.modal-content {
|
143
|
-
@include box-shadow(0 5px 15px rgba(0,0,0,.5));
|
144
|
-
}
|
145
|
-
}
|
1
|
+
@import "bootstrap/modals";
|