decidim-core 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/app/assets/config/decidim_core_manifest.js +1 -0
- data/app/assets/javascripts/decidim.js.es6 +3 -2
- data/app/assets/javascripts/decidim/append_elements.js.es6 +8 -0
- data/app/assets/javascripts/decidim/filters.js.es6 +22 -0
- data/app/assets/javascripts/decidim/form_filter.component.js.es6 +176 -0
- data/app/assets/javascripts/decidim/form_filter.component.test.js +151 -0
- data/app/assets/javascripts/decidim/inline_svg.js.es6 +12 -0
- data/app/assets/javascripts/decidim/user_registrations.js.es6 +22 -0
- data/app/assets/stylesheets/decidim/_variables.scss +1 -1
- data/app/assets/stylesheets/decidim/modules/_comments.scss +3 -6
- data/app/assets/stylesheets/decidim/modules/_cookie-bar.scss +22 -0
- data/app/assets/stylesheets/decidim/modules/_layout.scss +9 -1
- data/app/assets/stylesheets/decidim/modules/_navbar.scss +8 -5
- data/app/assets/stylesheets/decidim/modules/_order-by.scss +0 -1
- data/app/assets/stylesheets/decidim/modules/_process-phase.scss +4 -0
- data/app/assets/stylesheets/decidim/modules/_timeline.scss +62 -80
- data/app/assets/stylesheets/decidim/modules/_typography.scss +20 -31
- data/app/assets/stylesheets/decidim/utils/_fontface.scss +4 -16
- data/app/assets/stylesheets/decidim/utils/_settings.scss +29 -26
- data/app/assets/stylesheets/decidim/utils/_variables.scss +22 -0
- data/app/commands/decidim/authorize_user.rb +17 -1
- data/app/commands/decidim/create_omniauth_registration.rb +92 -0
- data/app/commands/decidim/create_registration.rb +50 -0
- data/app/commands/decidim/invite_user.rb +50 -0
- data/app/commands/decidim/invite_user_again.rb +25 -0
- data/app/commands/decidim/remove_user_role.rb +26 -0
- data/app/controllers/concerns/decidim/feature_settings.rb +27 -0
- data/app/controllers/concerns/decidim/filter_resource.rb +71 -0
- data/app/controllers/concerns/decidim/form_factory.rb +21 -18
- data/app/controllers/concerns/decidim/needs_participatory_process.rb +2 -3
- data/app/controllers/decidim/devise/confirmations_controller.rb +2 -0
- data/app/controllers/decidim/devise/invitations_controller.rb +4 -0
- data/app/controllers/decidim/devise/omniauth_registrations_controller.rb +96 -0
- data/app/controllers/decidim/devise/passwords_controller.rb +2 -0
- data/app/controllers/decidim/devise/registrations_controller.rb +34 -0
- data/app/controllers/decidim/devise/sessions_controller.rb +1 -0
- data/app/controllers/decidim/pages_controller.rb +10 -2
- data/app/controllers/decidim/participatory_process_steps_controller.rb +16 -0
- data/app/controllers/decidim/participatory_processes_controller.rb +6 -11
- data/app/forms/decidim/form.rb +6 -6
- data/app/forms/decidim/invite_admin_form.rb +37 -0
- data/app/forms/decidim/omniauth_registration_form.rb +24 -0
- data/app/forms/decidim/registration_form.rb +41 -0
- data/app/helpers/decidim/filters_helper.rb +21 -0
- data/app/helpers/decidim/layout_helper.rb +17 -1
- data/app/helpers/decidim/omniauth_helper.rb +23 -0
- data/app/helpers/decidim/paginate_helper.rb +21 -0
- data/app/helpers/decidim/participatory_process_helper.rb +14 -0
- data/app/helpers/decidim/participatory_process_steps_helper.rb +17 -0
- data/app/mailers/decidim/decidim_devise_mailer.rb +2 -2
- data/app/models/decidim/feature.rb +40 -0
- data/app/models/decidim/identity.rb +12 -0
- data/app/models/decidim/organization.rb +3 -10
- data/app/models/decidim/user.rb +3 -1
- data/app/models/decidim/user_group.rb +18 -0
- data/app/models/decidim/user_group_membership.rb +9 -0
- data/app/services/decidim/authorization_handler.rb +13 -13
- data/app/services/decidim/resource_search.rb +52 -0
- data/app/uploaders/decidim/organization_logo_uploader.rb +1 -1
- data/app/views/decidim/authorizations/new.html.erb +3 -1
- data/app/views/decidim/devise/omniauth_registrations/new.html.erb +40 -0
- data/app/views/decidim/devise/registrations/new.html.erb +21 -1
- data/app/views/decidim/devise/sessions/new.html.erb +1 -0
- data/app/views/decidim/devise/shared/_links.html.erb +0 -8
- data/app/views/decidim/devise/shared/_omniauth_buttons.html.erb +21 -0
- data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +16 -0
- data/app/views/decidim/participatory_process_steps/_timeline.html.erb +7 -0
- data/app/views/decidim/participatory_process_steps/index.html.erb +12 -0
- data/app/views/decidim/participatory_processes/show.html.erb +5 -5
- data/app/views/decidim/shared/_login_modal.html.erb +30 -0
- data/app/views/devise/mailer/invite_admin.html.erb +17 -0
- data/app/views/devise/mailer/invite_admin.text.erb +15 -0
- data/app/views/devise/mailer/organization_admin_invitation_instructions.html.erb +1 -1
- data/app/views/devise/mailer/organization_admin_invitation_instructions.text.erb +1 -1
- data/app/views/layouts/decidim/_application.html.erb +1 -0
- data/app/views/layouts/decidim/_header.html.erb +1 -1
- data/app/views/layouts/decidim/_meta.html.erb +1 -0
- data/app/views/layouts/decidim/_process_header.html.erb +12 -1
- data/app/views/layouts/decidim/_process_header_steps.html.erb +1 -0
- data/app/views/layouts/decidim/_social_meta.html.erb +11 -0
- data/app/views/layouts/decidim/participatory_process.html.erb +4 -0
- data/app/views/pages/home.html.erb +29 -2
- data/config/i18n-tasks.yml +1 -0
- data/config/initializers/devise.rb +10 -1
- data/config/locales/ca.yml +45 -3
- data/config/locales/en.yml +45 -3
- data/config/locales/es.yml +45 -3
- data/config/routes.rb +9 -2
- data/config/secrets.yml +36 -0
- data/db/migrate/20170110133113_add_configuration_to_features.rb +7 -0
- data/db/migrate/20170110153807_add_handler_to_organization.rb +5 -0
- data/db/migrate/20170116110851_create_identities.rb +11 -0
- data/db/migrate/20170116135237_loosen_step_requirements.rb +6 -0
- data/db/migrate/20170117142904_add_uniqueness_field_to_authorizations.rb +7 -0
- data/db/migrate/20170119145359_create_user_groups.rb +11 -0
- data/db/migrate/20170119150255_create_user_group_memberships.rb +12 -0
- data/db/migrate/20170119150649_add_show_statistics_to_organization.rb +5 -0
- data/db/migrate/20170120120733_add_user_groups_verified.rb +5 -0
- data/db/seeds.rb +45 -79
- data/lib/decidim/core.rb +8 -0
- data/lib/decidim/core/engine.rb +8 -0
- data/lib/decidim/core/test/factories.rb +188 -0
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/devise_failure_app.rb +1 -0
- data/lib/decidim/feature_manifest.rb +27 -0
- data/lib/decidim/features/base_controller.rb +8 -3
- data/lib/decidim/features/settings_manifest.rb +94 -0
- data/lib/decidim/filter_form_builder.rb +56 -0
- data/lib/decidim/form_builder.rb +4 -7
- data/vendor/assets/javascripts/svg-injector.js +464 -0
- metadata +142 -26
- data/app/assets/stylesheets/decidim/modules/_owl-carousel.scss +0 -72
- data/app/assets/stylesheets/decidim/modules/_phase-nav.scss +0 -177
- data/app/assets/stylesheets/decidim/utils/_helpers.sass +0 -21
- data/app/assets/stylesheets/decidim/utils/_keyframes.sass +0 -13
- data/app/assets/stylesheets/decidim/utils/_mixins.sass +0 -33
@@ -0,0 +1,22 @@
|
|
1
|
+
.cookie-warning{
|
2
|
+
background: $medium-gray;
|
3
|
+
padding: .5em 1em;
|
4
|
+
text-align: center;
|
5
|
+
a{
|
6
|
+
color: darken($anchor-color, 10%);
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
.cookie-warning__action{
|
11
|
+
text-align: center;
|
12
|
+
.button{
|
13
|
+
margin: .5em 0;
|
14
|
+
}
|
15
|
+
@include breakpoint(mediumlarge){
|
16
|
+
vertical-align: baseline;
|
17
|
+
display: inline-block;
|
18
|
+
.button{
|
19
|
+
margin: 0 0 0 1em;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -17,6 +17,10 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
//Flexbox sticky footer
|
20
|
+
html{
|
21
|
+
height: 100%;
|
22
|
+
}
|
23
|
+
|
20
24
|
body{
|
21
25
|
display: flex;
|
22
26
|
flex-direction: column;
|
@@ -32,6 +36,10 @@ body{
|
|
32
36
|
}
|
33
37
|
|
34
38
|
//fixes for off-canvas wrappers
|
39
|
+
.off-canvas-wrapper{
|
40
|
+
background-color: $white;
|
41
|
+
}
|
42
|
+
|
35
43
|
.off-canvas-wrapper,
|
36
44
|
.off-canvas-wrapper-inner,
|
37
45
|
.off-canvas-content{
|
@@ -55,4 +63,4 @@ body{
|
|
55
63
|
@include breakpoint(large){
|
56
64
|
margin-bottom: 5rem;
|
57
65
|
}
|
58
|
-
}
|
66
|
+
}
|
@@ -39,7 +39,7 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
|
|
39
39
|
@include breakpoint(medium){
|
40
40
|
top: 50%;
|
41
41
|
margin-top: -19px;
|
42
|
-
img{
|
42
|
+
img{
|
43
43
|
height: 38px !important;
|
44
44
|
}
|
45
45
|
}
|
@@ -62,9 +62,9 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
|
|
62
62
|
}
|
63
63
|
img{
|
64
64
|
display: block;
|
65
|
-
max-
|
65
|
+
max-height: 33px;
|
66
66
|
@include breakpoint(mediumlarge){
|
67
|
-
max-
|
67
|
+
max-height: 45px;
|
68
68
|
}
|
69
69
|
}
|
70
70
|
}
|
@@ -190,6 +190,9 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
|
|
190
190
|
text-align: right;
|
191
191
|
font-size: 20px;
|
192
192
|
margin-right: .1rem;
|
193
|
+
button {
|
194
|
+
color: inherit;
|
195
|
+
}
|
193
196
|
}
|
194
197
|
|
195
198
|
.usermenu-off-canvas-holder .usermenu-off-canvas{
|
@@ -251,7 +254,7 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
|
|
251
254
|
background: $navbar-bg-hover;
|
252
255
|
color: $navbar-color-hover;
|
253
256
|
}
|
254
|
-
|
257
|
+
|
255
258
|
@include breakpoint(medium){
|
256
259
|
padding: .75em 2em;
|
257
260
|
}
|
@@ -264,4 +267,4 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
|
|
264
267
|
@include breakpoint(medium) {
|
265
268
|
box-shadow: $navbar-active-shadow-medium;
|
266
269
|
}
|
267
|
-
}
|
270
|
+
}
|
@@ -13,7 +13,6 @@ $timeline-padding: 1rem;
|
|
13
13
|
.timeline {
|
14
14
|
list-style: none;
|
15
15
|
margin: 2rem 0 0;
|
16
|
-
transition: all .4s ease;
|
17
16
|
}
|
18
17
|
|
19
18
|
.timeline__item {
|
@@ -27,9 +26,6 @@ $timeline-padding: 1rem;
|
|
27
26
|
left: 1rem;
|
28
27
|
top: 0;
|
29
28
|
position: absolute;
|
30
|
-
@include breakpoint(medium){
|
31
|
-
left: 50%;
|
32
|
-
}
|
33
29
|
}
|
34
30
|
&:after {
|
35
31
|
content: "";
|
@@ -56,9 +52,6 @@ $timeline-padding: 1rem;
|
|
56
52
|
background: $timeline-color;
|
57
53
|
border: 2px solid $white;
|
58
54
|
box-shadow: 0 0 0 1px $medium-gray;
|
59
|
-
@include breakpoint(medium){
|
60
|
-
left: 50%;
|
61
|
-
}
|
62
55
|
}
|
63
56
|
|
64
57
|
.timeline__phase__number{
|
@@ -73,83 +66,90 @@ $timeline-padding: 1rem;
|
|
73
66
|
margin-top: -1px;
|
74
67
|
}
|
75
68
|
|
76
|
-
.
|
69
|
+
.timeline__info{
|
77
70
|
width: 90%;
|
78
71
|
width: calc(100% - 45px);
|
79
72
|
float: right;
|
80
|
-
|
81
|
-
border:
|
82
|
-
|
83
|
-
|
84
|
-
transform: translateY(-.4rem);
|
85
|
-
@include breakpoint(medium){
|
86
|
-
width: 45%;
|
87
|
-
float: left;
|
88
|
-
}
|
89
|
-
&:before {
|
90
|
-
content: '';
|
91
|
-
position: absolute;
|
92
|
-
right: 100%;
|
93
|
-
top: .6rem;
|
94
|
-
width: 0;
|
95
|
-
height: 0;
|
96
|
-
border-top: 10px solid transparent;
|
97
|
-
border-bottom: 10px solid transparent;
|
98
|
-
border-right: 10px solid $timeline-color;
|
99
|
-
@include breakpoint(medium){
|
100
|
-
left: 100%;
|
101
|
-
border-right: 0;
|
102
|
-
border-left: 10px solid $timeline-color;
|
103
|
-
}
|
104
|
-
}
|
105
|
-
.timeline__item:nth-of-type(even) &{
|
106
|
-
float: right;
|
107
|
-
&:before{
|
108
|
-
content: '';
|
109
|
-
right: 100%;
|
110
|
-
left: inherit;
|
111
|
-
border-left: 0;
|
112
|
-
border-right: 10px solid $timeline-color;
|
113
|
-
}
|
73
|
+
background-color: $white;
|
74
|
+
border: $border;
|
75
|
+
.timeline__item--current &{
|
76
|
+
border-color: $timeline-color;
|
114
77
|
}
|
115
78
|
}
|
116
79
|
|
117
|
-
.
|
118
|
-
|
80
|
+
.timeline__header{
|
81
|
+
background: $medium-gray;
|
119
82
|
padding: $timeline-padding/2 $timeline-padding;
|
120
|
-
|
121
|
-
|
122
|
-
margin: (-$timeline-padding/2) (-$timeline-padding) 0 (-$timeline-padding);
|
123
|
-
&:hover,
|
124
|
-
&:active{
|
83
|
+
.timeline__item--current &{
|
84
|
+
background-color: $timeline-color;
|
125
85
|
color: $white;
|
126
86
|
}
|
127
|
-
|
128
|
-
|
87
|
+
}
|
88
|
+
|
89
|
+
.timeline__date{
|
90
|
+
color: $muted;
|
91
|
+
.timeline__item--current &{
|
92
|
+
color: rgba($white,.8);
|
129
93
|
}
|
130
94
|
}
|
131
95
|
|
132
|
-
.
|
133
|
-
margin-
|
134
|
-
vertical-align: middle;
|
96
|
+
.timeline__title{
|
97
|
+
margin-bottom: 0;
|
135
98
|
}
|
136
99
|
|
137
100
|
.timeline__content{
|
138
|
-
|
139
|
-
|
101
|
+
padding: $timeline-padding;
|
102
|
+
:last-child{
|
103
|
+
margin-bottom: 0;
|
104
|
+
}
|
140
105
|
}
|
141
106
|
|
142
|
-
|
107
|
+
.timeline__footer{
|
108
|
+
list-style: none;
|
109
|
+
margin: 0;
|
110
|
+
border-top: $border;
|
111
|
+
@include breakpoint(medium){
|
112
|
+
display: flex;
|
113
|
+
flex-wrap: wrap;
|
114
|
+
}
|
115
|
+
}
|
143
116
|
|
144
|
-
.
|
145
|
-
|
146
|
-
|
117
|
+
.timeline__footer-item{
|
118
|
+
flex-grow: 1;
|
119
|
+
text-align: center;
|
120
|
+
padding: .5em;
|
121
|
+
border-bottom: $border;
|
122
|
+
&:last-child{
|
123
|
+
border-bottom: 0;
|
147
124
|
}
|
148
|
-
|
149
|
-
|
125
|
+
@include breakpoint(medium){
|
126
|
+
border-bottom: 0;
|
127
|
+
border-right: $border;
|
128
|
+
&:last-child{
|
129
|
+
border-right: 0;
|
130
|
+
}
|
150
131
|
}
|
151
132
|
}
|
152
133
|
|
134
|
+
.timeline__footer-inner{
|
135
|
+
display: block;
|
136
|
+
}
|
137
|
+
|
138
|
+
.timeline__item-icon{
|
139
|
+
width: 1.5em;
|
140
|
+
height: 1.5em;
|
141
|
+
}
|
142
|
+
|
143
|
+
.timeline__item-text{
|
144
|
+
display: block;
|
145
|
+
text-transform: uppercase;
|
146
|
+
letter-spacing: 0.03em;
|
147
|
+
font-size: 90%;
|
148
|
+
color: $body-font-color;
|
149
|
+
font-weight: 600;
|
150
|
+
line-height: 1;
|
151
|
+
}
|
152
|
+
|
153
153
|
/* Inactive timeline */
|
154
154
|
|
155
155
|
.timeline__item--current{
|
@@ -168,22 +168,4 @@ $timeline-padding: 1rem;
|
|
168
168
|
.timeline__phase__number{
|
169
169
|
text-shadow: 0 1px 2px rgba(black, 0.1);
|
170
170
|
}
|
171
|
-
.timeline__desc{
|
172
|
-
border-color: $timeline-inactive-color;
|
173
|
-
&:before{
|
174
|
-
border-right-color: $timeline-inactive-color;
|
175
|
-
@include breakpoint(medium){
|
176
|
-
border-left-color: $timeline-inactive-color;
|
177
|
-
}
|
178
|
-
}
|
179
|
-
}
|
180
|
-
.timeline__title{
|
181
|
-
background: $timeline-inactive-color;
|
182
|
-
color: inherit;
|
183
|
-
}
|
184
|
-
}
|
185
|
-
.timeline__item:nth-of-type(even).timeline__item--inactive{
|
186
|
-
.timeline__desc:before{
|
187
|
-
border-right-color: $timeline-inactive-color;
|
188
|
-
}
|
189
171
|
}
|
@@ -2,57 +2,46 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
/* Typography - Foundation overrides */
|
5
|
+
button,
|
6
|
+
input{
|
7
|
+
font-family: inherit;
|
8
|
+
}
|
5
9
|
|
6
|
-
|
7
|
-
line-height: 1.
|
8
|
-
font-
|
9
|
-
font-size: map-get(map-get($header-sizes, small), h1) / 16 + em;
|
10
|
+
@mixin heading($heading) {
|
11
|
+
line-height: 1.2;
|
12
|
+
font-size: map-get(map-get(map-get($header-styles, small), $heading), 'font-size') / 16 + em;
|
10
13
|
@include breakpoint(medium){
|
11
|
-
font-size: map-get(map-get($header-
|
14
|
+
font-size: map-get(map-get(map-get($header-styles, medium), $heading), 'font-size') / 16 + em;
|
12
15
|
}
|
13
16
|
}
|
14
17
|
|
18
|
+
.heading1{
|
19
|
+
font-weight: 600;
|
20
|
+
@include heading(h1);
|
21
|
+
line-height: 1.1;
|
22
|
+
}
|
23
|
+
|
15
24
|
.heading2{
|
16
|
-
|
17
|
-
//font-weight: 600;
|
18
|
-
font-size: map-get(map-get($header-sizes, small), h2) / 16 + em;
|
19
|
-
@include breakpoint(medium){
|
20
|
-
font-size: map-get(map-get($header-sizes, medium), h2) / 16 + em;
|
21
|
-
}
|
25
|
+
@include heading(h2);
|
22
26
|
}
|
23
27
|
|
24
28
|
.heading3{
|
25
|
-
|
26
|
-
font-size: map-get(map-get($header-sizes, small), h3) / 16 + em;
|
27
|
-
@include breakpoint(medium){
|
28
|
-
font-size: map-get(map-get($header-sizes, medium), h3) / 16 + em;
|
29
|
-
}
|
29
|
+
@include heading(h3);
|
30
30
|
}
|
31
31
|
|
32
32
|
.heading4{
|
33
|
-
|
34
|
-
font-size: map-get(map-get($header-sizes, small), h4) / 16 + em;
|
35
|
-
@include breakpoint(medium){
|
36
|
-
font-size: map-get(map-get($header-sizes, medium), h4) / 16 + em;
|
37
|
-
}
|
33
|
+
@include heading(h4);
|
38
34
|
}
|
39
35
|
|
40
36
|
.heading5{
|
41
|
-
|
42
|
-
font-size: map-get(map-get($header-sizes, small), h5) / 16 + em;
|
43
|
-
@include breakpoint(medium){
|
44
|
-
font-size: map-get(map-get($header-sizes, medium), h5) / 16 + em;
|
45
|
-
}
|
37
|
+
@include heading(h5);
|
46
38
|
}
|
47
39
|
|
48
40
|
.heading6{
|
49
41
|
text-transform: uppercase;
|
50
42
|
letter-spacing: .03em;
|
51
43
|
font-weight: 600;
|
52
|
-
|
53
|
-
@include breakpoint(medium){
|
54
|
-
font-size: map-get(map-get($header-sizes, medium), h6) / 16 + em;
|
55
|
-
}
|
44
|
+
@include heading(h6);
|
56
45
|
}
|
57
46
|
|
58
47
|
.heading-small{
|
@@ -113,4 +102,4 @@ hr{
|
|
113
102
|
|
114
103
|
.word-wrapper{
|
115
104
|
display: inline-block;
|
116
|
-
}
|
105
|
+
}
|
@@ -3,12 +3,8 @@
|
|
3
3
|
font-style: normal;
|
4
4
|
font-weight: 400;
|
5
5
|
src:
|
6
|
-
|
7
|
-
|
8
|
-
font-url('decidim/Source_Sans_Pro_400.eot?#iefix') format('embedded-opentype'),
|
9
|
-
font-url('decidim/Source_Sans_Pro_400.woff') format('woff'),
|
10
|
-
font-url('decidim/Source_Sans_Pro_400.woff2') format('woff2'),
|
11
|
-
font-url('decidim/Source_Sans_Pro_400.svg#SourceSansPro') format('svg'),
|
6
|
+
font-url('decidim/Source_Sans_Pro_400.woff2') format('woff2'),
|
7
|
+
font-url('decidim/Source_Sans_Pro_400.woff') format('woff'),
|
12
8
|
font-url('decidim/Source_Sans_Pro_400.ttf') format('truetype');
|
13
9
|
}
|
14
10
|
@font-face {
|
@@ -16,12 +12,8 @@
|
|
16
12
|
font-style: normal;
|
17
13
|
font-weight: 600;
|
18
14
|
src:
|
19
|
-
|
20
|
-
local('SourceSansPro-Semibold'),
|
21
|
-
font-url('decidim/Source_Sans_Pro_600.eot?#iefix') format('embedded-opentype'),
|
15
|
+
font-url('decidim/Source_Sans_Pro_600.woff2') format('woff2'),
|
22
16
|
font-url('decidim/Source_Sans_Pro_600.woff') format('woff'),
|
23
|
-
font-url('decidim/Source_Sans_Pro_600.woff2') format('woff2'),
|
24
|
-
font-url('decidim/Source_Sans_Pro_600.svg#SourceSansPro') format('svg'),
|
25
17
|
font-url('decidim/Source_Sans_Pro_600.ttf') format('truetype');
|
26
18
|
}
|
27
19
|
@font-face {
|
@@ -29,11 +21,7 @@
|
|
29
21
|
font-style: normal;
|
30
22
|
font-weight: 900;
|
31
23
|
src:
|
32
|
-
|
33
|
-
local('SourceSansPro-Black'),
|
34
|
-
font-url('decidim/Source_Sans_Pro_900.eot?#iefix') format('embedded-opentype'),
|
24
|
+
font-url('decidim/Source_Sans_Pro_900.woff2') format('woff2'),
|
35
25
|
font-url('decidim/Source_Sans_Pro_900.woff') format('woff'),
|
36
|
-
font-url('decidim/Source_Sans_Pro_900.woff2') format('woff2'),
|
37
|
-
font-url('decidim/Source_Sans_Pro_900.svg#SourceSansPro') format('svg'),
|
38
26
|
font-url('decidim/Source_Sans_Pro_900.ttf') format('truetype');
|
39
27
|
}
|
@@ -42,6 +42,7 @@
|
|
42
42
|
|
43
43
|
@import 'util/util';
|
44
44
|
|
45
|
+
|
45
46
|
// 1. Global
|
46
47
|
// ---------
|
47
48
|
|
@@ -108,27 +109,29 @@ $header-font-family: $body-font-family;
|
|
108
109
|
$header-font-weight: $global-weight-normal;
|
109
110
|
$header-font-style: normal;
|
110
111
|
$font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace;
|
111
|
-
$header-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
'
|
117
|
-
'
|
118
|
-
'
|
119
|
-
|
120
|
-
|
121
|
-
'
|
122
|
-
'h2': 32,
|
123
|
-
'h3': 28,
|
124
|
-
'h4': 24,
|
125
|
-
'h5': 20,
|
126
|
-
'h6': 16,
|
112
|
+
$header-lineheight: 1.4;
|
113
|
+
$header-margin-bottom: 0.5rem;
|
114
|
+
|
115
|
+
$header-styles: (
|
116
|
+
'small': (
|
117
|
+
'h1': ('font-size': 40),
|
118
|
+
'h2': ('font-size': 32),
|
119
|
+
'h3': ('font-size': 28),
|
120
|
+
'h4': ('font-size': 24),
|
121
|
+
'h5': ('font-size': 20),
|
122
|
+
'h6': ('font-size': 16)
|
127
123
|
),
|
124
|
+
'medium': (
|
125
|
+
'h1': ('font-size': 48),
|
126
|
+
'h2': ('font-size': 32),
|
127
|
+
'h3': ('font-size': 28),
|
128
|
+
'h4': ('font-size': 24),
|
129
|
+
'h5': ('font-size': 20),
|
130
|
+
'h6': ('font-size': 16)
|
131
|
+
)
|
128
132
|
);
|
133
|
+
|
129
134
|
$header-color: inherit;
|
130
|
-
$header-lineheight: 1.4;
|
131
|
-
$header-margin-bottom: 0.5rem;
|
132
135
|
$header-text-rendering: optimizeLegibility;
|
133
136
|
$small-font-size: 90%;
|
134
137
|
$header-small-font-color: lighten($body-font-color, 30);
|
@@ -195,14 +198,14 @@ $input-error-font-weight: $global-weight-bold;
|
|
195
198
|
// 7. Accordion
|
196
199
|
// ------------
|
197
200
|
|
198
|
-
$accordion-background: $
|
201
|
+
$accordion-background: $primary-color;
|
199
202
|
$accordion-plusminus: true;
|
200
|
-
$accordion-item-color:
|
203
|
+
$accordion-item-color: $white;
|
201
204
|
$accordion-item-background-hover: $light-gray;
|
202
205
|
$accordion-item-padding: 1.25rem 1rem;
|
203
206
|
$accordion-content-background: $white;
|
204
207
|
$accordion-content-border: 1px solid $light-gray;
|
205
|
-
$accordion-content-color:
|
208
|
+
$accordion-content-color: inherit;
|
206
209
|
$accordion-content-padding: 1rem;
|
207
210
|
|
208
211
|
// 8. Accordion Menu
|
@@ -215,7 +218,7 @@ $accordionmenu-arrow-color: $primary-color;
|
|
215
218
|
// --------
|
216
219
|
|
217
220
|
$badge-background: $primary-color;
|
218
|
-
$badge-color:
|
221
|
+
$badge-color: $white;
|
219
222
|
$badge-padding: 0.3em;
|
220
223
|
$badge-minwidth: 1.5em;
|
221
224
|
$badge-font-size: 0.6rem;
|
@@ -363,7 +366,8 @@ $input-radius: $global-radius;
|
|
363
366
|
// ---------
|
364
367
|
|
365
368
|
$label-background: $primary-color;
|
366
|
-
$label-color:
|
369
|
+
$label-color: $white;
|
370
|
+
$label-color-alt: $body-font-color;
|
367
371
|
$label-font-size: 0.8rem;
|
368
372
|
$label-padding: 0.33333rem 0.5rem;
|
369
373
|
$label-radius: $global-radius;
|
@@ -434,7 +438,7 @@ $pagination-item-spacing: rem-calc(1);
|
|
434
438
|
$pagination-radius: $global-radius;
|
435
439
|
$pagination-item-background-hover: $white;
|
436
440
|
$pagination-item-background-current: $secondary-color;
|
437
|
-
$pagination-item-color-current:
|
441
|
+
$pagination-item-color-current: $white;
|
438
442
|
$pagination-item-color-disabled: lighten($body-font-color, 30);
|
439
443
|
$pagination-ellipsis-color: $body-font-color;
|
440
444
|
$pagination-mobile-items: false;
|
@@ -520,7 +524,7 @@ $tab-item-padding: 1.25rem 1.5rem;
|
|
520
524
|
$tab-expand-max: 6;
|
521
525
|
$tab-content-background: $white;
|
522
526
|
$tab-content-border: transparent;
|
523
|
-
$tab-content-color:
|
527
|
+
$tab-content-color: inherit;
|
524
528
|
$tab-content-padding: 0;
|
525
529
|
|
526
530
|
// 33. Thumbnail
|
@@ -566,4 +570,3 @@ $topbar-submenu-background: $topbar-background;
|
|
566
570
|
$topbar-title-spacing: 1rem;
|
567
571
|
$topbar-input-width: 200px;
|
568
572
|
$topbar-unstack-breakpoint: medium;
|
569
|
-
|