decidim-theme 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
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,210 @@
1
+ /* Reveal foundation overwrites */
2
+
3
+ @include breakpoint(small down) {
4
+ .reveal {
5
+ width: 95%;
6
+ left: 2.5%;
7
+ top: 2rem;
8
+ height: auto;
9
+ min-height: auto;
10
+ }
11
+ }
12
+
13
+ .reveal__header {
14
+ border-bottom: $border;
15
+ margin-bottom: 1rem;
16
+
17
+ &.reveal__header--nomargin {
18
+ margin-bottom: 0;
19
+ }
20
+ }
21
+ .reveal#exit-notification .row:last-child .columns {
22
+ flex-direction: row-reverse;
23
+ display: flex;
24
+ gap: 0.5rem;
25
+ }
26
+
27
+ .reveal {
28
+ .wrapper--inner {
29
+ background: transparent !important;
30
+ }
31
+ & > h2 {
32
+ @extend .body-2;
33
+ margin-left: 1rem;
34
+ }
35
+ & > p {
36
+ margin-left: 1rem;
37
+ margin-right: 1.75rem;
38
+ }
39
+ & > .row:last-child {
40
+ padding-top: 1rem;
41
+ margin-top: 2rem;
42
+ border-top: 1px solid var(--grey2);
43
+
44
+ &,
45
+ .columns {
46
+ align-items: center;
47
+ justify-content: center;
48
+ text-align: center;
49
+ }
50
+ }
51
+ .button {
52
+ height: 48px;
53
+ }
54
+ &.fingerprint-dialog,
55
+ &#data_picker-modal {
56
+ padding: 1rem;
57
+ .modalTitle {
58
+ margin-bottom: 1rem;
59
+ }
60
+ }
61
+ .new_join_meeting {
62
+ & > .row:last-child {
63
+ text-align: center;
64
+ margin-bottom: 8px;
65
+ margin-top: 2rem;
66
+ }
67
+ .row .help-text {
68
+ margin-top: 1rem;
69
+ }
70
+ }
71
+ &#budget-confirm {
72
+ & > p.text-center {
73
+ text-align: left !important;
74
+ }
75
+ & > .row {
76
+ text-align: center;
77
+ margin-bottom: 8px;
78
+ margin-top: 2rem;
79
+ }
80
+ }
81
+ #login_new_user {
82
+ margin-bottom: 1rem;
83
+ }
84
+ @include breakpoint(medium) {
85
+ .filters__section:first-of-type {
86
+ display: none;
87
+ }
88
+ }
89
+ .calendar-url-description {
90
+ margin-bottom: 0.5rem;
91
+ }
92
+
93
+ .calendar_url_input {
94
+ margin-top: 1rem;
95
+ }
96
+
97
+ #urlCalendarUrl {
98
+ // Prevent the "not-allowed" cursor in the share input.
99
+ cursor: auto;
100
+ }
101
+ }
102
+
103
+ .reveal__footer {
104
+ border-top: $border;
105
+
106
+ .buttons {
107
+ display: flex;
108
+ justify-content: center;
109
+ padding: 10px 0 50px; // bottom padding is needed to avoid hiding buttons on mobiles because of https://stackoverflow.com/questions/37112218/css3-100vh-not-constant-in-mobile-browser
110
+
111
+ @include breakpoint(medium) {
112
+ padding-bottom: 0;
113
+ margin-bottom: -1rem;
114
+ }
115
+ }
116
+ }
117
+
118
+ .reveal__bg {
119
+ background-color: $light-gray-dark;
120
+ }
121
+ #loginModal .reveal__title {
122
+ text-align: center;
123
+ }
124
+ .reveal__title {
125
+ margin-top: -6px;
126
+ @extend .body-2;
127
+ outline: none;
128
+ }
129
+
130
+ .reveal__list {
131
+ @extend .list-reset;
132
+
133
+ li {
134
+ @extend .p-s;
135
+
136
+ display: flex;
137
+ }
138
+
139
+ li.selected {
140
+ background-color: rgba($warning, 0.3);
141
+ justify-content: space-between;
142
+
143
+ svg {
144
+ color: $success;
145
+ align-self: center;
146
+ }
147
+ }
148
+
149
+ li:hover {
150
+ cursor: pointer;
151
+ }
152
+
153
+ li:not(:last-child) {
154
+ border-bottom: $border;
155
+ }
156
+ }
157
+
158
+ .reveal__trigger {
159
+ cursor: pointer;
160
+ }
161
+
162
+ .reveal__buttons {
163
+ display: flex;
164
+ justify-content: space-between;
165
+ padding: 0 1rem;
166
+ }
167
+
168
+ .external-domain-warning {
169
+ .card-section {
170
+ padding: 0;
171
+ }
172
+
173
+ .buttons {
174
+ display: flex;
175
+ justify-content: center;
176
+
177
+ .button {
178
+ margin: 0;
179
+ }
180
+ }
181
+ }
182
+
183
+ .reveal {
184
+ padding: $reveal-padding 0;
185
+ & > div > * {
186
+ padding-left: $reveal-padding;
187
+ padding-right: $reveal-padding;
188
+ }
189
+ .confirm-content {
190
+ min-height: 60px;
191
+ }
192
+ .reveal__footer.confirm-modal-footer .buttons.button--double {
193
+ flex-direction: row-reverse;
194
+ padding-top: 0.25rem;
195
+ padding-bottom: 0.25rem;
196
+ margin-top: 0.5rem;
197
+ margin-bottom: 0rem;
198
+ gap: 1rem;
199
+ .button {
200
+ min-width: 130px;
201
+ }
202
+ }
203
+ .reveal__footer .buttons {
204
+ padding-top: rem-calc(24);
205
+ padding-bottom: rem-calc(24);
206
+ &.button.muted {
207
+ @extend .btn--primary;
208
+ }
209
+ }
210
+ }
@@ -0,0 +1,10 @@
1
+ .scope-picker.picker-header {
2
+ & li {
3
+ & a {
4
+ &:focus,
5
+ &:hover {
6
+ text-decoration: none !important;
7
+ }
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,92 @@
1
+ // Foundation for Sites
2
+ // https://get.foundation
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group forms
7
+ ////
8
+
9
+ /// Background color for select menus.
10
+ /// @type Color
11
+ $select-background: $white !default;
12
+
13
+ /// Color of the dropdown triangle inside select menus. Set to `transparent` to remove it entirely.
14
+ /// @type Color
15
+ $select-triangle-color: $dark-gray !default;
16
+
17
+ /// Default radius for select menus.
18
+ /// @type Color
19
+ $select-radius: $global-radius !default;
20
+
21
+ @mixin form-select {
22
+ $height: ($input-font-size * unitless-calc($input-line-height)) + (get-side($input-padding, 'top') + get-side($input-padding, 'bottom')) - rem-calc(1);
23
+
24
+ height: $height;
25
+ margin: 0 0 $form-spacing;
26
+ padding: $input-padding;
27
+
28
+ appearance: none;
29
+ border: $input-border;
30
+ border-radius: $select-radius;
31
+ background-color: $select-background;
32
+
33
+ font-family: $input-font-family;
34
+ font-size: $input-font-size;
35
+ font-weight: $input-font-weight;
36
+ line-height: $input-line-height;
37
+ color: $input-color;
38
+
39
+ @if $select-triangle-color != transparent {
40
+ @include background-triangle($select-triangle-color);
41
+ background-origin: content-box;
42
+ background-position: $global-right (-$form-spacing) center;
43
+ background-repeat: no-repeat;
44
+ background-size: 9px 6px;
45
+
46
+ padding-#{$global-right}: ($form-spacing * 1.5);
47
+ }
48
+
49
+ @if has-value($input-transition) {
50
+ transition: $input-transition;
51
+ }
52
+
53
+ // Focus state
54
+ &:focus {
55
+ outline: none;
56
+ border: $input-border-focus;
57
+ background-color: $input-background-focus;
58
+ box-shadow: $input-shadow-focus;
59
+
60
+ @if has-value($input-transition) {
61
+ transition: $input-transition;
62
+ }
63
+ }
64
+
65
+ // Disabled state
66
+ &:disabled {
67
+ background-color: $input-background-disabled;
68
+ cursor: $input-cursor-disabled;
69
+ }
70
+
71
+ // Hide the dropdown arrow shown in newer IE versions
72
+ &::-ms-expand {
73
+ display: none;
74
+ }
75
+
76
+ &[multiple] {
77
+ height: auto;
78
+ background-image: none;
79
+ }
80
+ &:not([multiple]) {
81
+ padding-top: 0;
82
+ padding-bottom: 0;
83
+ }
84
+ }
85
+
86
+ select {
87
+ @include form-select;
88
+ }
89
+ label > select {
90
+ margin-bottom: 2px;
91
+ }
92
+
@@ -0,0 +1,179 @@
1
+ .register__separator {
2
+ display: block;
3
+ text-align: center;
4
+ position: relative;
5
+ z-index: 1;
6
+ font-style: italic;
7
+ margin: 2rem 0;
8
+
9
+ &::before {
10
+ content: "";
11
+ display: block;
12
+ height: 1px;
13
+ width: 100%;
14
+ background-color: var(--grey2);
15
+ position: absolute;
16
+ top: 50%;
17
+ z-index: -1;
18
+ }
19
+ }
20
+
21
+ .register__separator__text {
22
+ display: inline-block;
23
+ background: $light-gray;
24
+ padding: 0 1rem;
25
+ @extend .body-5;
26
+ @extend .body-5-caps;
27
+ color: var(--emphasis-lowest);
28
+ }
29
+
30
+ .m_devise-registrations--new .register-form {
31
+ .card {
32
+ padding: 1.5rem;
33
+ box-shadow: none;
34
+ margin-bottom: 1rem;
35
+ }
36
+ }
37
+ .m_devise-sessions--new,
38
+ .m_devise-passwords,
39
+ .o-confirmations,
40
+ .o-unlocks {
41
+ .register-form.new_user {
42
+ @extend .card;
43
+ padding: 1.5rem;
44
+ box-shadow: none;
45
+ margin-bottom: 1rem;
46
+ padding-bottom: 1.5rem !important;
47
+ }
48
+ .card__content {
49
+ margin-bottom: 1rem;
50
+ }
51
+ .register-form .card {
52
+ box-shadow: none;
53
+ border-width: 0;
54
+ }
55
+
56
+ .actions {
57
+ margin-top: 1.5rem;
58
+ text-align: center;
59
+ }
60
+ }
61
+ .register-form {
62
+ width: 100%;
63
+
64
+ input[type="text"],
65
+ input[type="email"],
66
+ input[type="password"] {
67
+ height: 3rem;
68
+ }
69
+
70
+ h3 {
71
+ display: table;
72
+ line-height: 1.2;
73
+ margin-bottom: 1.5rem;
74
+ margin-top: 0;
75
+ text-align: left;
76
+ }
77
+
78
+ label > [type="checkbox"] {
79
+ margin-bottom: 1rem;
80
+ }
81
+
82
+ .tos-text {
83
+ padding: 0.75rem;
84
+ border: 1px solid var(--grey2);
85
+ margin: 0.75rem 0;
86
+ max-height: 10rem;
87
+ overflow: auto;
88
+ font-style: italic;
89
+ }
90
+
91
+ #card__tos,
92
+ #card__newsletter {
93
+ text-align: center;
94
+ }
95
+
96
+ .actions {
97
+ & > button {
98
+ width: 100%;
99
+ }
100
+ & ~ p {
101
+ margin-bottom: 0;
102
+ width: 100%;
103
+ }
104
+ }
105
+
106
+ .field {
107
+ width: 100%;
108
+ }
109
+ }
110
+ .user-nickname
111
+ label.is-invalid-label
112
+ .row
113
+ > span:last-of-type
114
+ .form-error.is-visible {
115
+ margin-left: 0 !important;
116
+ }
117
+ .user-nickname {
118
+ width: 100%;
119
+ label .row {
120
+ > span:last-of-type {
121
+ width: 100% !important;
122
+ }
123
+ > span:first-of-type {
124
+ display: none;
125
+ // this is the prefix div
126
+ @extend .input-group-label;
127
+ justify-content: center;
128
+ padding: 0;
129
+ border-#{$global-right}: 0;
130
+ width: 8%;
131
+ height: 3rem;
132
+ border-top-left-radius: $input-radius;
133
+ border-bottom-left-radius: $input-radius;
134
+
135
+ .prefix {
136
+ display: none;
137
+ height: 2.9rem;
138
+ padding-top: 0.8rem;
139
+ }
140
+ }
141
+
142
+ > span:last-of-type {
143
+ // this is the input div
144
+ @extend .input-group-field;
145
+
146
+ width: 92%;
147
+ height: 3rem;
148
+
149
+ input {
150
+ border-top-left-radius: 0;
151
+ border-bottom-left-radius: 0;
152
+ }
153
+ }
154
+ }
155
+
156
+ label.is-invalid-label .row {
157
+ margin-bottom: $form-spacing;
158
+
159
+ > span:first-of-type {
160
+ // this is the prefix div
161
+ background-color: var(--white);
162
+ border-color: var(--red);
163
+ }
164
+
165
+ > span:last-of-type {
166
+ // this is the input div
167
+ height: 4.2rem;
168
+
169
+ .form-error.is-visible {
170
+ margin-left: -8%;
171
+ }
172
+ }
173
+ }
174
+
175
+ .help-text {
176
+ margin-top: 1rem;
177
+ @extend .body-5;
178
+ }
179
+ }
@@ -0,0 +1,42 @@
1
+ .statistics-cell {
2
+ overflow: hidden;
3
+ margin: rem-calc(64) auto;
4
+ display: flex;
5
+ flex-wrap: wrap;
6
+ width: 100%;
7
+ min-width: rem-calc(310);
8
+
9
+ .statistic__title {
10
+ @extend .body-5;
11
+ @extend .body-5-caps;
12
+ color: var(--emphasis-lowest);
13
+ margin-bottom: 0;
14
+ vertical-align: middle;
15
+ }
16
+
17
+ .statistic__data {
18
+ text-align: center;
19
+ padding: 1rem 0.25rem;
20
+ width: calc(50% - 1rem);
21
+ margin: 0;
22
+ position: relative;
23
+ color: var(--grey5);
24
+ &::after {
25
+ border-left-color: var(--primary) !important;
26
+ }
27
+
28
+ @include breakpoint(medium down) {
29
+ width: calc(50% - 1rem);
30
+ }
31
+
32
+ @include breakpoint(medium large) {
33
+ width: calc(25% - 1rem);
34
+ }
35
+ }
36
+
37
+ .statistic__number {
38
+ @extend .heading-3;
39
+ @extend .heading-3-bold;
40
+ color: var(--emphasis-med);
41
+ }
42
+ }