twitter-bootswatch-rails 2.3.2.8 → 3.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +8 -8
  2. data/lib/generators/bootswatch/import/import_generator.rb +4 -5
  3. data/lib/generators/bootswatch/install/install_generator.rb +4 -6
  4. data/lib/generators/bootswatch/install/templates/bootstrap.less +29 -33
  5. data/lib/generators/bootswatch/install/templates/bootswatch.css.less.tt +0 -4
  6. data/lib/generators/bootswatch/install/templates/bootswatch.js.tt +3 -0
  7. data/lib/generators/bootswatch/install/templates/loader.css.less.tt +1 -1
  8. data/lib/generators/bootswatch/install/templates/loader.js.tt +10 -0
  9. data/lib/generators/bootswatch/install/templates/mixins.less.tt +487 -466
  10. data/lib/generators/bootswatch/install/templates/variables.less.tt +498 -179
  11. data/lib/generators/bootswatch/layout/templates/layout.html.erb +349 -18
  12. data/lib/generators/bootswatch/layout/templates/layout.html.haml +0 -5
  13. data/lib/generators/bootswatch/layout/templates/layout.html.slim +0 -5
  14. data/lib/twitter/bootswatch/rails/version.rb +1 -1
  15. data/vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  16. data/vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +228 -0
  17. data/vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  18. data/vendor/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  19. data/vendor/assets/javascripts/twitter/bootstrap/affix.js +126 -0
  20. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +98 -0
  21. data/vendor/assets/javascripts/twitter/bootstrap/button.js +109 -0
  22. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +217 -0
  23. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +179 -0
  24. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +154 -0
  25. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +246 -0
  26. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +117 -0
  27. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +158 -0
  28. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +135 -0
  29. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +386 -0
  30. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +56 -0
  31. data/vendor/toolkit/twitter/bootstrap/alerts.less +46 -58
  32. data/vendor/toolkit/twitter/bootstrap/badges.less +51 -0
  33. data/vendor/toolkit/twitter/bootstrap/bootstrap.less +29 -33
  34. data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +7 -8
  35. data/vendor/toolkit/twitter/bootstrap/button-groups.less +173 -154
  36. data/vendor/toolkit/twitter/bootstrap/buttons.less +97 -165
  37. data/vendor/toolkit/twitter/bootstrap/carousel.less +115 -64
  38. data/vendor/toolkit/twitter/bootstrap/close.less +20 -19
  39. data/vendor/toolkit/twitter/bootstrap/code.less +17 -22
  40. data/vendor/toolkit/twitter/bootstrap/component-animations.less +10 -3
  41. data/vendor/toolkit/twitter/bootstrap/dropdowns.less +92 -147
  42. data/vendor/toolkit/twitter/bootstrap/forms.less +224 -561
  43. data/vendor/toolkit/twitter/bootstrap/glyphicons.less +232 -0
  44. data/vendor/toolkit/twitter/bootstrap/grid.less +336 -11
  45. data/vendor/toolkit/twitter/bootstrap/input-groups.less +127 -0
  46. data/vendor/toolkit/twitter/bootstrap/jumbotron.less +40 -0
  47. data/vendor/toolkit/twitter/bootstrap/labels.less +58 -0
  48. data/vendor/toolkit/twitter/bootstrap/list-group.less +88 -0
  49. data/vendor/toolkit/twitter/bootstrap/media.less +8 -7
  50. data/vendor/toolkit/twitter/bootstrap/mixins.less +487 -466
  51. data/vendor/toolkit/twitter/bootstrap/modals.less +98 -52
  52. data/vendor/toolkit/twitter/bootstrap/navbar.less +507 -383
  53. data/vendor/toolkit/twitter/bootstrap/navs.less +169 -349
  54. data/vendor/toolkit/twitter/bootstrap/normalize.less +396 -0
  55. data/vendor/toolkit/twitter/bootstrap/pager.less +45 -33
  56. data/vendor/toolkit/twitter/bootstrap/pagination.less +65 -105
  57. data/vendor/toolkit/twitter/bootstrap/panels.less +148 -0
  58. data/vendor/toolkit/twitter/bootstrap/popovers.less +51 -51
  59. data/vendor/toolkit/twitter/bootstrap/print.less +100 -0
  60. data/vendor/toolkit/twitter/bootstrap/progress-bars.less +28 -55
  61. data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +195 -34
  62. data/vendor/toolkit/twitter/bootstrap/scaffolding.less +101 -24
  63. data/vendor/toolkit/twitter/bootstrap/tables.less +170 -178
  64. data/vendor/toolkit/twitter/bootstrap/theme.less +232 -0
  65. data/vendor/toolkit/twitter/bootstrap/thumbnails.less +11 -33
  66. data/vendor/toolkit/twitter/bootstrap/tooltip.less +45 -20
  67. data/vendor/toolkit/twitter/bootstrap/type.less +101 -110
  68. data/vendor/toolkit/twitter/bootstrap/utilities.less +19 -7
  69. data/vendor/toolkit/twitter/bootstrap/variables.less +498 -179
  70. data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
  71. metadata +33 -36
  72. data/lib/generators/bootswatch/install/templates/bootswatch.js.coffee.tt +0 -9
  73. data/lib/generators/bootswatch/install/templates/loader.coffee.tt +0 -23
  74. data/lib/generators/bootswatch/install/templates/responsive.less.tt +0 -51
  75. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
  76. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
  77. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +0 -117
  78. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +0 -99
  79. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js +0 -105
  80. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +0 -207
  81. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +0 -167
  82. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +0 -169
  83. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +0 -247
  84. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +0 -114
  85. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +0 -162
  86. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +0 -144
  87. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +0 -361
  88. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +0 -60
  89. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +0 -335
  90. data/vendor/toolkit/twitter/bootstrap/accordion.less +0 -34
  91. data/vendor/toolkit/twitter/bootstrap/hero-unit.less +0 -25
  92. data/vendor/toolkit/twitter/bootstrap/labels-badges.less +0 -84
  93. data/vendor/toolkit/twitter/bootstrap/layouts.less +0 -16
  94. data/vendor/toolkit/twitter/bootstrap/reset.less +0 -216
  95. data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +0 -28
  96. data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +0 -193
  97. data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +0 -19
  98. data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +0 -189
  99. data/vendor/toolkit/twitter/bootstrap/responsive.less +0 -48
  100. data/vendor/toolkit/twitter/bootstrap/sprites.less +0 -197
@@ -1,84 +0,0 @@
1
- //
2
- // Labels and badges
3
- // --------------------------------------------------
4
-
5
-
6
- // Base classes
7
- .label,
8
- .badge {
9
- display: inline-block;
10
- padding: 2px 4px;
11
- font-size: @baseFontSize * .846;
12
- font-weight: bold;
13
- line-height: 14px; // ensure proper line-height if floated
14
- color: @white;
15
- vertical-align: baseline;
16
- white-space: nowrap;
17
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
18
- background-color: @grayLight;
19
- }
20
- // Set unique padding and border-radii
21
- .label {
22
- .border-radius(3px);
23
- }
24
- .badge {
25
- padding-left: 9px;
26
- padding-right: 9px;
27
- .border-radius(9px);
28
- }
29
-
30
- // Empty labels/badges collapse
31
- .label,
32
- .badge {
33
- &:empty {
34
- display: none;
35
- }
36
- }
37
-
38
- // Hover/focus state, but only for links
39
- a {
40
- &.label:hover,
41
- &.label:focus,
42
- &.badge:hover,
43
- &.badge:focus {
44
- color: @white;
45
- text-decoration: none;
46
- cursor: pointer;
47
- }
48
- }
49
-
50
- // Colors
51
- // Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
52
- .label,
53
- .badge {
54
- // Important (red)
55
- &-important { background-color: @errorText; }
56
- &-important[href] { background-color: darken(@errorText, 10%); }
57
- // Warnings (orange)
58
- &-warning { background-color: @orange; }
59
- &-warning[href] { background-color: darken(@orange, 10%); }
60
- // Success (green)
61
- &-success { background-color: @successText; }
62
- &-success[href] { background-color: darken(@successText, 10%); }
63
- // Info (turquoise)
64
- &-info { background-color: @infoText; }
65
- &-info[href] { background-color: darken(@infoText, 10%); }
66
- // Inverse (black)
67
- &-inverse { background-color: @grayDark; }
68
- &-inverse[href] { background-color: darken(@grayDark, 10%); }
69
- }
70
-
71
- // Quick fix for labels/badges in buttons
72
- .btn {
73
- .label,
74
- .badge {
75
- position: relative;
76
- top: -1px;
77
- }
78
- }
79
- .btn-mini {
80
- .label,
81
- .badge {
82
- top: 0;
83
- }
84
- }
@@ -1,16 +0,0 @@
1
- //
2
- // Layouts
3
- // --------------------------------------------------
4
-
5
-
6
- // Container (centered, fixed-width layouts)
7
- .container {
8
- .container-fixed();
9
- }
10
-
11
- // Fluid layouts (left aligned, with sidebar, min- & max-width content)
12
- .container-fluid {
13
- padding-right: @gridGutterWidth;
14
- padding-left: @gridGutterWidth;
15
- .clearfix();
16
- }
@@ -1,216 +0,0 @@
1
- //
2
- // Reset CSS
3
- // Adapted from http://github.com/necolas/normalize.css
4
- // --------------------------------------------------
5
-
6
-
7
- // Display in IE6-9 and FF3
8
- // -------------------------
9
-
10
- article,
11
- aside,
12
- details,
13
- figcaption,
14
- figure,
15
- footer,
16
- header,
17
- hgroup,
18
- nav,
19
- section {
20
- display: block;
21
- }
22
-
23
- // Display block in IE6-9 and FF3
24
- // -------------------------
25
-
26
- audio,
27
- canvas,
28
- video {
29
- display: inline-block;
30
- *display: inline;
31
- *zoom: 1;
32
- }
33
-
34
- // Prevents modern browsers from displaying 'audio' without controls
35
- // -------------------------
36
-
37
- audio:not([controls]) {
38
- display: none;
39
- }
40
-
41
- // Base settings
42
- // -------------------------
43
-
44
- html {
45
- font-size: 100%;
46
- -webkit-text-size-adjust: 100%;
47
- -ms-text-size-adjust: 100%;
48
- }
49
- // Focus states
50
- a:focus {
51
- .tab-focus();
52
- }
53
- // Hover & Active
54
- a:hover,
55
- a:active {
56
- outline: 0;
57
- }
58
-
59
- // Prevents sub and sup affecting line-height in all browsers
60
- // -------------------------
61
-
62
- sub,
63
- sup {
64
- position: relative;
65
- font-size: 75%;
66
- line-height: 0;
67
- vertical-align: baseline;
68
- }
69
- sup {
70
- top: -0.5em;
71
- }
72
- sub {
73
- bottom: -0.25em;
74
- }
75
-
76
- // Img border in a's and image quality
77
- // -------------------------
78
-
79
- img {
80
- /* Responsive images (ensure images don't scale beyond their parents) */
81
- max-width: 100%; /* Part 1: Set a maxium relative to the parent */
82
- width: auto\9; /* IE7-8 need help adjusting responsive images */
83
- height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */
84
-
85
- vertical-align: middle;
86
- border: 0;
87
- -ms-interpolation-mode: bicubic;
88
- }
89
-
90
- // Prevent max-width from affecting Google Maps
91
- #map_canvas img,
92
- .google-maps img {
93
- max-width: none;
94
- }
95
-
96
- // Forms
97
- // -------------------------
98
-
99
- // Font size in all browsers, margin changes, misc consistency
100
- button,
101
- input,
102
- select,
103
- textarea {
104
- margin: 0;
105
- font-size: 100%;
106
- vertical-align: middle;
107
- }
108
- button,
109
- input {
110
- *overflow: visible; // Inner spacing ie IE6/7
111
- line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
112
- }
113
- button::-moz-focus-inner,
114
- input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
115
- padding: 0;
116
- border: 0;
117
- }
118
- button,
119
- html input[type="button"], // Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
120
- input[type="reset"],
121
- input[type="submit"] {
122
- -webkit-appearance: button; // Corrects inability to style clickable `input` types in iOS.
123
- cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
124
- }
125
- label,
126
- select,
127
- button,
128
- input[type="button"],
129
- input[type="reset"],
130
- input[type="submit"],
131
- input[type="radio"],
132
- input[type="checkbox"] {
133
- cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
134
- }
135
- input[type="search"] { // Appearance in Safari/Chrome
136
- .box-sizing(content-box);
137
- -webkit-appearance: textfield;
138
- }
139
- input[type="search"]::-webkit-search-decoration,
140
- input[type="search"]::-webkit-search-cancel-button {
141
- -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
142
- }
143
- textarea {
144
- overflow: auto; // Remove vertical scrollbar in IE6-9
145
- vertical-align: top; // Readability and alignment cross-browser
146
- }
147
-
148
-
149
- // Printing
150
- // -------------------------
151
- // Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
152
-
153
- @media print {
154
-
155
- * {
156
- text-shadow: none !important;
157
- color: #000 !important; // Black prints faster: h5bp.com/s
158
- background: transparent !important;
159
- box-shadow: none !important;
160
- }
161
-
162
- a,
163
- a:visited {
164
- text-decoration: underline;
165
- }
166
-
167
- a[href]:after {
168
- content: " (" attr(href) ")";
169
- }
170
-
171
- abbr[title]:after {
172
- content: " (" attr(title) ")";
173
- }
174
-
175
- // Don't show links for images, or javascript/internal links
176
- .ir a:after,
177
- a[href^="javascript:"]:after,
178
- a[href^="#"]:after {
179
- content: "";
180
- }
181
-
182
- pre,
183
- blockquote {
184
- border: 1px solid #999;
185
- page-break-inside: avoid;
186
- }
187
-
188
- thead {
189
- display: table-header-group; // h5bp.com/t
190
- }
191
-
192
- tr,
193
- img {
194
- page-break-inside: avoid;
195
- }
196
-
197
- img {
198
- max-width: 100% !important;
199
- }
200
-
201
- @page {
202
- margin: 0.5cm;
203
- }
204
-
205
- p,
206
- h2,
207
- h3 {
208
- orphans: 3;
209
- widows: 3;
210
- }
211
-
212
- h2,
213
- h3 {
214
- page-break-after: avoid;
215
- }
216
- }
@@ -1,28 +0,0 @@
1
- //
2
- // Responsive: Large desktop and up
3
- // --------------------------------------------------
4
-
5
-
6
- @media (min-width: 1200px) {
7
-
8
- // Fixed grid
9
- #grid > .core(@gridColumnWidth1200, @gridGutterWidth1200);
10
-
11
- // Fluid grid
12
- #grid > .fluid(@fluidGridColumnWidth1200, @fluidGridGutterWidth1200);
13
-
14
- // Input grid
15
- #grid > .input(@gridColumnWidth1200, @gridGutterWidth1200);
16
-
17
- // Thumbnails
18
- .thumbnails {
19
- margin-left: -@gridGutterWidth1200;
20
- }
21
- .thumbnails > li {
22
- margin-left: @gridGutterWidth1200;
23
- }
24
- .row-fluid .thumbnails {
25
- margin-left: 0;
26
- }
27
-
28
- }
@@ -1,193 +0,0 @@
1
- //
2
- // Responsive: Landscape phone to desktop/tablet
3
- // --------------------------------------------------
4
-
5
-
6
- @media (max-width: 767px) {
7
-
8
- // Padding to set content in a bit
9
- body {
10
- padding-left: 20px;
11
- padding-right: 20px;
12
- }
13
- // Negative indent the now static "fixed" navbar
14
- .navbar-fixed-top,
15
- .navbar-fixed-bottom,
16
- .navbar-static-top {
17
- margin-left: -20px;
18
- margin-right: -20px;
19
- }
20
- // Remove padding on container given explicit padding set on body
21
- .container-fluid {
22
- padding: 0;
23
- }
24
-
25
- // TYPOGRAPHY
26
- // ----------
27
- // Reset horizontal dl
28
- .dl-horizontal {
29
- dt {
30
- float: none;
31
- clear: none;
32
- width: auto;
33
- text-align: left;
34
- }
35
- dd {
36
- margin-left: 0;
37
- }
38
- }
39
-
40
- // GRID & CONTAINERS
41
- // -----------------
42
- // Remove width from containers
43
- .container {
44
- width: auto;
45
- }
46
- // Fluid rows
47
- .row-fluid {
48
- width: 100%;
49
- }
50
- // Undo negative margin on rows and thumbnails
51
- .row,
52
- .thumbnails {
53
- margin-left: 0;
54
- }
55
- .thumbnails > li {
56
- float: none;
57
- margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
58
- }
59
- // Make all grid-sized elements block level again
60
- [class*="span"],
61
- .uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
62
- .row-fluid [class*="span"] {
63
- float: none;
64
- display: block;
65
- width: 100%;
66
- margin-left: 0;
67
- .box-sizing(border-box);
68
- }
69
- .span12,
70
- .row-fluid .span12 {
71
- width: 100%;
72
- .box-sizing(border-box);
73
- }
74
- .row-fluid [class*="offset"]:first-child {
75
- margin-left: 0;
76
- }
77
-
78
- // FORM FIELDS
79
- // -----------
80
- // Make span* classes full width
81
- .input-large,
82
- .input-xlarge,
83
- .input-xxlarge,
84
- input[class*="span"],
85
- select[class*="span"],
86
- textarea[class*="span"],
87
- .uneditable-input {
88
- .input-block-level();
89
- }
90
- // But don't let it screw up prepend/append inputs
91
- .input-prepend input,
92
- .input-append input,
93
- .input-prepend input[class*="span"],
94
- .input-append input[class*="span"] {
95
- display: inline-block; // redeclare so they don't wrap to new lines
96
- width: auto;
97
- }
98
- .controls-row [class*="span"] + [class*="span"] {
99
- margin-left: 0;
100
- }
101
-
102
- // Modals
103
- .modal {
104
- position: fixed;
105
- top: 20px;
106
- left: 20px;
107
- right: 20px;
108
- width: auto;
109
- margin: 0;
110
- &.fade { top: -100px; }
111
- &.fade.in { top: 20px; }
112
- }
113
-
114
- }
115
-
116
-
117
-
118
- // UP TO LANDSCAPE PHONE
119
- // ---------------------
120
-
121
- @media (max-width: 480px) {
122
-
123
- // Smooth out the collapsing/expanding nav
124
- .nav-collapse {
125
- -webkit-transform: translate3d(0, 0, 0); // activate the GPU
126
- }
127
-
128
- // Block level the page header small tag for readability
129
- .page-header h1 small {
130
- display: block;
131
- line-height: @baseLineHeight;
132
- }
133
-
134
- // Update checkboxes for iOS
135
- input[type="checkbox"],
136
- input[type="radio"] {
137
- border: 1px solid #ccc;
138
- }
139
-
140
- // Remove the horizontal form styles
141
- .form-horizontal {
142
- .control-label {
143
- float: none;
144
- width: auto;
145
- padding-top: 0;
146
- text-align: left;
147
- }
148
- // Move over all input controls and content
149
- .controls {
150
- margin-left: 0;
151
- }
152
- // Move the options list down to align with labels
153
- .control-list {
154
- padding-top: 0; // has to be padding because margin collaspes
155
- }
156
- // Move over buttons in .form-actions to align with .controls
157
- .form-actions {
158
- padding-left: 10px;
159
- padding-right: 10px;
160
- }
161
- }
162
-
163
- // Medias
164
- // Reset float and spacing to stack
165
- .media .pull-left,
166
- .media .pull-right {
167
- float: none;
168
- display: block;
169
- margin-bottom: 10px;
170
- }
171
- // Remove side margins since we stack instead of indent
172
- .media-object {
173
- margin-right: 0;
174
- margin-left: 0;
175
- }
176
-
177
- // Modals
178
- .modal {
179
- top: 10px;
180
- left: 10px;
181
- right: 10px;
182
- }
183
- .modal-header .close {
184
- padding: 10px;
185
- margin: -10px;
186
- }
187
-
188
- // Carousel
189
- .carousel-caption {
190
- position: static;
191
- }
192
-
193
- }