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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +243 -53
- data/app/assets/javascripts/publify.js +0 -1
- data/app/assets/javascripts/publify_admin.js +10 -9
- data/app/assets/stylesheets/accounts.css.scss +0 -2
- data/app/assets/stylesheets/administration_structure.css.scss +0 -4
- data/app/assets/stylesheets/publify.css.scss +0 -1
- data/app/assets/stylesheets/publify_admin.css.scss +0 -2
- data/app/assets/stylesheets/sidebar_admin.css.scss +0 -6
- data/app/controllers/admin/articles_controller.rb +1 -1
- data/app/controllers/admin/base_controller.rb +2 -2
- data/app/controllers/admin/redirects_controller.rb +2 -2
- data/app/controllers/admin/resources_controller.rb +1 -1
- data/app/controllers/admin/seo_controller.rb +2 -2
- data/app/controllers/admin/settings_controller.rb +2 -2
- data/app/controllers/admin/tags_controller.rb +1 -1
- data/app/controllers/admin/users_controller.rb +2 -2
- data/app/controllers/articles_controller.rb +2 -5
- data/app/controllers/authors_controller.rb +0 -2
- data/app/controllers/comments_controller.rb +5 -2
- data/app/controllers/content_controller.rb +0 -4
- data/app/controllers/notes_controller.rb +1 -6
- data/app/controllers/setup_controller.rb +1 -1
- data/app/controllers/tags_controller.rb +0 -1
- data/app/controllers/users/registrations_controller.rb +1 -0
- data/app/helpers/admin/base_helper.rb +20 -13
- data/app/helpers/admin/feedback_helper.rb +4 -4
- data/app/helpers/base_helper.rb +10 -6
- data/app/helpers/xml_helper.rb +4 -0
- data/app/models/article.rb +7 -7
- data/app/models/blog.rb +3 -3
- data/app/models/comment.rb +1 -1
- data/app/models/config_manager.rb +1 -3
- data/app/models/content.rb +4 -5
- data/app/models/content_base.rb +4 -3
- data/app/models/feedback.rb +1 -1
- data/app/models/note.rb +74 -8
- data/app/models/page.rb +1 -1
- data/app/models/redirect.rb +0 -4
- data/app/models/resource.rb +1 -0
- data/app/models/sidebar.rb +6 -14
- data/app/models/tag.rb +2 -2
- data/app/models/text_filter.rb +2 -2
- data/app/models/trigger.rb +1 -1
- data/app/models/user.rb +12 -21
- data/app/uploaders/resource_uploader.rb +1 -0
- data/app/views/admin/articles/_form.html.erb +99 -105
- data/app/views/admin/articles/index.html.erb +15 -23
- data/app/views/admin/dashboard/_comment.html.erb +1 -1
- data/app/views/admin/dashboard/_comments.html.erb +4 -6
- data/app/views/admin/dashboard/_drafts.html.erb +4 -6
- data/app/views/admin/dashboard/_overview.html.erb +2 -5
- data/app/views/admin/dashboard/_welcome.html.erb +19 -19
- data/app/views/admin/dashboard/index.html.erb +3 -3
- data/app/views/admin/feedback/_button.html.erb +7 -13
- data/app/views/admin/feedback/article.html.erb +17 -17
- data/app/views/admin/feedback/edit.html.erb +17 -21
- data/app/views/admin/feedback/index.html.erb +8 -8
- data/app/views/admin/notes/_form.html.erb +5 -5
- data/app/views/admin/notes/_list.html.erb +1 -1
- data/app/views/admin/notes/_note.html.erb +1 -1
- data/app/views/admin/notes/edit.html.erb +1 -1
- data/app/views/admin/notes/index.html.erb +1 -1
- data/app/views/admin/pages/_form.html.erb +23 -27
- data/app/views/admin/post_types/_index_and_form.html.erb +5 -5
- data/app/views/admin/redirects/_index_and_form.html.erb +2 -2
- data/app/views/admin/resources/index.html.erb +20 -8
- data/app/views/admin/seo/_general.html.erb +36 -36
- data/app/views/admin/seo/_permalinks.html.erb +22 -14
- data/app/views/admin/seo/_titles.html.erb +63 -63
- data/app/views/admin/settings/display.html.erb +23 -23
- data/app/views/admin/settings/feedback.html.erb +29 -29
- data/app/views/admin/settings/index.html.erb +21 -21
- data/app/views/admin/settings/write.html.erb +18 -18
- data/app/views/admin/shared/_flash.html.erb +6 -0
- data/app/views/admin/shared/_menu.html.erb +56 -68
- data/app/views/admin/sidebar/_config.html.erb +15 -19
- data/app/views/admin/sidebar/_target.html.erb +3 -3
- data/app/views/admin/sidebar/_target_sidebar.html.erb +14 -13
- data/app/views/admin/sidebar/index.html.erb +2 -2
- data/app/views/admin/tags/_index_and_form.html.erb +3 -3
- data/app/views/admin/themes/index.html.erb +21 -19
- data/app/views/admin/users/_form.html.erb +79 -79
- data/app/views/articles/search.html.erb +1 -1
- data/app/views/layouts/accounts.html.erb +7 -9
- data/app/views/layouts/administration.html.erb +2 -2
- data/app/views/notes/show.html.erb +15 -0
- data/app/views/setup/index.html.erb +1 -1
- data/app/views/shared/_atom_item_article.atom.builder +1 -3
- data/app/views/shared/_rss_item_article.rss.builder +1 -2
- data/config/i18n-tasks.yml +0 -1
- data/config/locales/ar.yml +3 -2
- data/config/locales/da.yml +3 -2
- data/config/locales/de.yml +3 -2
- data/config/locales/en.yml +3 -2
- data/config/locales/es-MX.yml +3 -2
- data/config/locales/fr.yml +3 -2
- data/config/locales/he.yml +3 -2
- data/config/locales/it.yml +3 -2
- data/config/locales/ja.yml +3 -2
- data/config/locales/lt.yml +3 -2
- data/config/locales/nb.yml +3 -2
- data/config/locales/nl.yml +3 -2
- data/config/locales/pl.yml +3 -2
- data/config/locales/pt-BR.yml +3 -2
- data/config/locales/ro.yml +3 -2
- data/config/locales/ru.yml +3 -2
- data/config/locales/zh-CN.yml +3 -2
- data/config/locales/zh-TW.yml +3 -2
- data/config/routes.rb +0 -11
- data/db/migrate/114_fixes_buggy_articles_and_notes.rb +2 -2
- data/db/migrate/20150807134129_simplify_redirect_relations.rb +1 -1
- data/db/migrate/20160605154632_remove_profiles.rb +1 -1
- data/db/migrate/20190208152646_move_text_filter_to_name.rb +2 -2
- data/lib/format.rb +2 -2
- data/lib/publify_core/engine.rb +10 -0
- data/lib/publify_core/string_ext.rb +1 -13
- data/lib/publify_core/text_filter/markdown.rb +5 -1
- data/lib/publify_core/text_filter/markdown_smartquotes.rb +6 -1
- data/lib/publify_core/version.rb +1 -1
- data/lib/publify_core.rb +2 -2
- data/lib/text_filter_plugin.rb +20 -22
- data/lib/theme.rb +56 -37
- metadata +100 -397
- data/app/assets/javascripts/bootstrap/affix.js +0 -164
- data/app/assets/javascripts/bootstrap/alert.js +0 -95
- data/app/assets/javascripts/bootstrap/button.js +0 -125
- data/app/assets/javascripts/bootstrap/collapse.js +0 -212
- data/app/assets/javascripts/bootstrap/dropdown.js +0 -165
- data/app/assets/javascripts/bootstrap/modal.js +0 -358
- data/app/assets/javascripts/bootstrap/tab.js +0 -155
- data/app/assets/javascripts/bootstrap/transition.js +0 -59
- data/app/assets/javascripts/bootstrap-sprockets.js +0 -8
- data/app/assets/javascripts/lightbox.js +0 -350
- data/app/assets/stylesheets/_bootstrap-compass.scss +0 -9
- data/app/assets/stylesheets/_bootstrap-mincer.scss +0 -19
- data/app/assets/stylesheets/_bootstrap-sprockets.scss +0 -9
- data/app/assets/stylesheets/_bootstrap.scss +0 -42
- data/app/assets/stylesheets/bootstrap/_alerts.scss +0 -73
- data/app/assets/stylesheets/bootstrap/_button-groups.scss +0 -242
- data/app/assets/stylesheets/bootstrap/_buttons.scss +0 -168
- data/app/assets/stylesheets/bootstrap/_close.scss +0 -37
- data/app/assets/stylesheets/bootstrap/_code.scss +0 -69
- data/app/assets/stylesheets/bootstrap/_component-animations.scss +0 -38
- data/app/assets/stylesheets/bootstrap/_dropdowns.scss +0 -213
- data/app/assets/stylesheets/bootstrap/_forms.scss +0 -586
- data/app/assets/stylesheets/bootstrap/_grid.scss +0 -94
- data/app/assets/stylesheets/bootstrap/_labels.scss +0 -66
- data/app/assets/stylesheets/bootstrap/_media.scss +0 -66
- data/app/assets/stylesheets/bootstrap/_mixins.scss +0 -37
- data/app/assets/stylesheets/bootstrap/_modals.scss +0 -150
- data/app/assets/stylesheets/bootstrap/_navbar.scss +0 -479
- data/app/assets/stylesheets/bootstrap/_navs.scss +0 -242
- data/app/assets/stylesheets/bootstrap/_normalize.scss +0 -427
- data/app/assets/stylesheets/bootstrap/_pagination.scss +0 -86
- data/app/assets/stylesheets/bootstrap/_panels.scss +0 -222
- data/app/assets/stylesheets/bootstrap/_print.scss +0 -99
- data/app/assets/stylesheets/bootstrap/_scaffolding.scss +0 -160
- data/app/assets/stylesheets/bootstrap/_tables.scss +0 -234
- data/app/assets/stylesheets/bootstrap/_theme.scss +0 -224
- data/app/assets/stylesheets/bootstrap/_type.scss +0 -296
- data/app/assets/stylesheets/bootstrap/_utilities.scss +0 -55
- data/app/assets/stylesheets/bootstrap/_variables.scss +0 -638
- data/app/assets/stylesheets/bootstrap/_wells.scss +0 -29
- data/app/assets/stylesheets/bootstrap/mixins/_alerts.scss +0 -15
- data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +0 -12
- data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +0 -18
- data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +0 -56
- data/app/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
- data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +0 -22
- data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +0 -82
- data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +0 -56
- data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -81
- data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +0 -122
- data/app/assets/stylesheets/bootstrap/mixins/_hide-text.scss +0 -21
- data/app/assets/stylesheets/bootstrap/mixins/_image.scss +0 -28
- data/app/assets/stylesheets/bootstrap/mixins/_labels.scss +0 -12
- data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -10
- data/app/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -9
- data/app/assets/stylesheets/bootstrap/mixins/_opacity.scss +0 -7
- data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +0 -24
- data/app/assets/stylesheets/bootstrap/mixins/_panels.scss +0 -20
- data/app/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -8
- data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +0 -6
- data/app/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -17
- data/app/assets/stylesheets/bootstrap/mixins/_size.scss +0 -10
- data/app/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -9
- data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +0 -28
- data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -12
- data/app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +0 -8
- data/app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -222
- data/app/assets/stylesheets/lightbox.css +0 -63
- data/app/controllers/theme_controller.rb +0 -63
- data/app/views/notes/show_in_reply.html.erb +0 -18
- data/app/views/theme/static_view_test.html.erb +0 -1
- data/lib/publify_core/text_filter/twitterfilter.rb +0 -55
- data/lib/tasks/manifest.rake +0 -30
- /data/app/views/layouts/{default.html.erb → application.html.erb} +0 -0
- /data/themes/plain/javascripts/{theme.js → plain/theme.js} +0 -0
- /data/themes/plain/stylesheets/{theme.css → plain/theme.css} +0 -0
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
|
|
2
|
-
|
|
3
|
-
// ==========================================================================
|
|
4
|
-
// Print styles.
|
|
5
|
-
// Inlined to avoid the additional HTTP request: h5bp.com/r
|
|
6
|
-
// ==========================================================================
|
|
7
|
-
|
|
8
|
-
@media print {
|
|
9
|
-
*,
|
|
10
|
-
*:before,
|
|
11
|
-
*:after {
|
|
12
|
-
color: #000 !important; // Black prints faster: h5bp.com/s
|
|
13
|
-
text-shadow: none !important;
|
|
14
|
-
background: transparent !important;
|
|
15
|
-
box-shadow: none !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
a,
|
|
19
|
-
a:visited {
|
|
20
|
-
text-decoration: underline;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
a[href]:after {
|
|
24
|
-
content: " (" attr(href) ")";
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
abbr[title]:after {
|
|
28
|
-
content: " (" attr(title) ")";
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Don't show links that are fragment identifiers,
|
|
32
|
-
// or use the `javascript:` pseudo protocol
|
|
33
|
-
a[href^="#"]:after,
|
|
34
|
-
a[href^="javascript:"]:after {
|
|
35
|
-
content: "";
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
pre,
|
|
39
|
-
blockquote {
|
|
40
|
-
border: 1px solid #999;
|
|
41
|
-
page-break-inside: avoid;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
thead {
|
|
45
|
-
display: table-header-group; // h5bp.com/t
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
tr,
|
|
49
|
-
img {
|
|
50
|
-
page-break-inside: avoid;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
img {
|
|
54
|
-
max-width: 100% !important;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
p,
|
|
58
|
-
h2,
|
|
59
|
-
h3 {
|
|
60
|
-
orphans: 3;
|
|
61
|
-
widows: 3;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
h2,
|
|
65
|
-
h3 {
|
|
66
|
-
page-break-after: avoid;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Bootstrap specific changes start
|
|
70
|
-
|
|
71
|
-
// Bootstrap components
|
|
72
|
-
.navbar {
|
|
73
|
-
display: none;
|
|
74
|
-
}
|
|
75
|
-
.btn,
|
|
76
|
-
.dropup > .btn {
|
|
77
|
-
> .caret {
|
|
78
|
-
border-top-color: #000 !important;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.label {
|
|
82
|
-
border: 1px solid #000;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.table {
|
|
86
|
-
border-collapse: collapse !important;
|
|
87
|
-
|
|
88
|
-
td,
|
|
89
|
-
th {
|
|
90
|
-
background-color: #fff !important;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
.table-bordered {
|
|
94
|
-
th,
|
|
95
|
-
td {
|
|
96
|
-
border: 1px solid #ddd !important;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Scaffolding
|
|
3
|
-
// --------------------------------------------------
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// Reset the box-sizing
|
|
7
|
-
//
|
|
8
|
-
// Heads up! This reset may cause conflicts with some third-party widgets.
|
|
9
|
-
// For recommendations on resolving such conflicts, see
|
|
10
|
-
// https://getbootstrap.com/docs/3.4/getting-started/#third-box-sizing
|
|
11
|
-
* {
|
|
12
|
-
@include box-sizing(border-box);
|
|
13
|
-
}
|
|
14
|
-
*:before,
|
|
15
|
-
*:after {
|
|
16
|
-
@include box-sizing(border-box);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
// Body reset
|
|
21
|
-
|
|
22
|
-
html {
|
|
23
|
-
font-size: 10px;
|
|
24
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
body {
|
|
28
|
-
font-family: $font-family-base;
|
|
29
|
-
font-size: $font-size-base;
|
|
30
|
-
line-height: $line-height-base;
|
|
31
|
-
color: $text-color;
|
|
32
|
-
background-color: $body-bg;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Reset fonts for relevant elements
|
|
36
|
-
input,
|
|
37
|
-
button,
|
|
38
|
-
select,
|
|
39
|
-
textarea {
|
|
40
|
-
font-family: inherit;
|
|
41
|
-
font-size: inherit;
|
|
42
|
-
line-height: inherit;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
// Links
|
|
47
|
-
|
|
48
|
-
a {
|
|
49
|
-
color: $link-color;
|
|
50
|
-
text-decoration: none;
|
|
51
|
-
|
|
52
|
-
&:hover,
|
|
53
|
-
&:focus {
|
|
54
|
-
color: $link-hover-color;
|
|
55
|
-
text-decoration: $link-hover-decoration;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:focus {
|
|
59
|
-
@include tab-focus;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
// Figures
|
|
65
|
-
//
|
|
66
|
-
// We reset this here because previously Normalize had no `figure` margins. This
|
|
67
|
-
// ensures we don't break anyone's use of the element.
|
|
68
|
-
|
|
69
|
-
figure {
|
|
70
|
-
margin: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
// Images
|
|
75
|
-
|
|
76
|
-
img {
|
|
77
|
-
vertical-align: middle;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Responsive images (ensure images don't scale beyond their parents)
|
|
81
|
-
.img-responsive {
|
|
82
|
-
@include img-responsive;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// Rounded corners
|
|
86
|
-
.img-rounded {
|
|
87
|
-
border-radius: $border-radius-large;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// Image thumbnails
|
|
91
|
-
//
|
|
92
|
-
.img-thumbnail {
|
|
93
|
-
padding: $thumbnail-padding;
|
|
94
|
-
line-height: $line-height-base;
|
|
95
|
-
background-color: $thumbnail-bg;
|
|
96
|
-
border: 1px solid $thumbnail-border;
|
|
97
|
-
border-radius: $thumbnail-border-radius;
|
|
98
|
-
@include transition(all .2s ease-in-out);
|
|
99
|
-
|
|
100
|
-
// Keep them at most 100% wide
|
|
101
|
-
@include img-responsive(inline-block);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Perfect circle
|
|
105
|
-
.img-circle {
|
|
106
|
-
border-radius: 50%; // set radius in percents
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
// Horizontal rules
|
|
111
|
-
|
|
112
|
-
hr {
|
|
113
|
-
margin-top: $line-height-computed;
|
|
114
|
-
margin-bottom: $line-height-computed;
|
|
115
|
-
border: 0;
|
|
116
|
-
border-top: 1px solid $hr-border;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
// Only display content to screen readers
|
|
121
|
-
//
|
|
122
|
-
// See: https://a11yproject.com/posts/how-to-hide-content
|
|
123
|
-
|
|
124
|
-
.sr-only {
|
|
125
|
-
position: absolute;
|
|
126
|
-
width: 1px;
|
|
127
|
-
height: 1px;
|
|
128
|
-
padding: 0;
|
|
129
|
-
margin: -1px;
|
|
130
|
-
overflow: hidden;
|
|
131
|
-
clip: rect(0, 0, 0, 0);
|
|
132
|
-
border: 0;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// Use in conjunction with .sr-only to only display content when it's focused.
|
|
136
|
-
// Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
|
137
|
-
// Credit: HTML5 Boilerplate
|
|
138
|
-
|
|
139
|
-
.sr-only-focusable {
|
|
140
|
-
&:active,
|
|
141
|
-
&:focus {
|
|
142
|
-
position: static;
|
|
143
|
-
width: auto;
|
|
144
|
-
height: auto;
|
|
145
|
-
margin: 0;
|
|
146
|
-
overflow: visible;
|
|
147
|
-
clip: auto;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
// iOS "clickable elements" fix for role="button"
|
|
153
|
-
//
|
|
154
|
-
// Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
|
|
155
|
-
// for traditionally non-focusable elements with role="button"
|
|
156
|
-
// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
|
157
|
-
|
|
158
|
-
[role="button"] {
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
}
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Tables
|
|
3
|
-
// --------------------------------------------------
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
table {
|
|
7
|
-
background-color: $table-bg;
|
|
8
|
-
|
|
9
|
-
// Table cell sizing
|
|
10
|
-
//
|
|
11
|
-
// Reset default table behavior
|
|
12
|
-
|
|
13
|
-
col[class*="col-"] {
|
|
14
|
-
position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
|
|
15
|
-
display: table-column;
|
|
16
|
-
float: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
td,
|
|
20
|
-
th {
|
|
21
|
-
&[class*="col-"] {
|
|
22
|
-
position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
|
|
23
|
-
display: table-cell;
|
|
24
|
-
float: none;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
caption {
|
|
30
|
-
padding-top: $table-cell-padding;
|
|
31
|
-
padding-bottom: $table-cell-padding;
|
|
32
|
-
color: $text-muted;
|
|
33
|
-
text-align: left;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
th {
|
|
37
|
-
text-align: left;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// Baseline styles
|
|
42
|
-
|
|
43
|
-
.table {
|
|
44
|
-
width: 100%;
|
|
45
|
-
max-width: 100%;
|
|
46
|
-
margin-bottom: $line-height-computed;
|
|
47
|
-
// Cells
|
|
48
|
-
> thead,
|
|
49
|
-
> tbody,
|
|
50
|
-
> tfoot {
|
|
51
|
-
> tr {
|
|
52
|
-
> th,
|
|
53
|
-
> td {
|
|
54
|
-
padding: $table-cell-padding;
|
|
55
|
-
line-height: $line-height-base;
|
|
56
|
-
vertical-align: top;
|
|
57
|
-
border-top: 1px solid $table-border-color;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
// Bottom align for column headings
|
|
62
|
-
> thead > tr > th {
|
|
63
|
-
vertical-align: bottom;
|
|
64
|
-
border-bottom: 2px solid $table-border-color;
|
|
65
|
-
}
|
|
66
|
-
// Remove top border from thead by default
|
|
67
|
-
> caption + thead,
|
|
68
|
-
> colgroup + thead,
|
|
69
|
-
> thead:first-child {
|
|
70
|
-
> tr:first-child {
|
|
71
|
-
> th,
|
|
72
|
-
> td {
|
|
73
|
-
border-top: 0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
// Account for multiple tbody instances
|
|
78
|
-
> tbody + tbody {
|
|
79
|
-
border-top: 2px solid $table-border-color;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// Nesting
|
|
83
|
-
.table {
|
|
84
|
-
background-color: $body-bg;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
// Condensed table w/ half padding
|
|
90
|
-
|
|
91
|
-
.table-condensed {
|
|
92
|
-
> thead,
|
|
93
|
-
> tbody,
|
|
94
|
-
> tfoot {
|
|
95
|
-
> tr {
|
|
96
|
-
> th,
|
|
97
|
-
> td {
|
|
98
|
-
padding: $table-condensed-cell-padding;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
// Bordered version
|
|
106
|
-
//
|
|
107
|
-
// Add borders all around the table and between all the columns.
|
|
108
|
-
|
|
109
|
-
.table-bordered {
|
|
110
|
-
border: 1px solid $table-border-color;
|
|
111
|
-
> thead,
|
|
112
|
-
> tbody,
|
|
113
|
-
> tfoot {
|
|
114
|
-
> tr {
|
|
115
|
-
> th,
|
|
116
|
-
> td {
|
|
117
|
-
border: 1px solid $table-border-color;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
> thead > tr {
|
|
122
|
-
> th,
|
|
123
|
-
> td {
|
|
124
|
-
border-bottom-width: 2px;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
// Zebra-striping
|
|
131
|
-
//
|
|
132
|
-
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
|
133
|
-
|
|
134
|
-
.table-striped {
|
|
135
|
-
> tbody > tr:nth-of-type(odd) {
|
|
136
|
-
background-color: $table-bg-accent;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
// Hover effect
|
|
142
|
-
//
|
|
143
|
-
// Placed here since it has to come after the potential zebra striping
|
|
144
|
-
|
|
145
|
-
.table-hover {
|
|
146
|
-
> tbody > tr:hover {
|
|
147
|
-
background-color: $table-bg-hover;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
// Table backgrounds
|
|
153
|
-
//
|
|
154
|
-
// Exact selectors below required to override `.table-striped` and prevent
|
|
155
|
-
// inheritance to nested tables.
|
|
156
|
-
|
|
157
|
-
// Generate the contextual variants
|
|
158
|
-
@include table-row-variant('active', $table-bg-active);
|
|
159
|
-
@include table-row-variant('success', $state-success-bg);
|
|
160
|
-
@include table-row-variant('info', $state-info-bg);
|
|
161
|
-
@include table-row-variant('warning', $state-warning-bg);
|
|
162
|
-
@include table-row-variant('danger', $state-danger-bg);
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
// Responsive tables
|
|
166
|
-
//
|
|
167
|
-
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
|
|
168
|
-
// by enabling horizontal scrolling. Only applies <768px. Everything above that
|
|
169
|
-
// will display normally.
|
|
170
|
-
|
|
171
|
-
.table-responsive {
|
|
172
|
-
min-height: .01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
|
|
173
|
-
overflow-x: auto;
|
|
174
|
-
|
|
175
|
-
@media screen and (max-width: $screen-xs-max) {
|
|
176
|
-
width: 100%;
|
|
177
|
-
margin-bottom: ($line-height-computed * .75);
|
|
178
|
-
overflow-y: hidden;
|
|
179
|
-
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
180
|
-
border: 1px solid $table-border-color;
|
|
181
|
-
|
|
182
|
-
// Tighten up spacing
|
|
183
|
-
> .table {
|
|
184
|
-
margin-bottom: 0;
|
|
185
|
-
|
|
186
|
-
// Ensure the content doesn't wrap
|
|
187
|
-
> thead,
|
|
188
|
-
> tbody,
|
|
189
|
-
> tfoot {
|
|
190
|
-
> tr {
|
|
191
|
-
> th,
|
|
192
|
-
> td {
|
|
193
|
-
white-space: nowrap;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// Special overrides for the bordered tables
|
|
200
|
-
> .table-bordered {
|
|
201
|
-
border: 0;
|
|
202
|
-
|
|
203
|
-
// Nuke the appropriate borders so that the parent can handle them
|
|
204
|
-
> thead,
|
|
205
|
-
> tbody,
|
|
206
|
-
> tfoot {
|
|
207
|
-
> tr {
|
|
208
|
-
> th:first-child,
|
|
209
|
-
> td:first-child {
|
|
210
|
-
border-left: 0;
|
|
211
|
-
}
|
|
212
|
-
> th:last-child,
|
|
213
|
-
> td:last-child {
|
|
214
|
-
border-right: 0;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Only nuke the last row's bottom-border in `tbody` and `tfoot` since
|
|
220
|
-
// chances are there will be only one `tr` in a `thead` and that would
|
|
221
|
-
// remove the border altogether.
|
|
222
|
-
> tbody,
|
|
223
|
-
> tfoot {
|
|
224
|
-
> tr:last-child {
|
|
225
|
-
> th,
|
|
226
|
-
> td {
|
|
227
|
-
border-bottom: 0;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Bootstrap v3.4.1 (https://getbootstrap.com/)
|
|
3
|
-
* Copyright 2011-2019 Twitter, Inc.
|
|
4
|
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
// Load core variables and mixins
|
|
9
|
-
// --------------------------------------------------
|
|
10
|
-
|
|
11
|
-
@import "variables";
|
|
12
|
-
@import "mixins";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
//
|
|
16
|
-
// Buttons
|
|
17
|
-
// --------------------------------------------------
|
|
18
|
-
|
|
19
|
-
// Common styles
|
|
20
|
-
.btn-default,
|
|
21
|
-
.btn-primary,
|
|
22
|
-
.btn-success,
|
|
23
|
-
.btn-info,
|
|
24
|
-
.btn-warning,
|
|
25
|
-
.btn-danger {
|
|
26
|
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
|
|
27
|
-
$shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
|
28
|
-
@include box-shadow($shadow);
|
|
29
|
-
|
|
30
|
-
// Reset the shadow
|
|
31
|
-
&:active,
|
|
32
|
-
&.active {
|
|
33
|
-
@include box-shadow(inset 0 3px 5px rgba(0, 0, 0, .125));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.disabled,
|
|
37
|
-
&[disabled],
|
|
38
|
-
fieldset[disabled] & {
|
|
39
|
-
@include box-shadow(none);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Mixin for generating new styles
|
|
44
|
-
@mixin btn-styles($btn-color: #555) {
|
|
45
|
-
@include gradient-vertical($start-color: $btn-color, $end-color: darken($btn-color, 12%));
|
|
46
|
-
@include reset-filter; // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620
|
|
47
|
-
background-repeat: repeat-x;
|
|
48
|
-
border-color: darken($btn-color, 14%);
|
|
49
|
-
|
|
50
|
-
&:hover,
|
|
51
|
-
&:focus {
|
|
52
|
-
background-color: darken($btn-color, 12%);
|
|
53
|
-
background-position: 0 -15px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:active,
|
|
57
|
-
&.active {
|
|
58
|
-
background-color: darken($btn-color, 12%);
|
|
59
|
-
border-color: darken($btn-color, 14%);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.disabled,
|
|
63
|
-
&[disabled],
|
|
64
|
-
fieldset[disabled] & {
|
|
65
|
-
&,
|
|
66
|
-
&:hover,
|
|
67
|
-
&:focus,
|
|
68
|
-
&.focus,
|
|
69
|
-
&:active,
|
|
70
|
-
&.active {
|
|
71
|
-
background-color: darken($btn-color, 12%);
|
|
72
|
-
background-image: none;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// Common styles
|
|
78
|
-
.btn {
|
|
79
|
-
// Remove the gradient for the pressed/active state
|
|
80
|
-
&:active,
|
|
81
|
-
&.active {
|
|
82
|
-
background-image: none;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Apply the mixin to the buttons
|
|
87
|
-
.btn-default {
|
|
88
|
-
@include btn-styles($btn-default-bg);
|
|
89
|
-
text-shadow: 0 1px 0 #fff;
|
|
90
|
-
border-color: #ccc;
|
|
91
|
-
}
|
|
92
|
-
.btn-primary { @include btn-styles($btn-primary-bg); }
|
|
93
|
-
.btn-success { @include btn-styles($btn-success-bg); }
|
|
94
|
-
.btn-info { @include btn-styles($btn-info-bg); }
|
|
95
|
-
.btn-warning { @include btn-styles($btn-warning-bg); }
|
|
96
|
-
.btn-danger { @include btn-styles($btn-danger-bg); }
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
//
|
|
100
|
-
// Images
|
|
101
|
-
// --------------------------------------------------
|
|
102
|
-
|
|
103
|
-
.img-thumbnail {
|
|
104
|
-
@include box-shadow(0 1px 2px rgba(0, 0, 0, .075));
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
//
|
|
109
|
-
// Dropdowns
|
|
110
|
-
// --------------------------------------------------
|
|
111
|
-
|
|
112
|
-
.dropdown-menu > li > a:hover,
|
|
113
|
-
.dropdown-menu > li > a:focus {
|
|
114
|
-
@include gradient-vertical($start-color: $dropdown-link-hover-bg, $end-color: darken($dropdown-link-hover-bg, 5%));
|
|
115
|
-
background-color: darken($dropdown-link-hover-bg, 5%);
|
|
116
|
-
}
|
|
117
|
-
.dropdown-menu > .active > a,
|
|
118
|
-
.dropdown-menu > .active > a:hover,
|
|
119
|
-
.dropdown-menu > .active > a:focus {
|
|
120
|
-
@include gradient-vertical($start-color: $dropdown-link-active-bg, $end-color: darken($dropdown-link-active-bg, 5%));
|
|
121
|
-
background-color: darken($dropdown-link-active-bg, 5%);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
//
|
|
126
|
-
// Navbar
|
|
127
|
-
// --------------------------------------------------
|
|
128
|
-
|
|
129
|
-
// Default navbar
|
|
130
|
-
.navbar-default {
|
|
131
|
-
@include gradient-vertical($start-color: lighten($navbar-default-bg, 10%), $end-color: $navbar-default-bg);
|
|
132
|
-
@include reset-filter; // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
|
|
133
|
-
border-radius: $navbar-border-radius;
|
|
134
|
-
$shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
|
135
|
-
@include box-shadow($shadow);
|
|
136
|
-
|
|
137
|
-
.navbar-nav > .open > a,
|
|
138
|
-
.navbar-nav > .active > a {
|
|
139
|
-
@include gradient-vertical($start-color: darken($navbar-default-link-active-bg, 5%), $end-color: darken($navbar-default-link-active-bg, 2%));
|
|
140
|
-
@include box-shadow(inset 0 3px 9px rgba(0, 0, 0, .075));
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
.navbar-brand,
|
|
144
|
-
.navbar-nav > li > a {
|
|
145
|
-
text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// Undo rounded corners in static and fixed navbars
|
|
149
|
-
.navbar-static-top,
|
|
150
|
-
.navbar-fixed-top,
|
|
151
|
-
.navbar-fixed-bottom {
|
|
152
|
-
border-radius: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// Fix active state of dropdown items in collapsed mode
|
|
156
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
|
157
|
-
.navbar .navbar-nav .open .dropdown-menu > .active > a {
|
|
158
|
-
&,
|
|
159
|
-
&:hover,
|
|
160
|
-
&:focus {
|
|
161
|
-
color: #fff;
|
|
162
|
-
@include gradient-vertical($start-color: $dropdown-link-active-bg, $end-color: darken($dropdown-link-active-bg, 5%));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
//
|
|
169
|
-
// Alerts
|
|
170
|
-
// --------------------------------------------------
|
|
171
|
-
|
|
172
|
-
// Common styles
|
|
173
|
-
.alert {
|
|
174
|
-
text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
|
|
175
|
-
$shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
|
176
|
-
@include box-shadow($shadow);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// Mixin for generating new styles
|
|
180
|
-
@mixin alert-styles($color) {
|
|
181
|
-
@include gradient-vertical($start-color: $color, $end-color: darken($color, 7.5%));
|
|
182
|
-
border-color: darken($color, 15%);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// Apply the mixin to the alerts
|
|
186
|
-
.alert-success { @include alert-styles($alert-success-bg); }
|
|
187
|
-
.alert-info { @include alert-styles($alert-info-bg); }
|
|
188
|
-
.alert-warning { @include alert-styles($alert-warning-bg); }
|
|
189
|
-
.alert-danger { @include alert-styles($alert-danger-bg); }
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
//
|
|
193
|
-
// Panels
|
|
194
|
-
// --------------------------------------------------
|
|
195
|
-
|
|
196
|
-
// Common styles
|
|
197
|
-
.panel {
|
|
198
|
-
@include box-shadow(0 1px 2px rgba(0, 0, 0, .05));
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// Mixin for generating new styles
|
|
202
|
-
@mixin panel-heading-styles($color) {
|
|
203
|
-
@include gradient-vertical($start-color: $color, $end-color: darken($color, 5%));
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// Apply the mixin to the panel headings only
|
|
207
|
-
.panel-default > .panel-heading { @include panel-heading-styles($panel-default-heading-bg); }
|
|
208
|
-
.panel-primary > .panel-heading { @include panel-heading-styles($panel-primary-heading-bg); }
|
|
209
|
-
.panel-success > .panel-heading { @include panel-heading-styles($panel-success-heading-bg); }
|
|
210
|
-
.panel-info > .panel-heading { @include panel-heading-styles($panel-info-heading-bg); }
|
|
211
|
-
.panel-warning > .panel-heading { @include panel-heading-styles($panel-warning-heading-bg); }
|
|
212
|
-
.panel-danger > .panel-heading { @include panel-heading-styles($panel-danger-heading-bg); }
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
//
|
|
216
|
-
// Wells
|
|
217
|
-
// --------------------------------------------------
|
|
218
|
-
|
|
219
|
-
.well {
|
|
220
|
-
@include gradient-vertical($start-color: darken($well-bg, 5%), $end-color: $well-bg);
|
|
221
|
-
border-color: darken($well-bg, 10%);
|
|
222
|
-
$shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
|
223
|
-
@include box-shadow($shadow);
|
|
224
|
-
}
|