biola_frontend_toolkit 0.2.0 → 0.3.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
  SHA1:
3
- metadata.gz: 5a0a9a8642ee45945391b2b15e54350ec5df375c
4
- data.tar.gz: 749213074d04bf5a54b528700597e50a960824da
3
+ metadata.gz: e4773caa4fe39702cf8c8fb875a24d49300d5741
4
+ data.tar.gz: 7f8b96dd5e37a0de0fdf150240498e02832aaa4e
5
5
  SHA512:
6
- metadata.gz: a0c9d60a40c9f93758a8e3acc7591a73f30ee5852666c9c192204392606cd033919c8fbf725cd1dac5bd9f8e0119400f8ea87b00b61c5d8003e240ba1660df7e
7
- data.tar.gz: c5881dc079ab657bed57e9737d8df35357e7b0ca63b11620c1ea0ad633115b7ceecce4fa860e6920d54abadd2ff09f4e9259a0e63c6e63b9c8c9217e31dbcd06
6
+ metadata.gz: cc5399c390723b2e33247c1a00318e68cec6ec050a6ea7443872deb52a3fe297fb19886db1ddf3260affa44bfb182a5e8f259e6aa12737f3f24491a6998d9c00
7
+ data.tar.gz: 6b83f40b166e5efff10c05227ceca5dc43876adb84935a4aec3ade38cc49247d198a3a4723852a462d7e04a26d6a165d80ddc0ff5e5fd54fd6635184fbd7fc02
@@ -6,8 +6,9 @@
6
6
  body { margin: 0; }
7
7
 
8
8
 
9
- // Customize header dropdown menus. These will still use Bootstrap but will overwrite some of it's default styles.
10
- .dropdown.custom-dropdown { float: right;
9
+ // Customize header dropdown menus. Declare both 'dropdown custom-dropdown' classes on the HTML element.
10
+ // We will still use the default Bootstrap dropdown but will overwrite some of it's default styles.
11
+ .custom-dropdown { float: right;
11
12
  .dropdown-toggle { display: block; text-align:center; line-height:42px; padding:0 15px; color:#CCC; cursor:pointer; background:transparent; border:0; outline:0; -webkit-user-select: none; -webkit-appearance:none;
12
13
  i.fa { vertical-align: middle; }
13
14
  }
@@ -7,7 +7,7 @@
7
7
  .university { display: none; }
8
8
  }
9
9
 
10
- .dropdown.custom-dropdown {
10
+ .custom-dropdown {
11
11
  .dropdown-menu { top: 122%; border-radius: 0; min-width: 230px;
12
12
  > li {
13
13
  > a { color: inherit;
@@ -64,7 +64,7 @@
64
64
 
65
65
  @media screen and (max-width:360px) {
66
66
  #globalAppHeader {
67
- #apps-list.dropdown {
67
+ #apps-list.custom-dropdown {
68
68
  .dropdown-menu { right: -80px;
69
69
  &::before { right: 87px; }
70
70
  &::after { right: 88px; }
@@ -75,7 +75,7 @@
75
75
 
76
76
  @media screen and (min-width:549px) {
77
77
  #globalAppHeader {
78
- #apps-list.dropdown {
78
+ #apps-list.custom-dropdown {
79
79
  .dropdown-toggle {
80
80
  .mobile { display:none; }
81
81
  .desktop { display: block; }
@@ -1,16 +1,16 @@
1
1
  - feedback_form_url ||= nil
2
2
  - phase = BiolaFrontendToolkit.config.release_phase
3
- - styles = ''
4
- - styles += "background-color: #{background_color};" if defined?(background_color)
5
3
 
6
4
  - if ['alpha', 'beta'].include? phase
7
5
  #wrapperPreRelease
8
- div id==phase+'Banner' class='pre-release-banner' style=styles
6
+ div id=(phase+'Banner') class='pre-release-banner'
9
7
  .container
10
8
  span
11
9
  strong = phase.upcase+':'
12
10
  '
11
+ = t('frontend_toolkit.release_phase_intro')
12
+ '
13
13
  - if feedback_form_url
14
- | #{BiolaFrontendToolkit.config.release_phase_intro} — your #{link_to 'feedback', feedback_form_url, target: '_blank' } will help us improve it.
14
+ = raw t('frontend_toolkit.release_phase_outro', feedback_link: link_to(t('frontend_toolkit.feedback_link_text'), feedback_form_url, target: '_blank'))
15
15
  - else
16
- = BiolaFrontendToolkit.config.release_phase_intro+'.'
16
+ = t('frontend_toolkit.release_phase_outro')
@@ -0,0 +1,6 @@
1
+ en:
2
+ frontend_toolkit:
3
+ release_phase_intro: This service is in active development
4
+ release_phase_outro: " — your %{feedback_link} will help us improve it."
5
+ feedback_link_text: feedback
6
+
@@ -22,16 +22,5 @@ module BiolaFrontendToolkit
22
22
  @ga_domain = 'biola.edu'
23
23
  @ga_enabled = false
24
24
  end
25
-
26
- def release_phase_intro
27
- case release_phase
28
- when 'alpha'
29
- 'This is a prototype'
30
- when 'beta'
31
- 'This is a trial service'
32
- else
33
- ''
34
- end
35
- end
36
25
  end
37
26
  end
@@ -1,3 +1,3 @@
1
1
  module BiolaFrontendToolkit
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biola_frontend_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Hall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2014-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,6 +72,7 @@ files:
72
72
  - app/views/frontend_toolkit/_prerelease_banner.html.slim
73
73
  - app/views/frontend_toolkit/shared/_profile_dropdown.html.slim
74
74
  - biola_frontend_toolkit.gemspec
75
+ - config/locales/en.yml
75
76
  - lib/biola_frontend_toolkit.rb
76
77
  - lib/biola_frontend_toolkit/configuration.rb
77
78
  - lib/biola_frontend_toolkit/engine.rb