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.
Files changed (186) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE-AGPLv3.txt +661 -0
  3. data/README.md +104 -0
  4. data/Rakefile +9 -0
  5. data/app/cells/decidim/meetings/meeting_cell.rb +65 -0
  6. data/app/cells/decidim/meetings/meeting_s_overrides/show.erb +25 -0
  7. data/app/cells/decidim/meetings/meeting_s_overrides_cell.rb +53 -0
  8. data/app/controllers/decidim/theme/admin/application_controller.rb +15 -0
  9. data/app/controllers/decidim/theme/application_controller.rb +13 -0
  10. data/app/helpers/decidim/theme/application_helper.rb +10 -0
  11. data/app/models/decidim/theme/application_record.rb +10 -0
  12. data/app/overrides/insert_javascript_tag.rb +6 -0
  13. data/app/overrides/language_chooser_icon.rb +4 -0
  14. data/app/overrides/layouts/decidim/_main_footer/replace_content.html.erb.deface +96 -0
  15. data/app/overrides/layouts/decidim/_mini_footer/replace_content.html.erb.deface +25 -0
  16. data/app/overrides/mailer_styles.rb +36 -0
  17. data/app/overrides/prefix_body.rb +10 -0
  18. data/app/overrides/prefix_classes.rb +63 -0
  19. data/app/overrides/prefix_processes_wrapper.rb +10 -0
  20. data/app/packs/entrypoints/decidim_theme_email.js +1 -0
  21. data/app/packs/entrypoints/decidim_theme_email.scss +2 -0
  22. data/app/packs/entrypoints/decidim_theme_polyfill.js +5 -0
  23. data/app/packs/fonts/decidim/Inter-Black.woff +0 -0
  24. data/app/packs/fonts/decidim/Inter-Black.woff2 +0 -0
  25. data/app/packs/fonts/decidim/Inter-BlackItalic.woff +0 -0
  26. data/app/packs/fonts/decidim/Inter-BlackItalic.woff2 +0 -0
  27. data/app/packs/fonts/decidim/Inter-Bold.woff +0 -0
  28. data/app/packs/fonts/decidim/Inter-Bold.woff2 +0 -0
  29. data/app/packs/fonts/decidim/Inter-BoldItalic.woff +0 -0
  30. data/app/packs/fonts/decidim/Inter-BoldItalic.woff2 +0 -0
  31. data/app/packs/fonts/decidim/Inter-ExtraBold.woff +0 -0
  32. data/app/packs/fonts/decidim/Inter-ExtraBold.woff2 +0 -0
  33. data/app/packs/fonts/decidim/Inter-ExtraBoldItalic.woff +0 -0
  34. data/app/packs/fonts/decidim/Inter-ExtraBoldItalic.woff2 +0 -0
  35. data/app/packs/fonts/decidim/Inter-ExtraLight.woff +0 -0
  36. data/app/packs/fonts/decidim/Inter-ExtraLight.woff2 +0 -0
  37. data/app/packs/fonts/decidim/Inter-ExtraLightItalic.woff +0 -0
  38. data/app/packs/fonts/decidim/Inter-ExtraLightItalic.woff2 +0 -0
  39. data/app/packs/fonts/decidim/Inter-Italic.woff +0 -0
  40. data/app/packs/fonts/decidim/Inter-Italic.woff2 +0 -0
  41. data/app/packs/fonts/decidim/Inter-Light.woff +0 -0
  42. data/app/packs/fonts/decidim/Inter-Light.woff2 +0 -0
  43. data/app/packs/fonts/decidim/Inter-LightItalic.woff +0 -0
  44. data/app/packs/fonts/decidim/Inter-LightItalic.woff2 +0 -0
  45. data/app/packs/fonts/decidim/Inter-Medium.woff +0 -0
  46. data/app/packs/fonts/decidim/Inter-Medium.woff2 +0 -0
  47. data/app/packs/fonts/decidim/Inter-MediumItalic.woff +0 -0
  48. data/app/packs/fonts/decidim/Inter-MediumItalic.woff2 +0 -0
  49. data/app/packs/fonts/decidim/Inter-Regular.woff +0 -0
  50. data/app/packs/fonts/decidim/Inter-Regular.woff2 +0 -0
  51. data/app/packs/fonts/decidim/Inter-SemiBold.woff +0 -0
  52. data/app/packs/fonts/decidim/Inter-SemiBold.woff2 +0 -0
  53. data/app/packs/fonts/decidim/Inter-SemiBoldItalic.woff +0 -0
  54. data/app/packs/fonts/decidim/Inter-SemiBoldItalic.woff2 +0 -0
  55. data/app/packs/fonts/decidim/Inter-Thin.woff +0 -0
  56. data/app/packs/fonts/decidim/Inter-Thin.woff2 +0 -0
  57. data/app/packs/fonts/decidim/Inter-ThinItalic.woff +0 -0
  58. data/app/packs/fonts/decidim/Inter-ThinItalic.woff2 +0 -0
  59. data/app/packs/fonts/decidim/Inter-italic.var.woff2 +0 -0
  60. data/app/packs/fonts/decidim/Inter-roman.var.woff2 +0 -0
  61. data/app/packs/fonts/decidim/Inter.var.woff2 +0 -0
  62. data/app/packs/images/decidim/cc-by-sa-4.svg +8 -0
  63. data/app/packs/images/decidim/decidim-initial.svg +9 -0
  64. data/app/packs/images/decidim/theme/icon.svg +1 -0
  65. data/app/packs/javascripts/empty.polyfill.js +7 -0
  66. data/app/packs/javascripts/has.polyfill.js +30 -0
  67. data/app/packs/stylesheets/decidim/theme/_font_face.scss +180 -0
  68. data/app/packs/stylesheets/decidim/theme/_theme.scss +121 -0
  69. data/app/packs/stylesheets/decidim/theme/_theme_settings.scss +923 -0
  70. data/app/packs/stylesheets/decidim/theme/_theme_variables.scss +80 -0
  71. data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Generic.scss +98 -0
  72. data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Misc.scss +115 -0
  73. data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Navigation.scss +83 -0
  74. data/app/packs/stylesheets/decidim/theme/atoms/Typography/_Body.scss +88 -0
  75. data/app/packs/stylesheets/decidim/theme/atoms/Typography/_Headline.scss +98 -0
  76. data/app/packs/stylesheets/decidim/theme/atoms/Typography/_mixins.scss +109 -0
  77. data/app/packs/stylesheets/decidim/theme/email.scss +41 -0
  78. data/app/packs/stylesheets/decidim/theme/molecules/Callouts/_default.scss +41 -0
  79. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_card_process.scss +24 -0
  80. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_data-item.scss +31 -0
  81. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_documents.scss +46 -0
  82. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_extra.scss +32 -0
  83. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_upcoming_meetings.scss +47 -0
  84. data/app/packs/stylesheets/decidim/theme/organisms/_account.scss +129 -0
  85. data/app/packs/stylesheets/decidim/theme/organisms/_accountability.scss +119 -0
  86. data/app/packs/stylesheets/decidim/theme/organisms/_assembly.scss +5 -0
  87. data/app/packs/stylesheets/decidim/theme/organisms/_authorizations.scss +25 -0
  88. data/app/packs/stylesheets/decidim/theme/organisms/_blog.scss +77 -0
  89. data/app/packs/stylesheets/decidim/theme/organisms/_budgets.scss +221 -0
  90. data/app/packs/stylesheets/decidim/theme/organisms/_cookie_warning.scss +6 -0
  91. data/app/packs/stylesheets/decidim/theme/organisms/_debate.scss +65 -0
  92. data/app/packs/stylesheets/decidim/theme/organisms/_footer.scss +145 -0
  93. data/app/packs/stylesheets/decidim/theme/organisms/_groups.scss +49 -0
  94. data/app/packs/stylesheets/decidim/theme/organisms/_logins.scss +45 -0
  95. data/app/packs/stylesheets/decidim/theme/organisms/_meetings.scss +214 -0
  96. data/app/packs/stylesheets/decidim/theme/organisms/_members.scss +6 -0
  97. data/app/packs/stylesheets/decidim/theme/organisms/_messaging.scss +118 -0
  98. data/app/packs/stylesheets/decidim/theme/organisms/_metrics.scss +31 -0
  99. data/app/packs/stylesheets/decidim/theme/organisms/_notifications.scss +20 -0
  100. data/app/packs/stylesheets/decidim/theme/organisms/_processes.scss +12 -0
  101. data/app/packs/stylesheets/decidim/theme/organisms/_proposals.scss +150 -0
  102. data/app/packs/stylesheets/decidim/theme/organisms/_search.scss +12 -0
  103. data/app/packs/stylesheets/decidim/theme/organisms/_sortitions.scss +65 -0
  104. data/app/packs/stylesheets/decidim/theme/organisms/_surveys.scss +65 -0
  105. data/app/packs/stylesheets/decidim/theme/organisms/_text_page.scss +115 -0
  106. data/app/packs/stylesheets/decidim/theme/organisms/_user_conversations.scss +7 -0
  107. data/app/packs/stylesheets/decidim/theme/reset/_author.scss +36 -0
  108. data/app/packs/stylesheets/decidim/theme/reset/_author_avatar.scss +182 -0
  109. data/app/packs/stylesheets/decidim/theme/reset/_badges.scss +159 -0
  110. data/app/packs/stylesheets/decidim/theme/reset/_base.scss +543 -0
  111. data/app/packs/stylesheets/decidim/theme/reset/_budget-list.scss +202 -0
  112. data/app/packs/stylesheets/decidim/theme/reset/_budget-meter.scss +85 -0
  113. data/app/packs/stylesheets/decidim/theme/reset/_buttons.scss +538 -0
  114. data/app/packs/stylesheets/decidim/theme/reset/_callout.scss +37 -0
  115. data/app/packs/stylesheets/decidim/theme/reset/_card.scss +1480 -0
  116. data/app/packs/stylesheets/decidim/theme/reset/_categories.scss +130 -0
  117. data/app/packs/stylesheets/decidim/theme/reset/_collapsible.scss +59 -0
  118. data/app/packs/stylesheets/decidim/theme/reset/_columns.scss +8 -0
  119. data/app/packs/stylesheets/decidim/theme/reset/_comments.scss +320 -0
  120. data/app/packs/stylesheets/decidim/theme/reset/_conversation.scss +158 -0
  121. data/app/packs/stylesheets/decidim/theme/reset/_data-consent.scss +133 -0
  122. data/app/packs/stylesheets/decidim/theme/reset/_data-picker.scss +243 -0
  123. data/app/packs/stylesheets/decidim/theme/reset/_definition_data.scss +93 -0
  124. data/app/packs/stylesheets/decidim/theme/reset/_docs-manager.scss +16 -0
  125. data/app/packs/stylesheets/decidim/theme/reset/_dropdown_menu.scss +312 -0
  126. data/app/packs/stylesheets/decidim/theme/reset/_errors.scss +87 -0
  127. data/app/packs/stylesheets/decidim/theme/reset/_extra.scss +56 -0
  128. data/app/packs/stylesheets/decidim/theme/reset/_filters.scss +224 -0
  129. data/app/packs/stylesheets/decidim/theme/reset/_floating_helper.scss +133 -0
  130. data/app/packs/stylesheets/decidim/theme/reset/_form.scss +176 -0
  131. data/app/packs/stylesheets/decidim/theme/reset/_home.scss +416 -0
  132. data/app/packs/stylesheets/decidim/theme/reset/_home_section.scss +23 -0
  133. data/app/packs/stylesheets/decidim/theme/reset/_horizontal-tabs.scss +130 -0
  134. data/app/packs/stylesheets/decidim/theme/reset/_icons.scss +3 -0
  135. data/app/packs/stylesheets/decidim/theme/reset/_inline-filters.scss +77 -0
  136. data/app/packs/stylesheets/decidim/theme/reset/_label.scss +79 -0
  137. data/app/packs/stylesheets/decidim/theme/reset/_labels.scss +53 -0
  138. data/app/packs/stylesheets/decidim/theme/reset/_layout.scss +82 -0
  139. data/app/packs/stylesheets/decidim/theme/reset/_lines_breadcrumb.scss +38 -0
  140. data/app/packs/stylesheets/decidim/theme/reset/_login.scss +3 -0
  141. data/app/packs/stylesheets/decidim/theme/reset/_logo_wrapper.scss +28 -0
  142. data/app/packs/stylesheets/decidim/theme/reset/_main_container.scss +96 -0
  143. data/app/packs/stylesheets/decidim/theme/reset/_metric-chart.scss +25 -0
  144. data/app/packs/stylesheets/decidim/theme/reset/_navbar.scss +763 -0
  145. data/app/packs/stylesheets/decidim/theme/reset/_opinion_toggle.scss +55 -0
  146. data/app/packs/stylesheets/decidim/theme/reset/_order-by.scss +34 -0
  147. data/app/packs/stylesheets/decidim/theme/reset/_org-chart.scss +6 -0
  148. data/app/packs/stylesheets/decidim/theme/reset/_pagination.scss +195 -0
  149. data/app/packs/stylesheets/decidim/theme/reset/_process.scss +20 -0
  150. data/app/packs/stylesheets/decidim/theme/reset/_process_header.scss +97 -0
  151. data/app/packs/stylesheets/decidim/theme/reset/_process_header_phase.scss +13 -0
  152. data/app/packs/stylesheets/decidim/theme/reset/_process_nav.scss +317 -0
  153. data/app/packs/stylesheets/decidim/theme/reset/_progress_bar.scss +89 -0
  154. data/app/packs/stylesheets/decidim/theme/reset/_quill.scss +47 -0
  155. data/app/packs/stylesheets/decidim/theme/reset/_result_per_page.scss +82 -0
  156. data/app/packs/stylesheets/decidim/theme/reset/_results.scss +158 -0
  157. data/app/packs/stylesheets/decidim/theme/reset/_reveal.scss +210 -0
  158. data/app/packs/stylesheets/decidim/theme/reset/_scope-picker.scss +10 -0
  159. data/app/packs/stylesheets/decidim/theme/reset/_select.scss +92 -0
  160. data/app/packs/stylesheets/decidim/theme/reset/_signup.scss +179 -0
  161. data/app/packs/stylesheets/decidim/theme/reset/_statistics.scss +42 -0
  162. data/app/packs/stylesheets/decidim/theme/reset/_switch.scss +272 -0
  163. data/app/packs/stylesheets/decidim/theme/reset/_tabs.scss +4 -0
  164. data/app/packs/stylesheets/decidim/theme/reset/_tags.scss +47 -0
  165. data/app/packs/stylesheets/decidim/theme/reset/_thumbnail.scss +66 -0
  166. data/app/packs/stylesheets/decidim/theme/reset/_timeline.scss +183 -0
  167. data/app/packs/stylesheets/decidim/theme/reset/_title_bar.scss +89 -0
  168. data/app/packs/stylesheets/decidim/theme/reset/_toggle.scss +14 -0
  169. data/app/packs/stylesheets/decidim/theme/reset/_tooltip.scss +173 -0
  170. data/app/packs/stylesheets/decidim/theme/reset/_typography.scss +283 -0
  171. data/app/packs/stylesheets/decidim/theme/reset/_upload_modal.scss +140 -0
  172. data/app/packs/stylesheets/decidim/theme/reset/_user-form.scss +15 -0
  173. data/app/packs/stylesheets/decidim/theme/reset/_user.scss +184 -0
  174. data/app/packs/stylesheets/decidim/theme/reset/_versions.scss +82 -0
  175. data/app/packs/stylesheets/decidim/theme/reset/_wrapper.scss +3 -0
  176. data/config/assets.rb +17 -0
  177. data/config/i18n-tasks.yml +10 -0
  178. data/config/locales/en.yml +62 -0
  179. data/config/locales/fr.yml +11 -0
  180. data/lib/decidim/theme/admin.rb +10 -0
  181. data/lib/decidim/theme/admin_engine.rb +27 -0
  182. data/lib/decidim/theme/engine.rb +29 -0
  183. data/lib/decidim/theme/test/factories.rb +13 -0
  184. data/lib/decidim/theme/version.rb +13 -0
  185. data/lib/decidim/theme.rb +12 -0
  186. metadata +271 -0
@@ -0,0 +1,173 @@
1
+ // Foundation for Sites
2
+ // https://get.foundation
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group tooltip
7
+ ////
8
+
9
+ /// Default cursor of the defined term.
10
+ /// @type Keyword
11
+ $has-tip-cursor: help;
12
+
13
+ /// Default font weight of the defined term.
14
+ /// @type Keyword | Number
15
+ $has-tip-font-weight: $global-weight-bold;
16
+
17
+ /// Default border bottom of the defined term.
18
+ /// @type List
19
+ $has-tip-border-bottom: 0px none transparent;
20
+
21
+ /// Default color of the tooltip background.
22
+ /// @type Color
23
+ $tooltip-background-color: var(--grey2);
24
+
25
+ /// Default color of the tooltip font.
26
+ /// @type Color
27
+ $tooltip-color: $white;
28
+
29
+ /// Default padding of the tooltip background.
30
+ /// @type Number
31
+ $tooltip-padding: 0.75rem;
32
+
33
+ /// Default max width for tooltips.
34
+ /// @type Number
35
+ $tooltip-max-width: 10rem;
36
+
37
+ /// Default font size of the tooltip text. By default, we recommend a smaller font size than the body copy.
38
+ /// @type Number
39
+ $tooltip-font-size: rem-calc(14);
40
+
41
+ /// Default pip width for tooltips.
42
+ /// @type Number
43
+ $tooltip-pip-width: rem-calc(14);
44
+
45
+ /// Default pip height for tooltips. This is helpful for calculating the distance of the tooltip from the tooltip word.
46
+ /// @type Number
47
+ $tooltip-pip-height: $tooltip-pip-width * 0.866;
48
+
49
+ /// Default radius for tooltips.
50
+ /// @type Number
51
+ $tooltip-radius: $global-radius;
52
+
53
+ @mixin has-tip {
54
+ position: relative;
55
+ display: inline-block;
56
+
57
+ border-bottom: $has-tip-border-bottom;
58
+ font-weight: normal;
59
+ cursor: $has-tip-cursor;
60
+ }
61
+
62
+ @mixin tooltip {
63
+ position: absolute;
64
+ top: calc(100% + #{$tooltip-pip-height});
65
+ z-index: 1200;
66
+
67
+ max-width: $tooltip-max-width;
68
+ padding: $tooltip-padding;
69
+
70
+ border-radius: $tooltip-radius;
71
+ background-color: $tooltip-background-color;
72
+ @extend .body-5;
73
+
74
+ &::before {
75
+ position: absolute;
76
+ }
77
+
78
+ &.bottom {
79
+ &::before {
80
+ @include css-triangle($tooltip-pip-width, $tooltip-background-color, up);
81
+ bottom: 100%;
82
+ }
83
+
84
+ &.align-center::before {
85
+ left: 50%;
86
+ transform: translateX(-50%);
87
+ }
88
+ }
89
+
90
+ &.top {
91
+ &::before {
92
+ @include css-triangle(
93
+ $tooltip-pip-width,
94
+ $tooltip-background-color,
95
+ down
96
+ );
97
+ top: 100%;
98
+ bottom: auto;
99
+ }
100
+
101
+ &.align-center::before {
102
+ left: 50%;
103
+ transform: translateX(-50%);
104
+ }
105
+ }
106
+
107
+ &.left {
108
+ &::before {
109
+ @include css-triangle(
110
+ $tooltip-pip-width,
111
+ $tooltip-background-color,
112
+ right
113
+ );
114
+ left: 100%;
115
+ }
116
+
117
+ &.align-center::before {
118
+ bottom: auto;
119
+ top: 50%;
120
+ transform: translateY(-50%);
121
+ }
122
+ }
123
+
124
+ &.right {
125
+ &::before {
126
+ @include css-triangle(
127
+ $tooltip-pip-width,
128
+ $tooltip-background-color,
129
+ left
130
+ );
131
+ right: 100%;
132
+ left: auto;
133
+ }
134
+
135
+ &.align-center::before {
136
+ bottom: auto;
137
+ top: 50%;
138
+ transform: translateY(-50%);
139
+ }
140
+ }
141
+
142
+ &.align-top::before {
143
+ bottom: auto;
144
+ top: 10%;
145
+ }
146
+
147
+ &.align-bottom::before {
148
+ bottom: 10%;
149
+ top: auto;
150
+ }
151
+
152
+ &.align-left::before {
153
+ left: 10%;
154
+ right: auto;
155
+ }
156
+
157
+ &.align-right::before {
158
+ left: 0;
159
+ right: 10%;
160
+ }
161
+ }
162
+
163
+ .has-tip {
164
+ @include has-tip;
165
+ }
166
+
167
+ .tooltip {
168
+ @include tooltip;
169
+
170
+ &.light.expanded .p-xs.flex--sbc .ml-s > div:last-child {
171
+ margin-top: 1.5rem;
172
+ }
173
+ }
@@ -0,0 +1,283 @@
1
+ /* Typography - Foundation overrides */
2
+
3
+ button,
4
+ input {
5
+ font-family: inherit;
6
+ }
7
+
8
+ a {
9
+ @extend .body-4;
10
+ @extend .body-4-link;
11
+ }
12
+
13
+ button {
14
+ &:focus {
15
+ outline: 0;
16
+ }
17
+ }
18
+ .heading1 {
19
+ @extend .heading-1;
20
+ }
21
+
22
+ .subheading1 {
23
+ @extend .heading-3;
24
+ }
25
+
26
+ .heading2 {
27
+ @extend .heading-2;
28
+ }
29
+
30
+ .heading3 {
31
+ @extend .heading-3;
32
+ }
33
+
34
+ .heading4 {
35
+ @extend .heading-4;
36
+ }
37
+
38
+ //not supposed to exist
39
+ .heading5,
40
+ .heading6,
41
+ .heading-small {
42
+ @extend .body-1;
43
+ }
44
+
45
+ hr {
46
+ width: 50%;
47
+
48
+ &.reset {
49
+ width: 100%;
50
+ //TODO: Hide the unnecessary divider under assemblies title in assemblies page
51
+ border: 0;
52
+ }
53
+ }
54
+
55
+ /* New typographic styles */
56
+
57
+ .section-heading {
58
+ @extend .body-2;
59
+ @extend .body-2-semibold;
60
+ color: var(--emphasis-med);
61
+ letter-spacing: inherit;
62
+ text-transform: none;
63
+ max-width: $global-width;
64
+ margin-right: auto;
65
+ &::before {
66
+ content: none;
67
+ display: none;
68
+ width: 0;
69
+ height: 0;
70
+ background-color: transparent;
71
+ margin-right: 0;
72
+ margin-bottom: 0;
73
+ vertical-align: inherit;
74
+ }
75
+
76
+ &.collapse {
77
+ margin: 0;
78
+ }
79
+
80
+ span {
81
+ font-weight: normal;
82
+ }
83
+ }
84
+
85
+ .mini-title {
86
+ color: var(--emphasis-lowest);
87
+ font-size: 14px;
88
+ letter-spacing: normal;
89
+ text-transform: uppercase;
90
+ font-weight: 400;
91
+ margin-bottom: 0;
92
+ letter-spacing: 0.03em;
93
+
94
+ &__strong {
95
+ color: var(--emphasis-low);
96
+ @extend .body-1;
97
+ @extend .body-1-semibold;
98
+ }
99
+
100
+ &__strong--highlight {
101
+ color: var(--emphasis-med);
102
+ @extend .body-1;
103
+ }
104
+ }
105
+
106
+ .data-title {
107
+ &__over {
108
+ @extend .body-5;
109
+ }
110
+
111
+ &__main {
112
+ @extend .body-5;
113
+ }
114
+
115
+ &__sub {
116
+ @extend .body-6;
117
+ @extend .body-6-caps;
118
+ }
119
+ }
120
+
121
+ .page-title-wrapper {
122
+ text-align: left;
123
+ }
124
+
125
+ .page-title {
126
+ margin-bottom: 3rem;
127
+
128
+ a:hover {
129
+ text-decoration: underline;
130
+ }
131
+ }
132
+
133
+ .text-highlight {
134
+ margin-bottom: 0;
135
+ color: $white;
136
+ text-shadow: none;
137
+
138
+ &.heading1 {
139
+ @extend .heading-1-bold;
140
+ }
141
+
142
+ > a {
143
+ color: var(--primary);
144
+
145
+ &:hover {
146
+ color: var(--primary-10);
147
+ }
148
+ }
149
+ }
150
+
151
+ // text status-color
152
+ $map: map-merge(
153
+ $foundation-palette,
154
+ (
155
+ muted: $muted,
156
+ )
157
+ );
158
+
159
+ .text-primary {
160
+ color: var(--primary);
161
+ }
162
+ .bg-primary {
163
+ background-color: var(--primary-10);
164
+ }
165
+ .text-secondary {
166
+ color: var(--secondary);
167
+ }
168
+ .bg-secondary {
169
+ background-color: var(--secondary-10);
170
+ }
171
+ .text-alert {
172
+ color: var(--red);
173
+ }
174
+ .bg-alert {
175
+ background-color: var(--red);
176
+ }
177
+ .text-warning {
178
+ color: var(--yellow);
179
+ }
180
+ .bg-warning {
181
+ background-color: var(--yellow);
182
+ }
183
+ .text-success {
184
+ color: var(--green);
185
+ }
186
+ .bg-success {
187
+ background-color: var(--green);
188
+ }
189
+
190
+ .text-large {
191
+ font-size: 20px;
192
+ }
193
+
194
+ .text-medium {
195
+ @extend .body-5;
196
+ }
197
+
198
+ .text-small {
199
+ font-size: 16px;
200
+ }
201
+
202
+ .text-sm {
203
+ font-size: 16px;
204
+ }
205
+
206
+ .text-uppercase {
207
+ text-transform: uppercase;
208
+ }
209
+
210
+ .text-lowercase {
211
+ text-transform: lowercase;
212
+ }
213
+
214
+ .text-muted {
215
+ color: var(--emphasis-lowest);
216
+ }
217
+
218
+ .text-ellipsis {
219
+ @include ellipsis();
220
+ }
221
+
222
+ .text-compact {
223
+ line-height: 1.2;
224
+ }
225
+
226
+ .word-wrapper {
227
+ display: inline-block;
228
+ }
229
+
230
+ /* HTML inline text elements. Modifiers color text */
231
+ a,
232
+ abbr,
233
+ acronym,
234
+ b,
235
+ bdo,
236
+ big,
237
+ br,
238
+ button,
239
+ cite,
240
+ code,
241
+ dfn,
242
+ em,
243
+ i,
244
+ img,
245
+ input,
246
+ kbd,
247
+ label,
248
+ map,
249
+ object,
250
+ q,
251
+ samp,
252
+ script,
253
+ select,
254
+ small,
255
+ span,
256
+ strong,
257
+ sub,
258
+ sup,
259
+ textarea,
260
+ time,
261
+ tt,
262
+ var {
263
+ @include modifiers(
264
+ color,
265
+ (
266
+ muted: var(--emphasis-lowest),
267
+ )
268
+ );
269
+ }
270
+
271
+ blockquote {
272
+ border-left-color: var(--emphasis-lowest);
273
+ padding-left: 0.5rem;
274
+ }
275
+
276
+ ul.no-bullet-indented,
277
+ ol.no-bullet-indented {
278
+ list-style-type: none;
279
+ }
280
+
281
+ .external-link-indicator {
282
+ display: none;
283
+ }
@@ -0,0 +1,140 @@
1
+ @import "stylesheets/decidim/variables";
2
+
3
+ .upload-modal {
4
+ .button {
5
+ margin: 0;
6
+ }
7
+
8
+ .dropzone-container {
9
+ display: flex;
10
+ flex-direction: column;
11
+ justify-content: center;
12
+ margin-bottom: 1rem;
13
+
14
+ input[type="file"] {
15
+ display: none;
16
+ }
17
+
18
+ label {
19
+ background-color: $white;
20
+ margin: 1rem 0;
21
+ cursor: pointer;
22
+
23
+ &.is-dragover {
24
+ background-color: lighten($secondary, 50);
25
+ }
26
+
27
+ &.dropzone {
28
+ padding: 1rem;
29
+ text-align: center;
30
+ border-style: dashed;
31
+ border-color: $secondary;
32
+ border-width: 2px;
33
+ border-radius: 4px;
34
+
35
+ .form-error {
36
+ margin: 0;
37
+ }
38
+ }
39
+
40
+ &.disabled {
41
+ background-color: $light-gray;
42
+ cursor: not-allowed;
43
+ border-color: lighten($secondary, 50);
44
+
45
+ span {
46
+ color: #ccc;
47
+ }
48
+ }
49
+ }
50
+ }
51
+
52
+ .upload-items {
53
+ .upload-item {
54
+ input[type="text"] {
55
+ margin: 0;
56
+ }
57
+
58
+ .file-name-span {
59
+ overflow: hidden;
60
+ }
61
+
62
+ .progress-bar-wrapper {
63
+ .progress-bar-border {
64
+ height: 2rem;
65
+ border: 1px solid $primary;
66
+ box-sizing: border-box;
67
+ padding: 0;
68
+
69
+ .progress-bar {
70
+ display: flex;
71
+ justify-content: flex-start;
72
+ align-items: center;
73
+ color: white;
74
+ background-color: $primary;
75
+ padding: 0 0.5rem;
76
+ height: 2rem;
77
+
78
+ &.filled {
79
+ justify-content: center;
80
+ width: 100% !important;
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+
87
+ .remove-upload-item {
88
+ cursor: pointer;
89
+ }
90
+
91
+ .upload-errors {
92
+ .form-error {
93
+ margin: 0;
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ .dynamic-uploads {
100
+ display: flex;
101
+ flex-direction: column;
102
+ @extend .body-5;
103
+ @include breakpoint(large down) {
104
+ margin-bottom: 0.5rem;
105
+ }
106
+
107
+ .actions-wrapper {
108
+ display: flex;
109
+ justify-content: flex-start;
110
+ align-items: baseline;
111
+ margin-bottom: 1rem;
112
+
113
+ button.primary {
114
+ margin-right: 0.5rem;
115
+ }
116
+
117
+ button.remove-upload {
118
+ cursor: pointer;
119
+ }
120
+
121
+ &.titled {
122
+ flex-direction: column-reverse;
123
+ }
124
+
125
+ .active-uploads {
126
+ span.filename {
127
+ margin-right: 0.5rem;
128
+ }
129
+
130
+ span:last-child {
131
+ margin-right: 0.5rem;
132
+ }
133
+ }
134
+ }
135
+
136
+ &.with-title {
137
+ display: block;
138
+ margin: 0;
139
+ }
140
+ }
@@ -0,0 +1,15 @@
1
+ .user-form {
2
+ input[type="text"],
3
+ input[type="email"],
4
+ input[type="password"] {
5
+ height: 3rem;
6
+ }
7
+
8
+ .button {
9
+ margin: 1.5rem 0;
10
+ }
11
+ }
12
+
13
+ .user-form__label {
14
+ font-weight: normal;
15
+ }