decidim-theme 0.1.4
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 +7 -0
- data/LICENSE-AGPLv3.txt +661 -0
- data/README.md +104 -0
- data/Rakefile +9 -0
- data/app/cells/decidim/meetings/meeting_cell.rb +65 -0
- data/app/cells/decidim/meetings/meeting_s_overrides/show.erb +25 -0
- data/app/cells/decidim/meetings/meeting_s_overrides_cell.rb +53 -0
- data/app/controllers/decidim/theme/admin/application_controller.rb +15 -0
- data/app/controllers/decidim/theme/application_controller.rb +13 -0
- data/app/helpers/decidim/theme/application_helper.rb +10 -0
- data/app/models/decidim/theme/application_record.rb +10 -0
- data/app/overrides/insert_javascript_tag.rb +6 -0
- data/app/overrides/language_chooser_icon.rb +4 -0
- data/app/overrides/layouts/decidim/_main_footer/replace_content.html.erb.deface +96 -0
- data/app/overrides/layouts/decidim/_mini_footer/replace_content.html.erb.deface +25 -0
- data/app/overrides/mailer_styles.rb +36 -0
- data/app/overrides/prefix_body.rb +10 -0
- data/app/overrides/prefix_classes.rb +63 -0
- data/app/overrides/prefix_processes_wrapper.rb +10 -0
- data/app/packs/entrypoints/decidim_theme_email.js +1 -0
- data/app/packs/entrypoints/decidim_theme_email.scss +2 -0
- data/app/packs/entrypoints/decidim_theme_polyfill.js +5 -0
- data/app/packs/fonts/decidim/Inter-Black.woff +0 -0
- data/app/packs/fonts/decidim/Inter-Black.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-BlackItalic.woff +0 -0
- data/app/packs/fonts/decidim/Inter-BlackItalic.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-Bold.woff +0 -0
- data/app/packs/fonts/decidim/Inter-Bold.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-BoldItalic.woff +0 -0
- data/app/packs/fonts/decidim/Inter-BoldItalic.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-ExtraBold.woff +0 -0
- data/app/packs/fonts/decidim/Inter-ExtraBold.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-ExtraBoldItalic.woff +0 -0
- data/app/packs/fonts/decidim/Inter-ExtraBoldItalic.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-ExtraLight.woff +0 -0
- data/app/packs/fonts/decidim/Inter-ExtraLight.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-ExtraLightItalic.woff +0 -0
- data/app/packs/fonts/decidim/Inter-ExtraLightItalic.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-Italic.woff +0 -0
- data/app/packs/fonts/decidim/Inter-Italic.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-Light.woff +0 -0
- data/app/packs/fonts/decidim/Inter-Light.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-LightItalic.woff +0 -0
- data/app/packs/fonts/decidim/Inter-LightItalic.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-Medium.woff +0 -0
- data/app/packs/fonts/decidim/Inter-Medium.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-MediumItalic.woff +0 -0
- data/app/packs/fonts/decidim/Inter-MediumItalic.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-Regular.woff +0 -0
- data/app/packs/fonts/decidim/Inter-Regular.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-SemiBold.woff +0 -0
- data/app/packs/fonts/decidim/Inter-SemiBold.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-SemiBoldItalic.woff +0 -0
- data/app/packs/fonts/decidim/Inter-SemiBoldItalic.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-Thin.woff +0 -0
- data/app/packs/fonts/decidim/Inter-Thin.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-ThinItalic.woff +0 -0
- data/app/packs/fonts/decidim/Inter-ThinItalic.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-italic.var.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter-roman.var.woff2 +0 -0
- data/app/packs/fonts/decidim/Inter.var.woff2 +0 -0
- data/app/packs/images/decidim/cc-by-sa-4.svg +8 -0
- data/app/packs/images/decidim/decidim-initial.svg +9 -0
- data/app/packs/images/decidim/theme/icon.svg +1 -0
- data/app/packs/javascripts/empty.polyfill.js +7 -0
- data/app/packs/javascripts/has.polyfill.js +30 -0
- data/app/packs/stylesheets/decidim/theme/_font_face.scss +180 -0
- data/app/packs/stylesheets/decidim/theme/_theme.scss +121 -0
- data/app/packs/stylesheets/decidim/theme/_theme_settings.scss +923 -0
- data/app/packs/stylesheets/decidim/theme/_theme_variables.scss +80 -0
- data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Generic.scss +98 -0
- data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Misc.scss +115 -0
- data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Navigation.scss +83 -0
- data/app/packs/stylesheets/decidim/theme/atoms/Typography/_Body.scss +88 -0
- data/app/packs/stylesheets/decidim/theme/atoms/Typography/_Headline.scss +98 -0
- data/app/packs/stylesheets/decidim/theme/atoms/Typography/_mixins.scss +109 -0
- data/app/packs/stylesheets/decidim/theme/email.scss +41 -0
- data/app/packs/stylesheets/decidim/theme/molecules/Callouts/_default.scss +41 -0
- data/app/packs/stylesheets/decidim/theme/molecules/Cards/_card_process.scss +24 -0
- data/app/packs/stylesheets/decidim/theme/molecules/Cards/_data-item.scss +31 -0
- data/app/packs/stylesheets/decidim/theme/molecules/Cards/_documents.scss +46 -0
- data/app/packs/stylesheets/decidim/theme/molecules/Cards/_extra.scss +32 -0
- data/app/packs/stylesheets/decidim/theme/molecules/Cards/_upcoming_meetings.scss +47 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_account.scss +129 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_accountability.scss +119 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_assembly.scss +5 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_authorizations.scss +25 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_blog.scss +77 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_budgets.scss +221 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_cookie_warning.scss +6 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_debate.scss +65 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_footer.scss +145 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_groups.scss +49 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_logins.scss +45 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_meetings.scss +214 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_members.scss +6 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_messaging.scss +118 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_metrics.scss +31 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_notifications.scss +20 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_processes.scss +12 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_proposals.scss +150 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_search.scss +12 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_sortitions.scss +65 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_surveys.scss +65 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_text_page.scss +115 -0
- data/app/packs/stylesheets/decidim/theme/organisms/_user_conversations.scss +7 -0
- data/app/packs/stylesheets/decidim/theme/reset/_author.scss +36 -0
- data/app/packs/stylesheets/decidim/theme/reset/_author_avatar.scss +182 -0
- data/app/packs/stylesheets/decidim/theme/reset/_badges.scss +159 -0
- data/app/packs/stylesheets/decidim/theme/reset/_base.scss +543 -0
- data/app/packs/stylesheets/decidim/theme/reset/_budget-list.scss +202 -0
- data/app/packs/stylesheets/decidim/theme/reset/_budget-meter.scss +85 -0
- data/app/packs/stylesheets/decidim/theme/reset/_buttons.scss +538 -0
- data/app/packs/stylesheets/decidim/theme/reset/_callout.scss +37 -0
- data/app/packs/stylesheets/decidim/theme/reset/_card.scss +1480 -0
- data/app/packs/stylesheets/decidim/theme/reset/_categories.scss +130 -0
- data/app/packs/stylesheets/decidim/theme/reset/_collapsible.scss +59 -0
- data/app/packs/stylesheets/decidim/theme/reset/_columns.scss +8 -0
- data/app/packs/stylesheets/decidim/theme/reset/_comments.scss +320 -0
- data/app/packs/stylesheets/decidim/theme/reset/_conversation.scss +158 -0
- data/app/packs/stylesheets/decidim/theme/reset/_data-consent.scss +133 -0
- data/app/packs/stylesheets/decidim/theme/reset/_data-picker.scss +243 -0
- data/app/packs/stylesheets/decidim/theme/reset/_definition_data.scss +93 -0
- data/app/packs/stylesheets/decidim/theme/reset/_docs-manager.scss +16 -0
- data/app/packs/stylesheets/decidim/theme/reset/_dropdown_menu.scss +312 -0
- data/app/packs/stylesheets/decidim/theme/reset/_errors.scss +87 -0
- data/app/packs/stylesheets/decidim/theme/reset/_extra.scss +56 -0
- data/app/packs/stylesheets/decidim/theme/reset/_filters.scss +224 -0
- data/app/packs/stylesheets/decidim/theme/reset/_floating_helper.scss +133 -0
- data/app/packs/stylesheets/decidim/theme/reset/_form.scss +176 -0
- data/app/packs/stylesheets/decidim/theme/reset/_home.scss +416 -0
- data/app/packs/stylesheets/decidim/theme/reset/_home_section.scss +23 -0
- data/app/packs/stylesheets/decidim/theme/reset/_horizontal-tabs.scss +130 -0
- data/app/packs/stylesheets/decidim/theme/reset/_icons.scss +3 -0
- data/app/packs/stylesheets/decidim/theme/reset/_inline-filters.scss +77 -0
- data/app/packs/stylesheets/decidim/theme/reset/_label.scss +79 -0
- data/app/packs/stylesheets/decidim/theme/reset/_labels.scss +53 -0
- data/app/packs/stylesheets/decidim/theme/reset/_layout.scss +82 -0
- data/app/packs/stylesheets/decidim/theme/reset/_lines_breadcrumb.scss +38 -0
- data/app/packs/stylesheets/decidim/theme/reset/_login.scss +3 -0
- data/app/packs/stylesheets/decidim/theme/reset/_logo_wrapper.scss +28 -0
- data/app/packs/stylesheets/decidim/theme/reset/_main_container.scss +96 -0
- data/app/packs/stylesheets/decidim/theme/reset/_metric-chart.scss +25 -0
- data/app/packs/stylesheets/decidim/theme/reset/_navbar.scss +763 -0
- data/app/packs/stylesheets/decidim/theme/reset/_opinion_toggle.scss +55 -0
- data/app/packs/stylesheets/decidim/theme/reset/_order-by.scss +34 -0
- data/app/packs/stylesheets/decidim/theme/reset/_org-chart.scss +6 -0
- data/app/packs/stylesheets/decidim/theme/reset/_pagination.scss +195 -0
- data/app/packs/stylesheets/decidim/theme/reset/_process.scss +20 -0
- data/app/packs/stylesheets/decidim/theme/reset/_process_header.scss +97 -0
- data/app/packs/stylesheets/decidim/theme/reset/_process_header_phase.scss +13 -0
- data/app/packs/stylesheets/decidim/theme/reset/_process_nav.scss +317 -0
- data/app/packs/stylesheets/decidim/theme/reset/_progress_bar.scss +89 -0
- data/app/packs/stylesheets/decidim/theme/reset/_quill.scss +47 -0
- data/app/packs/stylesheets/decidim/theme/reset/_result_per_page.scss +82 -0
- data/app/packs/stylesheets/decidim/theme/reset/_results.scss +158 -0
- data/app/packs/stylesheets/decidim/theme/reset/_reveal.scss +210 -0
- data/app/packs/stylesheets/decidim/theme/reset/_scope-picker.scss +10 -0
- data/app/packs/stylesheets/decidim/theme/reset/_select.scss +92 -0
- data/app/packs/stylesheets/decidim/theme/reset/_signup.scss +179 -0
- data/app/packs/stylesheets/decidim/theme/reset/_statistics.scss +42 -0
- data/app/packs/stylesheets/decidim/theme/reset/_switch.scss +272 -0
- data/app/packs/stylesheets/decidim/theme/reset/_tabs.scss +4 -0
- data/app/packs/stylesheets/decidim/theme/reset/_tags.scss +47 -0
- data/app/packs/stylesheets/decidim/theme/reset/_thumbnail.scss +66 -0
- data/app/packs/stylesheets/decidim/theme/reset/_timeline.scss +183 -0
- data/app/packs/stylesheets/decidim/theme/reset/_title_bar.scss +89 -0
- data/app/packs/stylesheets/decidim/theme/reset/_toggle.scss +14 -0
- data/app/packs/stylesheets/decidim/theme/reset/_tooltip.scss +173 -0
- data/app/packs/stylesheets/decidim/theme/reset/_typography.scss +283 -0
- data/app/packs/stylesheets/decidim/theme/reset/_upload_modal.scss +140 -0
- data/app/packs/stylesheets/decidim/theme/reset/_user-form.scss +15 -0
- data/app/packs/stylesheets/decidim/theme/reset/_user.scss +184 -0
- data/app/packs/stylesheets/decidim/theme/reset/_versions.scss +82 -0
- data/app/packs/stylesheets/decidim/theme/reset/_wrapper.scss +3 -0
- data/config/assets.rb +17 -0
- data/config/i18n-tasks.yml +10 -0
- data/config/locales/en.yml +62 -0
- data/config/locales/fr.yml +11 -0
- data/lib/decidim/theme/admin.rb +10 -0
- data/lib/decidim/theme/admin_engine.rb +27 -0
- data/lib/decidim/theme/engine.rb +29 -0
- data/lib/decidim/theme/test/factories.rb +13 -0
- data/lib/decidim/theme/version.rb +13 -0
- data/lib/decidim/theme.rb +12 -0
- metadata +271 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
.accountability {
|
|
2
|
+
.categories {
|
|
3
|
+
a:hover {
|
|
4
|
+
text-decoration: underline;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
a:focus {
|
|
8
|
+
outline: $anchor-outline-focus;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.categories--header {
|
|
12
|
+
border-bottom-width: 0;
|
|
13
|
+
padding-bottom: 1rem;
|
|
14
|
+
margin-bottom: 1.5rem;
|
|
15
|
+
|
|
16
|
+
.icon--arrow-bottom {
|
|
17
|
+
fill: var(--emphasis-lowest);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
span {
|
|
21
|
+
@extend .body-3;
|
|
22
|
+
color: var(--emphasis-lowest);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.categories--group {
|
|
27
|
+
margin-bottom: 2rem;
|
|
28
|
+
|
|
29
|
+
@include breakpoint(medium) {
|
|
30
|
+
display: flex;
|
|
31
|
+
margin-bottom: 4rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.category--title {
|
|
35
|
+
@extend .card;
|
|
36
|
+
margin-bottom: 0;
|
|
37
|
+
box-shadow: none;
|
|
38
|
+
min-height: auto;
|
|
39
|
+
|
|
40
|
+
@include breakpoint(medium) {
|
|
41
|
+
min-height: auto;
|
|
42
|
+
}
|
|
43
|
+
p {
|
|
44
|
+
margin-bottom: 1rem;
|
|
45
|
+
}
|
|
46
|
+
p > a {
|
|
47
|
+
@extend .heading-4;
|
|
48
|
+
@extend .heading-4-link;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.progress {
|
|
52
|
+
margin-bottom: 0.3rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.progress-info {
|
|
56
|
+
position: relative;
|
|
57
|
+
margin-bottom: 2rem;
|
|
58
|
+
|
|
59
|
+
.progress-figure {
|
|
60
|
+
display: inline-block;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.category--count {
|
|
64
|
+
position: absolute;
|
|
65
|
+
right: 0;
|
|
66
|
+
top: 0.5rem;
|
|
67
|
+
color: var(--emphasis-lowest);
|
|
68
|
+
@extend .body-4;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.card__link {
|
|
74
|
+
.category--line {
|
|
75
|
+
@extend .card;
|
|
76
|
+
box-shadow: none;
|
|
77
|
+
background-color: var(--grey2);
|
|
78
|
+
color: var(--primary);
|
|
79
|
+
min-height: 9rem;
|
|
80
|
+
position: relative;
|
|
81
|
+
|
|
82
|
+
strong {
|
|
83
|
+
font-weight: normal;
|
|
84
|
+
@extend .body-4;
|
|
85
|
+
@extend .body-4-link;
|
|
86
|
+
color: var(--primary);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.progress-figure {
|
|
90
|
+
position: absolute;
|
|
91
|
+
bottom: 1rem;
|
|
92
|
+
@extend .heading-4;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.category--count {
|
|
96
|
+
color: var(--primary);
|
|
97
|
+
position: absolute;
|
|
98
|
+
right: 1rem;
|
|
99
|
+
bottom: 1rem;
|
|
100
|
+
@extend .body-6;
|
|
101
|
+
opacity: 0.8;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:hover {
|
|
106
|
+
.category--count {
|
|
107
|
+
color: var(--primary);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
strong {
|
|
111
|
+
color: var(--primary);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.category--elements.active {
|
|
118
|
+
display: block !important;
|
|
119
|
+
|
|
120
|
+
.medium-4:first-child {
|
|
121
|
+
margin-top: 1rem;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.progress-figure {
|
|
126
|
+
@extend .heading-4;
|
|
127
|
+
color: var(--emphasis-lowest);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.collapsible-list {
|
|
2
|
+
&.is-filtered {
|
|
3
|
+
@for $i from 1 through 12 {
|
|
4
|
+
&.show-#{$i} {
|
|
5
|
+
.collapse:nth-of-type(n + #{$i + 1}),
|
|
6
|
+
> div:nth-of-type(n + #{$i + 1}) {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.collapsible-list__see-more {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
|
|
15
|
+
+ .text-small {
|
|
16
|
+
padding-top: 0.15rem;
|
|
17
|
+
padding-left: 0.2rem;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.collapsible-list__see-less {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.collapsible-list__see-less {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
color: var(--secondary);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.collapsible-list__see-less:hover {
|
|
32
|
+
color: var(--secondary);
|
|
33
|
+
text-decoration: underline;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.collapsible-list__see-more {
|
|
37
|
+
display: none;
|
|
38
|
+
color: var(--secondary);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.collapsible-list__see-more:hover {
|
|
42
|
+
color: var(--secondary);
|
|
43
|
+
text-decoration: underline;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.card__text--paragraph {
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
color: var(--emphasis-low) !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.card__text--paragraph:hover {
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
> * {
|
|
56
|
+
display: inline-flex;
|
|
57
|
+
margin: 0 0 0.5rem;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
/* Variables */
|
|
2
|
+
$comment-padding: 1rem;
|
|
3
|
+
|
|
4
|
+
$comment-vote-up-color: $success;
|
|
5
|
+
$comment-vote-down-color: $alert;
|
|
6
|
+
|
|
7
|
+
$comment-nested-bg: $light-gray;
|
|
8
|
+
$comment-nested-alt-bg: $white;
|
|
9
|
+
|
|
10
|
+
$comment-form-bg: $light-gray;
|
|
11
|
+
|
|
12
|
+
/* Comments */
|
|
13
|
+
|
|
14
|
+
.comments {
|
|
15
|
+
padding-top: 3rem;
|
|
16
|
+
.dropdown.menu {
|
|
17
|
+
transform: translateY(0);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.comment-thread {
|
|
22
|
+
@extend .card;
|
|
23
|
+
|
|
24
|
+
.show-comment-replies {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.hide-comment-replies {
|
|
29
|
+
display: inline;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.comment__hide {
|
|
33
|
+
float: left;
|
|
34
|
+
margin-bottom: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.no-comments {
|
|
38
|
+
.show-comment-replies {
|
|
39
|
+
display: inline;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.hide-comment-replies,
|
|
43
|
+
.replies {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.comment-thread__title {
|
|
50
|
+
font-weight: normal;
|
|
51
|
+
font-size: 90%;
|
|
52
|
+
text-transform: none;
|
|
53
|
+
color: $muted;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.comment__header {
|
|
57
|
+
padding: $comment-padding;
|
|
58
|
+
display: flex;
|
|
59
|
+
|
|
60
|
+
.comment__edited,
|
|
61
|
+
.comment__moderated,
|
|
62
|
+
.comment__deleted {
|
|
63
|
+
font-style: italic;
|
|
64
|
+
color: $muted;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__context-menu {
|
|
68
|
+
position: relative;
|
|
69
|
+
margin-left: auto;
|
|
70
|
+
|
|
71
|
+
label {
|
|
72
|
+
transform: rotate(90deg);
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__content {
|
|
77
|
+
list-style-type: none;
|
|
78
|
+
width: max-content;
|
|
79
|
+
min-width: 180px;
|
|
80
|
+
padding: 0;
|
|
81
|
+
margin: 0;
|
|
82
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
position: absolute;
|
|
85
|
+
&-item {
|
|
86
|
+
width: 100%;
|
|
87
|
+
@extend .body-4;
|
|
88
|
+
@extend .body-4-link;
|
|
89
|
+
padding: $comment-padding * 0.5 $comment-padding;
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: baseline;
|
|
92
|
+
gap: $comment-padding;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
|
|
95
|
+
span {
|
|
96
|
+
line-height: $paragraph-lineheight;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.icon {
|
|
100
|
+
width: 14px;
|
|
101
|
+
height: 14px;
|
|
102
|
+
transform: translateY(2px);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&__content li:hover {
|
|
108
|
+
background-color: $light-gray-dark;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&__content li:not(:first-child) {
|
|
112
|
+
border-top: 1px solid $medium-gray;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.comment__content {
|
|
118
|
+
padding: 0 $comment-padding;
|
|
119
|
+
overflow-wrap: break-word;
|
|
120
|
+
hyphens: auto;
|
|
121
|
+
|
|
122
|
+
> :last-child {
|
|
123
|
+
margin-bottom: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
p:empty {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.comment__additionalreply {
|
|
132
|
+
padding: $comment-padding;
|
|
133
|
+
font-size: 90%;
|
|
134
|
+
|
|
135
|
+
@include clearfix;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.comment__footer {
|
|
139
|
+
padding: $comment-padding;
|
|
140
|
+
font-size: 90%;
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-wrap: wrap;
|
|
143
|
+
align-items: baseline;
|
|
144
|
+
justify-content: space-between;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.comment--nested {
|
|
148
|
+
background: $comment-nested-bg;
|
|
149
|
+
margin: $comment-padding;
|
|
150
|
+
padding-bottom: 1px;
|
|
151
|
+
|
|
152
|
+
&.comment--nested--alt {
|
|
153
|
+
background: $comment-nested-alt-bg;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&:first-of-type {
|
|
157
|
+
margin-top: 0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.comment__actions {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-wrap: wrap;
|
|
164
|
+
|
|
165
|
+
> button,
|
|
166
|
+
a {
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
margin-top: 0.5rem;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.comment__reply,
|
|
173
|
+
.comment__reply[data-toggle] {
|
|
174
|
+
float: left;
|
|
175
|
+
color: $muted;
|
|
176
|
+
margin-right: 0.75rem;
|
|
177
|
+
margin-bottom: 0;
|
|
178
|
+
|
|
179
|
+
span {
|
|
180
|
+
margin-right: 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&.muted-link {
|
|
184
|
+
color: $anchor-color;
|
|
185
|
+
|
|
186
|
+
&:hover {
|
|
187
|
+
color: $anchor-color-hover;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.comment__votes {
|
|
193
|
+
float: right;
|
|
194
|
+
margin-top: 0.5rem;
|
|
195
|
+
|
|
196
|
+
form.button_to {
|
|
197
|
+
display: inline-block;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.comment__votes--up {
|
|
202
|
+
color: $muted;
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
.icon {
|
|
205
|
+
color: $comment-vote-up-color;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&:hover,
|
|
209
|
+
&.is-vote-selected {
|
|
210
|
+
color: darken($comment-vote-up-color, 10);
|
|
211
|
+
|
|
212
|
+
.icon {
|
|
213
|
+
color: inherit;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&.is-vote-notselected {
|
|
218
|
+
color: $muted;
|
|
219
|
+
opacity: 0.3;
|
|
220
|
+
|
|
221
|
+
.icon {
|
|
222
|
+
color: inherit;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.comment__votes--down {
|
|
228
|
+
color: $muted;
|
|
229
|
+
padding-left: 0.3rem;
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
|
|
232
|
+
.icon {
|
|
233
|
+
color: $comment-vote-down-color;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&:hover,
|
|
237
|
+
&.is-vote-selected {
|
|
238
|
+
color: darken($comment-vote-down-color, 10);
|
|
239
|
+
|
|
240
|
+
.icon {
|
|
241
|
+
color: inherit;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&.is-vote-notselected {
|
|
246
|
+
color: $muted;
|
|
247
|
+
opacity: 0.3;
|
|
248
|
+
|
|
249
|
+
.icon {
|
|
250
|
+
color: inherit;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.comment__quote {
|
|
256
|
+
border-left-width: 6px;
|
|
257
|
+
font-size: 80%;
|
|
258
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
259
|
+
padding: 1rem;
|
|
260
|
+
margin-bottom: 1rem;
|
|
261
|
+
|
|
262
|
+
> p:last-of-type {
|
|
263
|
+
margin-bottom: 0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
> br {
|
|
267
|
+
display: none;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* Comment form */
|
|
272
|
+
|
|
273
|
+
.comment__quote {
|
|
274
|
+
border-left-width: 6px;
|
|
275
|
+
font-size: 80%;
|
|
276
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
277
|
+
padding: 1rem;
|
|
278
|
+
margin-bottom: 1rem;
|
|
279
|
+
|
|
280
|
+
> p:last-child {
|
|
281
|
+
margin-bottom: 0;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.add-comment {
|
|
286
|
+
background: $comment-form-bg;
|
|
287
|
+
padding: $comment-padding;
|
|
288
|
+
|
|
289
|
+
a:hover {
|
|
290
|
+
text-decoration: underline;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.button {
|
|
294
|
+
margin-bottom: 0;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.add-comment--reply {
|
|
299
|
+
display: none;
|
|
300
|
+
|
|
301
|
+
&.is-active {
|
|
302
|
+
display: block;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* Comments toggle */
|
|
307
|
+
|
|
308
|
+
.comment {
|
|
309
|
+
&__text-is-open {
|
|
310
|
+
display: none;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&__is-open &__text-is-open {
|
|
314
|
+
display: inline;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&__is-open &__text-is-closed {
|
|
318
|
+
display: none;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
.conversation {
|
|
2
|
+
.conversation-header {
|
|
3
|
+
@extend .p-m;
|
|
4
|
+
justify-content: flex-start !important;
|
|
5
|
+
gap: 1rem;
|
|
6
|
+
border-bottom: $border;
|
|
7
|
+
|
|
8
|
+
h1 {
|
|
9
|
+
font-size: $global-font-size;
|
|
10
|
+
font-weight: normal;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
img {
|
|
14
|
+
width: rem-calc(66);
|
|
15
|
+
height: rem-calc(66);
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
margin-left: 2.5rem;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.conversation-chat {
|
|
22
|
+
@include flex;
|
|
23
|
+
@include flex-align(left, top);
|
|
24
|
+
@include flexgap($global-margin);
|
|
25
|
+
|
|
26
|
+
@extend .mt-s;
|
|
27
|
+
|
|
28
|
+
width: 75%;
|
|
29
|
+
|
|
30
|
+
&.conversation-chat--offset {
|
|
31
|
+
@include flex-direction(row-reverse);
|
|
32
|
+
@include flexgap($global-margin, row-reverse);
|
|
33
|
+
|
|
34
|
+
margin-left: auto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
> :first-child {
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
> div {
|
|
42
|
+
flex: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.p-s {
|
|
46
|
+
> p:last-child {
|
|
47
|
+
margin-bottom: 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
img {
|
|
52
|
+
width: rem-calc(33px);
|
|
53
|
+
height: rem-calc(33px);
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.card {
|
|
58
|
+
margin-bottom: $global-margin * 0.5;
|
|
59
|
+
border: 1px solid var(--grey2);
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.card:last-of-type {
|
|
64
|
+
margin-bottom: 0;
|
|
65
|
+
}
|
|
66
|
+
.text-small {
|
|
67
|
+
@extend .body-6;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.conversation-reply {
|
|
72
|
+
@extend .mt-s;
|
|
73
|
+
|
|
74
|
+
width: 75%;
|
|
75
|
+
.button.secondary.light {
|
|
76
|
+
@extend .btn;
|
|
77
|
+
@extend .btn--primary;
|
|
78
|
+
}
|
|
79
|
+
&.conversation-reply--offset {
|
|
80
|
+
margin-left: auto;
|
|
81
|
+
.medium-offset-3 {
|
|
82
|
+
margin-left: 21%;
|
|
83
|
+
width: 79% !important;
|
|
84
|
+
}
|
|
85
|
+
h5.section-heading {
|
|
86
|
+
@extend .body-3;
|
|
87
|
+
@extend .body-3-medium;
|
|
88
|
+
margin-bottom: 1rem;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.conversations {
|
|
95
|
+
.card--list__item {
|
|
96
|
+
align-items: stretch;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.conversation-groups {
|
|
101
|
+
.title-action {
|
|
102
|
+
margin-bottom: 0.8rem;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Conversations in user profile pages to full length
|
|
107
|
+
.user-activity {
|
|
108
|
+
.conversation {
|
|
109
|
+
.conversation-reply {
|
|
110
|
+
width: 100%;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.disabled-tribute-element {
|
|
116
|
+
color: $muted;
|
|
117
|
+
|
|
118
|
+
span.disabled-tribute-element-info {
|
|
119
|
+
font-size: rem-calc(12);
|
|
120
|
+
font-weight: normal;
|
|
121
|
+
font-style: italic;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.tribute-container {
|
|
126
|
+
.disabled-tribute-element {
|
|
127
|
+
cursor: auto;
|
|
128
|
+
margin: -5px;
|
|
129
|
+
padding: 5px;
|
|
130
|
+
z-index: 10;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
#user-conversations-add-modal {
|
|
135
|
+
.js-multiple-mentions-recipients label {
|
|
136
|
+
background: white;
|
|
137
|
+
padding: 0.5rem !important;
|
|
138
|
+
display: flex;
|
|
139
|
+
justify-content: flex-start;
|
|
140
|
+
align-items: center;
|
|
141
|
+
margin: 0.2rem 0;
|
|
142
|
+
gap: 0.5rem;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
&:hover,
|
|
145
|
+
&:focus {
|
|
146
|
+
color: var(--primary);
|
|
147
|
+
background: var(--primary-10);
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
}
|
|
150
|
+
.float-right {
|
|
151
|
+
font-size: 16px;
|
|
152
|
+
color: var(--primary);
|
|
153
|
+
align-self: baseline;
|
|
154
|
+
flex-grow: 2;
|
|
155
|
+
text-align: right;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|