publify_core 10.0.4 → 11.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 (200) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +243 -53
  3. data/app/assets/javascripts/publify.js +0 -1
  4. data/app/assets/javascripts/publify_admin.js +10 -9
  5. data/app/assets/stylesheets/accounts.css.scss +0 -2
  6. data/app/assets/stylesheets/administration_structure.css.scss +0 -4
  7. data/app/assets/stylesheets/publify.css.scss +0 -1
  8. data/app/assets/stylesheets/publify_admin.css.scss +0 -2
  9. data/app/assets/stylesheets/sidebar_admin.css.scss +0 -6
  10. data/app/controllers/admin/articles_controller.rb +1 -1
  11. data/app/controllers/admin/base_controller.rb +2 -2
  12. data/app/controllers/admin/redirects_controller.rb +2 -2
  13. data/app/controllers/admin/resources_controller.rb +1 -1
  14. data/app/controllers/admin/seo_controller.rb +2 -2
  15. data/app/controllers/admin/settings_controller.rb +2 -2
  16. data/app/controllers/admin/tags_controller.rb +1 -1
  17. data/app/controllers/admin/users_controller.rb +2 -2
  18. data/app/controllers/articles_controller.rb +2 -5
  19. data/app/controllers/authors_controller.rb +0 -2
  20. data/app/controllers/comments_controller.rb +5 -2
  21. data/app/controllers/content_controller.rb +0 -4
  22. data/app/controllers/notes_controller.rb +1 -6
  23. data/app/controllers/setup_controller.rb +1 -1
  24. data/app/controllers/tags_controller.rb +0 -1
  25. data/app/controllers/users/registrations_controller.rb +1 -0
  26. data/app/helpers/admin/base_helper.rb +20 -13
  27. data/app/helpers/admin/feedback_helper.rb +4 -4
  28. data/app/helpers/base_helper.rb +10 -6
  29. data/app/helpers/xml_helper.rb +4 -0
  30. data/app/models/article.rb +7 -7
  31. data/app/models/blog.rb +3 -3
  32. data/app/models/comment.rb +1 -1
  33. data/app/models/config_manager.rb +1 -3
  34. data/app/models/content.rb +4 -5
  35. data/app/models/content_base.rb +4 -3
  36. data/app/models/feedback.rb +1 -1
  37. data/app/models/note.rb +74 -8
  38. data/app/models/page.rb +1 -1
  39. data/app/models/redirect.rb +0 -4
  40. data/app/models/resource.rb +1 -0
  41. data/app/models/sidebar.rb +6 -14
  42. data/app/models/tag.rb +2 -2
  43. data/app/models/text_filter.rb +2 -2
  44. data/app/models/trigger.rb +1 -1
  45. data/app/models/user.rb +12 -21
  46. data/app/uploaders/resource_uploader.rb +1 -0
  47. data/app/views/admin/articles/_form.html.erb +99 -105
  48. data/app/views/admin/articles/index.html.erb +15 -23
  49. data/app/views/admin/dashboard/_comment.html.erb +1 -1
  50. data/app/views/admin/dashboard/_comments.html.erb +4 -6
  51. data/app/views/admin/dashboard/_drafts.html.erb +4 -6
  52. data/app/views/admin/dashboard/_overview.html.erb +2 -5
  53. data/app/views/admin/dashboard/_welcome.html.erb +19 -19
  54. data/app/views/admin/dashboard/index.html.erb +3 -3
  55. data/app/views/admin/feedback/_button.html.erb +7 -13
  56. data/app/views/admin/feedback/article.html.erb +17 -17
  57. data/app/views/admin/feedback/edit.html.erb +17 -21
  58. data/app/views/admin/feedback/index.html.erb +8 -8
  59. data/app/views/admin/notes/_form.html.erb +5 -5
  60. data/app/views/admin/notes/_list.html.erb +1 -1
  61. data/app/views/admin/notes/_note.html.erb +1 -1
  62. data/app/views/admin/notes/edit.html.erb +1 -1
  63. data/app/views/admin/notes/index.html.erb +1 -1
  64. data/app/views/admin/pages/_form.html.erb +23 -27
  65. data/app/views/admin/post_types/_index_and_form.html.erb +5 -5
  66. data/app/views/admin/redirects/_index_and_form.html.erb +2 -2
  67. data/app/views/admin/resources/index.html.erb +20 -8
  68. data/app/views/admin/seo/_general.html.erb +36 -36
  69. data/app/views/admin/seo/_permalinks.html.erb +22 -14
  70. data/app/views/admin/seo/_titles.html.erb +63 -63
  71. data/app/views/admin/settings/display.html.erb +23 -23
  72. data/app/views/admin/settings/feedback.html.erb +29 -29
  73. data/app/views/admin/settings/index.html.erb +21 -21
  74. data/app/views/admin/settings/write.html.erb +18 -18
  75. data/app/views/admin/shared/_flash.html.erb +6 -0
  76. data/app/views/admin/shared/_menu.html.erb +56 -68
  77. data/app/views/admin/sidebar/_config.html.erb +15 -19
  78. data/app/views/admin/sidebar/_target.html.erb +3 -3
  79. data/app/views/admin/sidebar/_target_sidebar.html.erb +14 -13
  80. data/app/views/admin/sidebar/index.html.erb +2 -2
  81. data/app/views/admin/tags/_index_and_form.html.erb +3 -3
  82. data/app/views/admin/themes/index.html.erb +21 -19
  83. data/app/views/admin/users/_form.html.erb +79 -79
  84. data/app/views/articles/search.html.erb +1 -1
  85. data/app/views/layouts/accounts.html.erb +7 -9
  86. data/app/views/layouts/administration.html.erb +2 -2
  87. data/app/views/notes/show.html.erb +15 -0
  88. data/app/views/setup/index.html.erb +1 -1
  89. data/app/views/shared/_atom_item_article.atom.builder +1 -3
  90. data/app/views/shared/_rss_item_article.rss.builder +1 -2
  91. data/config/i18n-tasks.yml +0 -1
  92. data/config/locales/ar.yml +3 -2
  93. data/config/locales/da.yml +3 -2
  94. data/config/locales/de.yml +3 -2
  95. data/config/locales/en.yml +3 -2
  96. data/config/locales/es-MX.yml +3 -2
  97. data/config/locales/fr.yml +3 -2
  98. data/config/locales/he.yml +3 -2
  99. data/config/locales/it.yml +3 -2
  100. data/config/locales/ja.yml +3 -2
  101. data/config/locales/lt.yml +3 -2
  102. data/config/locales/nb.yml +3 -2
  103. data/config/locales/nl.yml +3 -2
  104. data/config/locales/pl.yml +3 -2
  105. data/config/locales/pt-BR.yml +3 -2
  106. data/config/locales/ro.yml +3 -2
  107. data/config/locales/ru.yml +3 -2
  108. data/config/locales/zh-CN.yml +3 -2
  109. data/config/locales/zh-TW.yml +3 -2
  110. data/config/routes.rb +0 -11
  111. data/db/migrate/114_fixes_buggy_articles_and_notes.rb +2 -2
  112. data/db/migrate/20150807134129_simplify_redirect_relations.rb +1 -1
  113. data/db/migrate/20160605154632_remove_profiles.rb +1 -1
  114. data/db/migrate/20190208152646_move_text_filter_to_name.rb +2 -2
  115. data/lib/format.rb +2 -2
  116. data/lib/publify_core/engine.rb +10 -0
  117. data/lib/publify_core/string_ext.rb +1 -13
  118. data/lib/publify_core/text_filter/markdown.rb +5 -1
  119. data/lib/publify_core/text_filter/markdown_smartquotes.rb +6 -1
  120. data/lib/publify_core/version.rb +1 -1
  121. data/lib/publify_core.rb +2 -2
  122. data/lib/text_filter_plugin.rb +20 -22
  123. data/lib/theme.rb +56 -37
  124. metadata +100 -397
  125. data/app/assets/javascripts/bootstrap/affix.js +0 -164
  126. data/app/assets/javascripts/bootstrap/alert.js +0 -95
  127. data/app/assets/javascripts/bootstrap/button.js +0 -125
  128. data/app/assets/javascripts/bootstrap/collapse.js +0 -212
  129. data/app/assets/javascripts/bootstrap/dropdown.js +0 -165
  130. data/app/assets/javascripts/bootstrap/modal.js +0 -358
  131. data/app/assets/javascripts/bootstrap/tab.js +0 -155
  132. data/app/assets/javascripts/bootstrap/transition.js +0 -59
  133. data/app/assets/javascripts/bootstrap-sprockets.js +0 -8
  134. data/app/assets/javascripts/lightbox.js +0 -350
  135. data/app/assets/stylesheets/_bootstrap-compass.scss +0 -9
  136. data/app/assets/stylesheets/_bootstrap-mincer.scss +0 -19
  137. data/app/assets/stylesheets/_bootstrap-sprockets.scss +0 -9
  138. data/app/assets/stylesheets/_bootstrap.scss +0 -42
  139. data/app/assets/stylesheets/bootstrap/_alerts.scss +0 -73
  140. data/app/assets/stylesheets/bootstrap/_button-groups.scss +0 -242
  141. data/app/assets/stylesheets/bootstrap/_buttons.scss +0 -168
  142. data/app/assets/stylesheets/bootstrap/_close.scss +0 -37
  143. data/app/assets/stylesheets/bootstrap/_code.scss +0 -69
  144. data/app/assets/stylesheets/bootstrap/_component-animations.scss +0 -38
  145. data/app/assets/stylesheets/bootstrap/_dropdowns.scss +0 -213
  146. data/app/assets/stylesheets/bootstrap/_forms.scss +0 -586
  147. data/app/assets/stylesheets/bootstrap/_grid.scss +0 -94
  148. data/app/assets/stylesheets/bootstrap/_labels.scss +0 -66
  149. data/app/assets/stylesheets/bootstrap/_media.scss +0 -66
  150. data/app/assets/stylesheets/bootstrap/_mixins.scss +0 -37
  151. data/app/assets/stylesheets/bootstrap/_modals.scss +0 -150
  152. data/app/assets/stylesheets/bootstrap/_navbar.scss +0 -479
  153. data/app/assets/stylesheets/bootstrap/_navs.scss +0 -242
  154. data/app/assets/stylesheets/bootstrap/_normalize.scss +0 -427
  155. data/app/assets/stylesheets/bootstrap/_pagination.scss +0 -86
  156. data/app/assets/stylesheets/bootstrap/_panels.scss +0 -222
  157. data/app/assets/stylesheets/bootstrap/_print.scss +0 -99
  158. data/app/assets/stylesheets/bootstrap/_scaffolding.scss +0 -160
  159. data/app/assets/stylesheets/bootstrap/_tables.scss +0 -234
  160. data/app/assets/stylesheets/bootstrap/_theme.scss +0 -224
  161. data/app/assets/stylesheets/bootstrap/_type.scss +0 -296
  162. data/app/assets/stylesheets/bootstrap/_utilities.scss +0 -55
  163. data/app/assets/stylesheets/bootstrap/_variables.scss +0 -638
  164. data/app/assets/stylesheets/bootstrap/_wells.scss +0 -29
  165. data/app/assets/stylesheets/bootstrap/mixins/_alerts.scss +0 -15
  166. data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -12
  167. data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +0 -18
  168. data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +0 -56
  169. data/app/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
  170. data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +0 -22
  171. data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -82
  172. data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +0 -56
  173. data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -81
  174. data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +0 -122
  175. data/app/assets/stylesheets/bootstrap/mixins/_hide-text.scss +0 -21
  176. data/app/assets/stylesheets/bootstrap/mixins/_image.scss +0 -28
  177. data/app/assets/stylesheets/bootstrap/mixins/_labels.scss +0 -12
  178. data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -10
  179. data/app/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  180. data/app/assets/stylesheets/bootstrap/mixins/_opacity.scss +0 -7
  181. data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +0 -24
  182. data/app/assets/stylesheets/bootstrap/mixins/_panels.scss +0 -20
  183. data/app/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
  184. data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +0 -6
  185. data/app/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -17
  186. data/app/assets/stylesheets/bootstrap/mixins/_size.scss +0 -10
  187. data/app/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
  188. data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -28
  189. data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -12
  190. data/app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +0 -8
  191. data/app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -222
  192. data/app/assets/stylesheets/lightbox.css +0 -63
  193. data/app/controllers/theme_controller.rb +0 -63
  194. data/app/views/notes/show_in_reply.html.erb +0 -18
  195. data/app/views/theme/static_view_test.html.erb +0 -1
  196. data/lib/publify_core/text_filter/twitterfilter.rb +0 -55
  197. data/lib/tasks/manifest.rake +0 -30
  198. /data/app/views/layouts/{default.html.erb → application.html.erb} +0 -0
  199. /data/themes/plain/javascripts/{theme.js → plain/theme.js} +0 -0
  200. /data/themes/plain/stylesheets/{theme.css → plain/theme.css} +0 -0
@@ -1,427 +0,0 @@
1
- /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
2
-
3
- //
4
- // 1. Set default font family to sans-serif.
5
- // 2. Prevent iOS and IE text size adjust after device orientation change,
6
- // without disabling user zoom.
7
- //
8
-
9
- html {
10
- font-family: sans-serif; // 1
11
- -ms-text-size-adjust: 100%; // 2
12
- -webkit-text-size-adjust: 100%; // 2
13
- }
14
-
15
- //
16
- // Remove default margin.
17
- //
18
-
19
- body {
20
- margin: 0;
21
- }
22
-
23
- // HTML5 display definitions
24
- // ==========================================================================
25
-
26
- //
27
- // Correct `block` display not defined for any HTML5 element in IE 8/9.
28
- // Correct `block` display not defined for `details` or `summary` in IE 10/11
29
- // and Firefox.
30
- // Correct `block` display not defined for `main` in IE 11.
31
- //
32
-
33
- article,
34
- aside,
35
- details,
36
- figcaption,
37
- figure,
38
- footer,
39
- header,
40
- hgroup,
41
- main,
42
- menu,
43
- nav,
44
- section,
45
- summary {
46
- display: block;
47
- }
48
-
49
- //
50
- // 1. Correct `inline-block` display not defined in IE 8/9.
51
- // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
52
- //
53
-
54
- audio,
55
- canvas,
56
- progress,
57
- video {
58
- display: inline-block; // 1
59
- vertical-align: baseline; // 2
60
- }
61
-
62
- //
63
- // Prevent modern browsers from displaying `audio` without controls.
64
- // Remove excess height in iOS 5 devices.
65
- //
66
-
67
- audio:not([controls]) {
68
- display: none;
69
- height: 0;
70
- }
71
-
72
- //
73
- // Address `[hidden]` styling not present in IE 8/9/10.
74
- // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
75
- //
76
-
77
- [hidden],
78
- template {
79
- display: none;
80
- }
81
-
82
- // Links
83
- // ==========================================================================
84
-
85
- //
86
- // Remove the gray background color from active links in IE 10.
87
- //
88
-
89
- a {
90
- background-color: transparent;
91
- }
92
-
93
- //
94
- // Improve readability of focused elements when they are also in an
95
- // active/hover state.
96
- //
97
-
98
- a:active,
99
- a:hover {
100
- outline: 0;
101
- }
102
-
103
- // Text-level semantics
104
- // ==========================================================================
105
-
106
- //
107
- // 1. Remove the bottom border in Chrome 57- and Firefox 39-.
108
- // 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
109
- //
110
-
111
- abbr[title] {
112
- border-bottom: none; // 1
113
- text-decoration: underline; // 2
114
- text-decoration: underline dotted; // 2
115
- }
116
-
117
- //
118
- // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
119
- //
120
-
121
- b,
122
- strong {
123
- font-weight: bold;
124
- }
125
-
126
- //
127
- // Address styling not present in Safari and Chrome.
128
- //
129
-
130
- dfn {
131
- font-style: italic;
132
- }
133
-
134
- //
135
- // Address variable `h1` font-size and margin within `section` and `article`
136
- // contexts in Firefox 4+, Safari, and Chrome.
137
- //
138
-
139
- h1 {
140
- font-size: 2em;
141
- margin: 0.67em 0;
142
- }
143
-
144
- //
145
- // Address styling not present in IE 8/9.
146
- //
147
-
148
- mark {
149
- background: #ff0;
150
- color: #000;
151
- }
152
-
153
- //
154
- // Address inconsistent and variable font size in all browsers.
155
- //
156
-
157
- small {
158
- font-size: 80%;
159
- }
160
-
161
- //
162
- // Prevent `sub` and `sup` affecting `line-height` in all browsers.
163
- //
164
-
165
- sub,
166
- sup {
167
- font-size: 75%;
168
- line-height: 0;
169
- position: relative;
170
- vertical-align: baseline;
171
- }
172
-
173
- sup {
174
- top: -0.5em;
175
- }
176
-
177
- sub {
178
- bottom: -0.25em;
179
- }
180
-
181
- // Embedded content
182
- // ==========================================================================
183
-
184
- //
185
- // Remove border when inside `a` element in IE 8/9/10.
186
- //
187
-
188
- img {
189
- border: 0;
190
- }
191
-
192
- //
193
- // Correct overflow not hidden in IE 9/10/11.
194
- //
195
-
196
- svg:not(:root) {
197
- overflow: hidden;
198
- }
199
-
200
- // Grouping content
201
- // ==========================================================================
202
-
203
- //
204
- // Address margin not present in IE 8/9 and Safari.
205
- //
206
-
207
- figure {
208
- margin: 1em 40px;
209
- }
210
-
211
- //
212
- // Address differences between Firefox and other browsers.
213
- //
214
-
215
- hr {
216
- box-sizing: content-box;
217
- height: 0;
218
- }
219
-
220
- //
221
- // Contain overflow in all browsers.
222
- //
223
-
224
- pre {
225
- overflow: auto;
226
- }
227
-
228
- //
229
- // Address odd `em`-unit font size rendering in all browsers.
230
- //
231
-
232
- code,
233
- kbd,
234
- pre,
235
- samp {
236
- font-family: monospace, monospace;
237
- font-size: 1em;
238
- }
239
-
240
- // Forms
241
- // ==========================================================================
242
-
243
- //
244
- // Known limitation: by default, Chrome and Safari on OS X allow very limited
245
- // styling of `select`, unless a `border` property is set.
246
- //
247
-
248
- //
249
- // 1. Correct color not being inherited.
250
- // Known issue: affects color of disabled elements.
251
- // 2. Correct font properties not being inherited.
252
- // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
253
- //
254
-
255
- button,
256
- input,
257
- optgroup,
258
- select,
259
- textarea {
260
- color: inherit; // 1
261
- font: inherit; // 2
262
- margin: 0; // 3
263
- }
264
-
265
- //
266
- // Address `overflow` set to `hidden` in IE 8/9/10/11.
267
- //
268
-
269
- button {
270
- overflow: visible;
271
- }
272
-
273
- //
274
- // Address inconsistent `text-transform` inheritance for `button` and `select`.
275
- // All other form control elements do not inherit `text-transform` values.
276
- // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
277
- // Correct `select` style inheritance in Firefox.
278
- //
279
-
280
- button,
281
- select {
282
- text-transform: none;
283
- }
284
-
285
- //
286
- // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
287
- // and `video` controls.
288
- // 2. Correct inability to style clickable `input` types in iOS.
289
- // 3. Improve usability and consistency of cursor style between image-type
290
- // `input` and others.
291
- //
292
-
293
- button,
294
- html input[type="button"], // 1
295
- input[type="reset"],
296
- input[type="submit"] {
297
- -webkit-appearance: button; // 2
298
- cursor: pointer; // 3
299
- }
300
-
301
- //
302
- // Re-set default cursor for disabled elements.
303
- //
304
-
305
- button[disabled],
306
- html input[disabled] {
307
- cursor: default;
308
- }
309
-
310
- //
311
- // Remove inner padding and border in Firefox 4+.
312
- //
313
-
314
- button::-moz-focus-inner,
315
- input::-moz-focus-inner {
316
- border: 0;
317
- padding: 0;
318
- }
319
-
320
- //
321
- // Address Firefox 4+ setting `line-height` on `input` using `!important` in
322
- // the UA stylesheet.
323
- //
324
-
325
- input {
326
- line-height: normal;
327
- }
328
-
329
- //
330
- // It's recommended that you don't attempt to style these elements.
331
- // Firefox's implementation doesn't respect box-sizing, padding, or width.
332
- //
333
- // 1. Address box sizing set to `content-box` in IE 8/9/10.
334
- // 2. Remove excess padding in IE 8/9/10.
335
- //
336
-
337
- input[type="checkbox"],
338
- input[type="radio"] {
339
- box-sizing: border-box; // 1
340
- padding: 0; // 2
341
- }
342
-
343
- //
344
- // Fix the cursor style for Chrome's increment/decrement buttons. For certain
345
- // `font-size` values of the `input`, it causes the cursor style of the
346
- // decrement button to change from `default` to `text`.
347
- //
348
-
349
- input[type="number"]::-webkit-inner-spin-button,
350
- input[type="number"]::-webkit-outer-spin-button {
351
- height: auto;
352
- }
353
-
354
- //
355
- // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
356
- // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
357
- //
358
-
359
- input[type="search"] {
360
- -webkit-appearance: textfield; // 1
361
- box-sizing: content-box; //2
362
- }
363
-
364
- //
365
- // Remove inner padding and search cancel button in Safari and Chrome on OS X.
366
- // Safari (but not Chrome) clips the cancel button when the search input has
367
- // padding (and `textfield` appearance).
368
- //
369
-
370
- input[type="search"]::-webkit-search-cancel-button,
371
- input[type="search"]::-webkit-search-decoration {
372
- -webkit-appearance: none;
373
- }
374
-
375
- //
376
- // Define consistent border, margin, and padding.
377
- //
378
-
379
- fieldset {
380
- border: 1px solid #c0c0c0;
381
- margin: 0 2px;
382
- padding: 0.35em 0.625em 0.75em;
383
- }
384
-
385
- //
386
- // 1. Correct `color` not being inherited in IE 8/9/10/11.
387
- // 2. Remove padding so people aren't caught out if they zero out fieldsets.
388
- //
389
-
390
- legend {
391
- border: 0; // 1
392
- padding: 0; // 2
393
- }
394
-
395
- //
396
- // Remove default vertical scrollbar in IE 8/9/10/11.
397
- //
398
-
399
- textarea {
400
- overflow: auto;
401
- }
402
-
403
- //
404
- // Don't inherit the `font-weight` (applied by a rule above).
405
- // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
406
- //
407
-
408
- optgroup {
409
- font-weight: bold;
410
- }
411
-
412
- // Tables
413
- // ==========================================================================
414
-
415
- //
416
- // Remove most spacing between table cells.
417
- //
418
-
419
- table {
420
- border-collapse: collapse;
421
- border-spacing: 0;
422
- }
423
-
424
- td,
425
- th {
426
- padding: 0;
427
- }
@@ -1,86 +0,0 @@
1
- //
2
- // Pagination (multiple pages)
3
- // --------------------------------------------------
4
- .pagination {
5
- display: inline-block;
6
- padding-left: 0;
7
- margin: $line-height-computed 0;
8
- border-radius: $border-radius-base;
9
-
10
- > li {
11
- display: inline; // Remove list-style and block-level defaults
12
- > a,
13
- > span {
14
- position: relative;
15
- float: left; // Collapse white-space
16
- padding: $padding-base-vertical $padding-base-horizontal;
17
- margin-left: -1px;
18
- line-height: $line-height-base;
19
- color: $pagination-color;
20
- text-decoration: none;
21
- background-color: $pagination-bg;
22
- border: 1px solid $pagination-border;
23
-
24
- &:hover,
25
- &:focus {
26
- z-index: 2;
27
- color: $pagination-hover-color;
28
- background-color: $pagination-hover-bg;
29
- border-color: $pagination-hover-border;
30
- }
31
- }
32
- &:first-child {
33
- > a,
34
- > span {
35
- margin-left: 0;
36
- @include border-left-radius($border-radius-base);
37
- }
38
- }
39
- &:last-child {
40
- > a,
41
- > span {
42
- @include border-right-radius($border-radius-base);
43
- }
44
- }
45
- }
46
-
47
- > .active > a,
48
- > .active > span {
49
- &,
50
- &:hover,
51
- &:focus {
52
- z-index: 3;
53
- color: $pagination-active-color;
54
- cursor: default;
55
- background-color: $pagination-active-bg;
56
- border-color: $pagination-active-border;
57
- }
58
- }
59
-
60
- > .disabled {
61
- > span,
62
- > span:hover,
63
- > span:focus,
64
- > a,
65
- > a:hover,
66
- > a:focus {
67
- color: $pagination-disabled-color;
68
- cursor: $cursor-disabled;
69
- background-color: $pagination-disabled-bg;
70
- border-color: $pagination-disabled-border;
71
- }
72
- }
73
- }
74
-
75
- // Sizing
76
- // --------------------------------------------------
77
-
78
- // Large
79
- .pagination-lg {
80
- @include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
81
- }
82
-
83
- // Small
84
- .pagination-sm {
85
- @include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
86
- }
@@ -1,222 +0,0 @@
1
- //
2
- // Panels
3
- // --------------------------------------------------
4
-
5
-
6
- // Base class
7
- .panel {
8
- margin-bottom: $line-height-computed;
9
- background-color: $panel-bg;
10
- border: 1px solid transparent;
11
- border-radius: $panel-border-radius;
12
- @include box-shadow(0 1px 1px rgba(0, 0, 0, .05));
13
- }
14
-
15
- // Panel contents
16
- .panel-body {
17
- padding: $panel-body-padding;
18
- @include clearfix;
19
- }
20
-
21
- // Optional heading
22
- .panel-heading {
23
- padding: $panel-heading-padding;
24
- border-bottom: 1px solid transparent;
25
- @include border-top-radius(($panel-border-radius - 1));
26
-
27
- > .dropdown .dropdown-toggle {
28
- color: inherit;
29
- }
30
- }
31
-
32
- // Within heading, strip any `h*` tag of its default margins for spacing.
33
- .panel-title {
34
- margin-top: 0;
35
- margin-bottom: 0;
36
- font-size: ceil(($font-size-base * 1.125));
37
- color: inherit;
38
-
39
- > a,
40
- > small,
41
- > .small,
42
- > small > a,
43
- > .small > a {
44
- color: inherit;
45
- }
46
- }
47
-
48
- // Optional footer (stays gray in every modifier class)
49
- .panel-footer {
50
- padding: $panel-footer-padding;
51
- background-color: $panel-footer-bg;
52
- border-top: 1px solid $panel-inner-border;
53
- @include border-bottom-radius(($panel-border-radius - 1));
54
- }
55
-
56
-
57
- // Tables in panels
58
- //
59
- // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
60
- // watch it go full width.
61
-
62
- .panel {
63
- > .table,
64
- > .table-responsive > .table,
65
- > .panel-collapse > .table {
66
- margin-bottom: 0;
67
-
68
- caption {
69
- padding-right: $panel-body-padding;
70
- padding-left: $panel-body-padding;
71
- }
72
- }
73
- // Add border top radius for first one
74
- > .table:first-child,
75
- > .table-responsive:first-child > .table:first-child {
76
- @include border-top-radius(($panel-border-radius - 1));
77
-
78
- > thead:first-child,
79
- > tbody:first-child {
80
- > tr:first-child {
81
- border-top-left-radius: ($panel-border-radius - 1);
82
- border-top-right-radius: ($panel-border-radius - 1);
83
-
84
- td:first-child,
85
- th:first-child {
86
- border-top-left-radius: ($panel-border-radius - 1);
87
- }
88
- td:last-child,
89
- th:last-child {
90
- border-top-right-radius: ($panel-border-radius - 1);
91
- }
92
- }
93
- }
94
- }
95
- // Add border bottom radius for last one
96
- > .table:last-child,
97
- > .table-responsive:last-child > .table:last-child {
98
- @include border-bottom-radius(($panel-border-radius - 1));
99
-
100
- > tbody:last-child,
101
- > tfoot:last-child {
102
- > tr:last-child {
103
- border-bottom-right-radius: ($panel-border-radius - 1);
104
- border-bottom-left-radius: ($panel-border-radius - 1);
105
-
106
- td:first-child,
107
- th:first-child {
108
- border-bottom-left-radius: ($panel-border-radius - 1);
109
- }
110
- td:last-child,
111
- th:last-child {
112
- border-bottom-right-radius: ($panel-border-radius - 1);
113
- }
114
- }
115
- }
116
- }
117
- > .panel-body + .table,
118
- > .panel-body + .table-responsive,
119
- > .table + .panel-body,
120
- > .table-responsive + .panel-body {
121
- border-top: 1px solid $table-border-color;
122
- }
123
- > .table > tbody:first-child > tr:first-child th,
124
- > .table > tbody:first-child > tr:first-child td {
125
- border-top: 0;
126
- }
127
- > .table-bordered,
128
- > .table-responsive > .table-bordered {
129
- border: 0;
130
- > thead,
131
- > tbody,
132
- > tfoot {
133
- > tr {
134
- > th:first-child,
135
- > td:first-child {
136
- border-left: 0;
137
- }
138
- > th:last-child,
139
- > td:last-child {
140
- border-right: 0;
141
- }
142
- }
143
- }
144
- > thead,
145
- > tbody {
146
- > tr:first-child {
147
- > td,
148
- > th {
149
- border-bottom: 0;
150
- }
151
- }
152
- }
153
- > tbody,
154
- > tfoot {
155
- > tr:last-child {
156
- > td,
157
- > th {
158
- border-bottom: 0;
159
- }
160
- }
161
- }
162
- }
163
- > .table-responsive {
164
- margin-bottom: 0;
165
- border: 0;
166
- }
167
- }
168
-
169
-
170
- // Collapsible panels (aka, accordion)
171
- //
172
- // Wrap a series of panels in `.panel-group` to turn them into an accordion with
173
- // the help of our collapse JavaScript plugin.
174
-
175
- .panel-group {
176
- margin-bottom: $line-height-computed;
177
-
178
- // Tighten up margin so it's only between panels
179
- .panel {
180
- margin-bottom: 0;
181
- border-radius: $panel-border-radius;
182
-
183
- + .panel {
184
- margin-top: 5px;
185
- }
186
- }
187
-
188
- .panel-heading {
189
- border-bottom: 0;
190
- + .panel-collapse > .panel-body {
191
- border-top: 1px solid $panel-inner-border;
192
- }
193
- }
194
-
195
- .panel-footer {
196
- border-top: 0;
197
- + .panel-collapse .panel-body {
198
- border-bottom: 1px solid $panel-inner-border;
199
- }
200
- }
201
- }
202
-
203
-
204
- // Contextual variations
205
- .panel-default {
206
- @include panel-variant($panel-default-border, $panel-default-text, $panel-default-heading-bg, $panel-default-border);
207
- }
208
- .panel-primary {
209
- @include panel-variant($panel-primary-border, $panel-primary-text, $panel-primary-heading-bg, $panel-primary-border);
210
- }
211
- .panel-success {
212
- @include panel-variant($panel-success-border, $panel-success-text, $panel-success-heading-bg, $panel-success-border);
213
- }
214
- .panel-info {
215
- @include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
216
- }
217
- .panel-warning {
218
- @include panel-variant($panel-warning-border, $panel-warning-text, $panel-warning-heading-bg, $panel-warning-border);
219
- }
220
- .panel-danger {
221
- @include panel-variant($panel-danger-border, $panel-danger-text, $panel-danger-heading-bg, $panel-danger-border);
222
- }