sul_styles 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1281828a762031465c90e244fffc7b00fb73d087
4
+ data.tar.gz: ad0450d428f58477e070bb85922569149fcc278c
5
+ SHA512:
6
+ metadata.gz: 0129a03caa11c26b01dc8a86e2034083c1941e548c98c4acacac4fbbf04b5d1a12dbd9bc479ab0962e64eb6584db11cb87dbab3b7e43bb9aa0e6b62cf446c8ef
7
+ data.tar.gz: 19f64bad7bb30c47d88376205480681b2d52c6348ed033ee5badae7323412dcf89a321b3d55a4c467413761211d11d6937d4e28649a3f1e8840362164470e7ee
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in sul_styles.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2015 The Board of Trustees of the Leland Stanford Junior University
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # SulStyles
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'sul_styles'
9
+ ```
10
+
11
+ And then execute:
12
+
13
+ $ bundle install
14
+
15
+ Import the SulStyles in your `app/assets/stylesheets/application.scss`.
16
+
17
+ @import 'sul-styles'
18
+
19
+ ## Contributing
20
+
21
+ Bug reports and pull requests are welcome on GitHub at https://github.com/sul-dlss/sul_styles.
22
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,31 @@
1
+ // Stanford Primary Colors from https://identity.stanford.edu/overview/color.html
2
+
3
+ // Primary Palette
4
+ $color-cardinal-red: #8c1515;
5
+ $color-cool-gray: #4d4f53;
6
+ $color-black: #000;
7
+
8
+ // Neutral Color Palette
9
+ $color-pantone-467: #d2c295;
10
+ $color-pantone-465: #b3995d;
11
+ $color-pantone-403: #928b81;
12
+ $color-pantone-401: #b6b1a9;
13
+ $color-pantone-7527: #dad7cb;
14
+ $color-pantone-5665: #c7d1c5;
15
+ $color-pantone-445: #4d5357;
16
+ $color-pantone-405: #5f574f;
17
+
18
+ // Deep Tone Color Palette
19
+ $color-pantone-1817: #5e3032;
20
+ $color-pantone-7526: #8d3c1e;
21
+ $color-pantone-3165: #00505c;
22
+ $color-pantone-561: #175e54;
23
+ $color-pantone-262: #53284f;
24
+
25
+ // Bright Color Palette
26
+ $color-pantone-2925: #0098db;
27
+ $color-pantone-3145: #007c92;
28
+ $color-pantone-334: #009b76;
29
+ $color-pantone-7511: #b26f16;
30
+ $color-pantone-144: #e98300;
31
+ $color-pantone-124: #eaab00;
@@ -0,0 +1,31 @@
1
+ // Stanford Web Colors from https://identity.stanford.edu/web-toolkit/color.html
2
+
3
+ // Red
4
+ $color-cardinal-red: #8c1515;
5
+ $color-dark-red: #820000;
6
+
7
+ // Black
8
+ $color-blackish: #2e2d29;
9
+ $color-black-80: #585754;
10
+
11
+ // Warm Gray
12
+ $color-gray: #3f3c30;
13
+ $color-gray-90: #565347;
14
+ $color-gray-60: #8a887d;
15
+
16
+ // Sandstone
17
+ $color-sandstone: #ddcf99;
18
+ $color-sandstone-50: #eee6cb;
19
+ $color-sandstone-35: #f3efd8;
20
+ $color-sandstone-25: #f6f3e5;
21
+ $color-sandstone-20: #f8f6ea;
22
+
23
+ // Beige
24
+ $color-beige: #9d9573;
25
+ $color-beige-85: #aca68d;
26
+ $color-beige-60: #c4bfa9;
27
+ $color-beige-40: #d5d0c0;
28
+ $color-beige-30: #e3dfd5;
29
+ $color-beige-20: #e9e6df;
30
+ $color-beige-10: #f2f1eb;
31
+ $color-beige-05: #fbfbf9;
@@ -0,0 +1,3 @@
1
+
2
+ @import 'sul-styles/su_web_colors';
3
+ @import 'sul-styles/su_primary_colors';
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "sul_styles"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ module SulStyles
2
+ VERSION = "0.1.0"
3
+ end
data/lib/sul_styles.rb ADDED
@@ -0,0 +1,15 @@
1
+ require 'sul_styles/version'
2
+
3
+ module SulStyles
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ initializer 'sul_styles.assets.precompile' do |app|
7
+ %w(stylesheets fonts).each do |sub|
8
+ app.config.assets.paths << root.join('assets', sub).to_s
9
+ end
10
+
11
+ app.config.assets.precompile << /\.(?:svg|eot|woff|woff2|ttf)\z/
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,22 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'sul_styles/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'sul_styles'
8
+ spec.version = SulStyles::VERSION
9
+ spec.authors = ['Jack Reed']
10
+ spec.email = ['pjreed@stanford.edu']
11
+
12
+ spec.summary = %q{A gem for adding Stanford University Libraries styles to Rails applications}
13
+ spec.homepage = 'https://github.com/sul-dlss/sul_styles'
14
+
15
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
+ spec.bindir = "exe"
17
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.10"
21
+ spec.add_development_dependency "rake", "~> 10.0"
22
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sul_styles
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jack Reed
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description:
42
+ email:
43
+ - pjreed@stanford.edu
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE
51
+ - README.md
52
+ - Rakefile
53
+ - assets/stylesheets/sul-styles.scss
54
+ - assets/stylesheets/sul-styles/su_primary_colors.scss
55
+ - assets/stylesheets/sul-styles/su_web_colors.scss
56
+ - bin/console
57
+ - bin/setup
58
+ - lib/sul_styles.rb
59
+ - lib/sul_styles/version.rb
60
+ - sul_styles.gemspec
61
+ homepage: https://github.com/sul-dlss/sul_styles
62
+ licenses: []
63
+ metadata: {}
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 2.4.5
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: A gem for adding Stanford University Libraries styles to Rails applications
84
+ test_files: []
85
+ has_rdoc: