sutty-jekyll-theme 0.5.2 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/_data/theme.yml +5 -0
- data/_includes/activity_pub/reaction.html +6 -4
- data/_includes/activity_pub/toot_card.html +6 -6
- data/_includes/details.html +26 -0
- data/_includes/embed_responsive.html +21 -0
- data/_includes/picture.html +30 -0
- data/_sass/details.scss +28 -0
- data/assets/css/styles.scss +4 -0
- data.tar.gz.sig +0 -0
- metadata +6 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4717e10e88607caa70540d0c8b58363ea92f70495587e3aa81420e1ec8869d37
|
4
|
+
data.tar.gz: '0686452875bfdadf88e7396b8389816ff2e8dba4157148d1ba8518c683d46744'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3656d3310336df3a2d51b95fd9affadf44ae6f2c38c4346d1bfa2fd7e8ca13312c33032f3fd7a595d826fafc8d0fd1a46c87b39d5c42a885f3273f850baee9a
|
7
|
+
data.tar.gz: 23f27f21c619ae4e64ac5ae44273a6b71c72e668e10d57796a1db0937467cb1a29b98d24d9c7f78ff997fb2225fc408cc65b2fbc0096fe9379e9d9e82c875015
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/_data/theme.yml
ADDED
@@ -17,21 +17,23 @@
|
|
17
17
|
<div class="flex-column px-2 flex-grow-1">
|
18
18
|
{% if include.previous.actor == include.activity.actor %}
|
19
19
|
<div class="d-flex">
|
20
|
-
<p class="transparent hover-transparent">
|
20
|
+
<p class="mb-0 transparent hover-transparent">
|
21
21
|
{% include_cached activity_pub/actor.html actor=include.activity.actor %}
|
22
22
|
</p>
|
23
23
|
</div>
|
24
24
|
<div class="d-flex">
|
25
|
-
<p class="transparent hover-transparent">
|
25
|
+
<p class="mb-0 transparent hover-transparent">
|
26
26
|
{% include_cached activity_pub/actor_mention.html actor=include.activity.actor without_link=true %}
|
27
27
|
</p>
|
28
28
|
</div>
|
29
29
|
{% else %}
|
30
30
|
<div class="d-flex">
|
31
|
-
<p class="">{% include_cached activity_pub/actor.html actor=include.activity.actor %}</p>
|
31
|
+
<p class="mb-0">{% include_cached activity_pub/actor.html actor=include.activity.actor %}</p>
|
32
32
|
</div>
|
33
33
|
<div class="d-flex">
|
34
|
-
|
34
|
+
<p class="mb-0">
|
35
|
+
{% include_cached activity_pub/actor_mention.html actor=include.activity.actor %}
|
36
|
+
</p>
|
35
37
|
</div>
|
36
38
|
{% endif %}
|
37
39
|
</div>
|
@@ -16,14 +16,14 @@
|
|
16
16
|
y=1
|
17
17
|
src=include.profile.icon.url
|
18
18
|
alt=include.profile.icon.name
|
19
|
-
width=
|
20
|
-
embed_class="mr-2 align-self-center w-
|
19
|
+
width=50
|
20
|
+
embed_class="mr-2 align-self-center w-50px"
|
21
21
|
img_class="h-100 object-fit-cover"
|
22
22
|
%}
|
23
23
|
|
24
24
|
<div class="">
|
25
|
-
<p>{% include_cached activity_pub/actor.html actor=include.profile %}</p>
|
26
|
-
<p>{% include_cached activity_pub/actor_mention.html actor=include.profile %}</p>
|
25
|
+
<p class="mb-0">{% include_cached activity_pub/actor.html actor=include.profile %}</p>
|
26
|
+
<p class="mb-0">{% include_cached activity_pub/actor_mention.html actor=include.profile %}</p>
|
27
27
|
</div>
|
28
28
|
</div>
|
29
29
|
|
@@ -46,7 +46,7 @@
|
|
46
46
|
{% endunless %}
|
47
47
|
{% endcapture %}
|
48
48
|
|
49
|
-
{% if include.activity.sensitive %}
|
49
|
+
{% if include.activity.sensitive and include.activity.summary != page.title %}
|
50
50
|
{% capture summary_title %}
|
51
51
|
<strong>{{ site.i18n.sensitive }}:</strong> {{ include.activity.summary }}
|
52
52
|
{% endcapture %}
|
@@ -55,7 +55,7 @@
|
|
55
55
|
include details.html
|
56
56
|
element_title=summary_title
|
57
57
|
element_text=content
|
58
|
-
summary_class="align-items-center btn-lg
|
58
|
+
summary_class="align-items-center btn-lg p-2 text-left f-16"
|
59
59
|
component_class="my-3"
|
60
60
|
font_size="ml-3 lead"
|
61
61
|
%}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{%- comment -%}
|
2
|
+
|
3
|
+
Details: elementos con dropdown
|
4
|
+
|
5
|
+
@param :component_class [String] Las clases del componente
|
6
|
+
@param :summary_class [String] Las clases del summary
|
7
|
+
@param :element_title [String] El título del elemento (summary)
|
8
|
+
@param :title_class [String] Las clases del título
|
9
|
+
@param :font_size [String] El tamaño de los íconos de abrir y cerrar
|
10
|
+
@param :element_text [String] El texto del elemento
|
11
|
+
@param :text_class [String] Las clases del texto
|
12
|
+
{%- endcomment -%}
|
13
|
+
|
14
|
+
{%- assign class_close = "hide-when-open " | append: include.font_size -%}
|
15
|
+
{%- assign class_open = "show-when-open " | append: include.font_size -%}
|
16
|
+
|
17
|
+
<details class="{{ include.component_class }}">
|
18
|
+
<summary class="d-flex justify-content-between {{ include.summary_class }}">
|
19
|
+
<div class="{{ include.title_class }}">{{ include.element_title }}</div>
|
20
|
+
{%- include fa.html icon="angle-down" class=class_close description=site.i18n.details.open -%}
|
21
|
+
{%- include fa.html icon="angle-up" class=class_open description=site.i18n.details.close -%}
|
22
|
+
</summary>
|
23
|
+
|
24
|
+
<div class="{{ include.text_class }}">{{ include.element_text }}</div>
|
25
|
+
<hr/>
|
26
|
+
</details>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{%- comment -%}
|
2
|
+
|
3
|
+
Embed responsive
|
4
|
+
|
5
|
+
@param :x [Integer]
|
6
|
+
@param :y [Integer]
|
7
|
+
@param :src [String]
|
8
|
+
@param :alt [String]
|
9
|
+
@param :width [Integer]
|
10
|
+
@param :height [Integer]
|
11
|
+
@param :embed_class [String]
|
12
|
+
@param :img_class [String]
|
13
|
+
{%- endcomment -%}
|
14
|
+
|
15
|
+
<div class="embed-responsive embed-responsive-{{ include.x }}by{{ include.y }} {{ include.embed_class }}" {{ include.extra }}>
|
16
|
+
{% if include.src %}
|
17
|
+
{%- include picture.html class="embed-responsive-item" img_class=include.img_class src=include.src alt=include.alt width=include.width -%}
|
18
|
+
{% else %}
|
19
|
+
<div class="embed-responsive-item background-primary"></div>
|
20
|
+
{% endif %}
|
21
|
+
</div>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{%- comment -%}
|
2
|
+
|
3
|
+
Image component
|
4
|
+
|
5
|
+
@param :src [String]
|
6
|
+
@param :alt [String]
|
7
|
+
@param :width [Integer]
|
8
|
+
@param :height [Integer]
|
9
|
+
@param :class [String]
|
10
|
+
@param :img_class [String]
|
11
|
+
{%- endcomment -%}
|
12
|
+
|
13
|
+
<picture class="{{ include.class }}">
|
14
|
+
<source
|
15
|
+
srcset="
|
16
|
+
{%- for pixel_density in site.data.theme.pixel_densities %}
|
17
|
+
{% if include.width %}
|
18
|
+
{%- assign w = include.width | times: pixel_density -%}
|
19
|
+
{% elsif include.height %}
|
20
|
+
{%- assign h = include.height | times: pixel_density -%}
|
21
|
+
{% endif %}
|
22
|
+
{{- include.src | thumbnail: w, h | uri_escape }} {{ pixel_density }}x,
|
23
|
+
{% endfor -%}
|
24
|
+
" />
|
25
|
+
|
26
|
+
<img
|
27
|
+
class="{{ include.img_class }}"
|
28
|
+
src="{{ include.src | thumbnail: include.width, include.height | uri_escape }}"
|
29
|
+
alt="{{ include.alt | escape_once }}" />
|
30
|
+
</picture>
|
data/_sass/details.scss
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
details {
|
2
|
+
summary {
|
3
|
+
.show-when-open {
|
4
|
+
display: none;
|
5
|
+
}
|
6
|
+
|
7
|
+
.hide-when-open {
|
8
|
+
display: block;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
&[open] {
|
13
|
+
summary {
|
14
|
+
.show-when-open {
|
15
|
+
display: block;
|
16
|
+
}
|
17
|
+
|
18
|
+
.hide-when-open {
|
19
|
+
display: none;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
& > summary {
|
25
|
+
list-style: none;
|
26
|
+
&::-webkit-details-marker { display: none; }
|
27
|
+
}
|
28
|
+
}
|
data/assets/css/styles.scss
CHANGED
@@ -7,6 +7,9 @@
|
|
7
7
|
{{ theme | yaml_to_scss: site.data.layouts.theme }}
|
8
8
|
{% endif %}
|
9
9
|
|
10
|
+
$sizes: (
|
11
|
+
50px: 3.125rem,
|
12
|
+
);
|
10
13
|
|
11
14
|
@import "fonts";
|
12
15
|
@import "variables";
|
@@ -20,6 +23,7 @@
|
|
20
23
|
@import "custom";
|
21
24
|
@import "content";
|
22
25
|
@import "menu";
|
26
|
+
@import "details";
|
23
27
|
|
24
28
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
25
29
|
@include media-breakpoint-up($breakpoint) {
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sutty-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
@@ -235,6 +235,7 @@ files:
|
|
235
235
|
- _data/layouts/theme.yml
|
236
236
|
- _data/manifest.json
|
237
237
|
- _data/schema.yml
|
238
|
+
- _data/theme.yml
|
238
239
|
- _includes/activity_pub/actor.html
|
239
240
|
- _includes/activity_pub/actor_mention.html
|
240
241
|
- _includes/activity_pub/button.html
|
@@ -254,6 +255,8 @@ files:
|
|
254
255
|
- _includes/activity_pub/video_modal.html
|
255
256
|
- _includes/bootstrap/custom_select.html
|
256
257
|
- _includes/date.html
|
258
|
+
- _includes/details.html
|
259
|
+
- _includes/embed_responsive.html
|
257
260
|
- _includes/external_link.html
|
258
261
|
- _includes/fa.html
|
259
262
|
- _includes/footer.html
|
@@ -264,6 +267,7 @@ files:
|
|
264
267
|
- _includes/menu_internal.html
|
265
268
|
- _includes/navbar.html
|
266
269
|
- _includes/page.html
|
270
|
+
- _includes/picture.html
|
267
271
|
- _includes/script.html
|
268
272
|
- _layouts/code_of_conduct.html
|
269
273
|
- _layouts/default.html
|
@@ -276,6 +280,7 @@ files:
|
|
276
280
|
- _sass/content.scss
|
277
281
|
- _sass/crypto.scss
|
278
282
|
- _sass/custom.css
|
283
|
+
- _sass/details.scss
|
279
284
|
- _sass/fonts.scss
|
280
285
|
- _sass/images.scss
|
281
286
|
- _sass/lora_ital_wght_0_400..700_1_400..700.scss
|
metadata.gz.sig
CHANGED
Binary file
|