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,538 @@
|
|
|
1
|
+
.close-button {
|
|
2
|
+
@extend .body-4;
|
|
3
|
+
@extend .body-4-link;
|
|
4
|
+
font-size: 1em;
|
|
5
|
+
color: var(--emphasis-med) !important;
|
|
6
|
+
&:hover,
|
|
7
|
+
&:focus {
|
|
8
|
+
text-decoration: none !important;
|
|
9
|
+
}
|
|
10
|
+
transform: scale(1.5) translateY(1px);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
a.button,
|
|
14
|
+
button.button,
|
|
15
|
+
[type="submit"].button,
|
|
16
|
+
.button {
|
|
17
|
+
@extend .btn;
|
|
18
|
+
@extend .btn--primary;
|
|
19
|
+
position: relative;
|
|
20
|
+
|
|
21
|
+
&.light,
|
|
22
|
+
&.secondary.light,
|
|
23
|
+
&.button--shadow,
|
|
24
|
+
&.secondary.button--shadow,
|
|
25
|
+
&.hollow,
|
|
26
|
+
&.secondary.hollow,
|
|
27
|
+
&.light:not(.hollow):not(.meeting-polls__button).secondary,
|
|
28
|
+
&.light.meeting-polls__button:not(.hollow):not(.meeting-polls__button).secondary {
|
|
29
|
+
@extend .btn--secondary;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.expanded,
|
|
33
|
+
.expanded {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
width: auto;
|
|
36
|
+
margin-right: 0;
|
|
37
|
+
margin-left: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.small,
|
|
41
|
+
.small {
|
|
42
|
+
@extend .btn;
|
|
43
|
+
@extend .btn--small;
|
|
44
|
+
@extend .body-4;
|
|
45
|
+
&.compact {
|
|
46
|
+
@extend .btn;
|
|
47
|
+
@extend .btn--small;
|
|
48
|
+
@extend .body-4;
|
|
49
|
+
letter-spacing: normal;
|
|
50
|
+
white-space: initial;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.tiny,
|
|
55
|
+
.tiny,
|
|
56
|
+
&.compact,
|
|
57
|
+
.compact {
|
|
58
|
+
@extend .btn--small;
|
|
59
|
+
letter-spacing: normal;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.button--right {
|
|
63
|
+
float: right;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
a {
|
|
67
|
+
color: inherit;
|
|
68
|
+
text-decoration: none;
|
|
69
|
+
&:hover,
|
|
70
|
+
&:focus {
|
|
71
|
+
text-decoration: none;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.focus,
|
|
76
|
+
&:focus,
|
|
77
|
+
&.hover,
|
|
78
|
+
&:hover,
|
|
79
|
+
&.active,
|
|
80
|
+
&:active {
|
|
81
|
+
box-shadow: initial;
|
|
82
|
+
filter: none;
|
|
83
|
+
}
|
|
84
|
+
&.disabled,
|
|
85
|
+
&[disabled] {
|
|
86
|
+
@extend .btn--disabled;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.primary {
|
|
90
|
+
@extend .btn--primary;
|
|
91
|
+
}
|
|
92
|
+
&.secondary {
|
|
93
|
+
@extend .btn--secondary;
|
|
94
|
+
}
|
|
95
|
+
&.success {
|
|
96
|
+
@extend .btn--primary;
|
|
97
|
+
}
|
|
98
|
+
&.alert {
|
|
99
|
+
@extend .btn--danger;
|
|
100
|
+
}
|
|
101
|
+
&.warning {
|
|
102
|
+
@extend .btn--warning;
|
|
103
|
+
}
|
|
104
|
+
&.clear {
|
|
105
|
+
&,
|
|
106
|
+
&.secondary,
|
|
107
|
+
&.success,
|
|
108
|
+
&.alert,
|
|
109
|
+
&.warning {
|
|
110
|
+
background-color: transparent;
|
|
111
|
+
border: unset;
|
|
112
|
+
@extend .body-4;
|
|
113
|
+
@extend .body-4-nocaps;
|
|
114
|
+
@extend .body-4-link;
|
|
115
|
+
|
|
116
|
+
&.hover,
|
|
117
|
+
&:hover,
|
|
118
|
+
&.focus,
|
|
119
|
+
&:focus {
|
|
120
|
+
background-color: transparent;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.secondary {
|
|
125
|
+
color: var(--secondary);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.success {
|
|
129
|
+
color: var(--green);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.alert {
|
|
133
|
+
color: var(--red);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.warning {
|
|
137
|
+
color: var(--yellow);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.progress-meter {
|
|
143
|
+
background-color: var(--secondary);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Button groups
|
|
147
|
+
.button-group--collapse {
|
|
148
|
+
text-align: left;
|
|
149
|
+
margin-bottom: initial;
|
|
150
|
+
display: inline-flex;
|
|
151
|
+
|
|
152
|
+
> :last-child {
|
|
153
|
+
flex: 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
> :first-child,
|
|
157
|
+
> :first-child * {
|
|
158
|
+
border-top-right-radius: 0;
|
|
159
|
+
border-bottom-right-radius: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
> :last-child,
|
|
163
|
+
> :last-child * {
|
|
164
|
+
border-top-left-radius: 0;
|
|
165
|
+
border-bottom-left-radius: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
> :not(:first-child):not(:last-child),
|
|
169
|
+
> :not(:first-child):not(:last-child) * {
|
|
170
|
+
border-radius: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.no-gaps {
|
|
174
|
+
.button {
|
|
175
|
+
margin-right: initial;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// buttons layout
|
|
181
|
+
.buttons__row {
|
|
182
|
+
@include flexgap(0);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.buttons__column {
|
|
186
|
+
@include flexgap(0, column);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Extra buttons styles */
|
|
190
|
+
|
|
191
|
+
.button--shadow {
|
|
192
|
+
$shadows: (
|
|
193
|
+
primary: initial,
|
|
194
|
+
secondary: initial,
|
|
195
|
+
success: initial,
|
|
196
|
+
warning: initial,
|
|
197
|
+
alert: initial,
|
|
198
|
+
muted: initial,
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
@include modifiers(background-color, $shadows) {
|
|
202
|
+
color: var(--white);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.button--icon {
|
|
207
|
+
display: inline-flex;
|
|
208
|
+
gap: rem-calc(4);
|
|
209
|
+
position: static;
|
|
210
|
+
|
|
211
|
+
.icon-wrap {
|
|
212
|
+
position: static;
|
|
213
|
+
left: initial;
|
|
214
|
+
top: initial;
|
|
215
|
+
padding: initial;
|
|
216
|
+
border-right: initial;
|
|
217
|
+
height: rem-calc(24);
|
|
218
|
+
min-width: initial;
|
|
219
|
+
white-space: initial;
|
|
220
|
+
padding-right: initial;
|
|
221
|
+
transform: translateY(-2px);
|
|
222
|
+
.icon {
|
|
223
|
+
margin: initial;
|
|
224
|
+
vertical-align: initial;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.text-wrap {
|
|
229
|
+
display: inline-flex;
|
|
230
|
+
margin-left: initial;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.icon {
|
|
234
|
+
margin: initial;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&.hollow {
|
|
238
|
+
@extend .btn--secondary;
|
|
239
|
+
.icon-wrap {
|
|
240
|
+
border-right: initial;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&,
|
|
244
|
+
&.secondary {
|
|
245
|
+
.icon-wrap {
|
|
246
|
+
border-right: initial;
|
|
247
|
+
}
|
|
248
|
+
&:hover,
|
|
249
|
+
&:focus {
|
|
250
|
+
color: var(--primary);
|
|
251
|
+
background: var(--primary-10);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&.small {
|
|
257
|
+
.icon-wrap {
|
|
258
|
+
padding: 4px;
|
|
259
|
+
min-width: 12px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.icon {
|
|
263
|
+
width: 12px;
|
|
264
|
+
height: 12px;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.button--nomargin {
|
|
270
|
+
margin: 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.button--frosted {
|
|
274
|
+
background-color: initial;
|
|
275
|
+
color: initial;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.button--muted {
|
|
279
|
+
@extend .btn--disabled;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.button--sc {
|
|
283
|
+
font-weight: var(--font-weight-medium);
|
|
284
|
+
letter-spacing: normal;
|
|
285
|
+
&.hollow {
|
|
286
|
+
font-weight: var(--font-weight-medium);
|
|
287
|
+
letter-spacing: normal;
|
|
288
|
+
}
|
|
289
|
+
&.button {
|
|
290
|
+
font-weight: var(--font-weight-medium);
|
|
291
|
+
@extend .body-4-nocaps;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
//highligthted process button
|
|
296
|
+
.large-6.large-offset-6.columns {
|
|
297
|
+
& > .button.expanded.button--sc {
|
|
298
|
+
@extend .highlighted-button;
|
|
299
|
+
line-height: 0.75rem;
|
|
300
|
+
&:nth-child(2) {
|
|
301
|
+
@extend .body-4;
|
|
302
|
+
@extend .body-4-bold;
|
|
303
|
+
@extend .body-4-caps;
|
|
304
|
+
}
|
|
305
|
+
& > .button__info {
|
|
306
|
+
@extend .body-6;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
.o-proposals .view-side .card__content {
|
|
311
|
+
padding: 1rem;
|
|
312
|
+
gap: 0rem;
|
|
313
|
+
align-items: center;
|
|
314
|
+
justify-content: center;
|
|
315
|
+
& .button--vote-button {
|
|
316
|
+
margin: 0.5rem auto 2rem auto;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
.view-side .card__content {
|
|
320
|
+
.buttons__row {
|
|
321
|
+
width: 100%;
|
|
322
|
+
}
|
|
323
|
+
.button-group {
|
|
324
|
+
div.button.secondary,
|
|
325
|
+
div.button.primary,
|
|
326
|
+
div.button {
|
|
327
|
+
&:hover,
|
|
328
|
+
&:focus {
|
|
329
|
+
background: transparent;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
& > :first-child,
|
|
334
|
+
& > :first-child * {
|
|
335
|
+
border-top-right-radius: 0;
|
|
336
|
+
border-bottom-right-radius: 0;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
& > :last-child,
|
|
340
|
+
& > :last-child * {
|
|
341
|
+
border-top-left-radius: 0;
|
|
342
|
+
border-bottom-left-radius: 0;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
& > .button:first-child {
|
|
346
|
+
padding: rem-calc(12px) rem-calc(16);
|
|
347
|
+
padding-right: rem-calc(8);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
& > :last-child .button {
|
|
351
|
+
padding: rem-calc(12px) rem-calc(16);
|
|
352
|
+
padding-left: rem-calc(8);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
.button__info {
|
|
357
|
+
@extend .body-6;
|
|
358
|
+
max-width: auto;
|
|
359
|
+
overflow: hidden;
|
|
360
|
+
text-overflow: ellipsis;
|
|
361
|
+
white-space: nowrap;
|
|
362
|
+
text-align: center;
|
|
363
|
+
letter-spacing: 0.01em;
|
|
364
|
+
flex: none;
|
|
365
|
+
order: 1;
|
|
366
|
+
align-self: stretch;
|
|
367
|
+
flex-grow: 0;
|
|
368
|
+
margin-top: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
button[type="submit"] {
|
|
372
|
+
&.link > svg,
|
|
373
|
+
&.button > svg {
|
|
374
|
+
display: inline-block !important;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.link {
|
|
379
|
+
@extend .body-4;
|
|
380
|
+
@extend .body-4-medium;
|
|
381
|
+
@extend .body-4-link;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.link-alt {
|
|
385
|
+
cursor: initial;
|
|
386
|
+
color: initial;
|
|
387
|
+
font-weight: initial;
|
|
388
|
+
|
|
389
|
+
&:hover {
|
|
390
|
+
color: initial;
|
|
391
|
+
text-decoration: initial;
|
|
392
|
+
text-decoration-skip-ink: initial;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.muted-link {
|
|
397
|
+
font-weight: initial;
|
|
398
|
+
color: initial;
|
|
399
|
+
|
|
400
|
+
&:hover {
|
|
401
|
+
color: initial;
|
|
402
|
+
text-decoration: initial;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.show-more {
|
|
407
|
+
text-align: initial;
|
|
408
|
+
margin-bottom: initial;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/* Social buttons */
|
|
412
|
+
|
|
413
|
+
.button--social {
|
|
414
|
+
@extend .btn;
|
|
415
|
+
@extend .btn--small;
|
|
416
|
+
display: inline-flex;
|
|
417
|
+
min-width: initial;
|
|
418
|
+
flex-grow: 1;
|
|
419
|
+
|
|
420
|
+
&::after {
|
|
421
|
+
content: "";
|
|
422
|
+
clear: both;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.button--social__icon,
|
|
427
|
+
.button--social__text {
|
|
428
|
+
display: inline-flex;
|
|
429
|
+
padding: initial;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.button--social__icon {
|
|
433
|
+
display: inline-flex;
|
|
434
|
+
position: static;
|
|
435
|
+
top: initial;
|
|
436
|
+
bottom: initial;
|
|
437
|
+
vertical-align: initial;
|
|
438
|
+
padding: initial;
|
|
439
|
+
border-right: initial;
|
|
440
|
+
margin-right: initial;
|
|
441
|
+
min-width: initial;
|
|
442
|
+
text-align: initial;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.button--social__text {
|
|
446
|
+
margin-left: initial;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.button--social--mini {
|
|
450
|
+
padding: initial;
|
|
451
|
+
min-width: initial;
|
|
452
|
+
|
|
453
|
+
.button--social__icon {
|
|
454
|
+
border: initial;
|
|
455
|
+
padding: initial;
|
|
456
|
+
margin-right: initial;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.button--twitter {
|
|
461
|
+
background-color: initial;
|
|
462
|
+
|
|
463
|
+
&:hover {
|
|
464
|
+
background-color: initial;
|
|
465
|
+
filter: initial;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.button--facebook {
|
|
470
|
+
background-color: initial;
|
|
471
|
+
|
|
472
|
+
&:hover {
|
|
473
|
+
background-color: initial;
|
|
474
|
+
filter: initial;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.button--google {
|
|
479
|
+
background-color: initial;
|
|
480
|
+
font-family: initial;
|
|
481
|
+
|
|
482
|
+
&:hover {
|
|
483
|
+
background-color: initial;
|
|
484
|
+
filter: initial;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.button--social__icon {
|
|
488
|
+
padding: initial;
|
|
489
|
+
|
|
490
|
+
svg.icon {
|
|
491
|
+
fill: var(--secondary);
|
|
492
|
+
width: rem-calc(12);
|
|
493
|
+
height: rem-calc(12);
|
|
494
|
+
margin-top: 0;
|
|
495
|
+
|
|
496
|
+
/*
|
|
497
|
+
* This is a hack to comply with google guidelines
|
|
498
|
+
* https://developers.google.com/identity/branding-guidelines
|
|
499
|
+
* Currently the icons.svg file have the wrong google icon, until that's fixed
|
|
500
|
+
* google icon can be specified in secrets.yml with icon_path: decidim/brands/google.svg
|
|
501
|
+
* however to facilitate upgrades this provides a fallback
|
|
502
|
+
*/
|
|
503
|
+
max-width: rem-calc(12);
|
|
504
|
+
max-height: rem-calc(12);
|
|
505
|
+
|
|
506
|
+
&.icon--google {
|
|
507
|
+
> use {
|
|
508
|
+
display: block;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
background-image: none;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
&.button--social--mini {
|
|
517
|
+
.button--social__icon {
|
|
518
|
+
font-size: initial;
|
|
519
|
+
min-width: initial;
|
|
520
|
+
padding: initial;
|
|
521
|
+
|
|
522
|
+
svg.icon {
|
|
523
|
+
margin: initial;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
.button svg {
|
|
529
|
+
overflow: visible;
|
|
530
|
+
}
|
|
531
|
+
.button-group--collapse > :first-child {
|
|
532
|
+
border-right-width: 0 !important;
|
|
533
|
+
margin-right: 0;
|
|
534
|
+
padding-left: 0.5rem;
|
|
535
|
+
}
|
|
536
|
+
.button-group--collapse > :last-child {
|
|
537
|
+
padding-right: 0.5rem;
|
|
538
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Callout foundation overwrites */
|
|
2
|
+
|
|
3
|
+
.callout {
|
|
4
|
+
&,
|
|
5
|
+
&:focus-visible {
|
|
6
|
+
outline: unset;
|
|
7
|
+
}
|
|
8
|
+
&.primary {
|
|
9
|
+
background: $light-gray;
|
|
10
|
+
border-color: var(--grey2);
|
|
11
|
+
border-left: 1px solid var(--grey2);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.secondary {
|
|
15
|
+
border-color: var(--grey2);
|
|
16
|
+
border-left: 1px solid var(--grey2);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.success {
|
|
20
|
+
border-color: var(--green);
|
|
21
|
+
border-left: 1px solid var(--green);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.warning {
|
|
25
|
+
border-color: var(--yellow);
|
|
26
|
+
border-left: 1px solid var(--yellow);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.alert {
|
|
30
|
+
border-color: var(--red);
|
|
31
|
+
border-left: 8px solid var(--red);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.callout.flash {
|
|
36
|
+
margin-bottom: 1rem;
|
|
37
|
+
}
|