effective_bootstrap 1.20.0 → 1.20.1

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: 20c7b56cc34e569e897b52f0fd82b306106334a7e41017d79ec01b1197d87508
4
- data.tar.gz: 497bcaa34f73469f1c2907c4f02e60da33fa9fc6de0bf68648d7cbb2b9b207a6
3
+ metadata.gz: 77fd0f6a6a78f06cf13d73081a6723f91393725fffe54c215e0b9cfa488c6c21
4
+ data.tar.gz: 1a50ecb21f07c06cf2b8b82b1617ebe4cbe5e0ef8f9995abd79d6c0edd876ad2
5
5
  SHA512:
6
- metadata.gz: 378c00a63802c8f3851c5d60109efcc91a72e64b1bf78457d475bd666ee884a844580115d6a620d02fa475cf3ddf59d4c48d0aae162d06755584d654061cdd92
7
- data.tar.gz: cf3083bf3e69174ec407c6fee3bb4a93ac31321b61c49131ce0e75c1b3d5661bfb9579bc384a96c245d75bfaacd50a6af7546077d115e278e66b64374d75bdda
6
+ metadata.gz: ae96d7c6ddf9c654157a22c2e6f0592e46e12b619a495e1f30e5331e9b8cff299b813202dae563c6a7a3512f5908e5a45301dba853f9c973f83dbb70c189be88
7
+ data.tar.gz: edcab0ece95e4b21e5b97d56ae4eaa63a9743dae8f023bef4498a7283f731c79e03fb06e5eb368d9572634ab03c8b41fa8b235670b782cbd1ac39127e23ed70d
@@ -70,9 +70,6 @@ div.form-group > label + .btn-group { display: block; }
70
70
  .invalid-feedback { text-transform: capitalize; }
71
71
  .valid-feedback { display: none; }
72
72
 
73
- // File Control
74
- .form-control-file { border: none !important; }
75
-
76
73
  // Radios
77
74
  form fieldset.effective-radios legend {
78
75
  font-size: 1rem;
@@ -43,4 +43,19 @@ table.effective_file_attachments {
43
43
  img { max-width: 128px; max-height: 128px;}
44
44
  }
45
45
 
46
- input.form-control-file { padding-bottom: 2.75rem; }
46
+ input.form-control-file {
47
+ border: solid 1px;
48
+ padding: 1rem 0 1rem 1rem !important;
49
+ height: auto !important;
50
+ color: inherit !important;
51
+ border-color: inherit !important;
52
+
53
+ &:hover {
54
+ cursor: pointer;
55
+ }
56
+ }
57
+
58
+ #file-upload-button:hover {
59
+ cursor: pointer;
60
+ }
61
+
@@ -18,7 +18,7 @@ module Effective
18
18
  def input_html_options
19
19
  {
20
20
  id: tag_id,
21
- class: 'form-control form-control-file btn-outline-secondary',
21
+ class: 'form-control form-control-file',
22
22
  multiple: multiple?,
23
23
  direct_upload: true,
24
24
  'data-direct-upload-url': (@template.main_app.rails_direct_uploads_url unless options[:direct_upload] == false),
@@ -119,18 +119,20 @@ module Effective
119
119
 
120
120
  return unless url
121
121
 
122
- content_tag(:div, class: 'col') do
122
+ content_tag(:div, class: 'col-lg-4') do
123
123
  content_tag(:div, class: 'card mb-3') do
124
124
  if attachment.image?
125
- content_tag(:div, class: 'card-body') do
126
- image_tag(url, alt: attachment.filename.to_s, class: 'img-fluid') +
127
- link_to(attachment.filename, url, class: 'card-link')
125
+ content_tag(:div, class: 'card-body text-center') do
126
+ content_tag(:div, image_tag(url, alt: attachment.filename.to_s, class: 'img-fluid mb-2')) +
127
+ content_tag(:div, link_to(attachment.filename, url, class: 'card-link'))
128
128
  end
129
129
  else
130
130
  content_tag(:div, class: 'card-body') do
131
- content_tag(:p, link_to(attachment.filename, url, class: 'card-link'), class: 'card-text') +
132
131
  content_tag(:p, class: 'card-text') do
133
- (attachment.content_type + '<br>' + @template.number_to_human_size(attachment.byte_size)).html_safe
132
+ link_to(attachment.filename, url, class: 'card-link stretched-link') +
133
+ ('<br />' +
134
+ @template.number_to_human_size(attachment.byte_size
135
+ )).html_safe
134
136
  end
135
137
  end
136
138
 
@@ -141,8 +143,8 @@ module Effective
141
143
 
142
144
  def build_uploads_and_purge(super_file_field)
143
145
  if purge? && attachments_present?
144
- content_tag(:div, class: 'd-flex align-items-center') do
145
- content_tag(:div, (build_uploads + super_file_field), class: 'flex-grow-1 mr-3') +
146
+ content_tag(:div) do
147
+ content_tag(:div, (build_uploads + super_file_field), class: 'mb-3') +
146
148
  content_tag(:div, build_purge)
147
149
  end
148
150
  else
@@ -148,7 +148,7 @@ module Effective
148
148
 
149
149
  def item_label_options
150
150
  if buttons?
151
- { class: 'btn btn-outline-secondary' }
151
+ { class: 'btn btn-sm btn-outline-secondary' }
152
152
  elsif cards?
153
153
  { class: 'form-card-label' }
154
154
  elsif custom?
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.20.0'.freeze
2
+ VERSION = '1.20.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.0
4
+ version: 1.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-07 00:00:00.000000000 Z
11
+ date: 2025-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails