sutty-jekyll-theme 0.5.2 → 0.5.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d43cad83cc4df3122be53fb4b7f0ae4e4201db245abd889838f6eaa1b3febf0a
4
- data.tar.gz: 7fab7b045bec73f404ac56097c871e8d4854d7833447a37b2f31a66b445cf078
3
+ metadata.gz: 7685e44024b7608654ee3f0f84dc9f0b3339eedb59732893d5935b31b608ddf3
4
+ data.tar.gz: '00984834c85601e1f1bd089c0c6c5d8064a65d469baf6fc2e90037d99ff40891'
5
5
  SHA512:
6
- metadata.gz: eebd6e48faa23766adbce748b6b754787344239909ffb7fc80aecf6b71ec4e53fe00c4e43a3e0045ef5cd956be1f7624775f442833614b18f5bea0fb85f254e1
7
- data.tar.gz: 5f5bcc8e72766c0495ecfb6760d1b7cd95d13b7548e8a6c4c205eed2068c0202cdff36ad0a476ea4fb31482f911fc5553df339bc7480a1a4168eb2afc978e665
6
+ metadata.gz: '0792a283ab8e2266cae6125e725285b0d63a3acccbc64933476ba6826b96bb2e7b48d428ee6d234d76d4dc141ad48b4aa4e383dbd9cfd778e97c05d75048a0bf'
7
+ data.tar.gz: d58cd422ee1a8d6cc4732e2ea0b0b49dc3b17f4bf5153489b72bbc6e8384984a46145d165b237a1cd898d31cdc4f5cb8f0413a37a3df168ec19f5c9cbe0bacad
checksums.yaml.gz.sig CHANGED
Binary file
data/_data/theme.yml ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ pixel_densities:
3
+ - "1"
4
+ - "1.5"
5
+ - "2"
@@ -16,14 +16,14 @@
16
16
  y=1
17
17
  src=include.profile.icon.url
18
18
  alt=include.profile.icon.name
19
- width=40
20
- embed_class="mr-2 align-self-center w-49px"
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 btn-secondary p-2 text-left f-16"
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>
@@ -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
+ }
@@ -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.2
4
+ version: 0.5.3
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