thredded 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.mkdn +63 -0
- data/Procfile +1 -0
- data/README.mkdn +42 -20
- data/app/assets/images/thredded/private-messages.svg +4 -0
- data/app/assets/images/thredded/settings.svg +4 -0
- data/app/assets/javascripts/thredded.es6 +2 -10
- data/app/assets/javascripts/thredded/{currently_online.es6 → components/currently_online.es6} +0 -0
- data/app/assets/javascripts/thredded/{post_form.es6 → components/post_form.es6} +0 -0
- data/app/assets/javascripts/thredded/{time_stamps.es6 → components/time_stamps.es6} +0 -0
- data/app/assets/javascripts/thredded/{topic_form.es6 → components/topic_form.es6} +1 -1
- data/app/assets/javascripts/thredded/components/topics.es6 +37 -0
- data/app/assets/javascripts/thredded/components/user_preferences_form.es6 +45 -0
- data/app/assets/javascripts/thredded/components/users_select.es6 +56 -0
- data/app/assets/javascripts/thredded/dependencies.js +9 -0
- data/app/assets/javascripts/thredded/thredded.es6 +1 -0
- data/app/assets/stylesheets/thredded/_base.scss +3 -2
- data/app/assets/stylesheets/thredded/_thredded.scss +4 -1
- data/app/assets/stylesheets/thredded/base/_buttons.scss +2 -1
- data/app/assets/stylesheets/thredded/base/_forms.scss +23 -18
- data/app/assets/stylesheets/thredded/base/_grid.scss +1 -1
- data/app/assets/stylesheets/thredded/base/_nav.scss +21 -0
- data/app/assets/stylesheets/thredded/base/_tables.scss +5 -14
- data/app/assets/stylesheets/thredded/base/_typography.scss +9 -4
- data/app/assets/stylesheets/thredded/base/_variables.scss +28 -9
- data/app/assets/stylesheets/thredded/components/_alerts.scss +19 -0
- data/app/assets/stylesheets/thredded/components/_currently-online.scss +1 -1
- data/app/assets/stylesheets/thredded/components/_form-list.scss +2 -4
- data/app/assets/stylesheets/thredded/components/_icons.scss +3 -0
- data/app/assets/stylesheets/thredded/components/_messageboard.scss +4 -4
- data/app/assets/stylesheets/thredded/components/_pagination.scss +2 -2
- data/app/assets/stylesheets/thredded/components/_post-form.scss +3 -0
- data/app/assets/stylesheets/thredded/components/_post.scss +14 -4
- data/app/assets/stylesheets/thredded/components/_select2.scss +79 -9
- data/app/assets/stylesheets/thredded/components/_topic-header.scss +11 -1
- data/app/assets/stylesheets/thredded/components/_topics.scss +13 -11
- data/app/assets/stylesheets/thredded/layout/_main-container.scss +3 -3
- data/app/assets/stylesheets/thredded/layout/_main-navigation.scss +11 -17
- data/app/assets/stylesheets/thredded/layout/_navigation.scss +72 -0
- data/app/assets/stylesheets/thredded/layout/_search-navigation.scss +66 -0
- data/app/assets/stylesheets/thredded/layout/_user-navigation.scss +35 -61
- data/app/commands/thredded/at_notification_extractor.rb +1 -0
- data/app/commands/thredded/members_marked_notified.rb +1 -0
- data/app/commands/thredded/messageboard_destroyer.rb +7 -2
- data/app/commands/thredded/notify_mentioned_users.rb +8 -21
- data/app/commands/thredded/notify_private_topic_users.rb +3 -5
- data/app/controllers/thredded/application_controller.rb +76 -41
- data/app/controllers/thredded/autocomplete_users_controller.rb +46 -0
- data/app/controllers/thredded/messageboards_controller.rb +8 -5
- data/app/controllers/thredded/posts_controller.rb +20 -22
- data/app/controllers/thredded/preferences_controller.rb +19 -14
- data/app/controllers/thredded/private_topics_controller.rb +58 -23
- data/app/controllers/thredded/setups_controller.rb +1 -0
- data/app/controllers/thredded/theme_previews_controller.rb +24 -53
- data/app/controllers/thredded/topics_controller.rb +48 -77
- data/app/forms/thredded/private_topic_form.rb +1 -21
- data/app/forms/thredded/topic_form.rb +3 -7
- data/app/forms/thredded/user_preferences_form.rb +62 -0
- data/app/helpers/thredded/application_helper.rb +11 -12
- data/app/helpers/thredded/urls_helper.rb +103 -0
- data/app/jobs/thredded/activity_updater_job.rb +4 -3
- data/app/jobs/thredded/at_notifier_job.rb +1 -0
- data/app/jobs/thredded/notify_private_topic_users_job.rb +1 -0
- data/app/mailer_previews/thredded/base_mailer_preview.rb +101 -0
- data/app/mailer_previews/thredded/post_mailer_preview.rb +11 -0
- data/app/mailer_previews/thredded/private_post_mailer_preview.rb +11 -0
- data/app/mailer_previews/thredded/private_topic_mailer_preview.rb +15 -0
- data/app/mailers/thredded/base_mailer.rb +13 -0
- data/app/mailers/thredded/post_mailer.rb +4 -2
- data/app/mailers/thredded/private_post_mailer.rb +4 -2
- data/app/mailers/thredded/private_topic_mailer.rb +4 -2
- data/app/models/concerns/thredded/friendly_id_reserved_words_and_pagination.rb +16 -0
- data/app/models/concerns/thredded/post_common.rb +68 -63
- data/app/models/concerns/thredded/topic_common.rb +31 -8
- data/app/models/concerns/thredded/user_topic_read_state_common.rb +31 -0
- data/app/models/thredded/category.rb +1 -0
- data/app/models/thredded/messageboard.rb +24 -25
- data/app/models/thredded/messageboard_user.rb +1 -0
- data/app/models/thredded/null_preference.rb +1 -0
- data/app/models/thredded/null_user.rb +1 -6
- data/app/models/thredded/null_user_topic_read_state.rb +12 -0
- data/app/models/thredded/post.rb +6 -9
- data/app/models/thredded/post_notification.rb +1 -0
- data/app/models/thredded/private_post.rb +6 -2
- data/app/models/thredded/private_topic.rb +46 -32
- data/app/models/thredded/private_user.rb +3 -2
- data/app/models/thredded/stats.rb +1 -0
- data/app/models/thredded/topic.rb +40 -64
- data/app/models/thredded/topic_category.rb +1 -0
- data/app/models/thredded/user_detail.rb +2 -15
- data/app/models/thredded/user_extender.rb +29 -14
- data/app/models/thredded/user_messageboard_preference.rb +20 -0
- data/app/models/thredded/user_permissions/admin/if_admin_column_true.rb +1 -0
- data/app/models/thredded/user_permissions/admin/none.rb +1 -0
- data/app/models/thredded/user_permissions/message/readers_of_writeable_boards.rb +1 -0
- data/app/models/thredded/user_permissions/moderate/if_moderator_column_true.rb +1 -0
- data/app/models/thredded/user_permissions/moderate/none.rb +1 -0
- data/app/models/thredded/user_permissions/read/all.rb +1 -0
- data/app/models/thredded/user_permissions/write/all.rb +1 -0
- data/app/models/thredded/user_permissions/write/none.rb +1 -0
- data/app/models/thredded/user_preference.rb +7 -1
- data/app/models/thredded/user_private_topic_read_state.rb +12 -0
- data/app/models/thredded/user_topic_read_state.rb +12 -0
- data/app/policies/thredded/messageboard_policy.rb +27 -0
- data/app/policies/thredded/post_policy.rb +33 -0
- data/app/policies/thredded/private_post_policy.rb +29 -0
- data/app/policies/thredded/private_topic_policy.rb +23 -0
- data/app/policies/thredded/topic_policy.rb +32 -0
- data/app/view_models/thredded/base_topic_view.rb +56 -0
- data/app/view_models/thredded/post_view.rb +44 -0
- data/app/view_models/thredded/posts_page_view.rb +27 -0
- data/app/view_models/thredded/private_topic_view.rb +9 -0
- data/app/{decorators/thredded/topic_email_decorator.rb → view_models/thredded/topic_email_view.rb} +2 -1
- data/app/view_models/thredded/topic_view.rb +23 -0
- data/app/view_models/thredded/topics_page_view.rb +26 -0
- data/app/views/thredded/error_pages/forbidden.html.erb +6 -0
- data/app/views/thredded/error_pages/not_found.html.erb +6 -0
- data/app/views/thredded/messageboards/_messageboard.html.erb +13 -6
- data/app/views/thredded/messageboards/index.html.erb +2 -8
- data/app/views/thredded/messageboards/new.html.erb +8 -2
- data/app/views/thredded/post_mailer/at_notification.html.erb +3 -3
- data/app/views/thredded/post_mailer/at_notification.text.erb +1 -1
- data/app/views/thredded/posts/_content_field.html.erb +1 -1
- data/app/views/thredded/posts/_form.html.erb +5 -1
- data/app/views/thredded/posts/_post.html.erb +3 -1
- data/app/views/thredded/posts/edit.html.erb +7 -3
- data/app/views/thredded/posts_common/_form.html.erb +1 -1
- data/app/views/thredded/posts_common/_post.html.erb +14 -8
- data/app/views/thredded/preferences/_form.html.erb +37 -15
- data/app/views/thredded/preferences/_header.html.erb +1 -1
- data/app/views/thredded/preferences/edit.html.erb +4 -6
- data/app/views/thredded/private_post_mailer/at_notification.html.erb +6 -4
- data/app/views/thredded/private_posts/_form.html.erb +5 -1
- data/app/views/thredded/private_posts/_private_post.html.erb +3 -1
- data/app/views/thredded/private_topic_mailer/message_notification.html.erb +3 -7
- data/app/views/thredded/private_topic_mailer/message_notification.text.erb +1 -3
- data/app/views/thredded/private_topics/_breadcrumbs.html.erb +2 -2
- data/app/views/thredded/private_topics/_form.html.erb +15 -10
- data/app/views/thredded/private_topics/_header.html.erb +12 -0
- data/app/views/thredded/private_topics/_no_private_topics.html.erb +2 -2
- data/app/views/thredded/private_topics/_private_topic.html.erb +4 -6
- data/app/views/thredded/private_topics/edit.html.erb +32 -0
- data/app/views/thredded/private_topics/index.html.erb +5 -5
- data/app/views/thredded/private_topics/new.html.erb +1 -2
- data/app/views/thredded/private_topics/show.html.erb +12 -7
- data/app/views/thredded/search/_form.html.erb +9 -6
- data/app/views/thredded/shared/{_messageboard_topics_breadcrumbs.html.erb → _breadcrumbs.html.erb} +2 -2
- data/app/views/thredded/shared/_header.html.erb +2 -3
- data/app/views/thredded/shared/_nav.html.erb +20 -0
- data/app/views/thredded/shared/nav/_notification_preferences.html.erb +6 -0
- data/app/views/thredded/shared/nav/_private_topics.html.erb +11 -0
- data/app/views/thredded/shared/nav/_standalone.html.erb +12 -0
- data/app/views/thredded/theme_previews/_section_title.html.erb +2 -2
- data/app/views/thredded/theme_previews/show.html.erb +13 -17
- data/app/views/thredded/topics/_form.html.erb +8 -6
- data/app/views/thredded/topics/_header.html.erb +12 -0
- data/app/views/thredded/topics/_topic.html.erb +4 -8
- data/app/views/thredded/topics/_topic_form_admin_options.html.erb +1 -1
- data/app/views/thredded/topics/edit.html.erb +22 -18
- data/app/views/thredded/topics/index.html.erb +3 -3
- data/app/views/thredded/topics/new.html.erb +1 -1
- data/app/views/thredded/topics/search.html.erb +17 -5
- data/app/views/thredded/topics/show.html.erb +14 -11
- data/bin/rails +5 -0
- data/config.ru +3 -0
- data/config/i18n-tasks.yml +16 -0
- data/config/locales/en.yml +90 -0
- data/config/routes.rb +29 -15
- data/db/migrate/20160329231848_create_thredded.rb +29 -33
- data/db/seeds.rb +115 -0
- data/db/upgrade_migrations/20160410111522_upgrade_v0_2_to_v0_3.rb +59 -0
- data/heroku.gemfile +26 -0
- data/heroku.gemfile.lock +282 -0
- data/lib/generators/thredded/install/install_generator.rb +1 -0
- data/lib/generators/thredded/install/templates/initializer.rb +17 -0
- data/lib/html/pipeline/at_mention_filter.rb +2 -1
- data/lib/html/pipeline/bbcode_filter.rb +13 -4
- data/lib/tasks/thredded_tasks.rake +1 -0
- data/lib/thredded.rb +19 -17
- data/lib/thredded/at_users.rb +1 -0
- data/lib/thredded/engine.rb +14 -5
- data/lib/thredded/errors.rb +11 -11
- data/lib/thredded/main_app_route_delegator.rb +1 -0
- data/lib/thredded/search_parser.rb +2 -1
- data/lib/thredded/topics_search.rb +67 -0
- data/lib/thredded/version.rb +2 -1
- data/thredded.gemspec +12 -8
- metadata +146 -82
- data/app/assets/javascripts/thredded/users_select.es6 +0 -5
- data/app/assets/stylesheets/thredded/layout/_topic-navigation.scss +0 -53
- data/app/commands/thredded/user_reads_private_topic.rb +0 -22
- data/app/commands/thredded/user_resets_private_topic_to_unread.rb +0 -23
- data/app/decorators/thredded/base_topic_decorator.rb +0 -14
- data/app/decorators/thredded/base_user_topic_decorator.rb +0 -63
- data/app/decorators/thredded/messageboard_decorator.rb +0 -41
- data/app/decorators/thredded/post_decorator.rb +0 -40
- data/app/decorators/thredded/private_topic_decorator.rb +0 -23
- data/app/decorators/thredded/topic_decorator.rb +0 -25
- data/app/decorators/thredded/user_private_topic_decorator.rb +0 -13
- data/app/decorators/thredded/user_topic_decorator.rb +0 -37
- data/app/models/thredded/ability.rb +0 -60
- data/app/models/thredded/notification_preference.rb +0 -17
- data/app/models/thredded/null_topic.rb +0 -15
- data/app/models/thredded/null_topic_read.rb +0 -19
- data/app/models/thredded/user_topic_read.rb +0 -10
- data/app/views/thredded/shared/_notification_preferences.html.erb +0 -7
- data/app/views/thredded/shared/_top_nav.html.erb +0 -36
- data/app/views/thredded/shared/_topic_nav.html.erb +0 -22
- data/app/views/thredded/topics/_recent_topics_by_user.html.erb +0 -8
- data/app/views/thredded/topics/by_category.html.erb +0 -56
- data/app/views/thredded/topics_common/_header.html.erb +0 -6
- data/lib/thredded/messageboard_user_permissions.rb +0 -22
- data/lib/thredded/post_sql_builder.rb +0 -12
- data/lib/thredded/post_user_permissions.rb +0 -32
- data/lib/thredded/private_topic_user_permissions.rb +0 -26
- data/lib/thredded/search_sql_builder.rb +0 -21
- data/lib/thredded/seed_database.rb +0 -76
- data/lib/thredded/table_sql_builder.rb +0 -41
- data/lib/thredded/topic_sql_builder.rb +0 -11
- data/lib/thredded/topic_user_permissions.rb +0 -32
@@ -0,0 +1,21 @@
|
|
1
|
+
%thredded--nav-link {
|
2
|
+
color: $thredded-nav-color;
|
3
|
+
text-decoration: none;
|
4
|
+
transition: $thredded-action-transition;
|
5
|
+
|
6
|
+
&:active,
|
7
|
+
&:focus,
|
8
|
+
&:hover {
|
9
|
+
color: $thredded-nav-hover-color;
|
10
|
+
text-decoration: none;
|
11
|
+
}
|
12
|
+
|
13
|
+
&:active,
|
14
|
+
&:focus {
|
15
|
+
outline: none;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
%thredded--nav-link-current {
|
20
|
+
color: $thredded-nav-current-color;
|
21
|
+
}
|
@@ -2,24 +2,15 @@
|
|
2
2
|
font-feature-settings: "kern", "liga", "tnum";
|
3
3
|
border-collapse: collapse;
|
4
4
|
margin: $thredded-small-spacing 0;
|
5
|
-
table-layout: fixed;
|
6
|
-
width: 100%;
|
7
5
|
|
8
|
-
th {
|
9
|
-
|
10
|
-
|
11
|
-
padding: $thredded-small-spacing 0;
|
12
|
-
text-align: left;
|
13
|
-
}
|
14
|
-
|
15
|
-
td {
|
6
|
+
td, th {
|
7
|
+
text-align: center;
|
8
|
+
padding: 0.5rem 0.75rem;
|
16
9
|
border-bottom: $thredded-base-border;
|
17
|
-
|
10
|
+
vertical-align: middle;
|
18
11
|
}
|
19
12
|
|
20
|
-
tr,
|
21
|
-
td,
|
22
13
|
th {
|
23
|
-
|
14
|
+
font-weight: bold;
|
24
15
|
}
|
25
16
|
}
|
@@ -8,12 +8,13 @@
|
|
8
8
|
%thredded--link {
|
9
9
|
color: $thredded-action-color;
|
10
10
|
text-decoration: none;
|
11
|
-
transition:
|
11
|
+
transition: $thredded-action-transition;
|
12
12
|
|
13
13
|
&:active,
|
14
14
|
&:focus,
|
15
15
|
&:hover {
|
16
|
-
color:
|
16
|
+
color: $thredded-action-hover-color;
|
17
|
+
text-decoration: none;
|
17
18
|
}
|
18
19
|
|
19
20
|
&:active,
|
@@ -23,10 +24,10 @@
|
|
23
24
|
}
|
24
25
|
|
25
26
|
%thredded--hr {
|
26
|
-
border-bottom:
|
27
|
+
border-bottom: none;
|
27
28
|
border-left: none;
|
28
29
|
border-right: none;
|
29
|
-
border-top:
|
30
|
+
border-top: $thredded-base-border;
|
30
31
|
margin: $thredded-base-spacing 0;
|
31
32
|
}
|
32
33
|
|
@@ -34,3 +35,7 @@
|
|
34
35
|
margin: 0 0 $thredded-small-spacing;
|
35
36
|
}
|
36
37
|
|
38
|
+
%thredded--icon {
|
39
|
+
fill: currentColor;
|
40
|
+
}
|
41
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// Grid
|
2
|
-
$thredded-grid-container-max-width:
|
3
|
-
$thredded-grid-breakpoint-max-widths: (mobile:
|
2
|
+
$thredded-grid-container-max-width: 43.125rem !default;
|
3
|
+
$thredded-grid-breakpoint-max-widths: (mobile: 34rem, tablet: 48rem) !default;
|
4
4
|
|
5
5
|
// Typography
|
6
6
|
$thredded-base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif !default;
|
@@ -20,10 +20,17 @@ $thredded-brand: #4a90e2 !default;
|
|
20
20
|
$thredded-dark-gray: #333 !default;
|
21
21
|
$thredded-light-gray: #eee !default;
|
22
22
|
|
23
|
-
// Colors of text, background,
|
24
|
-
$thredded-
|
25
|
-
$thredded-
|
23
|
+
// Colors of text, background, actions (links), and navigation
|
24
|
+
$thredded-text-color: #575d6b !default;
|
25
|
+
$thredded-secondary-text-color: lighten($thredded-text-color, 30%) !default;
|
26
|
+
$thredded-background-color: #fff !default;
|
26
27
|
$thredded-action-color: $thredded-brand !default;
|
28
|
+
$thredded-action-hover-color: darken($thredded-action-color, 15%) !default;
|
29
|
+
$thredded-action-transition: color 0.1s linear !default;
|
30
|
+
$thredded-nav-color: $thredded-text-color !default;
|
31
|
+
$thredded-nav-hover-color: $thredded-action-color !default;
|
32
|
+
$thredded-nav-current-color: $thredded-action-color !default;
|
33
|
+
$thredded-secondary-nav-color: $thredded-secondary-text-color !default;
|
27
34
|
|
28
35
|
// Colors of alerts and flash messages
|
29
36
|
$thredded-alert-danger-background: #fbe3e4 !default;
|
@@ -39,16 +46,28 @@ $thredded-alert-warning-color: #8a6d3b !default;
|
|
39
46
|
$thredded-base-border-color: $thredded-light-gray !default;
|
40
47
|
$thredded-base-border: 1px solid $thredded-base-border-color !default;
|
41
48
|
|
42
|
-
//
|
43
|
-
$thredded-form-
|
49
|
+
// Form inputs
|
50
|
+
$thredded-form-background: $thredded-background-color !default;
|
51
|
+
$thredded-form-border-color: darken($thredded-base-border-color, 5%) !default;
|
52
|
+
$thredded-form-border-hover-color: darken($thredded-form-border-color, 6.4%) !default;
|
53
|
+
$thredded-form-border-focus-color: $thredded-action-color !default;
|
54
|
+
$thredded-form-border: 1px solid $thredded-form-border-color !default;
|
44
55
|
$thredded-form-box-shadow: inset 0 1px 3px rgba(#000, 0.06) !default;
|
56
|
+
$thredded-form-color: $thredded-text-color !default;
|
45
57
|
|
46
58
|
// Buttons
|
47
59
|
$thredded-button-background: $thredded-action-color !default;
|
48
|
-
$thredded-button-border-radius: 3px !default;
|
49
60
|
$thredded-button-color: #fff !default;
|
61
|
+
$thredded-button-hover-color: $thredded-button-color !default;
|
62
|
+
$thredded-button-hover-background: darken($thredded-button-background, 15%) !default;
|
63
|
+
$thredded-button-border-radius: 3px !default;
|
50
64
|
$thredded-button-font-family: $thredded-base-font-family !default;
|
51
65
|
$thredded-button-font-size: $thredded-font-size-small !default;
|
52
66
|
$thredded-button-font-weight: 600 !default;
|
53
|
-
$thredded-button-hover-background: darken($thredded-button-background, 15%) !default;
|
54
67
|
$thredded-button-line-height: 1 !default;
|
68
|
+
|
69
|
+
// Badges (unread count, posts count)
|
70
|
+
$thredded-badge-active-color: $thredded-button-color !default;
|
71
|
+
$thredded-badge-active-background: $thredded-action-color !default;
|
72
|
+
$thredded-badge-inactive-color: $thredded-button-color !default;
|
73
|
+
$thredded-badge-inactive-background: rgba($thredded-text-color, 0.3) !default;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
&--alert {
|
2
|
+
@extend %thredded--alert;
|
3
|
+
}
|
4
|
+
|
5
|
+
&--alert-success {
|
6
|
+
@extend %thredded--alert--success;
|
7
|
+
}
|
8
|
+
|
9
|
+
&--alert-danger {
|
10
|
+
@extend %thredded--alert--danger;
|
11
|
+
}
|
12
|
+
|
13
|
+
&--alert-info {
|
14
|
+
@extend %thredded--alert--info;
|
15
|
+
}
|
16
|
+
|
17
|
+
&--alert-warning {
|
18
|
+
@extend %thredded--alert--warning;
|
19
|
+
}
|
@@ -2,9 +2,7 @@
|
|
2
2
|
@extend %thredded--list-unstyled;
|
3
3
|
|
4
4
|
&.on-top {
|
5
|
-
|
6
|
-
margin-bottom: $thredded-base-spacing * 1.5;
|
7
|
-
padding-bottom: $thredded-small-spacing;
|
5
|
+
margin-bottom: $thredded-small-spacing;
|
8
6
|
}
|
9
7
|
|
10
8
|
li {
|
@@ -28,7 +26,7 @@
|
|
28
26
|
|
29
27
|
&--form-list--hint {
|
30
28
|
@extend %thredded--paragraph;
|
31
|
-
color:
|
29
|
+
color: $thredded-secondary-text-color;
|
32
30
|
font-size: $thredded-font-size-small;
|
33
31
|
font-weight: normal;
|
34
32
|
position: relative;
|
@@ -11,7 +11,7 @@
|
|
11
11
|
}
|
12
12
|
|
13
13
|
&:hover {
|
14
|
-
background-color:
|
14
|
+
background-color: rgba($thredded-brand, 0.035);
|
15
15
|
}
|
16
16
|
}
|
17
17
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
&--messageboard--meta {
|
30
30
|
@extend %thredded--heading;
|
31
|
-
color:
|
31
|
+
color: $thredded-secondary-text-color;
|
32
32
|
display: inline-block;
|
33
33
|
font-weight: normal;
|
34
34
|
margin-bottom: 0;
|
@@ -39,12 +39,12 @@
|
|
39
39
|
@extend %thredded--paragraph;
|
40
40
|
clear: both;
|
41
41
|
margin-bottom: $thredded-small-spacing / 2;
|
42
|
-
color: $thredded-
|
42
|
+
color: $thredded-text-color;
|
43
43
|
}
|
44
44
|
|
45
45
|
&--messageboard--byline {
|
46
46
|
@extend %thredded--paragraph;
|
47
|
-
color:
|
47
|
+
color: $thredded-secondary-text-color;
|
48
48
|
font-size: 0.875em;
|
49
49
|
font-weight: normal;
|
50
50
|
margin-bottom: 0;
|
@@ -5,12 +5,12 @@
|
|
5
5
|
text-align: center;
|
6
6
|
|
7
7
|
> span {
|
8
|
-
color:
|
8
|
+
color: $thredded-secondary-text-color;
|
9
9
|
display: inline-block;
|
10
10
|
margin-right: $thredded-small-spacing;
|
11
11
|
|
12
12
|
> a {
|
13
|
-
color: $thredded-
|
13
|
+
color: $thredded-text-color;
|
14
14
|
display: inline-block;
|
15
15
|
|
16
16
|
&:focus,
|
@@ -1,6 +1,9 @@
|
|
1
1
|
&--post {
|
2
2
|
position: relative;
|
3
3
|
margin-bottom: $thredded-large-spacing;
|
4
|
+
@include thredded-media-mobile {
|
5
|
+
margin-bottom: $thredded-base-spacing;
|
6
|
+
}
|
4
7
|
}
|
5
8
|
|
6
9
|
&--post--avatar {
|
@@ -12,7 +15,7 @@
|
|
12
15
|
top: 6px;
|
13
16
|
width: 1.75rem; // 28px
|
14
17
|
|
15
|
-
@media (min-width: $thredded-grid-container-max-width +
|
18
|
+
@media (min-width: $thredded-grid-container-max-width + 4rem) {
|
16
19
|
height: 2.25rem; // 36px
|
17
20
|
left: -3rem;
|
18
21
|
position: absolute;
|
@@ -31,22 +34,26 @@
|
|
31
34
|
|
32
35
|
a {
|
33
36
|
@extend %thredded--link;
|
34
|
-
color: $thredded-
|
37
|
+
color: $thredded-text-color;
|
35
38
|
}
|
36
39
|
}
|
37
40
|
|
38
41
|
&--post--created-at {
|
39
42
|
@extend %thredded--paragraph;
|
40
43
|
font-size: $thredded-font-size-small;
|
41
|
-
color:
|
44
|
+
color: $thredded-secondary-text-color;
|
42
45
|
display: inline-block;
|
43
46
|
}
|
44
47
|
|
45
|
-
&--post--edit {
|
48
|
+
&--post--edit, &--post--delete {
|
46
49
|
font-size: $thredded-font-size-small;
|
47
50
|
@extend %thredded--link;
|
48
51
|
}
|
49
52
|
|
53
|
+
&--post--delete {
|
54
|
+
margin-left: 0.4rem;
|
55
|
+
}
|
56
|
+
|
50
57
|
&--post--content {
|
51
58
|
font-size: 1.063rem; // 17px
|
52
59
|
line-height: 1.65;
|
@@ -63,4 +70,7 @@
|
|
63
70
|
max-width: 100%;
|
64
71
|
height: auto;
|
65
72
|
}
|
73
|
+
table {
|
74
|
+
@extend %thredded--table;
|
75
|
+
}
|
66
76
|
}
|
@@ -1,42 +1,112 @@
|
|
1
|
-
&--
|
1
|
+
&--select2-container {
|
2
2
|
width: 100%;
|
3
3
|
|
4
4
|
> .select2-choices {
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
@extend %thredded--form--input;
|
6
|
+
$gutter-y: 0.4rem;
|
7
|
+
$choices-gutter-y: 0.2rem;
|
8
|
+
$gutter-x: 0.6rem;
|
9
|
+
padding-top: ($thredded-small-spacing - $gutter-y - $choices-gutter-y);
|
8
10
|
min-height: unset;
|
9
|
-
padding: $thredded-small-spacing;
|
10
11
|
|
11
12
|
> .select2-search-choice {
|
12
|
-
|
13
|
+
border: $thredded-base-border;
|
14
|
+
background-color: $thredded-light-gray;
|
15
|
+
margin: $gutter-y $gutter-x (-$choices-gutter-y) 0;
|
16
|
+
&.select2-search-choice-focus {
|
17
|
+
background: $thredded-button-background;
|
18
|
+
border: 1px solid $thredded-button-background;
|
19
|
+
box-shadow: 0 0 2px $thredded-button-background inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
20
|
+
color: $thredded-button-color;
|
21
|
+
transition: none;
|
22
|
+
}
|
13
23
|
}
|
14
24
|
|
15
25
|
> .select2-search-field {
|
26
|
+
background: transparent;
|
27
|
+
margin-top: ($gutter-y + $choices-gutter-y);
|
16
28
|
> [type="text"] {
|
29
|
+
color: $thredded-form-color;
|
17
30
|
font-family: $thredded-base-font-family;
|
18
31
|
font-size: 1rem;
|
19
32
|
margin: 0;
|
20
33
|
padding: 0;
|
34
|
+
&.select2-active {
|
35
|
+
// Select2 does !important here
|
36
|
+
background-color: transparent !important;
|
37
|
+
}
|
21
38
|
}
|
22
39
|
}
|
23
40
|
}
|
41
|
+
|
42
|
+
&.select2-container-active, &.select2-dropdown-open {
|
43
|
+
> .select2-choices {
|
44
|
+
@extend %thredded--form--input:focus;
|
45
|
+
}
|
46
|
+
}
|
24
47
|
}
|
25
48
|
|
26
49
|
&--select2-drop {
|
27
|
-
|
28
|
-
|
50
|
+
background: inherit;
|
51
|
+
border-color: $thredded-form-border-focus-color;
|
52
|
+
border-top: $thredded-base-border;
|
53
|
+
box-shadow: 0 1px 1px $thredded-form-border-focus-color;
|
29
54
|
font-family: $thredded-base-font-family;
|
30
55
|
font-size: $thredded-base-font-size;
|
31
56
|
line-height: $thredded-base-line-height;
|
32
57
|
|
58
|
+
.select2-results {
|
59
|
+
background: $thredded-form-background;
|
60
|
+
padding: 4px;
|
61
|
+
margin: 0;
|
62
|
+
}
|
63
|
+
|
33
64
|
.select2-result {
|
65
|
+
color: $thredded-text-color;
|
66
|
+
|
34
67
|
&.select2-highlighted {
|
35
|
-
background: $thredded-
|
68
|
+
background: $thredded-button-background;
|
69
|
+
color: $thredded-button-color;
|
36
70
|
}
|
37
71
|
|
38
72
|
> .select2-result-label {
|
73
|
+
font-family: $thredded-base-font-family;
|
74
|
+
font-size: $thredded-base-font-size;
|
39
75
|
padding: $thredded-small-spacing;
|
40
76
|
}
|
41
77
|
}
|
78
|
+
|
79
|
+
.select2-no-results, .select2-searching {
|
80
|
+
background: transparent;
|
81
|
+
color: $thredded-form-color;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
&--select2-user-result {
|
87
|
+
&__avatar {
|
88
|
+
width: 2rem;
|
89
|
+
min-height: 2rem;
|
90
|
+
height: auto;
|
91
|
+
display: inline-block;
|
92
|
+
vertical-align: middle;
|
93
|
+
}
|
94
|
+
&__name {
|
95
|
+
display: inline-block;
|
96
|
+
margin-left: 0.6rem
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
&--select2-user-selection {
|
101
|
+
&__avatar {
|
102
|
+
width: 1rem;
|
103
|
+
min-height: 1rem;
|
104
|
+
height: auto;
|
105
|
+
display: inline-block;
|
106
|
+
vertical-align: text-bottom;
|
107
|
+
}
|
108
|
+
&__name {
|
109
|
+
display: inline-block;
|
110
|
+
margin-left: 0.4rem
|
111
|
+
}
|
42
112
|
}
|