integral 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -30
- data/Rakefile +1 -1
- data/app/assets/images/integral/defaults/no_image_available.jpg +0 -0
- data/app/assets/javascripts/integral/backend.js +102 -11
- data/app/assets/javascripts/integral/frontend.js +37 -0
- data/app/assets/javascripts/integral/support/confirm_modal.coffee +2 -2
- data/app/assets/javascripts/integral/support/gallery.coffee +71 -54
- data/app/assets/javascripts/integral/support/lib/lazysizes.js +755 -0
- data/app/assets/javascripts/integral/support/lib/materialize-tags.js +49 -44
- data/app/assets/javascripts/integral/support/ls.instagram.js +57 -0
- data/app/assets/javascripts/integral/support/ls.twitter.js +66 -0
- data/app/assets/javascripts/integral/support/record_selector.coffee +1 -1
- data/app/assets/javascripts/integral/support/remote_form.coffee +5 -2
- data/app/assets/stylesheets/integral/backend.sass +2 -1
- data/app/assets/stylesheets/integral/backend/_foundation_settings.scss +3 -4
- data/app/assets/stylesheets/integral/backend/dashboard-layout.scss +4 -1
- data/app/assets/stylesheets/integral/backend/materialize-tags.sass +1 -1
- data/app/assets/stylesheets/integral/backend/modules/timeline.scss +214 -0
- data/app/assets/stylesheets/integral/backend/shared.sass +80 -11
- data/app/assets/stylesheets/integral/frontend.scss +45 -0
- data/app/assets/stylesheets/integral/frontend/_foundation_settings.scss +2 -2
- data/app/assets/stylesheets/integral/frontend/blog.sass +155 -142
- data/app/assets/stylesheets/integral/frontend/layout.sass +3 -3
- data/app/assets/stylesheets/integral/frontend/modules/article-footer.scss +55 -0
- data/app/assets/stylesheets/integral/frontend/modules/article.scss +34 -0
- data/app/assets/stylesheets/integral/frontend/modules/horizontal-post.scss +44 -0
- data/app/assets/stylesheets/integral/frontend/modules/inline-articles.scss +23 -0
- data/app/assets/stylesheets/integral/frontend/modules/latest-post.scss +37 -0
- data/app/assets/stylesheets/integral/frontend/modules/list-widget.scss +50 -0
- data/app/assets/stylesheets/integral/frontend/modules/piped-list.scss +33 -0
- data/app/assets/stylesheets/integral/frontend/modules/post-tags.scss +19 -0
- data/app/assets/stylesheets/integral/frontend/modules/scroll-container.scss +9 -0
- data/app/assets/stylesheets/integral/frontend/modules/sidebar-articles.scss +42 -0
- data/app/assets/stylesheets/integral/frontend/modules/sidebar-tags.scss +6 -0
- data/app/assets/stylesheets/integral/frontend/modules/sidebar-widget.scss +47 -0
- data/app/assets/stylesheets/integral/frontend/modules/vertical-post.scss +31 -0
- data/app/assets/stylesheets/integral/frontend/share_modal.sass +0 -5
- data/app/assets/stylesheets/integral/support/gallery.sass +8 -0
- data/app/assets/stylesheets/integral/support/media-query-indicator.sass +6 -0
- data/app/controllers/integral/application_controller.rb +7 -1
- data/app/controllers/integral/backend/activities_controller.rb +13 -2
- data/app/controllers/integral/backend/base_controller.rb +60 -7
- data/app/controllers/integral/backend/categories_controller.rb +49 -0
- data/app/controllers/integral/backend/pages_controller.rb +7 -2
- data/app/controllers/integral/backend/posts_controller.rb +8 -3
- data/app/controllers/integral/backend/static_pages_controller.rb +4 -0
- data/app/controllers/integral/backend/users_controller.rb +13 -7
- data/app/controllers/integral/categories_controller.rb +31 -0
- data/app/controllers/integral/pages_controller.rb +1 -1
- data/app/controllers/integral/posts_controller.rb +5 -3
- data/app/decorators/integral/category_decorator.rb +30 -0
- data/app/decorators/integral/category_version_decorator.rb +7 -0
- data/app/decorators/integral/image_version_decorator.rb +7 -0
- data/app/decorators/integral/list_decorator.rb +1 -1
- data/app/decorators/integral/list_version_decorator.rb +7 -0
- data/app/decorators/integral/page_version_decorator.rb +7 -0
- data/app/decorators/integral/post_decorator.rb +9 -1
- data/app/decorators/integral/post_version_decorator.rb +7 -0
- data/app/decorators/integral/user_decorator.rb +1 -1
- data/app/decorators/integral/user_version_decorator.rb +7 -0
- data/app/decorators/integral/version_decorator.rb +51 -12
- data/app/helpers/integral/backend/base_helper.rb +56 -2
- data/app/helpers/integral/blog_helper.rb +21 -4
- data/app/jobs/integral/webhook/delivery_job.rb +37 -0
- data/app/mailers/integral/contact_mailer.rb +4 -1
- data/app/models/concerns/integral/lazy_contentable.rb +54 -0
- data/app/models/concerns/integral/webhook/delivery.rb +30 -0
- data/app/models/concerns/integral/webhook/observable.rb +23 -0
- data/app/models/integral/category.rb +20 -0
- data/app/models/integral/category_version.rb +8 -0
- data/app/models/integral/list_item.rb +1 -2
- data/app/models/integral/page.rb +18 -3
- data/app/models/integral/post.rb +28 -1
- data/app/models/integral/version.rb +2 -2
- data/app/models/integral/webhook/endpoint.rb +40 -0
- data/app/models/integral/webhook/event.rb +20 -0
- data/app/policies/integral/base_policy.rb +1 -0
- data/app/policies/integral/category_policy.rb +9 -0
- data/app/serializers/integral/post_serializer.rb +24 -0
- data/app/uploaders/integral/avatar_uploader.rb +1 -1
- data/app/views/integral/backend/activities/_activity.haml +21 -0
- data/app/views/integral/backend/activities/_grid.haml +1 -2
- data/app/views/integral/backend/activities/shared/_grid.haml +3 -2
- data/app/views/integral/backend/activities/shared/{_listing.haml → index.haml} +1 -0
- data/app/views/integral/backend/activities/shared/{_log.haml → show.haml} +0 -0
- data/app/views/integral/backend/categories/_modal.haml +25 -0
- data/app/views/integral/backend/lists/_child_fields.haml +1 -1
- data/app/views/integral/backend/lists/_item_container.haml +1 -1
- data/app/views/integral/backend/lists/_item_modal.haml +1 -1
- data/app/views/integral/backend/lists/_list_item_fields.haml +1 -1
- data/app/views/integral/backend/pages/_form.haml +1 -4
- data/app/views/integral/backend/pages/_grid.haml +34 -9
- data/app/views/integral/backend/pages/edit.haml +9 -3
- data/app/views/integral/backend/pages/index.haml +11 -21
- data/app/views/integral/backend/pages/list.haml +22 -0
- data/app/views/integral/backend/pages/show.haml +48 -0
- data/app/views/integral/backend/posts/_form.haml +8 -6
- data/app/views/integral/backend/posts/_grid.haml +33 -7
- data/app/views/integral/backend/posts/index.haml +13 -19
- data/app/views/integral/backend/posts/list.haml +20 -0
- data/app/views/integral/backend/posts/show.haml +54 -0
- data/app/views/integral/backend/shared/_activity_modal.haml +13 -0
- data/app/views/integral/backend/shared/cards/_categories.haml +34 -0
- data/app/views/integral/backend/{static_pages/_card.haml → shared/cards/_object.haml} +0 -0
- data/app/views/integral/backend/shared/cards/_recent_activity.haml +20 -0
- data/app/views/integral/backend/shared/cards/_recent_pages.haml +19 -0
- data/app/views/integral/backend/shared/cards/_recent_posts.haml +18 -0
- data/app/views/integral/backend/shared/cards/_recent_user_activity.haml +1 -0
- data/app/views/integral/backend/shared/cards/_recent_users.haml +19 -0
- data/app/views/integral/backend/shared/cards/_top_post_authors.haml +19 -0
- data/app/views/integral/backend/shared/record_selector/_record.haml +6 -4
- data/app/views/integral/backend/static_pages/dashboard.haml +13 -11
- data/app/views/integral/backend/users/_grid.haml +24 -7
- data/app/views/integral/backend/users/index.haml +11 -17
- data/app/views/integral/backend/users/list.haml +18 -0
- data/app/views/integral/backend/users/show.haml +5 -11
- data/app/views/integral/categories/show.haml +5 -0
- data/app/views/integral/posts/_article_footer.haml +17 -0
- data/app/views/integral/posts/_card.haml +11 -0
- data/app/views/integral/posts/_latest_post.haml +8 -0
- data/app/views/integral/posts/_most_read_section.haml +8 -0
- data/app/views/integral/posts/_post.haml +11 -0
- data/app/views/integral/posts/_similar_posts.haml +5 -0
- data/app/views/integral/posts/index.haml +6 -5
- data/app/views/integral/posts/templates/default.haml +34 -33
- data/app/views/integral/shared/_subscribe_modal.haml +14 -0
- data/app/views/integral/shared/blog/_categories.haml +15 -0
- data/app/views/integral/shared/blog/_layout.haml +9 -0
- data/app/views/integral/shared/blog/_sidebar.haml +10 -0
- data/app/views/integral/shared/gallery/_placeholder.haml +1 -1
- data/app/views/integral/shared/gallery/_slide.haml +2 -2
- data/app/views/integral/shared/gallery/gallery.haml +5 -2
- data/app/views/integral/shared/sidebar/_item.haml +8 -0
- data/app/views/integral/shared/sidebar/_newsletter_signup.haml +7 -0
- data/app/views/integral/shared/sidebar/_popular_posts.haml +7 -0
- data/app/views/integral/shared/sidebar/_popular_tags.haml +7 -0
- data/app/views/integral/shared/sidebar/_recent_posts.haml +7 -0
- data/app/views/integral/tags/index.haml +2 -2
- data/app/views/integral/tags/show.haml +3 -6
- data/app/views/layouts/integral/backend.html.haml +3 -0
- data/app/views/layouts/integral/backend/_main_menu_items.haml +10 -0
- data/app/views/layouts/integral/frontend.html.haml +3 -3
- data/config/locales/en.yml +52 -49
- data/db/migrate/20190414172018_create_webhook_endpoints.rb +10 -0
- data/db/migrate/20190929191412_add_integral_post_categories.rb +13 -0
- data/db/migrate/20191203090008_add_image_to_integral_categories.rb +6 -0
- data/db/migrate/20200401210442_create_category_versions.rb +20 -0
- data/db/seeds.rb +3 -1
- data/lib/generators/integral/assets_generator.rb +2 -2
- data/lib/generators/integral/install_generator.rb +1 -1
- data/lib/generators/integral/views_generator.rb +1 -1
- data/lib/generators/templates/integral.rb +5 -0
- data/lib/integral.rb +3 -30
- data/lib/integral/acts_as_listable.rb +2 -2
- data/lib/integral/chart_renderer/base.rb +2 -0
- data/lib/integral/content_renderer.rb +2 -2
- data/lib/integral/engine.rb +2 -2
- data/lib/integral/grids/activities_grid.rb +15 -1
- data/lib/integral/list_item_renderer.rb +4 -2
- data/lib/integral/list_renderer.rb +1 -0
- data/lib/integral/middleware/page_router.rb +15 -6
- data/lib/integral/router.rb +19 -3
- data/lib/integral/version.rb +1 -1
- data/lib/integral/widgets/swiper_list.rb +3 -2
- data/public/images/integral/demo/continous-integration.png +0 -0
- data/public/images/integral/demo/foundation-frontend-framework.jpg +0 -0
- data/public/images/integral/demo/heroku.png +0 -0
- data/public/images/integral/demo/integral-cms-without-hassle.jpg +0 -0
- data/public/images/integral/demo/integral-features-activity-tracking.jpg +0 -0
- data/public/images/integral/demo/integral-features-contact-form.png +0 -0
- data/public/images/integral/demo/integral-features-design.jpg +0 -0
- data/public/images/integral/demo/integral-features-dynamic-pages.jpg +0 -0
- data/public/images/integral/demo/integral-features-image-management.jpg +0 -0
- data/public/images/integral/demo/integral-features-integrated-blog.jpg +0 -0
- data/public/images/integral/demo/integral-features-list-management.jpg +0 -0
- data/public/images/integral/demo/integral-features-seo-ready.jpg +0 -0
- data/public/images/integral/demo/integral-features-user-management.jpg +0 -0
- data/public/images/integral/demo/integral-presentation.png +0 -0
- data/spec/factories.rb +15 -7
- metadata +110 -98
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/copywidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/editwidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/copywidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/editwidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/removewidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/widget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/removewidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/widget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/plugin.js +0 -86
- data/app/assets/javascripts/ckeditor/plugins/integralrecentposts/dialogs/integralrecentposts.js +0 -40
- data/app/assets/javascripts/ckeditor/plugins/integralrecentposts/plugin.js +0 -32
- data/app/assets/javascripts/ckeditor/plugins/numericinput/LICENSE.md +0 -363
- data/app/assets/javascripts/ckeditor/plugins/numericinput/README.md +0 -16
- data/app/assets/javascripts/ckeditor/plugins/numericinput/plugin.js +0 -354
- data/app/assets/stylesheets/integral/frontend.sass +0 -25
- data/app/views/integral/backend/pages/activities.haml +0 -2
- data/app/views/integral/backend/pages/activity.haml +0 -1
- data/app/views/integral/backend/posts/activities.haml +0 -3
- data/app/views/integral/backend/posts/activity.haml +0 -1
- data/app/views/integral/posts/_collection.haml +0 -4
- data/app/views/integral/posts/_item.haml +0 -16
- data/app/views/integral/shared/_blog_layout.haml +0 -15
- data/app/views/integral/shared/_blog_sidebar.haml +0 -49
- data/lib/integral/slack_bot.rb +0 -45
@@ -8,7 +8,7 @@
|
|
8
8
|
main
|
9
9
|
position: relative
|
10
10
|
|
11
|
-
header
|
11
|
+
.body-header
|
12
12
|
position: sticky
|
13
13
|
z-index: 999
|
14
14
|
top: 0
|
@@ -20,7 +20,7 @@ header
|
|
20
20
|
@include breakpoint(small down)
|
21
21
|
@include top-bar-unstack
|
22
22
|
|
23
|
-
header, .off-canvas
|
23
|
+
.body-header, .off-canvas
|
24
24
|
ul.menu a
|
25
25
|
color: $black
|
26
26
|
font-weight: bold
|
@@ -47,7 +47,7 @@ header, .off-canvas
|
|
47
47
|
display: block
|
48
48
|
margin: 2rem 0
|
49
49
|
|
50
|
-
footer
|
50
|
+
.body-footer
|
51
51
|
background-color: #212121
|
52
52
|
color: $white
|
53
53
|
padding: 2rem 0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
.article-footer {
|
2
|
+
padding-top: 45px;
|
3
|
+
margin: 25px 0 45px;
|
4
|
+
border-top: 1px solid $medium-gray;
|
5
|
+
color: $black;
|
6
|
+
font-size: 14px;
|
7
|
+
|
8
|
+
@include breakpoint(medium) {
|
9
|
+
padding-top: 60px;
|
10
|
+
}
|
11
|
+
|
12
|
+
> header, section {
|
13
|
+
margin: 15px 0;
|
14
|
+
padding: 15px 0;
|
15
|
+
border-bottom: 1px solid $medium-gray;
|
16
|
+
border-top: 1px solid $medium-gray;
|
17
|
+
}
|
18
|
+
|
19
|
+
> header {
|
20
|
+
line-height: 40px;
|
21
|
+
}
|
22
|
+
|
23
|
+
&-actions {
|
24
|
+
@include breakpoint(medium) {
|
25
|
+
text-align: right;
|
26
|
+
}
|
27
|
+
|
28
|
+
> .button {
|
29
|
+
vertical-align: top;
|
30
|
+
height: 40px;
|
31
|
+
width: 49%;
|
32
|
+
margin: 10px 0;
|
33
|
+
border: 0;
|
34
|
+
@include breakpoint(medium) {
|
35
|
+
margin: 0;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
&-buttons {
|
41
|
+
max-width: 550px;
|
42
|
+
margin: 20px auto 0 !important;
|
43
|
+
}
|
44
|
+
|
45
|
+
&-image {
|
46
|
+
img {
|
47
|
+
height: 50px;
|
48
|
+
width: 100%;
|
49
|
+
object-fit: cover;
|
50
|
+
@include breakpoint(medium) {
|
51
|
+
height: 100px;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
.article {
|
2
|
+
> header {
|
3
|
+
border-bottom: 1px solid #e2e1e1;
|
4
|
+
margin-bottom: 15px;
|
5
|
+
|
6
|
+
button {
|
7
|
+
margin-bottom: 0;
|
8
|
+
}
|
9
|
+
|
10
|
+
> h1 {
|
11
|
+
border: 0;
|
12
|
+
font-size: 24px;
|
13
|
+
color: $black;
|
14
|
+
padding: 0;
|
15
|
+
|
16
|
+
@include breakpoint(medium) {
|
17
|
+
font-size: 28px;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
&-author {
|
23
|
+
margin-bottom: 5px;
|
24
|
+
font-size: 14px;
|
25
|
+
color: $dark-gray;
|
26
|
+
|
27
|
+
img {
|
28
|
+
width: 18px;
|
29
|
+
height: 18px;
|
30
|
+
object-fit: cover;
|
31
|
+
border-radius: 100%;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.horizontal-post {
|
2
|
+
margin-bottom: 15px;
|
3
|
+
padding-bottom: 15px;
|
4
|
+
border-bottom: 1px solid #e2e1e1;
|
5
|
+
|
6
|
+
img {
|
7
|
+
width: 100%;
|
8
|
+
height: 65px;
|
9
|
+
object-fit: cover;
|
10
|
+
@include breakpoint(medium) { height: 140px; }
|
11
|
+
@include breakpoint(large) { height: 156px; }
|
12
|
+
}
|
13
|
+
|
14
|
+
&-body {
|
15
|
+
@include breakpoint(small only) {
|
16
|
+
position: relative;
|
17
|
+
padding-bottom: 30px;
|
18
|
+
|
19
|
+
> ul {
|
20
|
+
position: absolute;
|
21
|
+
bottom: 0;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
> h3 > a {
|
27
|
+
color: $black;
|
28
|
+
font-size: 16px;
|
29
|
+
|
30
|
+
&:hover {
|
31
|
+
color: $primary-color;
|
32
|
+
}
|
33
|
+
|
34
|
+
@include breakpoint(medium) {
|
35
|
+
font-size: 20px;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
> p {
|
40
|
+
color: rgba(59,59,59,0.85);
|
41
|
+
font-size: 14px;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
.inline-articles {
|
2
|
+
margin-bottom: 15px;
|
3
|
+
padding-bottom: 15px;
|
4
|
+
border-bottom: 1px solid #e2e1e1;
|
5
|
+
|
6
|
+
img {
|
7
|
+
height: 120px;
|
8
|
+
width: 100%;
|
9
|
+
object-fit: cover;
|
10
|
+
}
|
11
|
+
|
12
|
+
&-title {
|
13
|
+
@include text-truncate();
|
14
|
+
padding: 10px;
|
15
|
+
color: $black;
|
16
|
+
font-size: 16px;
|
17
|
+
font-weight: bold;
|
18
|
+
|
19
|
+
&:hover {
|
20
|
+
color: $primary-color;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.latest-post {
|
2
|
+
margin-bottom: 15px;
|
3
|
+
padding-bottom: 15px;
|
4
|
+
border-bottom: 1px solid #e2e1e1;
|
5
|
+
font-size: 18px;
|
6
|
+
|
7
|
+
> a {
|
8
|
+
width: 100%;
|
9
|
+
> img {
|
10
|
+
width: 100%;
|
11
|
+
height: 250px;
|
12
|
+
object-fit: cover;
|
13
|
+
@include breakpoint(medium) { height: 450px; }
|
14
|
+
@include breakpoint(large) { height: 500px; }
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
> p {
|
19
|
+
margin-bottom: 20px;
|
20
|
+
color: rgba(59,59,59,0.85);
|
21
|
+
font-size: 16px;
|
22
|
+
}
|
23
|
+
|
24
|
+
&-title {
|
25
|
+
display: block;
|
26
|
+
margin: 20px 0;
|
27
|
+
color: $black;
|
28
|
+
font-size: 24px;
|
29
|
+
a {
|
30
|
+
color: $black;
|
31
|
+
|
32
|
+
&:hover {
|
33
|
+
color: $primary-color;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
.list-widget {
|
2
|
+
margin-bottom: 45px;
|
3
|
+
border: 1px solid #e2e1e1;
|
4
|
+
|
5
|
+
&-image {
|
6
|
+
position: relative;
|
7
|
+
height: 185px;
|
8
|
+
|
9
|
+
> a {
|
10
|
+
display: block;
|
11
|
+
height: 100%;
|
12
|
+
width: 100%;
|
13
|
+
|
14
|
+
> img {
|
15
|
+
height: 185px;
|
16
|
+
width: 100%;
|
17
|
+
object-fit: cover;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
&-tag {
|
23
|
+
position: absolute;
|
24
|
+
top: 12px;
|
25
|
+
left: 12px;
|
26
|
+
padding: 8px;
|
27
|
+
background: $primary-color;
|
28
|
+
color: #ffffff;
|
29
|
+
font-size: 14px;
|
30
|
+
font-weight: bold;
|
31
|
+
line-height: 1;
|
32
|
+
}
|
33
|
+
|
34
|
+
> ul {
|
35
|
+
margin: 0;
|
36
|
+
padding: 15px;
|
37
|
+
|
38
|
+
> li {
|
39
|
+
> a {
|
40
|
+
display: block;
|
41
|
+
@include text-truncate();
|
42
|
+
color: $black;
|
43
|
+
|
44
|
+
&:hover {
|
45
|
+
color: $primary-color;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
.piped-list {
|
2
|
+
@include clearfix;
|
3
|
+
margin-left: 0;
|
4
|
+
margin-bottom: 0;
|
5
|
+
list-style: none;
|
6
|
+
font-size: 14px;
|
7
|
+
|
8
|
+
> li {
|
9
|
+
float: left;
|
10
|
+
color: $dark-gray;
|
11
|
+
|
12
|
+
&:after {
|
13
|
+
content: "/";
|
14
|
+
padding: 0 8px;
|
15
|
+
color: $dark-gray;
|
16
|
+
}
|
17
|
+
|
18
|
+
&:last-child {
|
19
|
+
&:after {
|
20
|
+
content: "";
|
21
|
+
padding: 0;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
> a {
|
26
|
+
color: $dark-gray;
|
27
|
+
|
28
|
+
&:hover {
|
29
|
+
color: $primary-color;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.post-tags {
|
2
|
+
margin-left: 0;
|
3
|
+
margin-bottom: 0;
|
4
|
+
list-style: none;
|
5
|
+
li {
|
6
|
+
display: inline-block;
|
7
|
+
a {
|
8
|
+
@include label;
|
9
|
+
color: $white;
|
10
|
+
background-color: $dark-gray;
|
11
|
+
margin-bottom: 5px;
|
12
|
+
&:hover {
|
13
|
+
background-color: $primary-color;
|
14
|
+
cursor: pointer;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.sidebar-articles {
|
2
|
+
.list-item {
|
3
|
+
margin-bottom: 15px;
|
4
|
+
padding-bottom: 15px;
|
5
|
+
border-bottom: 1px solid #e2e1e1;
|
6
|
+
}
|
7
|
+
|
8
|
+
.image {
|
9
|
+
> a {
|
10
|
+
> img {
|
11
|
+
height: 80px;
|
12
|
+
width: 100%;
|
13
|
+
object-fit: cover;
|
14
|
+
margin: 0;
|
15
|
+
border: none;
|
16
|
+
box-shadow: none;
|
17
|
+
-webkit-box-shadow: none;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.data {
|
23
|
+
// display: flex;
|
24
|
+
// flex-direction: column;
|
25
|
+
// position: relative;
|
26
|
+
padding-left: 10px;
|
27
|
+
|
28
|
+
> a {
|
29
|
+
flex: 1 0 auto;
|
30
|
+
flex-grow: 1;
|
31
|
+
|
32
|
+
display: block;
|
33
|
+
color: $black;
|
34
|
+
font-size: 16px;
|
35
|
+
font-weight: bold;
|
36
|
+
|
37
|
+
&:hover {
|
38
|
+
color: $primary-color;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
.sidebar-widget {
|
2
|
+
margin-bottom: 45px;
|
3
|
+
font-size: 16px;
|
4
|
+
color: $black;
|
5
|
+
|
6
|
+
&-title {
|
7
|
+
margin-bottom: 20px;
|
8
|
+
font-weight: bold;
|
9
|
+
font-size: 1.25rem;
|
10
|
+
text-align: center;
|
11
|
+
}
|
12
|
+
|
13
|
+
&-wrapper {
|
14
|
+
padding: 20px;
|
15
|
+
background: #ffffff;
|
16
|
+
box-shadow: 0 4px 10px 0 rgba(213, 213, 213, 0.5);
|
17
|
+
}
|
18
|
+
|
19
|
+
&-body {
|
20
|
+
@include breakpoint(medium only) {
|
21
|
+
max-width: 400px;
|
22
|
+
margin: 0 auto;
|
23
|
+
}
|
24
|
+
|
25
|
+
> footer {
|
26
|
+
text-align: center;
|
27
|
+
font-size: 12px;
|
28
|
+
}
|
29
|
+
|
30
|
+
> p {
|
31
|
+
text-align: center;
|
32
|
+
margin-bottom: 25px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
&-link {
|
37
|
+
display: block;
|
38
|
+
margin-top: 20px;
|
39
|
+
font-size: 12px;
|
40
|
+
color: $medium-gray;
|
41
|
+
text-align: center;
|
42
|
+
|
43
|
+
&:hover {
|
44
|
+
color: $primary-color;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
.post-card {
|
2
|
+
box-shadow: none;
|
3
|
+
&:hover {
|
4
|
+
box-shadow: $card-shadow;
|
5
|
+
}
|
6
|
+
> a {
|
7
|
+
.card-section {
|
8
|
+
padding: 20px;
|
9
|
+
color: $black;
|
10
|
+
font-size: 14px;
|
11
|
+
|
12
|
+
> h3 {
|
13
|
+
margin-bottom: 15px;
|
14
|
+
font-size: 16px;
|
15
|
+
}
|
16
|
+
|
17
|
+
> p {
|
18
|
+
-webkit-line-clamp: 3;
|
19
|
+
display: -webkit-box;
|
20
|
+
overflow: hidden;
|
21
|
+
-webkit-box-orient: vertical;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
&-image {
|
27
|
+
object-fit: cover;
|
28
|
+
height: 185px;
|
29
|
+
width: 100%;
|
30
|
+
}
|
31
|
+
}
|