vital 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +27 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +18 -0
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +42 -0
- data/LICENSE.md +13 -0
- data/README.md +92 -0
- data/Rakefile +41 -0
- data/dist/css/vital.css +1355 -0
- data/dist/css/vital.css.map +7 -0
- data/dist/css/vital.min.css +2 -0
- data/dist/css/vital.min.css.map +7 -0
- data/dist/fonts/icons.eot +0 -0
- data/dist/fonts/icons.svg +50 -0
- data/dist/fonts/icons.ttf +0 -0
- data/dist/fonts/icons.woff +0 -0
- data/fontcustom.yml +24 -0
- data/fonts/icons.eot +0 -0
- data/fonts/icons.svg +50 -0
- data/fonts/icons.ttf +0 -0
- data/fonts/icons.woff +0 -0
- data/lib/vital/engine.rb +10 -0
- data/lib/vital/version.rb +3 -0
- data/lib/vital.rb +57 -0
- data/releases/v1.0.0/fonts/icons.eot +0 -0
- data/releases/v1.0.0/fonts/icons.svg +50 -0
- data/releases/v1.0.0/fonts/icons.ttf +0 -0
- data/releases/v1.0.0/fonts/icons.woff +0 -0
- data/releases/v1.0.0/stylesheets/vital.min.css +1 -0
- data/releases/v1.0.1/fonts/icons.eot +0 -0
- data/releases/v1.0.1/fonts/icons.svg +50 -0
- data/releases/v1.0.1/fonts/icons.ttf +0 -0
- data/releases/v1.0.1/fonts/icons.woff +0 -0
- data/releases/v1.0.1/stylesheets/vital.min.css +1 -0
- data/releases/v1.1.0/fonts/icons.eot +0 -0
- data/releases/v1.1.0/fonts/icons.svg +50 -0
- data/releases/v1.1.0/fonts/icons.ttf +0 -0
- data/releases/v1.1.0/fonts/icons.woff +0 -0
- data/releases/v1.1.0/stylesheets/vital.min.css +1 -0
- data/sass/vital/_all.sass +21 -0
- data/sass/vital/_base.sass +148 -0
- data/sass/vital/_buttons.sass +133 -0
- data/sass/vital/_custom.sass +4 -0
- data/sass/vital/_footer.sass +33 -0
- data/sass/vital/_forms.sass +187 -0
- data/sass/vital/_grid.sass +47 -0
- data/sass/vital/_header.sass +134 -0
- data/sass/vital/_helpers.sass +191 -0
- data/sass/vital/_heroes.sass +35 -0
- data/sass/vital/_icons.sass +80 -0
- data/sass/vital/_loaders.sass +82 -0
- data/sass/vital/_normalize.sass +325 -0
- data/sass/vital/_notice.sass +20 -0
- data/sass/vital/_pagination.sass +32 -0
- data/sass/vital/_sprockets.sass +7 -0
- data/sass/vital/_syntax.sass +159 -0
- data/sass/vital/_tables.sass +40 -0
- data/sass/vital/_tabs.sass +61 -0
- data/sass/vital/_variables.sass +135 -0
- data/sass/vital.css.sass +1 -0
- data/sass/vital.sass +1 -0
- data/vital.gemspec +23 -0
- metadata +164 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 501825c9a09d4bd8a69bd43ff0e6b7242c9f3b2a
|
4
|
+
data.tar.gz: 975cec9ec0d93ac3e78300560394ab7462461feb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 842ac75081d194c8ef8394af6ac6f2437c6e9e80328c305d0cfdc32aa51d389b5658039e2f379b025e27e1a28abc4622309b18853f2f693cf6942e4952661220
|
7
|
+
data.tar.gz: 55b909a499d4c1206007b8cb2c240cde62b61e517bfd5e8005cad0f6ba590a9c5d149f1b698e3399b54764da5df6c90176e34f4ce72bb8573de2375955a65230
|
data/.gitignore
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile ~/.gitignore_global
|
6
|
+
|
7
|
+
# Ignore bundler config
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
/dist/**/*.md
|
11
|
+
/dist/**/*.sass
|
12
|
+
/dist/**/*.scss
|
13
|
+
vital-*.tar.gz
|
14
|
+
|
15
|
+
# Ignore the build directory
|
16
|
+
/build
|
17
|
+
|
18
|
+
# Ignore cache
|
19
|
+
.sass-cache/
|
20
|
+
.cache/
|
21
|
+
|
22
|
+
# Ignore .DS_store file
|
23
|
+
.DS_Store
|
24
|
+
|
25
|
+
# FontCustom stuff
|
26
|
+
.fontcustom-manifest.json
|
27
|
+
previews/
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.4
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
_Post v1.1.0 releases changelog can be found on https://github.com/doximity/vital/releases_
|
2
|
+
|
3
|
+
v1.1.0
|
4
|
+
- Add command: `rake vital:compile_fonts`
|
5
|
+
- `icons` partial is now a `.sass` file
|
6
|
+
- The need to manually rename `url` to `font-url` in `icons` partial is no longer required
|
7
|
+
- Remove the need to install the fontcustom gem manually
|
8
|
+
- Updated the font input and output paths
|
9
|
+
- Fix a typo
|
10
|
+
- Add `!default` to variables
|
11
|
+
|
12
|
+
v1.0.1
|
13
|
+
- Scope the nav to `.header` class
|
14
|
+
- Fix incorrect naming of a breakpoint
|
15
|
+
- Whitespace consistency changes in `_variables`
|
16
|
+
|
17
|
+
v1.0.0
|
18
|
+
- Initial release
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Contributing
|
2
|
+
|
3
|
+
We welcome contributions to this repository. Feel free to submit issues for bugs you encounter and pull requests for code and documentation contributions.
|
4
|
+
|
5
|
+
In order to prevent licensing issues, we require all contributors to sign an individual contributor license agreement, which is reproduced below:
|
6
|
+
|
7
|
+
## Individual Contributor License Agreement
|
8
|
+
|
9
|
+
In order to clarify the intellectual property license granted with Contributions from any person or entity, Doximity, Inc. ("Doximity") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Doximity; it does not change your rights to use your own Contributions for any other purpose.
|
10
|
+
|
11
|
+
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Doximity. Except for the license granted herein to Doximity and recipients of software distributed by Doximity, You reserve all right, title, and interest in and to Your Contributions.
|
12
|
+
|
13
|
+
### Definitions
|
14
|
+
|
15
|
+
"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Doximity. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
16
|
+
|
17
|
+
1. "Contribution" shall mean any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to Doximity for inclusion in, or documentation of, any of the products owned or managed by Doximity (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to Doximity or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Doximity for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
|
18
|
+
|
19
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, You hereby grant to Doximity and to recipients of software distributed by Doximity a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works.
|
20
|
+
|
21
|
+
3. Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby grant to Doximity and to recipients of software distributed by Doximity a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
|
22
|
+
|
23
|
+
4. You represent that you are legally entitled to grant the above license. If your employer(s) has rights to intellectual property that you create that includes your Contributions, you represent that you have received permission to make Contributions on behalf of that employer, that your employer has waived such rights for your Contributions to Doximity, or that your employer has executed a separate Corporate CLA with Doximity.
|
24
|
+
|
25
|
+
5. You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others). You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.
|
26
|
+
|
27
|
+
6. You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON- INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
|
28
|
+
|
29
|
+
7. Should You wish to submit work that is not Your original creation, You may submit it to Doximity separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [[]named here]".
|
30
|
+
|
31
|
+
8. You agree to notify Doximity of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
vital (1.2.0)
|
5
|
+
sass (>= 3.4)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
celluloid (0.16.0)
|
11
|
+
timers (~> 4.0.0)
|
12
|
+
ffi (1.9.10)
|
13
|
+
fontcustom (1.3.8)
|
14
|
+
json (~> 1.4)
|
15
|
+
listen (>= 1.0, < 3.0)
|
16
|
+
thor (~> 0.14)
|
17
|
+
hitimes (1.2.3)
|
18
|
+
json (1.8.3)
|
19
|
+
listen (2.10.1)
|
20
|
+
celluloid (~> 0.16.0)
|
21
|
+
rb-fsevent (>= 0.9.3)
|
22
|
+
rb-inotify (>= 0.9)
|
23
|
+
rake (10.5.0)
|
24
|
+
rb-fsevent (0.9.7)
|
25
|
+
rb-inotify (0.9.7)
|
26
|
+
ffi (>= 0.5.0)
|
27
|
+
sass (3.4.22)
|
28
|
+
thor (0.19.1)
|
29
|
+
timers (4.0.4)
|
30
|
+
hitimes
|
31
|
+
|
32
|
+
PLATFORMS
|
33
|
+
ruby
|
34
|
+
|
35
|
+
DEPENDENCIES
|
36
|
+
bundler (~> 1.11)
|
37
|
+
fontcustom (>= 1.3)
|
38
|
+
rake (~> 10.0)
|
39
|
+
vital!
|
40
|
+
|
41
|
+
BUNDLED WITH
|
42
|
+
1.12.5
|
data/LICENSE.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Copyright 2015 Doximity, Inc.
|
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,92 @@
|
|
1
|
+
# Vital
|
2
|
+
|
3
|
+
A minimally invasive CSS framework for modern web applications.
|
4
|
+
|
5
|
+
- Vital is a reverse approach to "everything and the kitchen sink" CSS frameworks.
|
6
|
+
- Built with Sass and Slim for readability and maintainability.
|
7
|
+
- No ridiculous amounts of classes or nesting. No excessively buried code.
|
8
|
+
- Written almost entirely in em values, allowing for easy and consistent scaling.
|
9
|
+
- Small:
|
10
|
+
|
11
|
+
| | Size | Gzipped |
|
12
|
+
|:---------------|:------|:--------|
|
13
|
+
| CSS Framework | 22 KB | 6 KB |
|
14
|
+
| Icons (.svg) | 3 KB | 1 KB |
|
15
|
+
| Icons (.eot) | 2 KB | |
|
16
|
+
| Icons (.ttf) | 2 KB | |
|
17
|
+
| Icons (.woff) | 2 KB | |
|
18
|
+
| Javascripts | 0 | |
|
19
|
+
| Total | 31 KB | |
|
20
|
+
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
A couple installation options are available:
|
25
|
+
|
26
|
+
- Download the latest release tarball from https://github.com/doximity/vital/releases.
|
27
|
+
- Install the `vital` Ruby Gem on your project.
|
28
|
+
- Use a precompiled release from RawGit.
|
29
|
+
|
30
|
+
Check out [our docs](http://doximity.github.io/vital/get-started/) for information on installation methods, framework contents, templates, examples and more.
|
31
|
+
|
32
|
+
## Development
|
33
|
+
|
34
|
+
**NOTE**: The project requires Ruby 2.0+ for building its assets and documentation.
|
35
|
+
|
36
|
+
Initial setup:
|
37
|
+
|
38
|
+
```sh
|
39
|
+
git clone https://github.com/doximity/vital.git
|
40
|
+
cd vital
|
41
|
+
bundle
|
42
|
+
|
43
|
+
# If you want to build / work on documentation
|
44
|
+
cd docs
|
45
|
+
bundle
|
46
|
+
```
|
47
|
+
|
48
|
+
### Compiling assets locally
|
49
|
+
|
50
|
+
```sh
|
51
|
+
cd vital
|
52
|
+
bundle exec rake vital:build
|
53
|
+
```
|
54
|
+
|
55
|
+
### Compiling Font Icons
|
56
|
+
|
57
|
+
To compile font icons, you must first install FontForge.
|
58
|
+
|
59
|
+
```bash
|
60
|
+
# On Mac
|
61
|
+
# Requires Ruby 1.9.2+, FontForge with Python scripting
|
62
|
+
brew install fontforge --with-python
|
63
|
+
brew install eot-utils
|
64
|
+
```
|
65
|
+
|
66
|
+
After installation is complete, run `rake vital:compile_font`.
|
67
|
+
|
68
|
+
### Build the documentation
|
69
|
+
|
70
|
+
Vital is built using a simple static generator: https://middlemanapp.com/
|
71
|
+
|
72
|
+
```sh
|
73
|
+
cd vital/docs
|
74
|
+
bundle
|
75
|
+
bundle exec middleman
|
76
|
+
```
|
77
|
+
|
78
|
+
## Releasing a new version
|
79
|
+
|
80
|
+
- Ensure docs, `README.md`, `CHANGELOG.md` are up to date
|
81
|
+
- Bump version on `lib/vital/version.rb`
|
82
|
+
- `bundle exec rake vital:build`
|
83
|
+
- `git add ...` all of the updated files
|
84
|
+
- `git commit -m 'vX.Y.Z'`
|
85
|
+
- `git push origin master`
|
86
|
+
- `bundle exec rake release` to push to RubyGems
|
87
|
+
- `cd docs && bundle exec rake publish` to update GitHub pages
|
88
|
+
- Visit http://doximity.github.io/vital/ and ensure it has been updated
|
89
|
+
|
90
|
+
## Reporting Issues and Suggestions
|
91
|
+
|
92
|
+
Please submit GitHub issues for problems with the library. Also, feel free to submit a pull-request with suggested changes.
|
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
|
3
|
+
namespace :vital do
|
4
|
+
desc 'Build stylesheets and prepare for a release'
|
5
|
+
task :build do
|
6
|
+
puts '-----> Preparing assets for release'
|
7
|
+
release_dir = "dist"
|
8
|
+
[
|
9
|
+
"rm -rf #{release_dir}",
|
10
|
+
"mkdir -p #{release_dir}/{css,scss}",
|
11
|
+
"cp {CHANGELOG,LICENSE,README}.md #{release_dir}/",
|
12
|
+
"cp -R sass #{release_dir}/",
|
13
|
+
"cp -R fonts #{release_dir}/",
|
14
|
+
"rm -f #{release_dir}/{,**/}.DS_Store"
|
15
|
+
].each { |cmd| sh cmd }
|
16
|
+
|
17
|
+
sh "bundle exec sass -r vital -C #{release_dir}/sass/vital.css.sass #{release_dir}/css/vital.css"
|
18
|
+
sh "bundle exec sass -r vital -C -t compressed #{release_dir}/sass/vital.css.sass #{release_dir}/css/vital.min.css"
|
19
|
+
sh "sass-convert -R -F sass -T scss -C #{release_dir}/sass #{release_dir}/scss"
|
20
|
+
|
21
|
+
require_relative 'lib/vital/version'
|
22
|
+
puts '-----> Compressing'
|
23
|
+
sh "tar cvzfs vital-v#{Vital::VERSION}.tar.gz '/dist/vital-v#{Vital::VERSION}/' dist/"
|
24
|
+
end
|
25
|
+
|
26
|
+
desc 'Compile font icon using the FontCustom gem'
|
27
|
+
task :compile_font do
|
28
|
+
sh 'rm -rf sass/_icons.*'
|
29
|
+
sh 'rm -rf fonts'
|
30
|
+
sh 'fontcustom compile'
|
31
|
+
# Works around Sass issue: https://github.com/sass/sass/issues/1395
|
32
|
+
# based on https://github.com/sass/sass/issues/659#issuecomment-193023924
|
33
|
+
sh 'sed -i.bkp \'s|"\(\\\\f[0-9a-z]*\)"|\1|g\' sass/vital/_icons.scss'
|
34
|
+
sh 'sass-convert sass/vital/_icons.scss sass/vital/_icons.sass'
|
35
|
+
# Add back the quote
|
36
|
+
sh 'sed -i.bkp \'s|\\\\\(f[0-9a-z]*\)|char("\1")|g\' sass/vital/_icons.sass'
|
37
|
+
sh 'sed -i.bkp \'s|url("../fonts/\([^"]*\)")|url(if($vital-sass-asset-helper, vital-font-path("\1"), "../fonts/\1"))|g\' sass/vital/_icons.sass'
|
38
|
+
sh 'rm -f sass/{,**/}*.bkp'
|
39
|
+
sh 'rm -f sass/{,**/}*.scss'
|
40
|
+
end
|
41
|
+
end
|