mitlibraries-theme 0.3.0 → 0.4.0.pre.2

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: de38546e2c7a45271c2ae4b508d4e4f3b2d4ed7e74ef312891df1272ad25216c
4
- data.tar.gz: b263d93cd14fb37f837359891b27469b057e2ba06fb80244d7afb757bd06ccda
3
+ metadata.gz: 173bc94cff3a3824778982ed81cd6327efd34897cb90c5272118a63e3f7210ee
4
+ data.tar.gz: ff31308bf9e66e1deabb264b8804f32a30727d3d56ebcbe1053e9c589cc6d75e
5
5
  SHA512:
6
- metadata.gz: 4a510b5c284e429b845fcd44191b7767865c67698aa133725a42bb4d55dcd5013f716d03bc50ab618975a91b0a933f7e0169ccbda761e0c80bdc862138ab588d
7
- data.tar.gz: da61ea18d08c298dc08ad53d07d10df8b27af51fd0a5b52060eff27aa7169f98f8a987934555d9b2183ce70d26f7254343305a2d52f27f54ae74f1c3d25d80d2
6
+ metadata.gz: 9ffa7467331fc25cdfd9f4c8ef27ff4660feccf80b425f57ce9fc34a28b6b911ad0925f46d16630ffe829563ba6076efb916b35208cc22844674e510c757ce8a
7
+ data.tar.gz: b5aeb8ad45f3fd95b5d3d3b8e2bfed3d49f3f6c4af545e7eb1a91fba8414fe066dd72d4df8aed100734a8a361a24c456a389dfe244bd3ff10c9f5f8b08f428b1
@@ -0,0 +1,56 @@
1
+ .PHONY: help fetch update cleanup dist publish
2
+ SHELL=/bin/bash
3
+ GEMSPEC=$(shell ls *.gemspec | head -1)
4
+ VERSION=$(shell ruby -e 'puts Gem::Specification::load("$(GEMSPEC)").version')
5
+ PROJECT=$(shell ruby -e 'puts Gem::Specification.load("$(GEMSPEC)").name')
6
+ GEM=$(PROJECT)-$(VERSION).gem
7
+
8
+ help: ## Print this message
9
+ @awk 'BEGIN { FS = ":.*##"; print "Usage: make <target>\n\nTargets:" } \
10
+ /^[-_[:alpha:]]+:.?*##/ { printf " %-15s%s\n", $$1, $$2 }' $(MAKEFILE_LIST)
11
+
12
+ fetch: clean ## Grab latest from theme repo (auto runs clean first)
13
+ mkdir -p tmp
14
+ curl -o tmp/assets.zip https://codeload.github.com/MITLibraries/mitlib-style/zip/master
15
+ unzip -o -d tmp tmp/assets.zip
16
+
17
+ update: fetch ## Synchronize latest (auto runs clean and fetch first)
18
+ # cleanup targets first in case assets were removed
19
+ rm -rf vendor/assets/images/
20
+ rm -rf vendor/assets/stylesheets/
21
+
22
+ mkdir vendor/assets/images/
23
+ mkdir vendor/assets/stylesheets/
24
+
25
+ cp -R tmp/mitlib-style-master/_assets/i/* vendor/assets/images
26
+ cp -R tmp/mitlib-style-master/_assets/sass/* vendor/assets/stylesheets
27
+
28
+ rm -rf vendor/assets/stylesheets/apps/
29
+ rm -f vendor/assets/stylesheets/ebooks-main.scss
30
+ rm -f vendor/assets/stylesheets/guide-helper.scss
31
+ rm -f vendor/assets/stylesheets/quicksubmit.sass
32
+
33
+ # We need to double $ so make doesn't think it's a variable and escape the $ for bash. Hence \$$.
34
+ sed -i '' "s+url('#{\$$image-path}/vi-shape7-tp.svg')+image-url('vi-shape7-tp.svg')+g" vendor/assets/stylesheets/elements/*.scss
35
+
36
+ @tput setaf 2
37
+ @tput bold
38
+ @echo "Assets updated. Make sure to update version in:"
39
+ @echo " lib/mitlibraries/theme/version.rb"
40
+ @echo "before building with 'make dist'"
41
+ @tput sgr0
42
+
43
+ clean: ## Delete downloaded zip and extracted files
44
+ rm -f tmp/assets.zip
45
+ rm -rf tmp/mitlib-style-master
46
+
47
+ dist: ## Build the gem from the current gemspec
48
+ gem build mitlibraries-theme.gemspec
49
+ @tput setaf 2
50
+ @tput bold
51
+ @echo "Finished building gem. To test locally add to your project Gemfile:"
52
+ @echo " gem 'mitlibraries-theme', path: '$(shell pwd)'"
53
+ @tput sgr0
54
+
55
+ publish: ## Publish the gem version defined in the gemspec
56
+ gem push "$(GEM)"
data/README.md CHANGED
@@ -75,7 +75,18 @@ called multiple times the results are concatenated.
75
75
 
76
76
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
77
77
 
78
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
78
+ Building and publishing this gem is handled via the `Makefile`.
79
+
80
+ Run `make help` for details.
81
+
82
+ If your goal is to fetch the latest assets from the style repo and publish the
83
+ changes, this would get you there:
84
+ - `make update`
85
+ - manually update the version in `lib/mitlibraries/theme/version.rb`
86
+ - `make dist`
87
+ - test the gem in a local version of a site that uses it with the info the previous command provided on completion
88
+ - commit and PR
89
+ - `make publish`
79
90
 
80
91
  ## Contributing
81
92
 
@@ -25,26 +25,20 @@
25
25
 
26
26
  <%= yield :additional_js %>
27
27
 
28
- <% if (ENV['GOOGLE_ANALYTICS']) %>
28
+ <% if (ENV['MATOMO_URL'].present? && ENV['MATOMO_SITE_ID'].present?) %>
29
+ <!-- Matomo -->
29
30
  <script type="text/javascript">
30
- // Google Analytics
31
-
32
- (function(i,s,o,g,r,a,m){
33
- i['GoogleAnalyticsObject']=r;
34
- i[r]=i[r]||function(){
35
- (i[r].q=i[r].q||[]).push(arguments)
36
- };
37
- i[r].l=1*new Date();
38
- a=s.createElement(o);
39
- m=s.getElementsByTagName(o)[0];
40
- a.async=1;
41
- a.src=g;
42
- m.parentNode.insertBefore(a,m);
43
-
44
- }(window,document,'script','https://www.google-analytics.com/analytics.js','ga'));
45
-
46
- ga('create', '<%= ENV['GOOGLE_ANALYTICS'] %>', 'auto');
47
- ga('send', 'pageview');
48
-
31
+ var _paq = window._paq || [];
32
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
33
+ _paq.push(['trackPageView']);
34
+ _paq.push(['enableLinkTracking']);
35
+ (function() {
36
+ var u='<%= ENV['MATOMO_URL'] %>';
37
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
38
+ _paq.push(['setSiteId', '<%= ENV['MATOMO_SITE_ID'] %>']);
39
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
40
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
41
+ })();
49
42
  </script>
43
+ <!-- End Matomo Code -->
50
44
  <% end %>
@@ -8,18 +8,53 @@
8
8
  <%= image_tag("mitlib-wordmark.svg", :alt => "MIT Libraries logo") %>
9
9
  </a>
10
10
  </div>
11
+ <div class="wrap-social">
12
+ <p class="text-find-us">Find us on</p>
13
+ <a href="https://twitter.com/mitlibraries" title="Twitter">
14
+ <svg class="icon-social--twitter" width="2048" height="2048" viewBox="-192 -384 2048 2048" xmlns="http://www.w3.org/2000/svg"><g transform="scale(1 -1) translate(0 -1280)"><path d="M1620 1128q-67 -98 -162 -167q1 -14 1 -42q0 -130 -38 -259.5t-115.5 -248.5t-184.5 -210.5t-258 -146t-323 -54.5q-271 0 -496 145q35 -4 78 -4q225 0 401 138q-105 2 -188 64.5t-114 159.5q33 -5 61 -5q43 0 85 11q-112 23 -185.5 111.5t-73.5 205.5v4q68 -38 146 -41 q-66 44 -105 115t-39 154q0 88 44 163q121 -149 294.5 -238.5t371.5 -99.5q-8 38 -8 74q0 134 94.5 228.5t228.5 94.5q140 0 236 -102q109 21 205 78q-37 -115 -142 -178q93 10 186 50z" fill="black"></path></g></svg>
15
+ <span class="sr">Twitter</span>
16
+ </a><!-- End Twitter -->
17
+
18
+ <a href="https://www.facebook.com/mitlib" title="Facebook">
19
+ <svg class="icon-social--facebook" width="2048" height="2048" viewBox="-640 -384 2048 2048" xmlns="http://www.w3.org/2000/svg"><g transform="scale(1 -1) translate(0 -1280)"><path d="M511 980h257l-30 -284h-227v-824h-341v824h-170v284h170v171q0 182 86 275.5t283 93.5h227v-284h-142q-39 0 -62.5 -6.5t-34 -23.5t-13.5 -34.5t-3 -49.5v-142z" fill="black"></path></g></svg>
20
+ <span class="sr">Facebook</span>
21
+ </a><!-- End Facebook -->
22
+
23
+ <a href="https://instagram.com/mitlibraries/" title="Instagram">
24
+ <svg class="icon-social--instagram" viewBox="0 0 120 120" enable-background="new 0 0 120 120" xml:space="preserve"><path id="Instagram_10_" fill="#FFFFFF" d="M95.1,103.9H24.9c-0.2,0-0.4-0.1-0.6-0.1c-3.9-0.5-7.1-3.4-8-7.2 c-0.1-0.4-0.2-0.9-0.2-1.3V24.8c0-0.2,0.1-0.3,0.1-0.5c0.6-3.9,3.4-7.1,7.3-8c0.4-0.1,0.8-0.2,1.3-0.2h70.4c0.2,0,0.3,0.1,0.5,0.1 c4,0.5,7.2,3.6,8,7.5c0.1,0.4,0.1,0.8,0.2,1.2v70.2c-0.1,0.4-0.1,0.8-0.2,1.2c-0.7,3.6-3.6,6.6-7.2,7.4 C96,103.7,95.5,103.8,95.1,103.9z M25.6,51.7v0.2c0,13,0,26,0,38.9c0,1.9,1.6,3.5,3.5,3.5c20.6,0,41.2,0,61.8,0 c1.9,0,3.5-1.6,3.5-3.5c0-13,0-25.9,0-38.9v-0.3H86c1.2,3.8,1.5,7.6,1.1,11.5c-0.5,3.9-1.7,7.6-3.8,10.9c-2.1,3.4-4.7,6.2-8,8.4 c-8.5,5.8-19.6,6.3-28.6,1.2c-4.5-2.5-8.1-6.1-10.6-10.7c-3.7-6.8-4.3-14-2.1-21.4C31.2,51.7,28.4,51.7,25.6,51.7L25.6,51.7z M60,42.2c-9.7,0-17.6,7.8-17.8,17.5c-0.1,9.9,7.8,17.8,17.4,18c9.9,0.2,18-7.7,18.2-17.4C78,50.4,70,42.2,60,42.2L60,42.2z M86.7,38.7L86.7,38.7c1.4,0,2.9,0,4.3,0c1.9,0,3.4-1.6,3.4-3.5c0-2.8,0-5.5,0-8.3c0-2-1.6-3.6-3.6-3.6c-2.8,0-5.5,0-8.3,0 c-2,0-3.6,1.6-3.6,3.6c0,2.7,0,5.5,0,8.2c0,0.4,0.1,0.8,0.2,1.2c0.5,1.5,1.8,2.4,3.5,2.4C84,38.7,85.3,38.7,86.7,38.7L86.7,38.7z"></path></svg>
25
+ <span class="sr">Instagram</span>
26
+ </a><!-- End Instagram -->
27
+
28
+ <a href="https://www.youtube.com/user/MITLibraries" title="YouTube">
29
+ <svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" class="icon-social--youtube"><path fill="black" d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" class=""></path></svg>
30
+ <span class="sr">YouTube</span>
31
+ </a><!-- End YouTube -->
32
+
33
+ <a href="https://libguides.mit.edu/mit-feeds" title="RSS">
34
+ <svg class="icon-social--rss" width="2048" height="2048" viewBox="-320 -384 2048 2048" xmlns="http://www.w3.org/2000/svg"><g transform="scale(1 -1) translate(0 -1280)"><path d="M384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 69q2 -28 -17 -48q-18 -21 -47 -21h-135q-25 0 -43 16.5t-20 41.5q-22 229 -184.5 391.5t-391.5 184.5q-25 2 -41.5 20t-16.5 43v135q0 29 21 47q17 17 43 17h5q160 -13 306 -80.5 t259 -181.5q114 -113 181.5 -259t80.5 -306zM1408 67q2 -27 -18 -47q-18 -20 -46 -20h-143q-26 0 -44.5 17.5t-19.5 42.5q-12 215 -101 408.5t-231.5 336t-336 231.5t-408.5 102q-25 1 -42.5 19.5t-17.5 43.5v143q0 28 20 46q18 18 44 18h3q262 -13 501.5 -120t425.5 -294 q187 -186 294 -425.5t120 -501.5z" fill="black"></path></g></svg>
35
+ <span class="sr">RSS</span>
36
+ </a><!-- End RSS -->
37
+ </div><!-- end .social -->
38
+ <div class="wrap-middle">
39
+ <div class="wrap-sitemap">
40
+ <nav class="sitemap-libraries-abbrev" aria-label="MIT Libraries site menu">
41
+ <h2 class="sr">MIT Libraries navigation</h2>
42
+ <a class="item" href="https://libraries.mit.edu/search">Search</a>
43
+ <a class="item" href="https://libraries.mit.edu/hours">Hours &amp; locations</a>
44
+ <a class="item" href="https://libraries.mit.edu/borrow">Borrow &amp; request</a>
45
+ <a class="item" href="https://libraries.mit.edu/research-support">Research support</a>
46
+ <a class="item" href="https://libraries.mit.edu/about">About us</a>
47
+ </nav>
48
+ </div><!-- end .links-all -->
49
+ <div class="wrap-policies">
50
+ <nav aria-label="MIT Libraries policy menu">
51
+ <span class="item"><a href="https://libraries.mit.edu/privacy" class="link-sub">Privacy</a></span>
52
+ <span class="item"><a href="https://libraries.mit.edu/permissions" class="link-sub">Permissions</a></span>
53
+ <span class="item"><a href="https://accessibility.mit.edu/" class="link-sub">Accessibility</a></span>
54
+ </nav>
55
+ </div>
56
+ </div>
11
57
  </div><!-- end .identity -->
12
- <div class="wrap-sitemap">
13
- <nav class="sitemap-libraries-abbrev" aria-label="MIT Libraries site menu">
14
- <h2 class="sr">MIT Libraries navigation</h2>
15
- <a class="item" href="https://libraries.mit.edu/">Home</a>
16
- <a class="item" href="https://libraries.mit.edu/search">Search</a>
17
- <a class="item" href="https://libraries.mit.edu/hours">Hours &amp; locations</a>
18
- <a class="item" href="https://libraries.mit.edu/borrow">Borrow &amp; request</a>
19
- <a class="item" href="https://libraries.mit.edu/research-support">Research support</a>
20
- <a class="item" href="https://libraries.mit.edu/about">About the Libraries</a>
21
- </nav>
22
- </div><!-- end .links-all -->
23
58
  </div>
24
59
  </div>
25
60
  </div>
@@ -1,5 +1,5 @@
1
1
  module Mitlibraries
2
2
  module Theme
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.4.0.pre.2'.freeze
4
4
  end
5
5
  end
@@ -7,12 +7,19 @@
7
7
  }
8
8
 
9
9
  .wrap-footer {
10
- background: $black image-url("vi-shape7-tp.svg") no-repeat 10% center;
10
+ background: $black image-url('vi-shape7-tp.svg') no-repeat 10% center;
11
11
 
12
12
  a {
13
13
  @extend %link;
14
14
  color: $white;
15
15
  text-decoration: none;
16
+
17
+ &:hover,
18
+ &:active,
19
+ &:focus {
20
+ text-decoration: underline;
21
+ color: $white;
22
+ }
16
23
  }
17
24
 
18
25
  .title {
@@ -37,7 +44,7 @@
37
44
  }
38
45
  }
39
46
 
40
- .wrap-usergroups {
47
+ .wrap-policies {
41
48
  @extend .list-inline-pipe;
42
49
  font-size: $fs-small;
43
50
  }
@@ -61,7 +68,7 @@
61
68
  background: $white none repeat scroll 0 0;
62
69
 
63
70
  path {
64
- fill: $gray-d1;
71
+ fill: $gray-d1;
65
72
  }
66
73
  }
67
74
  }
@@ -83,13 +90,23 @@
83
90
  font-size: $fs-xxsmall;
84
91
  color: $gray-l3;
85
92
 
93
+ .footer-info-institute {
94
+ display: flex;
95
+ justify-content: space-between;
96
+ align-items: baseline;
97
+ }
98
+
86
99
  a {
87
100
  @extend %link;
88
101
  color: $white;
102
+ &:hover,
103
+ &:active,
104
+ &:focus {
105
+ color: $white;
106
+ }
89
107
  }
90
108
 
91
109
  .link-logo-mit {
92
- display: inline-block;
93
110
 
94
111
  .logo-mit {
95
112
  fill: $gray-l2;
@@ -101,13 +118,14 @@
101
118
  }
102
119
 
103
120
  .about-mit {
104
- @extend .list-inline-pipe;
105
- display: inline-block;
106
121
  color: $gray-l3;
122
+ margin-right: 4%;
107
123
  text-transform: uppercase;
124
+ white-space: nowrap;
108
125
  }
109
126
 
110
127
  .license {
128
+ margin-left: auto;
111
129
  margin-top: 1rem;
112
130
  color: $gray-l3;
113
131
  }
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  .wrap-header {
29
- background: $black image-url("vi-shape7-tp.svg") no-repeat 0 65%;
29
+ background: $black image-url('vi-shape7-tp.svg') no-repeat 0 65%;
30
30
 
31
31
  .logo-mit-lib {
32
32
  display: inline-block;
@@ -90,3 +90,4 @@
90
90
  padding-top: 7px;
91
91
  padding-bottom: 5px;
92
92
  }
93
+
@@ -84,7 +84,7 @@
84
84
 
85
85
  .fa {
86
86
  display: inline-block;
87
- margin-right: .5em
87
+ margin-right: .5em;
88
88
  }
89
89
 
90
90
  &.success {
@@ -104,6 +104,20 @@
104
104
  border-top: 5px solid $error;
105
105
  color: $black-t;
106
106
  }
107
+
108
+ &.privacy-notice {
109
+ position: fixed;
110
+ bottom: 40px;
111
+ left: 10%;
112
+ right: 10%;
113
+ width: 80%;
114
+ display: flex;
115
+ justify-content: space-between;
116
+ background-color: #eee;
117
+ p {
118
+ margin-right: .5em;
119
+ }
120
+ }
107
121
  }
108
122
 
109
123
  .inline-action {
@@ -60,4 +60,8 @@ a {
60
60
  background: -webkit-linear-gradient(45deg, #f23074 0%,#d6d628 36%,#207cca 66%,#544b8c 100%); /* Chrome10-25,Safari5.1-6 */
61
61
  background: linear-gradient(45deg, #f23074 0%,#d6d628 36%,#207cca 66%,#544b8c 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
62
62
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f23074', endColorstr='#544b8c',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
63
+
64
+ .wrap-header {
65
+ background: transparent;
66
+ }
63
67
  }
@@ -284,7 +284,7 @@
284
284
  margin-bottom: 20px;
285
285
  }
286
286
 
287
- .wrap-usergroups {
287
+ .wrap-policies {
288
288
  width: 100%;
289
289
  border-top: 1px solid $gray;
290
290
  padding-top: 2rem;
@@ -293,6 +293,10 @@
293
293
  display: inline-block;
294
294
  margin: 1rem 1.5rem 1rem 0;
295
295
 
296
+ &.item {
297
+ margin-right: 0;
298
+ }
299
+
296
300
  &:after {
297
301
  content:'';
298
302
  }
@@ -331,7 +335,7 @@
331
335
  }
332
336
 
333
337
  .wrap-logo-lib,
334
- .wrap-usergroups,
338
+ .wrap-policies,
335
339
  .wrap-social {
336
340
  align-self: flex-end;
337
341
  margin-top: 0;
@@ -343,11 +347,11 @@
343
347
  margin-right: 4%;
344
348
  }
345
349
 
346
- .wrap-usergroups {
347
- order: 3;
348
- width: 100%;
349
- margin: 1rem 4% 0 0;
350
+ .wrap-policies {
351
+ order: 2;
352
+ padding: auto;
350
353
  border-top: none;
354
+ width: auto;
351
355
 
352
356
  span {
353
357
  margin-top: 0;
@@ -356,22 +360,22 @@
356
360
  }
357
361
 
358
362
  .wrap-social {
359
- order: 2;
360
- margin-left: 4%;
363
+ order: 3;
364
+ margin-left: auto;
361
365
  }
362
366
  }
363
367
 
364
368
  // large screen - able to handle several inline items
365
369
  @media (min-width: $bp-screen-lg) {
366
370
 
367
- .wrap-usergroups {
368
- order: 2;
369
- width: auto;
370
- }
371
-
372
371
  .wrap-social {
373
372
  order: 3;
374
373
  }
374
+
375
+ .wrap-policies {
376
+ order: 2;
377
+ }
378
+
375
379
  }
376
380
  }
377
381
 
@@ -379,29 +383,64 @@
379
383
  .wrap-footer.footer-slim {
380
384
  padding: 1.5rem 4%;
381
385
 
382
- .footer-main {
386
+ .wrap-middle {
387
+ order: 2;
383
388
  display: flex;
384
- align-items: center;
385
- }
389
+ flex: 1; // No other element gets a value, forcing this element to be greedy in its sizing
390
+ flex-direction: column;
391
+ align-items: flex-start;
386
392
 
387
- .wrap-sitemap {
388
- margin-left: 2%;
393
+ .wrap-policies {
394
+ align-self: flex-start; // This overrides the flex-end applicable to vertial alignment in full footer.
395
+ }
389
396
 
390
- .item {
391
- display: block;
392
- margin-right: 10px;
397
+ .wrap-sitemap {
398
+ display: inline-block;
399
+ margin-bottom: 2rem;
400
+
401
+ .item {
402
+ display: block;
403
+ margin-right: 10px;
404
+ margin-bottom: 5px;
405
+ }
393
406
  }
394
407
  }
395
408
 
409
+
396
410
  // larger screen - able to handle several inline items
397
411
  @media (min-width: $bp-screen-md) {
398
412
 
399
- .footer-main {
400
- align-items: baseline;
413
+ .wrap-middle {
414
+ order: 2;
415
+
416
+ .wrap-policies {
417
+ margin-left: 2%;
418
+ order: 2;
419
+ }
420
+
421
+ .wrap-sitemap {
422
+ display: inline-block;
423
+ margin-left: 2%;
424
+ margin-bottom: auto;
425
+ order: 1;
426
+
427
+ .item {
428
+ display: inline-block;
429
+ margin-bottom: auto;
430
+ }
431
+ }
401
432
  }
402
433
 
403
- .wrap-sitemap .item {
404
- display: inline-block;
434
+ .wrap-social {
435
+ order: 3;
436
+ }
437
+ }
438
+
439
+ @media (min-width: $bp-screen-lg) {
440
+ .wrap-policies {
441
+ }
442
+
443
+ .wrap-sitemap {
405
444
  }
406
445
  }
407
446
  }
@@ -19,6 +19,9 @@ $bp-screen-xl: 1280px;
19
19
  // #COLORS
20
20
  // ----------------------------
21
21
 
22
+ // NOTE: if updating color variables, you should also update
23
+ // the guide helper scss and the examples file;
24
+
22
25
  // colors - grayscale
23
26
  $black: #000;
24
27
  $black-t: #000; // true black
@@ -87,8 +90,8 @@ $fs-smallish: 1.3rem;
87
90
  $fs-small: 1.4rem;
88
91
  $fs-base: 1.6rem;
89
92
  $fs-large: 2.0rem;
90
- $fs-xlarge: 2.8rem;
91
- $fs-xxlarge: 3.6rem;
93
+ $fs-xlarge: 2.6rem;
94
+ $fs-xxlarge: 3.2rem;
92
95
  $fs-xxxlarge: 4.2rem;
93
96
  $fs-xxxxlarge: 4.8rem;
94
97
 
@@ -1,17 +1,39 @@
1
1
  // ------------------------------
2
2
  // MIT Libraries Build Compile - LTR
3
- // this compile makes a plain base css that includes everything for
3
+ // this compile makes a plain base css that includes everything for
4
4
  // header, footer, and basic content styling across apps
5
5
 
6
- // +Get the core styles
6
+ // +Base - Utilities
7
7
  // ====================
8
- @import 'core';
8
+ @import 'global/unsets';
9
+ @import 'global/variables';
10
+ @import 'global/helpers';
9
11
 
10
- // +Select styles that need js
11
- @import 'js-elements/expand-collapse';
12
+ // +Starter
13
+ // ====================
14
+ @import 'global/base';
15
+ @import 'global/typography';
16
+ @import 'global/layouts'; // various standard layouts
17
+
18
+ // +Elements
19
+ // ====================
20
+ @import 'elements/content'; // general content styles
21
+ @import 'elements/controls'; // buttons, link styles, sliders, etc.
22
+ @import 'elements/forms';
23
+ @import 'elements/modules'; // block level UI bits
24
+ @import 'elements/tables';
25
+ @import 'elements/header';
26
+ @import 'elements/footer';
27
+
28
+ // +Specific Views
29
+ // ====================
12
30
 
13
- // TODO - split this into a separate compile
14
- // app specific styles
31
+ // +Utility
15
32
  // ====================
16
- //@import 'apps/ebooks';
17
- //@import 'apps/quicksubmit';
33
+ @import 'global/vendor-overrides'; // overrides to vendor-provided styling
34
+ @import 'global/shame'; // used for any bad-form/orphaned scss
35
+
36
+
37
+ // +Select styles that need js
38
+ @import 'js-elements/expand-collapse';
39
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mitlibraries-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Prevost
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-11 00:00:00.000000000 Z
11
+ date: 2020-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '5'
97
- description:
97
+ description:
98
98
  email:
99
99
  - jprevost@mit.edu
100
100
  executables: []
@@ -106,6 +106,7 @@ files:
106
106
  - CODE_OF_CONDUCT.md
107
107
  - Gemfile
108
108
  - LICENSE.txt
109
+ - Makefile
109
110
  - README.md
110
111
  - Rakefile
111
112
  - app/helpers/link_helper.rb
@@ -127,7 +128,6 @@ files:
127
128
  - vendor/assets/images/favicon.ico
128
129
  - vendor/assets/images/mitlib-wordmark.svg
129
130
  - vendor/assets/images/vi-shape7-tp.svg
130
- - vendor/assets/stylesheets/_core.scss
131
131
  - vendor/assets/stylesheets/elements/_content.scss
132
132
  - vendor/assets/stylesheets/elements/_controls.scss
133
133
  - vendor/assets/stylesheets/elements/_footer.scss
@@ -149,7 +149,7 @@ homepage: https://github.com/MITLibraries/mitlibraries-theme
149
149
  licenses:
150
150
  - MIT
151
151
  metadata: {}
152
- post_install_message:
152
+ post_install_message:
153
153
  rdoc_options: []
154
154
  require_paths:
155
155
  - lib
@@ -160,13 +160,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  requirements:
163
- - - ">="
163
+ - - ">"
164
164
  - !ruby/object:Gem::Version
165
- version: '0'
165
+ version: 1.3.1
166
166
  requirements: []
167
- rubyforge_project:
168
- rubygems_version: 2.7.6
169
- signing_key:
167
+ rubygems_version: 3.0.3
168
+ signing_key:
170
169
  specification_version: 4
171
170
  summary: General theme for MIT Libraries Rails apps
172
171
  test_files: []
@@ -1,32 +0,0 @@
1
- // ------------------------------
2
- // Core compile of MIT Libraries styles needed for all apps
3
-
4
- // +Base - Utilities
5
- // ====================
6
- @import 'global/unsets';
7
- @import 'global/variables';
8
- @import 'global/helpers';
9
-
10
- // +Starter
11
- // ====================
12
- @import 'global/base';
13
- @import 'global/typography';
14
- @import 'global/layouts'; // various standard layouts
15
-
16
- // +Elements
17
- // ====================
18
- @import 'elements/content'; // general content styles
19
- @import 'elements/controls'; // buttons, link styles, sliders, etc.
20
- @import 'elements/forms';
21
- @import 'elements/modules'; // block level UI bits
22
- @import 'elements/tables';
23
- @import 'elements/header';
24
- @import 'elements/footer';
25
-
26
- // +Specific Views
27
- // ====================
28
-
29
- // +Utility
30
- // ====================
31
- @import 'global/vendor-overrides'; // overrides to vendor-provided styling
32
- @import 'global/shame'; // used for any bad-form/orphaned scss