bootstrap_bux 0.2.7 → 0.3.2
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 +4 -4
- data/README.md +9 -0
- data/app/assets/images/bootstrap_bux/development.ico +0 -0
- data/app/assets/images/bootstrap_bux/favicon.ico +0 -0
- data/app/assets/images/bootstrap_bux/staging.ico +0 -0
- data/app/assets/stylesheets/bootstrap_bux/application.css +24 -0
- data/app/views/bootstrap_bux/_favicon.html.erb +5 -0
- data/app/views/bootstrap_bux/_footer_logo.html.erb +1 -5
- data/app/views/bootstrap_bux/_osu_footer.html.erb +2 -2
- data/app/views/bootstrap_bux/_osu_footer_dark.html.erb +1 -1
- data/app/views/bootstrap_bux/_osu_footer_light.html.erb +1 -1
- data/app/views/bootstrap_bux/_osu_footer_white.html.erb +1 -1
- data/lib/bootstrap_bux/engine.rb +8 -3
- data/lib/bootstrap_bux/version.rb +1 -1
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9c33de68408a8fcb1f192f07de25f35e63981abd2e551291dcac1260a0b3386
|
4
|
+
data.tar.gz: 71605bf8428973eb19bebabde0b73bc767e11c2ec879258ec4dfce25d46a0ef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ebfe3a90e15a794da11dbe053a0ffbd43cdb6088e5a4a67037ea710d2e6720e5d208ee136a9201023e0c1d6eae5e85da90cc82768ac7ac31cb2e30c93671e98
|
7
|
+
data.tar.gz: bfa1f6476ff9d74e70980dd757e4e6d4bece86a5169dad21ef450918e7865ff7f96152eedfcb81b6e8a20fa3d2f16d34a545026d1a032a6e7790deb908c68621
|
data/README.md
CHANGED
@@ -69,6 +69,15 @@ If you wish to include a login link in your footer, be sure to include link info
|
|
69
69
|
|
70
70
|
= render 'bootstrap_bux/osu_footer_white', signed_in?: user_signed_in?
|
71
71
|
|
72
|
+
### Favicons
|
73
|
+
|
74
|
+
To use the Bootstrap Bux favicons, in the header section of your application layout, replace any existing favicon tag with the following:
|
75
|
+
|
76
|
+
= render 'bootstrap_bux/favicon'
|
77
|
+
|
78
|
+
This will cause your application to render different favicons for development, staging, and production, allowing you to see quickly which of your browser tabs is using which environment. Note that, in order for the icon files to load, you may need to update your staging and production environments with the line
|
79
|
+
|
80
|
+
config.assets.compile = true
|
72
81
|
|
73
82
|
## Supported BUX CSS classes
|
74
83
|
|
Binary file
|
Binary file
|
Binary file
|
@@ -726,6 +726,30 @@ a.bux-button {
|
|
726
726
|
margin-bottom: 1rem;
|
727
727
|
}
|
728
728
|
|
729
|
+
.bux-footer--dark .bux-footer__logo .st0 {
|
730
|
+
fill: #FFFFFF
|
731
|
+
}
|
732
|
+
|
733
|
+
.bux-footer--dark .bux-footer__logo .st1 {
|
734
|
+
fill: #BA0C2F
|
735
|
+
}
|
736
|
+
|
737
|
+
.bux-footer--light .bux-footer__logo .st0 {
|
738
|
+
fill: #666666
|
739
|
+
}
|
740
|
+
|
741
|
+
.bux-footer--light .bux-footer__logo .st1 {
|
742
|
+
fill: #BA0C2F
|
743
|
+
}
|
744
|
+
|
745
|
+
.bux-footer--white .bux-footer__logo .st0 {
|
746
|
+
fill: #666666
|
747
|
+
}
|
748
|
+
|
749
|
+
.bux-footer--white .bux-footer__logo .st1 {
|
750
|
+
fill: #BA0C2F
|
751
|
+
}
|
752
|
+
|
729
753
|
.bux-footer .bux-footer__contact p {
|
730
754
|
/* font-family: BuckeyeSans, HelveticaNeue, Helvetica, Arial, sans-serif; */
|
731
755
|
font-size: .875rem;
|
@@ -1,11 +1,7 @@
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
2
|
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3
3
|
<svg role="img" aria-label="The Ohio State University" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4
|
-
viewBox="0 0 576 90"
|
5
|
-
<style type="text/css">
|
6
|
-
.st0{fill:<%= fill1 %>}
|
7
|
-
.st1{fill:<%= fill2 %>}
|
8
|
-
</style>
|
4
|
+
viewBox="0 0 576 90" xml:space="preserve">
|
9
5
|
<g>
|
10
6
|
<polygon class="st0" points="83.9,64.5 83.9,65.9 576,65.9 576,64.5 "/>
|
11
7
|
<path class="st1" d="M17.1,26.8l5.5-5.5h17.8l5.5,5.5v36.6l-5.5,5.5H22.6l-5.5-5.5V26.8L17.1,26.8z M59.8,20.8L46.2,7.3H16.8
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<div class="col">
|
4
4
|
<div class="bux-footer__logo">
|
5
5
|
<a href="http://osu.edu" target="_blank">
|
6
|
-
<%= render 'bootstrap_bux/footer_logo'
|
6
|
+
<%= render 'bootstrap_bux/footer_logo'%>
|
7
7
|
</a>
|
8
8
|
</div>
|
9
9
|
<div class="bux-footer__contact bux-footer__contact--address">
|
@@ -102,7 +102,7 @@
|
|
102
102
|
<% unless BootstrapBux.configuration.signin_link.blank? || BootstrapBux.configuration.signout_link.blank? %>
|
103
103
|
<p class="bux_footer__link">
|
104
104
|
<% if signed_in? %>
|
105
|
-
<%=
|
105
|
+
<%= link_to('Log Out', BootstrapBux.configuration.signout_link, class: 'bux-link btn btn-link', 'data-method'=> :delete) %>
|
106
106
|
<% else %>
|
107
107
|
<%= button_to('Log In', BootstrapBux.configuration.signin_link, method: :post, class: 'bux-link btn btn-link', data: { turbo: false }) %>
|
108
108
|
<% end %>
|
data/lib/bootstrap_bux/engine.rb
CHANGED
@@ -4,8 +4,13 @@ module BootstrapBux
|
|
4
4
|
# make css assets available to any app using the gem
|
5
5
|
class Engine < ::Rails::Engine
|
6
6
|
isolate_namespace BootstrapBux
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
initializer 'bootstrap_bux.assets' do |app|
|
8
|
+
app.config.assets.paths << root.join('app', 'assets', 'images', 'bootstrap_bux').to_s
|
9
|
+
app.config.assets.paths << root.join('app', 'assets', 'stylesheets', 'bootstrap_bux').to_s
|
10
|
+
end
|
11
|
+
initializer 'bootstrap_bux.assets.precompile' do |app|
|
12
|
+
app.config.assets.precompile += %w( development.ico staging.ico favicon.ico )
|
13
|
+
app.config.assets.precompile += %w( application.css )
|
14
|
+
end
|
10
15
|
end
|
11
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_bux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alison Furlong
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -17,9 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 7.0.0
|
20
|
-
- - "
|
20
|
+
- - "<="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 8.2.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 7.0.0
|
30
|
-
- - "
|
30
|
+
- - "<="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 8.2.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: sprockets-rails
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,7 +108,11 @@ extra_rdoc_files: []
|
|
108
108
|
files:
|
109
109
|
- README.md
|
110
110
|
- Rakefile
|
111
|
+
- app/assets/images/bootstrap_bux/development.ico
|
112
|
+
- app/assets/images/bootstrap_bux/favicon.ico
|
113
|
+
- app/assets/images/bootstrap_bux/staging.ico
|
111
114
|
- app/assets/stylesheets/bootstrap_bux/application.css
|
115
|
+
- app/views/bootstrap_bux/_favicon.html.erb
|
112
116
|
- app/views/bootstrap_bux/_footer_logo.html.erb
|
113
117
|
- app/views/bootstrap_bux/_header_logo.html.erb
|
114
118
|
- app/views/bootstrap_bux/_osu_footer.html.erb
|