padrino-admin 0.10.7 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +22 -1
  3. data/lib/padrino-admin.rb +8 -1
  4. data/lib/padrino-admin/access_control.rb +6 -4
  5. data/lib/padrino-admin/bootstrap-less/accordion.less +34 -0
  6. data/lib/padrino-admin/bootstrap-less/alerts.less +98 -0
  7. data/lib/padrino-admin/bootstrap-less/badges.less +58 -0
  8. data/lib/padrino-admin/bootstrap-less/bootstrap.less +62 -0
  9. data/lib/padrino-admin/bootstrap-less/breadcrumbs.less +25 -0
  10. data/lib/padrino-admin/bootstrap-less/button-groups.less +166 -0
  11. data/lib/padrino-admin/bootstrap-less/buttons.less +175 -0
  12. data/lib/padrino-admin/bootstrap-less/carousel.less +192 -0
  13. data/lib/padrino-admin/bootstrap-less/close.less +32 -0
  14. data/lib/padrino-admin/bootstrap-less/code.less +61 -0
  15. data/lib/padrino-admin/bootstrap-less/component-animations.less +32 -0
  16. data/lib/padrino-admin/bootstrap-less/dropdowns.less +223 -0
  17. data/lib/padrino-admin/bootstrap-less/font-awesome-ie7.less +350 -0
  18. data/lib/padrino-admin/bootstrap-less/font-awesome.less +537 -0
  19. data/lib/padrino-admin/bootstrap-less/forms.less +543 -0
  20. data/lib/padrino-admin/bootstrap-less/glyphicons.less +200 -0
  21. data/lib/padrino-admin/bootstrap-less/grid.less +49 -0
  22. data/lib/padrino-admin/bootstrap-less/jumbotron.less +32 -0
  23. data/lib/padrino-admin/bootstrap-less/labels.less +46 -0
  24. data/lib/padrino-admin/bootstrap-less/media.less +54 -0
  25. data/lib/padrino-admin/bootstrap-less/mixins.less +530 -0
  26. data/lib/padrino-admin/bootstrap-less/modals.less +136 -0
  27. data/lib/padrino-admin/bootstrap-less/navbar.less +379 -0
  28. data/lib/padrino-admin/bootstrap-less/navs.less +277 -0
  29. data/lib/padrino-admin/bootstrap-less/normalize.less +396 -0
  30. data/lib/padrino-admin/bootstrap-less/padrino-admin.less +16 -0
  31. data/lib/padrino-admin/bootstrap-less/pager.less +43 -0
  32. data/lib/padrino-admin/bootstrap-less/pagination.less +100 -0
  33. data/lib/padrino-admin/bootstrap-less/popovers.less +133 -0
  34. data/lib/padrino-admin/bootstrap-less/print.less +74 -0
  35. data/lib/padrino-admin/bootstrap-less/progress-bars.less +118 -0
  36. data/lib/padrino-admin/bootstrap-less/responsive-utilities.less +59 -0
  37. data/lib/padrino-admin/bootstrap-less/scaffolding.less +90 -0
  38. data/lib/padrino-admin/bootstrap-less/tables.less +231 -0
  39. data/lib/padrino-admin/bootstrap-less/thumbnails.less +42 -0
  40. data/lib/padrino-admin/bootstrap-less/tooltip.less +71 -0
  41. data/lib/padrino-admin/bootstrap-less/type.less +252 -0
  42. data/lib/padrino-admin/bootstrap-less/utilities.less +42 -0
  43. data/lib/padrino-admin/bootstrap-less/variables.less +316 -0
  44. data/lib/padrino-admin/bootstrap-less/wells.less +29 -0
  45. data/lib/padrino-admin/generators/actions.rb +18 -2
  46. data/lib/padrino-admin/generators/admin_app.rb +38 -26
  47. data/lib/padrino-admin/generators/admin_page.rb +8 -1
  48. data/lib/padrino-admin/generators/orm.rb +58 -11
  49. data/lib/padrino-admin/generators/templates/account/couchrest.rb.tt +1 -1
  50. data/lib/padrino-admin/generators/templates/account/{mini_record.rb.tt → minirecord.rb.tt} +0 -0
  51. data/lib/padrino-admin/generators/templates/account/mongoid.rb.tt +1 -1
  52. data/lib/padrino-admin/generators/templates/account/ohm.rb.tt +61 -0
  53. data/lib/padrino-admin/generators/templates/account/sequel.rb.tt +1 -1
  54. data/lib/padrino-admin/generators/templates/app.rb.tt +36 -29
  55. data/lib/padrino-admin/generators/templates/app/controllers/{base.rb → base.rb.tt} +1 -2
  56. data/lib/padrino-admin/generators/templates/app/controllers/sessions.rb.tt +6 -3
  57. data/lib/padrino-admin/generators/templates/assets/images/favicon.ico +0 -0
  58. data/lib/padrino-admin/generators/templates/assets/images/font/FontAwesome.otf +0 -0
  59. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.eot +0 -0
  60. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.svg +284 -0
  61. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.ttf +0 -0
  62. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.woff +0 -0
  63. data/lib/padrino-admin/generators/templates/assets/images/logo.png +0 -0
  64. data/lib/padrino-admin/generators/templates/assets/javascripts/application.js +117 -0
  65. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-affix.js +117 -0
  66. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-alert.js +99 -0
  67. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-button.js +105 -0
  68. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-carousel.js +207 -0
  69. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-collapse.js +167 -0
  70. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-dropdown.js +165 -0
  71. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-modal.js +251 -0
  72. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-popover.js +114 -0
  73. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-scrollspy.js +162 -0
  74. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-tab.js +144 -0
  75. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-tooltip.js +361 -0
  76. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-transition.js +60 -0
  77. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-typeahead.js +335 -0
  78. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap.min.js +6 -0
  79. data/lib/padrino-admin/generators/templates/assets/javascripts/jquery-1.9.0.min.js +4 -0
  80. data/lib/padrino-admin/generators/templates/assets/stylesheets/application.css +346 -0
  81. data/lib/padrino-admin/generators/templates/assets/stylesheets/bootstrap.css +952 -0
  82. data/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt +13 -15
  83. data/lib/padrino-admin/generators/templates/erb/app/errors/403.erb.tt +3 -0
  84. data/lib/padrino-admin/generators/templates/erb/app/errors/404.erb.tt +3 -0
  85. data/lib/padrino-admin/generators/templates/erb/app/errors/500.erb.tt +3 -0
  86. data/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt +59 -39
  87. data/lib/padrino-admin/generators/templates/erb/app/layouts/error.erb.tt +23 -0
  88. data/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt +41 -53
  89. data/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt +16 -9
  90. data/lib/padrino-admin/generators/templates/erb/page/edit.erb.tt +9 -17
  91. data/lib/padrino-admin/generators/templates/erb/page/index.erb.tt +73 -31
  92. data/lib/padrino-admin/generators/templates/erb/page/new.erb.tt +8 -16
  93. data/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt +11 -24
  94. data/lib/padrino-admin/generators/templates/haml/app/errors/403.haml.tt +3 -0
  95. data/lib/padrino-admin/generators/templates/haml/app/errors/404.haml.tt +3 -0
  96. data/lib/padrino-admin/generators/templates/haml/app/errors/500.haml.tt +3 -0
  97. data/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt +47 -29
  98. data/lib/padrino-admin/generators/templates/haml/app/layouts/error.haml.tt +18 -0
  99. data/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt +33 -28
  100. data/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt +13 -9
  101. data/lib/padrino-admin/generators/templates/haml/page/edit.haml.tt +7 -14
  102. data/lib/padrino-admin/generators/templates/haml/page/index.haml.tt +56 -27
  103. data/lib/padrino-admin/generators/templates/haml/page/new.haml.tt +6 -13
  104. data/lib/padrino-admin/generators/templates/page/controller.rb.tt +57 -12
  105. data/lib/padrino-admin/generators/templates/slim/app/base/index.slim.tt +11 -24
  106. data/lib/padrino-admin/generators/templates/slim/app/errors/403.slim.tt +3 -0
  107. data/lib/padrino-admin/generators/templates/slim/app/errors/404.slim.tt +3 -0
  108. data/lib/padrino-admin/generators/templates/slim/app/errors/500.slim.tt +3 -0
  109. data/lib/padrino-admin/generators/templates/slim/app/layouts/application.slim.tt +43 -26
  110. data/lib/padrino-admin/generators/templates/slim/app/layouts/error.slim.tt +19 -0
  111. data/lib/padrino-admin/generators/templates/slim/app/sessions/new.slim.tt +31 -27
  112. data/lib/padrino-admin/generators/templates/slim/page/_form.slim.tt +13 -11
  113. data/lib/padrino-admin/generators/templates/slim/page/edit.slim.tt +7 -15
  114. data/lib/padrino-admin/generators/templates/slim/page/index.slim.tt +54 -28
  115. data/lib/padrino-admin/generators/templates/slim/page/new.slim.tt +6 -14
  116. data/lib/padrino-admin/helpers/authentication_helpers.rb +6 -4
  117. data/lib/padrino-admin/helpers/view_helpers.rb +27 -5
  118. data/lib/padrino-admin/locale/admin/cs.yml +53 -13
  119. data/lib/padrino-admin/locale/admin/da.yml +53 -13
  120. data/lib/padrino-admin/locale/admin/de.yml +53 -13
  121. data/lib/padrino-admin/locale/admin/en.yml +53 -13
  122. data/lib/padrino-admin/locale/admin/es.yml +53 -13
  123. data/lib/padrino-admin/locale/admin/fr.yml +53 -13
  124. data/lib/padrino-admin/locale/admin/hu.yml +53 -13
  125. data/lib/padrino-admin/locale/admin/it.yml +53 -13
  126. data/lib/padrino-admin/locale/admin/ja.yml +54 -13
  127. data/lib/padrino-admin/locale/admin/lv.yml +53 -13
  128. data/lib/padrino-admin/locale/admin/nl.yml +53 -13
  129. data/lib/padrino-admin/locale/admin/no.yml +53 -13
  130. data/lib/padrino-admin/locale/admin/pl.yml +53 -13
  131. data/lib/padrino-admin/locale/admin/pt_br.yml +53 -13
  132. data/lib/padrino-admin/locale/admin/ro.yml +53 -13
  133. data/lib/padrino-admin/locale/admin/ru.yml +54 -13
  134. data/lib/padrino-admin/locale/admin/sv.yml +53 -13
  135. data/lib/padrino-admin/locale/admin/tr.yml +53 -13
  136. data/lib/padrino-admin/locale/admin/uk.yml +53 -13
  137. data/lib/padrino-admin/locale/admin/zh_cn.yml +53 -13
  138. data/lib/padrino-admin/locale/admin/zh_tw.yml +53 -13
  139. data/lib/padrino-admin/locale/orm/fr.yml +8 -8
  140. data/padrino-admin.gemspec +2 -0
  141. data/test/fixtures/data_mapper.rb +0 -4
  142. data/test/generators/test_account_model_generator.rb +88 -18
  143. data/test/generators/test_admin_app_generator.rb +120 -165
  144. data/test/generators/test_admin_page_generator.rb +53 -56
  145. data/test/helper.rb +4 -0
  146. data/test/test_admin_application.rb +5 -5
  147. data/test/test_locale.rb +3 -3
  148. metadata +119 -35
  149. data/lib/padrino-admin/generators/templates/assets/stylesheets/base.css +0 -95
  150. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css +0 -364
  151. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/bec-green/style.css +0 -290
  152. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/bec/style.css +0 -301
  153. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/blue/style.css +0 -287
  154. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/default/style.css +0 -373
  155. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/djime-cerulean/style.css +0 -305
  156. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/kathleene/style.css +0 -279
  157. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/olive/style.css +0 -345
  158. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/orange/style.css +0 -269
  159. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/reidb-greenish/style.css +0 -302
  160. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/ruby/style.css +0 -281
  161. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/warehouse/style.css +0 -391
  162. data/lib/padrino-admin/generators/templates/erb/app/base/_sidebar.erb.tt +0 -13
  163. data/lib/padrino-admin/generators/templates/haml/app/base/_sidebar.haml.tt +0 -11
  164. data/lib/padrino-admin/generators/templates/slim/app/base/_sidebar.slim.tt +0 -11
@@ -0,0 +1,175 @@
1
+ //
2
+ // Buttons
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base styles
7
+ // --------------------------------------------------
8
+
9
+ // Core styles
10
+ .btn {
11
+ display: inline-block;
12
+ padding: 6px 12px;
13
+ margin-bottom: 0; // For input.btn
14
+ font-size: @font-size-base;
15
+ font-weight: 500;
16
+ line-height: @line-height-base;
17
+ text-align: center;
18
+ vertical-align: middle;
19
+ cursor: pointer;
20
+ border: 1px solid @btn-border;
21
+ border-radius: @border-radius-base;
22
+ white-space: nowrap;
23
+
24
+ &:focus {
25
+ .tab-focus();
26
+ }
27
+
28
+ &:hover,
29
+ &:focus {
30
+ color: #fff;
31
+ text-decoration: none;
32
+ }
33
+
34
+ &:active,
35
+ &.active {
36
+ outline: 0;
37
+ background-image: none;
38
+ .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
39
+ }
40
+
41
+ &.disabled,
42
+ &[disabled],
43
+ fieldset[disabled] & {
44
+ cursor: default;
45
+ pointer-events: none; // Future-proof disabling of clicks
46
+ .opacity(.65);
47
+ .box-shadow(none);
48
+ }
49
+
50
+ }
51
+
52
+
53
+ // Button Sizes
54
+ // -------------------------
55
+
56
+ // Large
57
+ .btn-large {
58
+ padding: @padding-large;
59
+ font-size: @font-size-large;
60
+ border-radius: @border-radius-large;
61
+ }
62
+
63
+ // Small
64
+ .btn-small {
65
+ padding: @padding-small;
66
+ font-size: @font-size-small;
67
+ border-radius: @border-radius-small;
68
+ }
69
+
70
+ // Mini
71
+ .btn-mini {
72
+ padding: @padding-mini;
73
+ font-size: @font-size-mini;
74
+ border-radius: @border-radius-small;
75
+ }
76
+
77
+
78
+ // Icons in buttons
79
+ // -------------------------
80
+
81
+ // TODO: figure this shit out
82
+
83
+ // Block button
84
+ // -------------------------
85
+
86
+ .btn-block {
87
+ display: block;
88
+ width: 100%;
89
+ padding-left: 0;
90
+ padding-right: 0;
91
+ }
92
+
93
+ // Vertically space out multiple block buttons
94
+ .btn-block + .btn-block {
95
+ margin-top: 5px;
96
+ }
97
+
98
+ // Specificity overrides
99
+ input[type="submit"],
100
+ input[type="reset"],
101
+ input[type="button"] {
102
+ &.btn-block {
103
+ width: 100%;
104
+ }
105
+ }
106
+
107
+
108
+ // Alternate buttons
109
+ // --------------------------------------------------
110
+
111
+ .btn {
112
+ color: @btn-color;
113
+ .btn-pseudo-states(@btn-background, @btn-border);
114
+ }
115
+ .btn-primary {
116
+ .btn-pseudo-states(@btn-background-primary, @btn-border-primary);
117
+ }
118
+ // Warning appears as orange
119
+ .btn-warning {
120
+ .btn-pseudo-states(@btn-background-warning, @btn-border-warning);
121
+ }
122
+ // Danger and error appear as red
123
+ .btn-danger {
124
+ .btn-pseudo-states(@btn-background-danger, @btn-border-danger);
125
+ }
126
+ // Success appears as green
127
+ .btn-success {
128
+ .btn-pseudo-states(@btn-background-success, @btn-border-success);
129
+ }
130
+ // Info appears as blue-green
131
+ .btn-info {
132
+ .btn-pseudo-states(@btn-background-info, @btn-border-info);
133
+ }
134
+
135
+
136
+ // Link buttons
137
+ // --------------------------------------------------
138
+
139
+ // Make a button look and behave like a link
140
+ .btn-link,
141
+ .btn-link:active,
142
+ .btn-link[disabled],
143
+ fieldset[disabled] .btn-link {
144
+ background-color: transparent;
145
+ background-image: none;
146
+ .box-shadow(none);
147
+ }
148
+ .btn-link,
149
+ .btn-link:hover,
150
+ .btn-link:focus,
151
+ .btn-link:active {
152
+ border-color: transparent;
153
+ }
154
+ .btn-link {
155
+ color: @link-color;
156
+ font-weight: normal;
157
+ cursor: pointer;
158
+ border-radius: 0;
159
+ }
160
+ .btn-link:hover,
161
+ .btn-link:focus {
162
+ color: @link-color-hover;
163
+ text-decoration: underline;
164
+ background-color: transparent;
165
+ }
166
+ .btn-link {
167
+ &[disabled],
168
+ fieldset[disabled] & {
169
+ &:hover,
170
+ &:focus {
171
+ color: @grayDark;
172
+ text-decoration: none;
173
+ }
174
+ }
175
+ }
@@ -0,0 +1,192 @@
1
+ //
2
+ // Carousel
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Wrapper for the slide container and indicators
7
+ .carousel {
8
+ position: relative;
9
+ }
10
+
11
+ // Wrap all slides, but only show the active one
12
+ .carousel-inner {
13
+ position: relative;
14
+ overflow: hidden;
15
+ width: 100%;
16
+ }
17
+
18
+ // Immediate parent of all slides
19
+ .carousel-inner {
20
+
21
+ > .item {
22
+ display: none;
23
+ position: relative;
24
+ .transition(.6s ease-in-out left);
25
+
26
+ // Account for jankitude on images
27
+ > img,
28
+ > a > img {
29
+ display: block;
30
+ line-height: 1;
31
+ }
32
+ }
33
+
34
+ > .active,
35
+ > .next,
36
+ > .prev { display: block; }
37
+
38
+ > .active {
39
+ left: 0;
40
+ }
41
+
42
+ > .next,
43
+ > .prev {
44
+ position: absolute;
45
+ top: 0;
46
+ width: 100%;
47
+ }
48
+
49
+ > .next {
50
+ left: 100%;
51
+ }
52
+ > .prev {
53
+ left: -100%;
54
+ }
55
+ > .next.left,
56
+ > .prev.right {
57
+ left: 0;
58
+ }
59
+
60
+ > .active.left {
61
+ left: -100%;
62
+ }
63
+ > .active.right {
64
+ left: 100%;
65
+ }
66
+
67
+ }
68
+
69
+ // Left/right controls for nav
70
+ // ---------------------------
71
+
72
+ .carousel-control {
73
+ position: absolute;
74
+ top: 0;
75
+ left: 0;
76
+ bottom: 0;
77
+ width: 15%;
78
+ .opacity(.5);
79
+ font-size: 20px;
80
+ color: #fff;
81
+ text-align: center;
82
+ text-shadow: 0 1px 2px rgba(0,0,0,.6);
83
+
84
+ // we can't have this transition here
85
+ // because webkit cancels the carousel
86
+ // animation if you trip this while
87
+ // in the middle of another animation
88
+ // ;_;
89
+ // .transition(opacity .2s linear);
90
+
91
+ // Set gradients for backgrounds
92
+ &.left {
93
+ #gradient > .horizontal(rgba(0,0,0,.5), rgba(0,0,0,.0001));
94
+ background-color: transparent;
95
+ }
96
+ &.right {
97
+ left: auto;
98
+ right: 0;
99
+ #gradient > .horizontal(rgba(0,0,0,.0001), rgba(0,0,0,.5));
100
+ background-color: transparent;
101
+ }
102
+
103
+ // Hover/focus state
104
+ &:hover,
105
+ &:focus {
106
+ color: #fff;
107
+ text-decoration: none;
108
+ .opacity(.9);
109
+ }
110
+
111
+ // Toggles
112
+ .glyphicon {
113
+ position: absolute;
114
+ top: 50%;
115
+ left: 50%;
116
+ z-index: 5;
117
+ display: inline-block;
118
+ width: 20px;
119
+ height: 20px;
120
+ margin-top: -10px;
121
+ margin-left: -10px;
122
+ }
123
+ }
124
+
125
+ // Optional indicator pips
126
+ // -----------------------------
127
+ .carousel-indicators {
128
+ position: absolute;
129
+ bottom: 20px;
130
+ left: 50%;
131
+ z-index: 5;
132
+ width: 100px;
133
+ margin: 0 0 0 -50px;
134
+ list-style: none;
135
+ text-align: center;
136
+
137
+ li {
138
+ display: inline-block;
139
+ width: 8px;
140
+ height: 8px;
141
+ margin-left: 0;
142
+ margin-right: 0;
143
+ text-indent: -999px;
144
+ border: 1px solid #fff;
145
+ border-radius: 5px;
146
+ cursor: pointer;
147
+ }
148
+ .active {
149
+ background-color: #fff;
150
+ }
151
+ }
152
+
153
+ // Optional captions
154
+ // -----------------------------
155
+ // Hidden by default for smaller viewports
156
+ .carousel-caption {
157
+ position: absolute;
158
+ left: 20%;
159
+ right: 20%;
160
+ bottom: 20px;
161
+ display: none;
162
+ padding-top: 20px;
163
+ padding-bottom: 20px;
164
+ color: #fff;
165
+ text-shadow: 0 1px 2px rgba(0,0,0,.6);
166
+ }
167
+
168
+
169
+ // Scale up controls for >768px
170
+ @media screen and (min-width: 768px) {
171
+
172
+ // Scale up the controls a smidge
173
+ .carousel-control .glyphicon {
174
+ width: 30px;
175
+ height: 30px;
176
+ margin-top: -15px;
177
+ margin-left: -15px;
178
+ font-size: 30px;
179
+ }
180
+
181
+ // Show and left align the captions
182
+ .carousel-caption {
183
+ left: 0;
184
+ right: 0;
185
+ z-index: 10;
186
+ display: block;
187
+ max-width: 60%;
188
+ padding: 30px;
189
+ margin-left: 0;
190
+ margin-right: 0;
191
+ }
192
+ }
@@ -0,0 +1,32 @@
1
+ //
2
+ // Close icons
3
+ // --------------------------------------------------
4
+
5
+
6
+ .close {
7
+ float: right;
8
+ font-size: 20px;
9
+ font-weight: bold;
10
+ line-height: @line-height-base;
11
+ color: #000;
12
+ text-shadow: 0 1px 0 rgba(255,255,255,1);
13
+ .opacity(.2);
14
+ &:hover,
15
+ &:focus {
16
+ color: #000;
17
+ text-decoration: none;
18
+ cursor: pointer;
19
+ .opacity(.5);
20
+ }
21
+ }
22
+
23
+ // Additional properties for button version
24
+ // iOS requires the button element instead of an anchor tag.
25
+ // If you want the anchor version, it requires `href="#"`.
26
+ button.close {
27
+ padding: 0;
28
+ cursor: pointer;
29
+ background: transparent;
30
+ border: 0;
31
+ -webkit-appearance: none;
32
+ }
@@ -0,0 +1,61 @@
1
+ //
2
+ // Code (inline and blocK)
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Inline and block code styles
7
+ code,
8
+ pre {
9
+ padding: 0 3px 2px;
10
+ font-family: @font-family-monospace;
11
+ font-size: (@font-size-base - 2);
12
+ color: @grayDark;
13
+ border-radius: 4px;
14
+ }
15
+
16
+ // Inline code
17
+ code {
18
+ padding: 2px 4px;
19
+ font-size: 90%;
20
+ color: #c7254e;
21
+ background-color: #f9f2f4;
22
+ white-space: nowrap;
23
+ }
24
+
25
+ // Blocks of code
26
+ pre {
27
+ display: block;
28
+ padding: ((@line-height-base - 1) / 2);
29
+ margin: 0 0 (@line-height-base / 2);
30
+ font-size: (@font-size-base - 1); // 14px to 13px
31
+ line-height: @line-height-base;
32
+ word-break: break-all;
33
+ word-wrap: break-word;
34
+ white-space: pre;
35
+ white-space: pre-wrap;
36
+ background-color: #f5f5f5;
37
+ border: 1px solid #ccc; // IE8 fallback
38
+ border: 1px solid rgba(0,0,0,.15);
39
+ border-radius: @border-radius-base;
40
+
41
+ // Make prettyprint styles more spaced out for readability
42
+ &.prettyprint {
43
+ margin-bottom: @line-height-base;
44
+ }
45
+
46
+ // Account for some code outputs that place code tags in pre tags
47
+ code {
48
+ padding: 0;
49
+ color: inherit;
50
+ white-space: pre;
51
+ white-space: pre-wrap;
52
+ background-color: transparent;
53
+ border: 0;
54
+ }
55
+ }
56
+
57
+ // Enable scrollable blocks of code
58
+ .pre-scrollable {
59
+ max-height: 340px;
60
+ overflow-y: scroll;
61
+ }