biola_frontend_toolkit 0.1.0 → 0.2.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: f089cf0b9315739c130dc453f1718e4de6f0290c
4
- data.tar.gz: 0a4b0b3ffbafce462fa59366390faebf18a8b268
3
+ metadata.gz: 5a0a9a8642ee45945391b2b15e54350ec5df375c
4
+ data.tar.gz: 749213074d04bf5a54b528700597e50a960824da
5
5
  SHA512:
6
- metadata.gz: e445aee231509eefae989d80d43453b6c0984a5c7ebf4ed5615f1c5b570b46aeaac7e4ffafe6e99e8ac9c652b16a68b00a7f3dad3bc8a9a6365d94d9142dcb71
7
- data.tar.gz: 541ee459b38fd0541264b99420ca6f55e642605e1711e41c22109476b2bbd38be10d15da2315ea7039098d16dba872c3b274540214008cc9b040fd2d86b961a4
6
+ metadata.gz: a0c9d60a40c9f93758a8e3acc7591a73f30ee5852666c9c192204392606cd033919c8fbf725cd1dac5bd9f8e0119400f8ea87b00b61c5d8003e240ba1660df7e
7
+ data.tar.gz: c5881dc079ab657bed57e9737d8df35357e7b0ca63b11620c1ea0ad633115b7ceecce4fa860e6920d54abadd2ff09f4e9259a0e63c6e63b9c8c9217e31dbcd06
data/README.md CHANGED
@@ -49,7 +49,7 @@ Include the following in `application.js.coffee`. This includes `jquery`, `jquer
49
49
 
50
50
  #### Other requirements
51
51
 
52
- * `@current_user` - When a user is logged in
52
+ * `current_user` - When a user is logged in
53
53
  * `logout_path` - Should return a link to the logout path
54
54
  * `/whateverpath?login=true` - Should be caught by ApplicationController and redirect to login page if not already logged in.
55
55
 
@@ -1,6 +1,5 @@
1
- body { margin: 0; }
2
- #wrapperBiolaHeader { background:#111; width:100%; }
3
- #biolaHeader { margin:0 auto; padding:0 15px; height: 42px;
1
+ #wrapperGlobalAppHeader { background:#111; width:100%; }
2
+ #globalAppHeader { margin:0 auto; padding:0 15px; height: 42px;
4
3
  a { text-decoration:none; color:#FFF; }
5
4
 
6
5
  .branding { float:left; font-weight:bold; font-size:13px; height:42px; line-height:42px; margin:0; font-family:'proxima-nova', 'avenir next',Helvetica,Arial,sans-serif; text-transform:uppercase; letter-spacing:0.25em;
@@ -8,16 +7,10 @@ body { margin: 0; }
8
7
  .university { display: none; }
9
8
  }
10
9
 
11
-
12
- // Customize header dropdown menus. These will still use Bootstrap but will overwrite some of it's default styles.
13
- .dropdown { float: right;
14
- .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;
15
- i.fa { vertical-align: middle; }
16
- }
10
+ .dropdown.custom-dropdown {
17
11
  .dropdown-menu { top: 122%; border-radius: 0; min-width: 230px;
18
12
  > li {
19
- > a { color:inherit; padding: 10px 20px;
20
- i { margin-right: 8px; }
13
+ > a { color: inherit;
21
14
  }
22
15
  }
23
16
 
@@ -68,8 +61,9 @@ body { margin: 0; }
68
61
  }
69
62
 
70
63
 
64
+
71
65
  @media screen and (max-width:360px) {
72
- #biolaHeader {
66
+ #globalAppHeader {
73
67
  #apps-list.dropdown {
74
68
  .dropdown-menu { right: -80px;
75
69
  &::before { right: 87px; }
@@ -80,7 +74,7 @@ body { margin: 0; }
80
74
  }
81
75
 
82
76
  @media screen and (min-width:549px) {
83
- #biolaHeader {
77
+ #globalAppHeader {
84
78
  #apps-list.dropdown {
85
79
  .dropdown-toggle {
86
80
  .mobile { display:none; }
@@ -93,19 +87,19 @@ body { margin: 0; }
93
87
  }
94
88
 
95
89
  @media screen and (min-width:768px) {
96
- #biolaHeader {
90
+ #globalAppHeader {
97
91
  .branding .university { display: inline; }
98
92
  }
99
93
  }
100
94
 
101
95
  @media screen and (min-width:768px) {
102
- #biolaHeader { width:750px; }
96
+ #globalAppHeader { width:750px; }
103
97
  }
104
98
 
105
99
  @media screen and (min-width:992px) {
106
- #biolaHeader { width:970px; }
100
+ #globalAppHeader { width:970px; }
107
101
  }
108
102
 
109
103
  @media screen and (min-width:1200px) {
110
- #biolaHeader { width:1170px; }
104
+ #globalAppHeader { width:1170px; }
111
105
  }
@@ -0,0 +1,45 @@
1
+ html { background: #222; } // This should color the footer in case the window expands past the footer then the color is the same.
2
+ #wrapperBiolaFooter { background:image-url('toolkit/footer-standard/footer_shadow.png') 0 0 repeat-x; background: #222; }
3
+ #siteinfo .org { text-indent:1000%; white-space:nowrap; overflow:hidden; }
4
+ #wrapperBiolaFooter { float:left; width:100%; padding:0 0 20px; }
5
+ #biolaFooter { width:770px; margin:22px auto; overflow:hidden; padding:0; background:image-url('toolkit/footer-standard/rule_dotted_v.gif') 60% top repeat-y; }
6
+ #biolaFooter,#biolaFooter a { color:#CCC; font:normal 12px/1.3 Helvetica,Arial,sans-serif; }
7
+ #navBiolaSupplemental { float:right; width:35%; margin:0; }
8
+ #navBiolaSupplemental ul { list-style-type:none; margin:4px 0; padding:0; }
9
+ #navBiolaSupplemental ul li { float:left; width:50%; margin:0 0 6px; }
10
+ #siteinfo { float:left; width:55%; margin:0; }
11
+ #siteinfo .org { display:block; width:45%; height:40px; float:left; margin:0 0 28px; background:image-url('toolkit/footer-standard/logo-biola-h-white.png') no-repeat 0 0; }
12
+ #siteinfo .adr,#siteinfo .tel,#siteinfoMapLink { float:right; clear:right; width:55%; font-style:normal; line-height:1.6; }
13
+ #siteinfo .adr { padding:4px 0 0 0; }
14
+ #siteinfo .tel { margin:0 0 9px 0; }
15
+ #siteinfoLegal { float:left; clear:left; width:160px; padding:0; text-align:left; margin:-15px 0 0; }
16
+ #siteinfoLegal,#siteinfoLegal a { color:#AAA; font-size:10px; }
17
+ #siteinfoLegal a { display:block; padding:0 0 2px; }
18
+
19
+ @media(max-width:767px) {
20
+ #wrapperBiolaFooter { float:none; padding:0; }
21
+ #biolaFooter { margin:0; padding:20px 0 20px; width:auto; text-align:center; background:transparent; }
22
+ #biolaFooter,#biolaFooter a { color:#CCC; font-size:10px; }
23
+ #siteinfo { float:none; width:auto; }
24
+ #siteinfo .org { display:inline-block; width:200px; height:70px; float:none; margin:0 auto 10px; padding:0; background:image-url('toolkit/footer-standard/logo-biola-v-white.png') no-repeat center top; }
25
+ #siteinfo .tel,#siteinfo .adr { float:none; width:100%; }
26
+ #siteinfoLegal { float:none; width:100%; text-align:center; margin:0; }
27
+ #siteinfoLegal a { display:inline; }
28
+ #siteinfoContact { margin:0 0 10px; }
29
+ #navBiolaSupplemental,#siteinfoMapLink { display:none; }
30
+ }
31
+
32
+ @media(min-width:768px) and (max-width:979px) {
33
+ #biolaFooter { width:680px; }
34
+ #biolaFooter,#biolaFooter a { font-size:11px; }
35
+ #siteinfo .org { background-size:120px 31px; background-position:0 5px; }
36
+ #siteinfoLegal,#siteinfoLegal a { font-size:9px; }
37
+ }
38
+
39
+ @media(max-width:767px) and (-webkit-min-device-pixel-ratio:1.5),(min-device-pixel-ratio:1.5) {
40
+ #siteinfo .org { background-image:image-url('toolkit/footer-standard/logo-biola-v-white-x2.png'); background-size:92px 69px; }
41
+ }
42
+
43
+ @media(min-width:768px) and (-webkit-min-device-pixel-ratio:1.5),(min-device-pixel-ratio:1.5) {
44
+ #siteinfo .org { background-image:image-url('toolkit/footer-standard/logo-biola-h-white-x2.png'); background-size:142px 37px; }
45
+ }
@@ -0,0 +1,28 @@
1
+ #wrapperGlobalMarketingHeader { background:#FFF; width:100%; height:46px; border-bottom:solid 2px #CCC; margin:0; }
2
+ #globalMarketingHeader { width:946px; height:44px; margin:0 auto; padding:0 11px; background:url(http://static.biola.edu/botr/biola/header-mini/images/watermark.gif) 66px 0 no-repeat; }
3
+ #globalMarketingHeader .branding { float:left; width:104px; height:30px; }
4
+ #globalMarketingHeader .logo { background:url(http://static.biola.edu/botr/biola/header-mini/images/logo-biola.png) 11px center no-repeat; width:116px; height:44px; display:block; text-indent:-1000px; overflow:hidden; }
5
+ #globalMarketingHeader .navMain { display:block; white-space:nowrap; list-style-type:none; font:bold 11px/1 Arial, sans-serif; letter-spacing:1px; text-transform:uppercase; padding:0; margin:0; overflow:hidden; float:right; }
6
+ #globalMarketingHeader .navMain li { display:block; float:left; margin:0 1px; }
7
+ #globalMarketingHeader .navMain a { text-align:center; display:block; padding:0 13px; margin:11px 0; height:22px; line-height:22px; text-decoration:none; color:#666; white-space:nowrap; }
8
+ #globalMarketingHeader .navMain a:hover { background:#3D434D; color:#FFF; }
9
+ #globalMarketingHeader .navMain a:active { display:block; }
10
+
11
+ * html #globalMarketingHeader .navMain li { width:1%; }
12
+
13
+ @media only screen and (max-width:980px) {
14
+ #globalMarketingHeader { width:720px; }
15
+ #globalMarketingHeader .navMain a { padding:0 5px; font-size:10px; letter-spacing:0; }
16
+ }
17
+
18
+ @media only screen and (max-width:767px) {
19
+ #wrapperGlobalMarketingHeader { height:30px; border-bottom:1px solid #999; }
20
+ #globalMarketingHeader { width:100%; padding:0; height:30px; background:#FFF url(http://static.biola.edu/botr/biola/header-mini/images/bg_header_m.png) left bottom repeat-x; }
21
+ #globalMarketingHeader .branding { float:none; margin:0; width:100%; }
22
+ #globalMarketingHeader .logo { width:100%; height:30px; padding:9px 0; margin:0; font:bold 13px/1 Helvetica,sans-serif; color:#666; text-transform:uppercase; text-indent:0; text-align:center; text-decoration:none; background:transparent !important; }
23
+ #globalMarketingHeader .navMain { display:none; }
24
+ }
25
+
26
+ @media (-webkit-min-device-pixel-ratio:1.5), (min-device-pixel-ratio:1.5) {
27
+ #globalMarketingHeader .logo { background-image:url(http://static.biola.edu/botr/biola/header-mini/images/logo-biola-x2.png); background-size:103px 30px; }
28
+ }
@@ -2,3 +2,20 @@
2
2
  //= require font-awesome
3
3
  //= require_tree ./biola
4
4
  //= require_self
5
+
6
+ body { margin: 0; }
7
+
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;
11
+ .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
+ i.fa { vertical-align: middle; }
13
+ }
14
+ .dropdown-menu { top: 122%; border-radius: 0; min-width: 230px;
15
+ > li {
16
+ > a { padding: 10px 20px;
17
+ i { margin-right: 8px; }
18
+ }
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,41 @@
1
+ #wrapperGlobalAppHeader
2
+ #globalAppHeader
3
+ h2.branding
4
+ a.logo href="http://www.biola.edu"
5
+ img> src="http://academics.biola.edu/static/biola/header-slim/images/logo-biola-mark-white.png" alt=""
6
+ ' Biola
7
+ span.university University
8
+
9
+ #current-user-profile.dropdown.custom-dropdown
10
+ a.dropdown-toggle href="#" aria-hidden="true" data-toggle="dropdown"
11
+ - if current_user.try(:photo_url).present?
12
+ #profile-img style="background-image: url('#{current_user.photo_url}')"
13
+ - else
14
+ span.fa-stack.fa-lg
15
+ i.fa.fa-circle.fa-stack-2x
16
+ i.fa.fa-user.fa-stack-1x.fa-inverse
17
+ = render 'frontend_toolkit/shared/profile_dropdown'
18
+
19
+ #apps-list.dropdown.custom-dropdown
20
+ = app_dropdown_link BiolaFrontendToolkit.config.app_links.present? do
21
+ span.desktop
22
+ = BiolaFrontendToolkit.config.app_name
23
+ - if BiolaFrontendToolkit.config.app_version.present?
24
+ span.version = "v#{BiolaFrontendToolkit.config.app_version}"
25
+ = show_environment
26
+ - if BiolaFrontendToolkit.config.app_links.present?
27
+ i.fa.fa-caret-down<
28
+ span.mobile
29
+ - if BiolaFrontendToolkit.config.app_links.present?
30
+ i.fa.fa-list.app-list-icon
31
+ i.fa.fa-caret-down
32
+ - else
33
+ i.fa.fa-home
34
+
35
+ - if BiolaFrontendToolkit.config.app_links.present?
36
+ ul.dropdown-menu.pull-right role="menu" aria-labelledby="dLabel"
37
+ - BiolaFrontendToolkit.config.app_links.each do |link|
38
+ li = app_link link
39
+ / li.divider
40
+ / li.text-center = link_to 'More', '#'
41
+
@@ -0,0 +1,27 @@
1
+ <div id="wrapperBiolaFooter">
2
+ <div id="biolaFooter">
3
+ <div id="navBiolaSupplemental">
4
+ <ul>
5
+ <li><a href="http://www.biola.edu/contact/">Contact Biola</a></li>
6
+ <li><a href="http://www.biola.edu/admissions/">Request Admission Info</a></li>
7
+ <li><a href="http://www.biola.edu/library/">Library</a></li>
8
+ <li><a href="http://www.biola.edu/donations/">Giving to Biola</a></li>
9
+ <li><a href="http://www.biola.edu/hr/">Employment</a></li>
10
+ <li><a href="http://www.biola.edu/news/press/">Press Room</a></li>
11
+ </ul>
12
+ </div>
13
+ <div id="siteinfo">
14
+ <div id="siteinfoContact" class="vcard">
15
+ <a class="org fn" href="http://www.biola.edu/">Biola University</a>
16
+ <div id="biola-address" class="adr">
17
+ <span class="street-address">13800 Biola Ave.</span>
18
+ <span class="locality">La Mirada</span>, <span class="region">CA</span>
19
+ <span class="postal-code">90639</span>
20
+ </div>
21
+ <div class="tel">1-562-903-6000</div>
22
+ </div>
23
+ <div id="siteinfoMapLink"><a href="http://www.biola.edu/maps/">Maps &amp; Directions</a> | <a href="http://biola.edu/privacy/">Privacy Policy</a></div>
24
+ <div id="siteinfoLegal"><a href="http://www.biola.edu/copyright/">© 1996-<%= Time.now.year %> Biola University, Inc.</a> All Rights Reserved.</div>
25
+ </div>
26
+ </div>
27
+ </div>
@@ -0,0 +1,13 @@
1
+ #wrapperGlobalMarketingHeader
2
+ #globalMarketingHeader
3
+ div.branding
4
+ a.logo href="http://www.biola.edu" Biola University
5
+ ul.navMain
6
+ li = link_to "About", "http://www.biola.edu/about"
7
+ li = link_to "Academics", "http://www.biola.edu/academics"
8
+ li = link_to "Admissions", "http://www.biola.edu/admissions"
9
+ li = link_to "Athletics", "http://www.biola.edu/athletics"
10
+ li = link_to "News & Events", "http://now.biola.edu/"
11
+ li = link_to "Resources", "http://www.biola.edu/resources"
12
+ li = link_to "Offices", "http://www.biola.edu/offices"
13
+ li = link_to "Search", "http://www.biola.edu/find/"
@@ -1,62 +1,2 @@
1
- #header
2
- #wrapperBiolaHeader
3
- #biolaHeader
4
- h2.branding
5
- a.logo href="http://www.biola.edu"
6
- img> src="http://academics.biola.edu/static/biola/header-slim/images/logo-biola-mark-white.png" alt=""
7
- ' Biola
8
- span.university University
9
-
10
- #current-user-profile.dropdown
11
- a.dropdown-toggle href="#" aria-hidden="true" data-toggle="dropdown"
12
- - if @current_user.try(:photo_url).present?
13
- #profile-img style="background-image: url('#{@current_user.photo_url}')"
14
- - else
15
- span.fa-stack.fa-lg
16
- i.fa.fa-circle.fa-stack-2x
17
- i.fa.fa-user.fa-stack-1x.fa-inverse
18
- ul.dropdown-menu.pull-right role="menu" aria-labelledby="dLabel"
19
- - if @current_user
20
- - BiolaFrontendToolkit.config.profile_links.each do |link|
21
- li = app_link link
22
- li
23
- = link_to logout_path do
24
- i.fa.fa-power-off>
25
- | Logout
26
- - else
27
- li = link_to 'Login', params.merge(login: 'true')
28
-
29
- / - if @current_user
30
- / #global-alerts.dropdown
31
- / a.dropdown-toggle href="#" aria-hidden="true" data-toggle="dropdown"
32
- / i.fa.fa-bell-o
33
- / ul.dropdown-menu.pull-right role="menu" aria-labelledby="dLabel"
34
- / li = link_to 'This is a really important message...', '#'
35
- / li = link_to 'Your last timecard is way overdue.', '#'
36
- / li = link_to 'You are in quite the pickle mister.', '#'
37
- / li = link_to 'Your student bill was due last week Thursday.', '#'
38
- / li = link_to 'You owe us one million dollars, plus a delicious candy bar.', '#'
39
-
40
- #apps-list.dropdown
41
- = app_dropdown_link BiolaFrontendToolkit.config.app_links.present? do
42
- span.desktop
43
- = BiolaFrontendToolkit.config.app_name
44
- - if BiolaFrontendToolkit.config.app_version.present?
45
- span.version = "v#{BiolaFrontendToolkit.config.app_version}"
46
- = show_environment
47
- - if BiolaFrontendToolkit.config.app_links.present?
48
- i.fa.fa-caret-down<
49
- span.mobile
50
- - if BiolaFrontendToolkit.config.app_links.present?
51
- i.fa.fa-list.app-list-icon
52
- i.fa.fa-caret-down
53
- - else
54
- i.fa.fa-home
55
-
56
- - if BiolaFrontendToolkit.config.app_links.present?
57
- ul.dropdown-menu.pull-right role="menu" aria-labelledby="dLabel"
58
- - BiolaFrontendToolkit.config.app_links.each do |link|
59
- li = app_link link
60
- / li.divider
61
- / li.text-center = link_to 'More', '#'
62
-
1
+ / this file is depricated
2
+ = render 'frontend_toolkit/global_app_header'
@@ -1,9 +1,11 @@
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)
3
5
 
4
6
  - if ['alpha', 'beta'].include? phase
5
7
  #wrapperPreRelease
6
- div id==phase+'Banner' class='pre-release-banner'
8
+ div id==phase+'Banner' class='pre-release-banner' style=styles
7
9
  .container
8
10
  span
9
11
  strong = phase.upcase+':'
@@ -11,4 +13,4 @@
11
13
  - if feedback_form_url
12
14
  | #{BiolaFrontendToolkit.config.release_phase_intro} &mdash; your #{link_to 'feedback', feedback_form_url, target: '_blank' } will help us improve it.
13
15
  - else
14
- = BiolaFrontendToolkit.config.release_phase_intro+'.'
16
+ = BiolaFrontendToolkit.config.release_phase_intro+'.'
@@ -0,0 +1,10 @@
1
+ ul.dropdown-menu.pull-right role="menu" aria-labelledby="dLabel"
2
+ - if current_user
3
+ - BiolaFrontendToolkit.config.profile_links.each do |link|
4
+ li = app_link link
5
+ li
6
+ = link_to logout_path do
7
+ i.fa.fa-power-off>
8
+ | Logout
9
+ - else
10
+ li = link_to 'Login', params.merge(login: 'true')
@@ -1,3 +1,3 @@
1
1
  module BiolaFrontendToolkit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.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.1.0
4
+ version: 0.2.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-06-26 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -50,15 +50,27 @@ files:
50
50
  - LICENSE.txt
51
51
  - README.md
52
52
  - Rakefile
53
+ - app/assets/images/toolkit/footer-standard/footer_shadow.png
54
+ - app/assets/images/toolkit/footer-standard/logo-biola-h-white-x2.png
55
+ - app/assets/images/toolkit/footer-standard/logo-biola-h-white.png
56
+ - app/assets/images/toolkit/footer-standard/logo-biola-v-white-x2.png
57
+ - app/assets/images/toolkit/footer-standard/logo-biola-v-white.png
58
+ - app/assets/images/toolkit/footer-standard/rule_dotted_v.gif
53
59
  - app/assets/javascripts/biola-frontend-toolkit.js.coffee
54
60
  - app/assets/stylesheets/biola-frontend-toolkit.css.scss
55
- - app/assets/stylesheets/biola/header.css.scss
61
+ - app/assets/stylesheets/biola/global_app_header.scss
62
+ - app/assets/stylesheets/biola/global_marketing_footer.css.scss
63
+ - app/assets/stylesheets/biola/global_marketing_header.css.scss
56
64
  - app/assets/stylesheets/biola/prerelease.css.scss
57
65
  - app/helpers/biola_frontend/rails/frontend_toolkit_helper.rb
66
+ - app/views/frontend_toolkit/_global_app_header.html.slim
67
+ - app/views/frontend_toolkit/_global_marketing_footer.html.erb
68
+ - app/views/frontend_toolkit/_global_marketing_header.html.slim
58
69
  - app/views/frontend_toolkit/_google_analytics.html.erb
59
70
  - app/views/frontend_toolkit/_head.html.slim
60
71
  - app/views/frontend_toolkit/_header.html.slim
61
72
  - app/views/frontend_toolkit/_prerelease_banner.html.slim
73
+ - app/views/frontend_toolkit/shared/_profile_dropdown.html.slim
62
74
  - biola_frontend_toolkit.gemspec
63
75
  - lib/biola_frontend_toolkit.rb
64
76
  - lib/biola_frontend_toolkit/configuration.rb