ogatstyle 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +59 -0
- data/.csslintrc +2 -0
- data/.eslintignore +1 -0
- data/.eslintrc +213 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.rubocop.yml +17 -0
- data/.travis.yml +19 -0
- data/CHANGELOG.md +58 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +56 -0
- data/Rakefile +7 -0
- data/app/assets/fonts/GillSans.woff +0 -0
- data/app/assets/fonts/GillSansBold.woff +0 -0
- data/app/assets/fonts/GillSansLight.eot +0 -0
- data/app/assets/fonts/GillSansLight.ttf +0 -0
- data/app/assets/fonts/GillSansLight.woff +0 -0
- data/app/assets/fonts/GillSansLightItalic.woff +0 -0
- data/app/assets/images/fileicon/archive.png +0 -0
- data/app/assets/images/fileicon/css.png +0 -0
- data/app/assets/images/fileicon/default.png +0 -0
- data/app/assets/images/fileicon/developer.png +0 -0
- data/app/assets/images/fileicon/excel.png +0 -0
- data/app/assets/images/fileicon/fireworks.png +0 -0
- data/app/assets/images/fileicon/flash.png +0 -0
- data/app/assets/images/fileicon/folder.png +0 -0
- data/app/assets/images/fileicon/html.png +0 -0
- data/app/assets/images/fileicon/illustrator.png +0 -0
- data/app/assets/images/fileicon/image.png +0 -0
- data/app/assets/images/fileicon/keynote.png +0 -0
- data/app/assets/images/fileicon/movie.png +0 -0
- data/app/assets/images/fileicon/music.png +0 -0
- data/app/assets/images/fileicon/numbers.png +0 -0
- data/app/assets/images/fileicon/pages.png +0 -0
- data/app/assets/images/fileicon/pdf.png +0 -0
- data/app/assets/images/fileicon/photoshop.png +0 -0
- data/app/assets/images/fileicon/powerpoint.png +0 -0
- data/app/assets/images/fileicon/text.png +0 -0
- data/app/assets/images/fileicon/word.png +0 -0
- data/app/assets/images/ogatstyle/swirl-white-nav.png +0 -0
- data/app/assets/images/ogatstyle/swirl-white-nav2x.png +0 -0
- data/app/assets/stylesheets/ogatstyle/_base_fonts.scss +23 -0
- data/app/assets/stylesheets/ogatstyle/_gill_sans.scss +6 -0
- data/app/assets/stylesheets/ogatstyle/_social.scss +33 -0
- data/app/assets/stylesheets/ogatstyle/_tables.scss +8 -0
- data/app/assets/stylesheets/ogatstyle/_type.scss +35 -0
- data/app/assets/stylesheets/ogatstyle/_variables.scss +14 -0
- data/app/assets/stylesheets/ogatstyle/_visibility.scss +25 -0
- data/app/assets/stylesheets/ogatstyle/apps/_bootstrap_overrides.scss +25 -0
- data/app/assets/stylesheets/ogatstyle/apps/_bootstrap_variables.scss +13 -0
- data/app/assets/stylesheets/ogatstyle/apps/_navbar.scss +75 -0
- data/app/assets/stylesheets/ogatstyle/apps/_purple.scss +28 -0
- data/app/assets/stylesheets/ogatstyle/sites/_base_style.scss +13 -0
- data/app/assets/stylesheets/ogatstyle/sites/_bootstrap_overrides.scss +61 -0
- data/app/assets/stylesheets/ogatstyle/sites/_bootstrap_variables.scss +3 -0
- data/app/assets/stylesheets/ogatstyle.scss +14 -0
- data/app/assets/stylesheets/ogatstyle_app.scss +14 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/coffeelint.json +129 -0
- data/lib/ogatstyle/fileicon/mapping.rb +69 -0
- data/lib/ogatstyle/fileicon.rb +26 -0
- data/lib/ogatstyle/version.rb +5 -0
- data/lib/ogatstyle.rb +22 -0
- data/ogatstyle.gemspec +33 -0
- metadata +251 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7bbb26742afa1b184c0a5e009ba41ba04b3d1f8b
|
4
|
+
data.tar.gz: f3abb5ad688b43e43e70abfccff2f51dd4053e57
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3a42536370f6464c880f4b899c19baa9d1c9575ef6f54806d7ef69aede591ff14c85ee34b258412fa0fef34f6fddb370cc3b33d23ff794f63032adec646a9b7d
|
7
|
+
data.tar.gz: 949aad907068e3d803624221ec2e91a94e6c93dec80190b5a721b7379007768be1a7bee8e8338049534f09ce92caaf1d99c9e283801609cc1af73dae9bb74eb7
|
data/.codeclimate.yml
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
engines:
|
3
|
+
brakeman:
|
4
|
+
enabled: true
|
5
|
+
exclude_fingerprints:
|
6
|
+
- a4e44ae521e0c69c1650b087f0798d45802afce84317a4dafab53dc55d2d3896
|
7
|
+
- a4aefcd471f1cb4306e275dc7fa5b2e96374ff9760f26546a8a8f85036ed0469
|
8
|
+
csslint:
|
9
|
+
enabled: true
|
10
|
+
coffeelint:
|
11
|
+
enabled: true
|
12
|
+
duplication:
|
13
|
+
enabled: true
|
14
|
+
config:
|
15
|
+
languages:
|
16
|
+
- ruby
|
17
|
+
- javascript
|
18
|
+
eslint:
|
19
|
+
enabled: true
|
20
|
+
fixme:
|
21
|
+
enabled: true
|
22
|
+
rubocop:
|
23
|
+
enabled: true
|
24
|
+
markdownlint:
|
25
|
+
enabled: true
|
26
|
+
checks:
|
27
|
+
MD013:
|
28
|
+
enabled: false
|
29
|
+
reek:
|
30
|
+
enabled: true
|
31
|
+
checks:
|
32
|
+
Attribute/Attribute:
|
33
|
+
enabled: false
|
34
|
+
Duplication/DuplicateMethodCall:
|
35
|
+
enabled: false
|
36
|
+
LowCohesion/FeatureEnvy:
|
37
|
+
enabled: false
|
38
|
+
scss-lint:
|
39
|
+
enabled: true
|
40
|
+
ratings:
|
41
|
+
paths:
|
42
|
+
- app/**
|
43
|
+
- lib/**
|
44
|
+
- Gemfile.lock
|
45
|
+
- "**.erb"
|
46
|
+
- "**.haml"
|
47
|
+
- "**.rb"
|
48
|
+
- "**.slim"
|
49
|
+
- "**.css"
|
50
|
+
- "**.coffee"
|
51
|
+
- "**.scss"
|
52
|
+
exclude_paths:
|
53
|
+
- config/
|
54
|
+
- db/
|
55
|
+
- spec/**/*
|
56
|
+
- test/
|
57
|
+
- vendor/
|
58
|
+
- data/
|
59
|
+
- coverage/
|
data/.csslintrc
ADDED
data/.eslintignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
**/*{.,-}min.js
|
data/.eslintrc
ADDED
@@ -0,0 +1,213 @@
|
|
1
|
+
ecmaFeatures:
|
2
|
+
modules: true
|
3
|
+
jsx: true
|
4
|
+
|
5
|
+
env:
|
6
|
+
amd: true
|
7
|
+
browser: true
|
8
|
+
es6: true
|
9
|
+
jquery: true
|
10
|
+
node: true
|
11
|
+
|
12
|
+
# http://eslint.org/docs/rules/
|
13
|
+
rules:
|
14
|
+
# Possible Errors
|
15
|
+
comma-dangle: [2, never]
|
16
|
+
no-cond-assign: 2
|
17
|
+
no-console: 0
|
18
|
+
no-constant-condition: 2
|
19
|
+
no-control-regex: 2
|
20
|
+
no-debugger: 2
|
21
|
+
no-dupe-args: 2
|
22
|
+
no-dupe-keys: 2
|
23
|
+
no-duplicate-case: 2
|
24
|
+
no-empty: 2
|
25
|
+
no-empty-character-class: 2
|
26
|
+
no-ex-assign: 2
|
27
|
+
no-extra-boolean-cast: 2
|
28
|
+
no-extra-parens: 0
|
29
|
+
no-extra-semi: 2
|
30
|
+
no-func-assign: 2
|
31
|
+
no-inner-declarations: [2, functions]
|
32
|
+
no-invalid-regexp: 2
|
33
|
+
no-irregular-whitespace: 2
|
34
|
+
no-negated-in-lhs: 2
|
35
|
+
no-obj-calls: 2
|
36
|
+
no-regex-spaces: 2
|
37
|
+
no-sparse-arrays: 2
|
38
|
+
no-unexpected-multiline: 2
|
39
|
+
no-unreachable: 2
|
40
|
+
use-isnan: 2
|
41
|
+
valid-jsdoc: 0
|
42
|
+
valid-typeof: 2
|
43
|
+
|
44
|
+
# Best Practices
|
45
|
+
accessor-pairs: 2
|
46
|
+
block-scoped-var: 0
|
47
|
+
complexity: [2, 6]
|
48
|
+
consistent-return: 0
|
49
|
+
curly: 0
|
50
|
+
default-case: 0
|
51
|
+
dot-location: 0
|
52
|
+
dot-notation: 0
|
53
|
+
eqeqeq: 2
|
54
|
+
guard-for-in: 2
|
55
|
+
no-alert: 2
|
56
|
+
no-caller: 2
|
57
|
+
no-case-declarations: 2
|
58
|
+
no-div-regex: 2
|
59
|
+
no-else-return: 0
|
60
|
+
no-empty-label: 2
|
61
|
+
no-empty-pattern: 2
|
62
|
+
no-eq-null: 2
|
63
|
+
no-eval: 2
|
64
|
+
no-extend-native: 2
|
65
|
+
no-extra-bind: 2
|
66
|
+
no-fallthrough: 2
|
67
|
+
no-floating-decimal: 0
|
68
|
+
no-implicit-coercion: 0
|
69
|
+
no-implied-eval: 2
|
70
|
+
no-invalid-this: 0
|
71
|
+
no-iterator: 2
|
72
|
+
no-labels: 0
|
73
|
+
no-lone-blocks: 2
|
74
|
+
no-loop-func: 2
|
75
|
+
no-magic-number: 0
|
76
|
+
no-multi-spaces: 0
|
77
|
+
no-multi-str: 0
|
78
|
+
no-native-reassign: 2
|
79
|
+
no-new-func: 2
|
80
|
+
no-new-wrappers: 2
|
81
|
+
no-new: 2
|
82
|
+
no-octal-escape: 2
|
83
|
+
no-octal: 2
|
84
|
+
no-proto: 2
|
85
|
+
no-redeclare: 2
|
86
|
+
no-return-assign: 2
|
87
|
+
no-script-url: 2
|
88
|
+
no-self-compare: 2
|
89
|
+
no-sequences: 0
|
90
|
+
no-throw-literal: 0
|
91
|
+
no-unused-expressions: 2
|
92
|
+
no-useless-call: 2
|
93
|
+
no-useless-concat: 2
|
94
|
+
no-void: 2
|
95
|
+
no-warning-comments: 0
|
96
|
+
no-with: 2
|
97
|
+
radix: 2
|
98
|
+
vars-on-top: 0
|
99
|
+
wrap-iife: 2
|
100
|
+
yoda: 0
|
101
|
+
|
102
|
+
# Strict
|
103
|
+
strict: 0
|
104
|
+
|
105
|
+
# Variables
|
106
|
+
init-declarations: 0
|
107
|
+
no-catch-shadow: 2
|
108
|
+
no-delete-var: 2
|
109
|
+
no-label-var: 2
|
110
|
+
no-shadow-restricted-names: 2
|
111
|
+
no-shadow: 0
|
112
|
+
no-undef-init: 2
|
113
|
+
no-undef: 0
|
114
|
+
no-undefined: 0
|
115
|
+
no-unused-vars: 0
|
116
|
+
no-use-before-define: 0
|
117
|
+
|
118
|
+
# Node.js and CommonJS
|
119
|
+
callback-return: 2
|
120
|
+
global-require: 2
|
121
|
+
handle-callback-err: 2
|
122
|
+
no-mixed-requires: 0
|
123
|
+
no-new-require: 0
|
124
|
+
no-path-concat: 2
|
125
|
+
no-process-exit: 2
|
126
|
+
no-restricted-modules: 0
|
127
|
+
no-sync: 0
|
128
|
+
|
129
|
+
# Stylistic Issues
|
130
|
+
array-bracket-spacing: 0
|
131
|
+
block-spacing: 0
|
132
|
+
brace-style: 0
|
133
|
+
camelcase: 0
|
134
|
+
comma-spacing: 0
|
135
|
+
comma-style: 0
|
136
|
+
computed-property-spacing: 0
|
137
|
+
consistent-this: 0
|
138
|
+
eol-last: 0
|
139
|
+
func-names: 0
|
140
|
+
func-style: 0
|
141
|
+
id-length: 0
|
142
|
+
id-match: 0
|
143
|
+
indent: 0
|
144
|
+
jsx-quotes: 0
|
145
|
+
key-spacing: 0
|
146
|
+
linebreak-style: 0
|
147
|
+
lines-around-comment: 0
|
148
|
+
max-depth: 0
|
149
|
+
max-len: 0
|
150
|
+
max-nested-callbacks: 0
|
151
|
+
max-params: 0
|
152
|
+
max-statements: [2, 30]
|
153
|
+
new-cap: 0
|
154
|
+
new-parens: 0
|
155
|
+
newline-after-var: 0
|
156
|
+
no-array-constructor: 0
|
157
|
+
no-bitwise: 0
|
158
|
+
no-continue: 0
|
159
|
+
no-inline-comments: 0
|
160
|
+
no-lonely-if: 0
|
161
|
+
no-mixed-spaces-and-tabs: 0
|
162
|
+
no-multiple-empty-lines: 0
|
163
|
+
no-negated-condition: 0
|
164
|
+
no-nested-ternary: 0
|
165
|
+
no-new-object: 0
|
166
|
+
no-plusplus: 0
|
167
|
+
no-restricted-syntax: 0
|
168
|
+
no-spaced-func: 0
|
169
|
+
no-ternary: 0
|
170
|
+
no-trailing-spaces: 0
|
171
|
+
no-underscore-dangle: 0
|
172
|
+
no-unneeded-ternary: 0
|
173
|
+
object-curly-spacing: 0
|
174
|
+
one-var: 0
|
175
|
+
operator-assignment: 0
|
176
|
+
operator-linebreak: 0
|
177
|
+
padded-blocks: 0
|
178
|
+
quote-props: 0
|
179
|
+
quotes: 0
|
180
|
+
require-jsdoc: 0
|
181
|
+
semi-spacing: 0
|
182
|
+
semi: 0
|
183
|
+
sort-vars: 0
|
184
|
+
space-after-keywords: 0
|
185
|
+
space-before-blocks: 0
|
186
|
+
space-before-function-paren: 0
|
187
|
+
space-before-keywords: 0
|
188
|
+
space-in-parens: 0
|
189
|
+
space-infix-ops: 0
|
190
|
+
space-return-throw-case: 0
|
191
|
+
space-unary-ops: 0
|
192
|
+
spaced-comment: 0
|
193
|
+
wrap-regex: 0
|
194
|
+
|
195
|
+
# ECMAScript 6
|
196
|
+
arrow-body-style: 0
|
197
|
+
arrow-parens: 0
|
198
|
+
arrow-spacing: 0
|
199
|
+
constructor-super: 0
|
200
|
+
generator-star-spacing: 0
|
201
|
+
no-arrow-condition: 0
|
202
|
+
no-class-assign: 0
|
203
|
+
no-const-assign: 0
|
204
|
+
no-dupe-class-members: 0
|
205
|
+
no-this-before-super: 0
|
206
|
+
no-var: 0
|
207
|
+
object-shorthand: 0
|
208
|
+
prefer-arrow-callback: 0
|
209
|
+
prefer-const: 0
|
210
|
+
prefer-reflect: 0
|
211
|
+
prefer-spread: 0
|
212
|
+
prefer-template: 0
|
213
|
+
require-yield: 0
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.0
|
3
|
+
Include:
|
4
|
+
- '**/Rakefile'
|
5
|
+
Exclude:
|
6
|
+
- 'bin/**/*'
|
7
|
+
|
8
|
+
Metrics/LineLength:
|
9
|
+
Max: 80
|
10
|
+
Metrics/MethodLength:
|
11
|
+
Max: 15
|
12
|
+
Style/AlignParameters:
|
13
|
+
EnforcedStyle: with_fixed_indentation
|
14
|
+
Style/MultilineMethodCallIndentation:
|
15
|
+
EnforcedStyle: indented
|
16
|
+
Style/ClassAndModuleChildren:
|
17
|
+
Enabled: false
|
data/.travis.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.3.0
|
4
|
+
- 2.0.0
|
5
|
+
addons:
|
6
|
+
code_climate:
|
7
|
+
repo_token: dbd5bb31c15378fc0f7fa9722aa2c822edcde33ec0172c2dfa055ab354981046
|
8
|
+
before_install: gem install bundler -v 1.13.6
|
9
|
+
script:
|
10
|
+
- bundle exec rubocop
|
11
|
+
- bundle exec rspec
|
12
|
+
deploy:
|
13
|
+
provider: rubygems
|
14
|
+
api_key:
|
15
|
+
secure: sFLffEqNmjfv0atXzQNifV3N6ChQrqwmV8fuu3YFFMUzkfyQEkcjdc6AkhlHtA9NkqQrXpjOtQb5CpcGVYHgB49JaRKYiAkObzv2omvq8BaxC+IMaszYEBVLuACIGmxX2nouP88QfNye1RjM059jnHCFrEih5Opj3G0j4ux89ukfEuskC8hME+tIumO9p6iqQOnRH3JuOQese1N/oPSBdW5M1/vL39j2juzBTidFVRwQSVekHA1pWO8JzcIBzjsBnRxDdp9D4SLOwmMYhBqaeIhx+rTblcv1wfp4/oyQAUrDg9777KGiLHJREEuosjdTeaYeWWqmgh6v7OFzXV21v54cCnqjoJoeC9DXLiSuw2eaQZO9+ce3o0f3K7/bRCO4NpRVmbEcitBZxoD7fqqdlE4JhEfpNCIw+TnHNXDIpoT0CsNHfuPtYh6p6Sbjs/9hOfbCR3tskTgMi3USJyqUHCySky/1DzW4DddnQaIRKWuqaOF7FWZroQ2BqPI2oSBwr5v0n/FpBkzoxRvLqcPqPtia/P5g+dFYhlV02WUBSecS1oRahqK+MlHzGytqAOyiwp+aFZ/blxhJYgYDxLgsidnTp1vwun2shgkyUtPWLh/VX3HFrR7RUkbXKn7VObgqr7PSgCke4TGJwMY8RZiQH5hPszfKDsiuW854eZUZR3I=
|
16
|
+
gem: ogatstyle
|
17
|
+
on:
|
18
|
+
tags: true
|
19
|
+
repo: Outwood/ogatstyle
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
## development
|
2
|
+
|
3
|
+
## v3.2.1 - 2016-10-3
|
4
|
+
|
5
|
+
- [OS-15] Fixed: correct asset names added to app.config.assets.precompile
|
6
|
+
|
7
|
+
## v3.2.0 - 2016-09-27
|
8
|
+
|
9
|
+
- [OS-12] Adjusted app title focus style to match hover state for web apps
|
10
|
+
- [OS-14] Changed shade of purple to match OGAT branding
|
11
|
+
- [OS-35] Ported changes identified in CON
|
12
|
+
|
13
|
+
## v3.1.1 - 2016-06-23
|
14
|
+
|
15
|
+
- [OC-11] Adjusted heading margin
|
16
|
+
- [OC-10] Adjusted brand spacing in webapp header
|
17
|
+
- [OC-9] Added a 2x image for webapp header icon
|
18
|
+
|
19
|
+
## v3.1.0 - 2016-06-21
|
20
|
+
|
21
|
+
- [OC-5] & [OC-6] Added full-width flat variant for web apps
|
22
|
+
- [OC-7] Added purple background style
|
23
|
+
|
24
|
+
## v3.0.0 - 2016-06-14
|
25
|
+
|
26
|
+
- Added filetype icon assets
|
27
|
+
- Bootstrap styles are no longer imported twice
|
28
|
+
- Fix to prevent the top of headings inside media-body elements being cut off
|
29
|
+
- [OS-2] Removed background image; GillSans is no longer included by default
|
30
|
+
- [OS-3] Added font GillSansLight
|
31
|
+
|
32
|
+
## v2.2.0 - 2014-12-09
|
33
|
+
|
34
|
+
- Move assets from vendor and add an initializer
|
35
|
+
|
36
|
+
## v2.1.3 - 2014-11-18
|
37
|
+
|
38
|
+
- Set sass-rails version to be at least 3.2
|
39
|
+
|
40
|
+
## v2.1.2 - 2014-11-04
|
41
|
+
|
42
|
+
- Include font-awesome-sprockets to ensure font awesome functions with Rails 4
|
43
|
+
|
44
|
+
## v2.1.1 - 2014-11-04
|
45
|
+
|
46
|
+
- Include bootstrap-sprockets to ensure icon fonts function
|
47
|
+
|
48
|
+
##v2.1.0 - 2014-11-04
|
49
|
+
|
50
|
+
- Merged in changes from tcrouch
|
51
|
+
- Upgraded to Bootstrap 3.3.0
|
52
|
+
- Upgraded to FontAwesome 4.2.0
|
53
|
+
- Upgraded sass-rails to 4.0.4
|
54
|
+
|
55
|
+
## v2.0.3 - 2014-02-14
|
56
|
+
|
57
|
+
- Upgraded to Bootstrap 3.1.1
|
58
|
+
- Upgraded to FontAwesome 4.0.2
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 Elliot Bowes
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# OGAT Style
|
2
|
+
|
3
|
+
[![Code Climate](https://codeclimate.com/github/Outwood/ogat-style/badges/gpa.svg)](https://codeclimate.com/github/Outwood/ogat-style)
|
4
|
+
|
5
|
+
Base style assets for Outwood websites
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'ogatstyle'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install ogatstyle
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
### Default style
|
26
|
+
|
27
|
+
```scss
|
28
|
+
@import "ogatstyle";
|
29
|
+
// Optional imports
|
30
|
+
@import "ogatstyle/gill_sans";
|
31
|
+
```
|
32
|
+
|
33
|
+
### Full-width web app varient
|
34
|
+
|
35
|
+
```scss
|
36
|
+
@import "ogatstyle_app";
|
37
|
+
// Optional imports
|
38
|
+
@import "ogatstyle/gill_sans";
|
39
|
+
@import "ogatstyle/apps/purple";
|
40
|
+
```
|
41
|
+
|
42
|
+
## Development
|
43
|
+
|
44
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
45
|
+
|
46
|
+
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).
|
47
|
+
|
48
|
+
## Contributing
|
49
|
+
|
50
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ogat/ogatstyle.
|
51
|
+
|
52
|
+
|
53
|
+
## License
|
54
|
+
|
55
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
56
|
+
|
data/Rakefile
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: 'GillSansLightItalic';
|
3
|
+
src: font-url('GillSansLightItalic.woff') format('woff');
|
4
|
+
font-weight: normal;
|
5
|
+
font-style: italic;
|
6
|
+
}
|
7
|
+
|
8
|
+
@font-face {
|
9
|
+
font-family: 'GillSansBold';
|
10
|
+
src: font-url('GillSansBold.woff') format('woff');
|
11
|
+
font-weight: bold;
|
12
|
+
font-style: normal;
|
13
|
+
}
|
14
|
+
|
15
|
+
@font-face {
|
16
|
+
font-family: 'GillSansLight';
|
17
|
+
src: font-url('GillSansLight.eot');
|
18
|
+
src: font-url('GillSansLight.eot?#iefix') format("embedded-opentype"),
|
19
|
+
font-url('GillSansLight.woff') format("woff"),
|
20
|
+
font-url('GillSansLight.ttf') format("truetype");
|
21
|
+
font-weight: normal;
|
22
|
+
font-style: normal;
|
23
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
.twitter-block {
|
2
|
+
.tweet-actions li.visible-on-hover {
|
3
|
+
display: none;
|
4
|
+
}
|
5
|
+
|
6
|
+
.media:hover .tweet-actions li {
|
7
|
+
display: inline-block;
|
8
|
+
}
|
9
|
+
|
10
|
+
.tweet-actions {
|
11
|
+
font-size: small;
|
12
|
+
}
|
13
|
+
|
14
|
+
.tweet-actions li:first-child {
|
15
|
+
padding-left: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
.media-body p {
|
19
|
+
margin-bottom: 0;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
@media (max-width: 1024px) {
|
24
|
+
.twitter-block .tweet-actions li.visible-on-hover {
|
25
|
+
display: inline-block;
|
26
|
+
opacity: 0.2;
|
27
|
+
}
|
28
|
+
|
29
|
+
.twitter-block .media:hover .tweet-actions li {
|
30
|
+
display: inline-block;
|
31
|
+
opacity: 1;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
p.lead {
|
2
|
+
font-family: GillSansLightItalic, "Helvetica Neue", Arial, sans-serif;
|
3
|
+
font-style: italic;
|
4
|
+
}
|
5
|
+
|
6
|
+
address strong {
|
7
|
+
font-family: GillSansBold, "Helvetica Neue", Arial, sans-serif;
|
8
|
+
font-size: 115%;
|
9
|
+
}
|
10
|
+
|
11
|
+
blockquote {
|
12
|
+
font-family: GillSansLightItalic, "Helvetica Neue", Arial, sans-serif;
|
13
|
+
font-style: italic;
|
14
|
+
|
15
|
+
small,
|
16
|
+
cite {
|
17
|
+
font-family: "Helvetica Neue", Arial, sans-serif;
|
18
|
+
font-style: normal;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.alert > strong {
|
23
|
+
font-family: GillSansBold, "Helvetica Neue", Arial, sans-serif;
|
24
|
+
font-size: 115%;
|
25
|
+
}
|
26
|
+
|
27
|
+
.page-header {
|
28
|
+
border-bottom: 3px solid $ogat-purple;
|
29
|
+
margin-top: 0;
|
30
|
+
margin-top: 10px;
|
31
|
+
|
32
|
+
h1 {
|
33
|
+
margin-top: 0;
|
34
|
+
}
|
35
|
+
}
|