decidim-theme 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- 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,115 @@
|
|
1
|
+
.m_pages {
|
2
|
+
.page-title-wrapper {
|
3
|
+
.heading1 {
|
4
|
+
@extend .heading-3;
|
5
|
+
margin-bottom: rem-calc(22);
|
6
|
+
text-align: center;
|
7
|
+
}
|
8
|
+
.section-heading {
|
9
|
+
@extend .body-2;
|
10
|
+
@extend .body-2-nocaps;
|
11
|
+
@extend .body-2-semibold;
|
12
|
+
text-transform: none;
|
13
|
+
}
|
14
|
+
.intro--text.subheading1 {
|
15
|
+
@extend .heading-4;
|
16
|
+
text-align: center;
|
17
|
+
width: 100%;
|
18
|
+
margin: 0 auto;
|
19
|
+
padding: 0;
|
20
|
+
padding-bottom: rem-calc(64);
|
21
|
+
}
|
22
|
+
.card,
|
23
|
+
.card p {
|
24
|
+
@extend .body-4;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
&.m_pages--tabbed .m_pages.m_pages--standalone > .column {
|
29
|
+
max-width: calc(85% - #{$global-margin});
|
30
|
+
box-shadow: 1px 1px 1px var(--black-6);
|
31
|
+
border-radius: $global-radius;
|
32
|
+
padding: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
&.m_pages--standalone > .row.column {
|
36
|
+
padding-bottom: 2rem;
|
37
|
+
|
38
|
+
.callout {
|
39
|
+
margin: 0 1.5rem !important;
|
40
|
+
}
|
41
|
+
|
42
|
+
& > .row.column {
|
43
|
+
background: var(--white);
|
44
|
+
}
|
45
|
+
& > .columns {
|
46
|
+
margin: 0 !important;
|
47
|
+
padding: 1.5rem;
|
48
|
+
background: var(--white);
|
49
|
+
.card {
|
50
|
+
box-shadow: none;
|
51
|
+
margin-top: 2rem;
|
52
|
+
margin-bottom: 1rem;
|
53
|
+
.card__header {
|
54
|
+
margin-left: 0;
|
55
|
+
|
56
|
+
width: 100%;
|
57
|
+
.card__title {
|
58
|
+
margin-bottom: 1rem;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.page-title-wrapper {
|
65
|
+
max-width: 100%;
|
66
|
+
margin-left: auto;
|
67
|
+
margin-right: auto;
|
68
|
+
background: var(--white);
|
69
|
+
text-align: left;
|
70
|
+
border-radius: 0;
|
71
|
+
border-top-right-radius: $global-radius;
|
72
|
+
border-top-left-radius: $global-radius;
|
73
|
+
padding-bottom: rem-calc(64);
|
74
|
+
|
75
|
+
.page-title {
|
76
|
+
padding: 1.5rem 1.5rem 0 1.5rem;
|
77
|
+
margin-bottom: 0;
|
78
|
+
}
|
79
|
+
.heading1 {
|
80
|
+
text-align: left;
|
81
|
+
}
|
82
|
+
& + .columns {
|
83
|
+
max-width: 100%;
|
84
|
+
margin-left: auto;
|
85
|
+
margin-right: auto;
|
86
|
+
margin-bottom: 0;
|
87
|
+
padding: 0;
|
88
|
+
|
89
|
+
.card__content {
|
90
|
+
padding-top: 0;
|
91
|
+
padding-left: 1.5rem;
|
92
|
+
}
|
93
|
+
.card {
|
94
|
+
min-height: 42vh;
|
95
|
+
border-radius: 0;
|
96
|
+
border-bottom-right-radius: $global-radius;
|
97
|
+
border-bottom-left-radius: $global-radius;
|
98
|
+
box-shadow: unset;
|
99
|
+
margin-bottom: 0;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
&.m_pages.m_pages--tabbed .main-container {
|
105
|
+
background-color: transparent;
|
106
|
+
}
|
107
|
+
&.m_pages.m_pages--tabbed .main-container__content {
|
108
|
+
min-height: 42vh;
|
109
|
+
background: var(--white);
|
110
|
+
border-radius: $global-radius;
|
111
|
+
}
|
112
|
+
.tabs-title {
|
113
|
+
border: 0;
|
114
|
+
}
|
115
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
.author__name {
|
2
|
+
@extend .body-5;
|
3
|
+
@extend .body-5-semibold;
|
4
|
+
&.has-tip {
|
5
|
+
line-height: 1;
|
6
|
+
border-bottom: 0;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
.author-data--big .author__name {
|
10
|
+
@extend .body-3;
|
11
|
+
@extend .body-3-link;
|
12
|
+
}
|
13
|
+
.author-data--small {
|
14
|
+
margin-left: 0rem;
|
15
|
+
}
|
16
|
+
.author.author--inline {
|
17
|
+
a {
|
18
|
+
display: inline-flex;
|
19
|
+
align-items: center;
|
20
|
+
}
|
21
|
+
span.author__badge {
|
22
|
+
transform: translateY(-2px);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
.author-data .author__avatar {
|
26
|
+
transform: translateY(2px);
|
27
|
+
}
|
28
|
+
|
29
|
+
.author-data__extra {
|
30
|
+
@extend .body-5;
|
31
|
+
color: var(--emphasis-med);
|
32
|
+
a,
|
33
|
+
&.a {
|
34
|
+
color: var(--primary);
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,182 @@
|
|
1
|
+
//Variables
|
2
|
+
$footer-author-color: var(--grey2);
|
3
|
+
$author-color: var(--primary);
|
4
|
+
$date-color: $muted;
|
5
|
+
$date-font-size: $small-font-size;
|
6
|
+
$author-data-color: $muted;
|
7
|
+
|
8
|
+
//Styles
|
9
|
+
|
10
|
+
.author-data {
|
11
|
+
@include flex;
|
12
|
+
@include flex-align($x: left, $y: middle);
|
13
|
+
|
14
|
+
color: var(--secondary);
|
15
|
+
font-size: 0.9rem;
|
16
|
+
padding-left: 30px;
|
17
|
+
position: relative;
|
18
|
+
|
19
|
+
.author__name {
|
20
|
+
color: var(--secondary);
|
21
|
+
margin-bottom: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
.author__avatar {
|
25
|
+
position: absolute;
|
26
|
+
margin-left: -30px;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.author-data--small {
|
31
|
+
padding-left: 25px;
|
32
|
+
}
|
33
|
+
.author__nickname {
|
34
|
+
display: none;
|
35
|
+
}
|
36
|
+
a.author__nickname {
|
37
|
+
display: inline-block;
|
38
|
+
}
|
39
|
+
|
40
|
+
.author-data--big {
|
41
|
+
padding-left: 0;
|
42
|
+
|
43
|
+
.author-data__main {
|
44
|
+
margin: 0;
|
45
|
+
}
|
46
|
+
|
47
|
+
.author--flex,
|
48
|
+
.author--flex > div,
|
49
|
+
.author__name--container {
|
50
|
+
display: flex;
|
51
|
+
align-items: center;
|
52
|
+
}
|
53
|
+
.author--flex > div:last-child {
|
54
|
+
flex-direction: column;
|
55
|
+
align-items: flex-start;
|
56
|
+
}
|
57
|
+
|
58
|
+
.author__avatar {
|
59
|
+
position: relative;
|
60
|
+
margin-left: 0;
|
61
|
+
transform: translateY(2px) translateX(-8px);
|
62
|
+
img {
|
63
|
+
margin-top: auto;
|
64
|
+
width: rem-calc(32);
|
65
|
+
height: rem-calc(32);
|
66
|
+
object-fit: cover;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
.author__name {
|
71
|
+
@extend .body-3;
|
72
|
+
}
|
73
|
+
|
74
|
+
.author__nickname {
|
75
|
+
@extend .body-5;
|
76
|
+
}
|
77
|
+
|
78
|
+
.author__verified {
|
79
|
+
margin-left: $global-margin * 0.25;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.author-data--nopadding {
|
84
|
+
padding-left: 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
.author-data__main {
|
88
|
+
display: inline;
|
89
|
+
margin-right: 0.8rem;
|
90
|
+
}
|
91
|
+
|
92
|
+
.author-data__extra {
|
93
|
+
display: inline-block;
|
94
|
+
|
95
|
+
> button,
|
96
|
+
> span,
|
97
|
+
> a {
|
98
|
+
margin-right: 1rem;
|
99
|
+
}
|
100
|
+
|
101
|
+
@include breakpoint(large) {
|
102
|
+
&::before {
|
103
|
+
content: "";
|
104
|
+
margin-right: 0.8rem;
|
105
|
+
border-right: $border;
|
106
|
+
height: 0.7rem;
|
107
|
+
display: inline-block;
|
108
|
+
vertical-align: middle;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
.author {
|
114
|
+
display: flex;
|
115
|
+
font-size: 0.9rem;
|
116
|
+
}
|
117
|
+
|
118
|
+
.author--inline {
|
119
|
+
display: inline-block;
|
120
|
+
|
121
|
+
span {
|
122
|
+
padding-right: 5px;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
.author__name {
|
127
|
+
display: inline-block;
|
128
|
+
flex-grow: 1;
|
129
|
+
font-weight: normal;
|
130
|
+
align-self: center;
|
131
|
+
color: $author-color;
|
132
|
+
}
|
133
|
+
|
134
|
+
a:hover .author__name {
|
135
|
+
color: inherit;
|
136
|
+
text-decoration: underline;
|
137
|
+
}
|
138
|
+
|
139
|
+
.author__avatar {
|
140
|
+
padding: 0 0.5em 0 0;
|
141
|
+
display: inline-block;
|
142
|
+
display: flex;
|
143
|
+
flex-direction: column;
|
144
|
+
align-self: center;
|
145
|
+
|
146
|
+
.author--inline & {
|
147
|
+
display: inline-block;
|
148
|
+
}
|
149
|
+
|
150
|
+
img {
|
151
|
+
border-radius: 50%;
|
152
|
+
width: 25px;
|
153
|
+
height: 25px;
|
154
|
+
object-fit: cover;
|
155
|
+
margin-top: -5px;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
.author__avatar--small {
|
160
|
+
.author-data & {
|
161
|
+
margin-left: -25px;
|
162
|
+
}
|
163
|
+
|
164
|
+
img {
|
165
|
+
width: 20px;
|
166
|
+
height: 20px;
|
167
|
+
margin-top: -3px;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
.author__date {
|
172
|
+
display: block;
|
173
|
+
color: $date-color;
|
174
|
+
font-size: $date-font-size;
|
175
|
+
}
|
176
|
+
|
177
|
+
.author__verified,
|
178
|
+
.author__badge svg {
|
179
|
+
display: inline-block;
|
180
|
+
vertical-align: middle;
|
181
|
+
color: var(--primary);
|
182
|
+
}
|
@@ -0,0 +1,159 @@
|
|
1
|
+
.badges .card--badge {
|
2
|
+
padding-bottom: 0.65rem;
|
3
|
+
.card__header {
|
4
|
+
padding-bottom: 1rem;
|
5
|
+
}
|
6
|
+
.card__footer {
|
7
|
+
padding-top: 1rem;
|
8
|
+
}
|
9
|
+
.card__text {
|
10
|
+
&:first-of-type {
|
11
|
+
margin-bottom: 0;
|
12
|
+
}
|
13
|
+
padding: 0 0.5rem;
|
14
|
+
@extend .body-4;
|
15
|
+
color: var(--emphasis-low);
|
16
|
+
strong {
|
17
|
+
@extend .body-4-bold;
|
18
|
+
color: var(--emphasis-med);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.card__footer--transparent {
|
22
|
+
strong {
|
23
|
+
@extend .mini-title;
|
24
|
+
font-weight: normal;
|
25
|
+
}
|
26
|
+
.flex--sbc {
|
27
|
+
justify-content: stretch;
|
28
|
+
align-items: stretch;
|
29
|
+
gap: 0.32rem;
|
30
|
+
flex-direction: column;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
.badge-level {
|
35
|
+
flex: 1;
|
36
|
+
display: table;
|
37
|
+
border-collapse: collapse;
|
38
|
+
|
39
|
+
> div {
|
40
|
+
@include square(1rem);
|
41
|
+
&:first-of-type {
|
42
|
+
border-top-left-radius: 32px;
|
43
|
+
border-bottom-left-radius: 32px;
|
44
|
+
}
|
45
|
+
|
46
|
+
&:last-of-type {
|
47
|
+
border-top-right-radius: 32px;
|
48
|
+
border-bottom-right-radius: 32px;
|
49
|
+
}
|
50
|
+
|
51
|
+
border: $border;
|
52
|
+
display: table-cell;
|
53
|
+
|
54
|
+
&.is-achieved {
|
55
|
+
background-color: var(--success);
|
56
|
+
}
|
57
|
+
background-color: var(--grey1);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.badge-tip {
|
62
|
+
@extend .mt-xs;
|
63
|
+
@extend .mr-xs;
|
64
|
+
|
65
|
+
@include square(1rem);
|
66
|
+
|
67
|
+
color: var(--white);
|
68
|
+
border-radius: 50%;
|
69
|
+
background-color: var(--grey2);
|
70
|
+
z-index: 10;
|
71
|
+
cursor: pointer;
|
72
|
+
|
73
|
+
> :first-child {
|
74
|
+
@extend .flex--cc;
|
75
|
+
|
76
|
+
height: 100%;
|
77
|
+
}
|
78
|
+
|
79
|
+
&.badge-tip--inline {
|
80
|
+
display: inline-block;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.badge-container {
|
85
|
+
transition: none;
|
86
|
+
|
87
|
+
.badge__logo,
|
88
|
+
.badge__logo--small {
|
89
|
+
position: static !important;
|
90
|
+
padding-bottom: 0;
|
91
|
+
max-height: auto;
|
92
|
+
min-height: auto;
|
93
|
+
}
|
94
|
+
|
95
|
+
.badge__logo--small {
|
96
|
+
border: 1px solid var(--primary);
|
97
|
+
}
|
98
|
+
|
99
|
+
& > * {
|
100
|
+
max-width: 100%;
|
101
|
+
height: auto;
|
102
|
+
border: 4px solid var(--primary);
|
103
|
+
border-radius: 50%;
|
104
|
+
transition: none;
|
105
|
+
}
|
106
|
+
|
107
|
+
.no-stroke,
|
108
|
+
.no-stroke circle,
|
109
|
+
.no-stroke ellipse,
|
110
|
+
.no-stroke line,
|
111
|
+
.no-stroke path,
|
112
|
+
.no-stroke polygon,
|
113
|
+
.no-stroke polyline,
|
114
|
+
.no-stroke rect {
|
115
|
+
stroke: none !important;
|
116
|
+
}
|
117
|
+
|
118
|
+
.stroke-white,
|
119
|
+
.stroke-white circle,
|
120
|
+
.stroke-white ellipse,
|
121
|
+
.stroke-white line,
|
122
|
+
.stroke-white path,
|
123
|
+
.stroke-white polygon,
|
124
|
+
.stroke-white polyline,
|
125
|
+
.stroke-white rect {
|
126
|
+
stroke: $white !important;
|
127
|
+
}
|
128
|
+
|
129
|
+
/** Config SVG colors **/
|
130
|
+
.fill-primary {
|
131
|
+
fill: var(--secondary);
|
132
|
+
}
|
133
|
+
|
134
|
+
.fill-secondary {
|
135
|
+
fill: var(--primary);
|
136
|
+
}
|
137
|
+
|
138
|
+
.stroke-primary,
|
139
|
+
.stroke-primary circle,
|
140
|
+
.stroke-primary ellipse,
|
141
|
+
.stroke-primary line,
|
142
|
+
.stroke-primary path,
|
143
|
+
.stroke-primary polygon,
|
144
|
+
.stroke-primary polyline,
|
145
|
+
.stroke-primary rect {
|
146
|
+
stroke: var(--secondary);
|
147
|
+
}
|
148
|
+
|
149
|
+
.stroke-secondary,
|
150
|
+
.stroke-secondary circle,
|
151
|
+
.stroke-secondary ellipse,
|
152
|
+
.stroke-secondary line,
|
153
|
+
.stroke-secondary path,
|
154
|
+
.stroke-secondary polygon,
|
155
|
+
.stroke-secondary polyline,
|
156
|
+
.stroke-secondary rect {
|
157
|
+
stroke: var(--primary);
|
158
|
+
}
|
159
|
+
}
|