biovision 0.12.211124.0 → 0.12.211128.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15e12d204f5f1ae12b72abc285f96f67db06d5b8789a015e3a649e1bba06b263
4
- data.tar.gz: 75b5e459c5f0b3a1f938cf08bcc97bb49dbae3cabdacb5a490ed807f8c2cfde1
3
+ metadata.gz: 96079542e17de0ab507ecc2fd0636afa47cd5164e8d46d1e45432d5e679c6cb6
4
+ data.tar.gz: f1f71b7d4704de6d44f6c8a1feacf5b118a1286ca7d5247cd585f324e7d7dd46
5
5
  SHA512:
6
- metadata.gz: e09f7a61ec614d7f8cf213e352923af9e21c9a801bb54fb3ad315622dc00dada8a34959057291ad0a9fc5871be8a388741a6351b8cfe34518826414cd6850774
7
- data.tar.gz: c8fa00223d9a133f0bb0afb64d6493172aa9f0f7d3ac73b01f2e462af9040e0a417a097b4dc8cf8cbcb28bcfad8e155560145d1d50be6cd24f8a66b7dd9ccbf9
6
+ metadata.gz: f610aca3a5e06fa83bdd1c34b75a8da77bf84136b5653dcccb012cb4ed8347adf859de402559257d8370a138c771b17cae088195277eef2a31ced1dc3f07033f
7
+ data.tar.gz: aa56a7851be4b9463f6c3ace77a47338feec2f9ebd17dc4166615b5ea657259be1698977542a896220193aa70312ee5eef2fbc564d86d640555a853f35fbdbb8
data/README.md CHANGED
@@ -134,8 +134,7 @@ concern :search do
134
134
  end
135
135
 
136
136
  concern :stories do
137
- post 'stories/:slug' => :collection_story, on: :collection, as: :story
138
- post 'stories/:slug' => :member_story, on: :member, as: :story
137
+ post 'stories/:slug' => :story, on: :collection, as: :story
139
138
  end
140
139
 
141
140
  root 'index#index'
@@ -1,37 +1,37 @@
1
1
  .js-biovision-carousel {
2
2
  position: relative;
3
+ }
3
4
 
4
- > button {
5
- -webkit-backdrop-filter: blur(.5rem) grayscale(.75);
6
- backdrop-filter: blur(.5rem) grayscale(.75);
7
- background: rgba(255, 255, 255, .5) no-repeat center / auto 1.6rem;
8
- border: none;
9
- border-radius: 50%;
10
- box-shadow: 0 0 .4rem rgba(0, 0, 0, .25);
11
- cursor: pointer;
12
- display: inline-block;
13
- height: 3.2rem;
14
- position: absolute;
15
- top: 50%;
16
- transform: translate(0, -50%);
17
- transition: .25s;
18
- width: 3.2rem;
19
- z-index: 4;
5
+ .carousel-button {
6
+ -webkit-backdrop-filter: blur(.5rem) grayscale(.75);
7
+ backdrop-filter: blur(.5rem) grayscale(.75);
8
+ background: rgba(255, 255, 255, .5) no-repeat center / auto 1.6rem;
9
+ border: none;
10
+ border-radius: 50%;
11
+ box-shadow: 0 0 .4rem rgba(0, 0, 0, .25);
12
+ cursor: pointer;
13
+ display: inline-block;
14
+ height: 3.2rem;
15
+ position: absolute;
16
+ top: 50%;
17
+ transform: translate(0, -50%);
18
+ transition: .25s;
19
+ width: 3.2rem;
20
+ z-index: 4;
20
21
 
21
- &:active,
22
- &:focus,
23
- &:hover {
24
- background-color: rgba(255, 255, 255, .75);
25
- box-shadow: 0 0 .4rem rgba(0, 0, 0, .75);
26
- }
22
+ &:active,
23
+ &:focus,
24
+ &:hover {
25
+ background-color: rgba(255, 255, 255, .75);
26
+ box-shadow: 0 0 .4rem rgba(0, 0, 0, .75);
27
27
  }
28
28
 
29
- .prev {
29
+ &.prev {
30
30
  background-image: image_url('biovision/components/carousel/arrow-left.svg');
31
31
  left: var(--spacer-xxs);
32
32
  }
33
33
 
34
- .next {
34
+ &.next {
35
35
  background-image: image_url('biovision/components/carousel/arrow-right.svg');
36
36
  right: var(--spacer-xxs);
37
37
  }
@@ -17,9 +17,9 @@ module Biovision
17
17
  # @param [User|nil] user
18
18
  def initialize(component, user = nil)
19
19
  @component = component
20
- self.slug = component&.slug || 'base'
20
+ @slug = component&.slug || 'base'
21
21
  self.user = user
22
- self.name = I18n.t("biovision.components.#{slug}.name", default: slug)
22
+ @name = I18n.t("biovision.components.#{slug}.name", default: slug)
23
23
  end
24
24
 
25
25
  # Receive component-specific handler by component slug
@@ -3,10 +3,12 @@
3
3
  <span><%= t('.nav_text') %></span>
4
4
  <% end %>
5
5
 
6
- <article class="content-wrapper">
7
- <h1><%= t('.heading') %></h1>
6
+ <article>
7
+ <div class="content-wrapper">
8
+ <h1><%= t('.heading') %></h1>
8
9
 
9
- <%= render partial: 'my/index/email', locals: { handler: component_handler } %>
10
- <%= render 'my/index/navigation' %>
11
- <%= render 'my/index/cards' %>
10
+ <%= render partial: 'my/index/email', locals: { handler: component_handler } %>
11
+ <%= render 'my/index/navigation' %>
12
+ <%= render 'my/index/cards' %>
13
+ </div>
12
14
  </article>
@@ -11,13 +11,15 @@
11
11
  <% end %>
12
12
 
13
13
  <article>
14
- <h1><%= t("#{prefix}.edit.heading", default: default_title) %></h1>
14
+ <div class="content-wrapper">
15
+ <h1><%= t("#{prefix}.edit.heading", default: default_title) %></h1>
15
16
 
16
- <% if component_handler.permit?('edit', @entity) %>
17
- <nav class="entity-actions">
18
- <%= destroy_icon(@entity) %>
19
- </nav>
20
- <% end %>
17
+ <% if component_handler.permit?('edit', @entity) %>
18
+ <nav class="entity-actions">
19
+ <%= destroy_icon(@entity) %>
20
+ </nav>
21
+ <% end %>
21
22
 
22
- <%= render partial: "#{controller_path}/form", locals: { entity: @entity } %>
23
+ <%= render partial: "#{controller_path}/form", locals: { entity: @entity } %>
24
+ </div>
23
25
  </article>
@@ -10,7 +10,9 @@
10
10
  <% end %>
11
11
 
12
12
  <article>
13
- <h1><%= t("#{prefix}.new.heading", default: default_title) %></h1>
13
+ <div class="content-wrapper">
14
+ <h1><%= t("#{prefix}.new.heading", default: default_title) %></h1>
14
15
 
15
- <%= render partial: "#{controller_path}/form", locals: { entity: @entity } %>
16
+ <%= render partial: "#{controller_path}/form", locals: { entity: @entity } %>
17
+ </div>
16
18
  </article>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Biovision
4
- VERSION = '0.12.211124.0'
4
+ VERSION = '0.12.211128.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biovision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.211124.0
4
+ version: 0.12.211128.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Khan-Magomedov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-24 00:00:00.000000000 Z
11
+ date: 2021-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails