Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Commit

Permalink
Add octicons.
Browse files Browse the repository at this point in the history
  • Loading branch information
julia7662 committed Jun 12, 2014
1 parent 7d46e8b commit 26f290d
Show file tree
Hide file tree
Showing 194 changed files with 1,560 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
= require octicons
*/
@import "bootstrap";
@import "bootstrap/theme";
@import "buckets";
Expand Down
4 changes: 4 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ def github_user_url(issue)
def github_repository_url(issue)
"https://github.com/#{issue.owner}/#{issue.repository}"
end

def octicon(code)
content_tag :span, '', :class => "octicon octicon-#{code.to_s.dasherize}"
end
end
3 changes: 2 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Application < Rails::Application
# config.i18n.load_path += Dir[Rails.root.join("my", "locales", "*.{rb,yml}").to_s]
# config.i18n.default_locale = :de

config.assets.precompile += ["bookmarklet.js"]
config.assets.precompile += %w(bookmarklet.js *.svg *.eot *.woff *.ttf)

end
end
6 changes: 6 additions & 0 deletions vendor/assets/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "i-got-issues",
"dependencies": {
"octicons": "[email protected]:github/octicons.git"
}
}
34 changes: 34 additions & 0 deletions vendor/assets/bower_components/octicons/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "octicons",
"description": "GitHub's icon font",
"version": "1.5.2",
"license": "SIL OFL 1.1, MIT",
"private": true,
"homepage": "http://octicons.github.com",
"authors": [
"GitHub <[email protected]>"
],
"main": [
"octicons/sprockets-octicons.scss",
"octicons/octicons.eot",
"octicons/octicons.svg",
"octicons/octicons.ttf",
"octicons/octicons.woff"
],
"keywords": [
"GitHub",
"icons",
"font",
"web font",
"icon font"
],
"_release": "1.5.2",
"_resolution": {
"type": "version",
"tag": "v1.5.2",
"commit": "067e188f7d47fd81cd4d0ee067da3ce9ae52bf19"
},
"_source": "[email protected]:github/octicons.git",
"_target": "*",
"_originalSource": "[email protected]:github/octicons.git"
}
9 changes: 9 additions & 0 deletions vendor/assets/bower_components/octicons/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/.bundle
/.rbenv-version
/node_modules
/bin
/build
/tmp
/font
/support/font-builder/support
/site/_site/
168 changes: 168 additions & 0 deletions vendor/assets/bower_components/octicons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
## 1.2.20 (March 24, 2014)

- Reorganize the package to support the new generator

## 1.2.19 (March 4, 2014)

- Actually include the updated files from 1.2.18

## 1.2.18 (March 4, 2014)

- Update the graphic for `.octicon-key` to look a little less terrible.

## 1.2.17 (March 4, 2014)

- Add `.octicon-circuit-board`

## 1.2.16 (February 28, 2014)

- Add `.octicon-mark-gravatar`

## 1.2.15 (February 6, 2014)

- Add `.octicon-plug`

## 1.2.14 (February 5, 2014)

- Add `.octicon-briefcase`

## 1.2.13 (January 29, 2014)

- Remove the arrow from `.octicon-inbox`

## 1.2.12 (January 29, 2014)

- Add `.octicon-flame`
- Add `.octicon-inbox`
- Add `.octicon-paintcan`
- Add `.octicon-trashcan`

## 1.2.11 (January 7, 2014)

- Add `.octicon-mark-facebook`
- Add `.octicon-mark-google`

## 1.2.10 (January 7, 2014)

- Add `.octicon-dash`
- Add `.octicon-search-save`
- Add `.octicon-fold`
- Fix too-short arrow in the unfold icon

## 1.2.9 (November 6, 2013)

- Add `.octicon-search-save`
- Add `.octicon-dash`
- Invert the alert icon so it's heavier. Round the corners for friendliness.
- Invert the markdown icon so it's a fill rather than a stroke

## 1.2.8 (November 6, 2013)

- Add `.octicon-markdown`

## 1.2.7 (October 30, 2013)

- Add `.octicon-browser`
- Add `.octicon-split`
- Add `.octicon-step`
- Add `.octicon-terminal`

## 1.2.6 (October 24, 2013)

- Add `.octicon-package`
- Downcase family name to avoid postscript name conflicts.

## 1.2.5 (September 23, 2013)

- Add `.octicon-puzzle`

## 1.2.4 (August 22, 2013)

- Add `.octicon-playback-play`
- Rename `.octicon-pause` to `.octicon-playback-pause`
- Rename `.octicon-triangle-left-double` to `.octicon-playback-rewind`
- Rename `.octicon-triangle-right-double` to `.octicon-playback-fast-forward`

## 1.2.3 (August 22, 2013)

- Add `.octicon-heart`
- Add `.octicon-mention`
- Add `.octicon-pause`
- Add `.octicon-triangle-left-double`
- Add `.octicon-triangle-right-double`
- Readjust the bower.json manifest to try to curtail the weird package inclusions

## 1.2.2 (August 16, 2013)

- Attempting to resolve a package issue

## 1.2.1 (August 16, 2013)

- Add `.octicon-unmute`
- Add `.octicon-mute-video`
- Add `.octicon-unmute-video`

## 1.2.0 (July 17, 2013)

- Adjust all logo glyphs to allow for descenders.
- Add `.octicon-squirrel`
- Add `.octicon-globe`
- Add `.octicon-logo-chat`
- Add `.octicon-logo-atom`
- Add `.octicon-logo-apps`
- Add `.octicon-logo-talks`

## 1.1.3 (July 17, 2013)

- Make `unfold` icon bigger.

## 1.1.2 (July 17, 2013)

- Add symlink icons
- Adjust single pixels to odd-pixel wide icons so they don't blur when centered.

## 1.1.1 (July 11, 2013)

- Replace the jersey icon with a lighter graphic.

## 1.1.0 (July 10, 2013)

- Change the class name of `.octicon-person-team` to `.octicon-team`
- `.octicon-organization` now uses the team “people” icon graphic
- Add `.octicon-team` as a basketball jersey icon
- Add `.octicon-log-in`
- Add `.octicon-unfold`
- Add `.octicon-device-camera`
- Add `.octicon-device-camera-video`
- Add `.octicon-git-pull-request-abandoned`
- Add `.octicon-mark-twitter`
- Add `.octicon-podium`

## 1.0.9 (July 09, 2013)

- Switch style sheets to have one for static sites and one for Sprockets

## 1.0.6 - 1.0.8 (July 08, 2013)

http://goo.gl/60kz3

## 1.0.5 (July 3, 2013)

- Split octicons.css into two font files, one for the @font-face declaration that sprockets can process, and one for all of the icon css. This will make lower the amount of pain needed to use octicons in a static site.

## 1.0.4 (July 2, 2013)

- Use font-url syntax for stylesheet

## 1.0.3 (July 2, 2013)

- Change unicode of `.octicon-zap` icon to `UTF+26A1` so it will appear when the lightning emoji character is used.
- Remove `.mark-github-detail`.

## 1.0.2 (July 1, 2013)

- Experimental release. Basically all icons we currently have.

## 1.0.0 - 1.0.1 (July 1, 2013)

http://goo.gl/60kz3
7 changes: 7 additions & 0 deletions vendor/assets/bower_components/octicons/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(c) 2012-2014 GitHub

Font License: SIL OFL 1.1 (http://scripts.sil.org/OFL)
Applies to all font files

Code License: MIT (http://choosealicense.com/licenses/mit/)
Applies to all other files
105 changes: 105 additions & 0 deletions vendor/assets/bower_components/octicons/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Octicons!

This is the [Bower][bower] package for [GitHub Octicons][octicons].

## Adding Octicons to your project

1. Create a new file called *bower.json* (if you don't have one already).

2. Add a new line for the Octicon dependency, pointing to the correct repository:

``` json
{
"name": "my_great_project",
"dependencies": {
"octicons": "[email protected]:github/octicons.git"
}
}
```

3. Run `bower install`. The Octicons styles will be downloaded to *bower_components/octicons*.

4. Link to the `octicons.css` stylesheet in the `<head>` of your `<html>` page:

``` html
<link rel="stylesheet" href="bower_components/octicons/octicons/octicons.css">
```

4. Simply use an icon in your HTML page:

``` html
<span class="octicon octicon-microscope"></span>
```

### Rails' asset pipeline

Octicons includes a stylesheet specifically for [Rails 4/Sprockets][sprockets].

1. Create a new file called *vendor/assets/bower.json* (if you don't have one already).

2. Add a new line for the Octicon dependency, pointing to the correct repository:

``` json
{
"name": "my_great_project",
"dependencies": {
"octicons": "[email protected]:github/octicons.git"
}
}
```

3. `cd` into `ventor/assets` and run `bower install`. The Octicons styles will be downloaded to *vender/assets/bower_components/octicons*.

4. Open your config/application.rb, and add this line inside your Application:

``` ruby
config.assets.precompile += %w(*.svg *.eot *.woff *.ttf)
```

5. In your application stylesheet, require `octicons`:

``` css
/*
= require octicons
*/
```

6. Simply use an icon in your HTML page:

``` html
<span class="octicon octicon-flame"></span>
```

7. If you want a view helper, add something like this to *app/helpers/applicaiton_helper.rb*:

``` ruby
def octicon(code)
content_tag :span, '', :class => "octicon octicon-#{code.to_s.dasherize}"
end
```

## Best practices

- Octicons look best in sizes that are multiples of 16px.

- Octicons are not monospaced. This lets them work well next to type, but it means they won’t stack nicely by default. If you intend to stack octicons, such as in navigation, you will want to add some CSS to make them the same width, and centered. For example:

``` css
.navigation .octicon {
width: 16px;
text-align: center;
}
```

## Versions

Octicons operates similarly to [Semver](http://semver.org/) with the following version convention:

- Major: Breaking changes — removed icons, markup changes, unicode switches, css renames, icon redesigns
- Minor: Non-breaking changes — new icons, new aliases, minor icon changes
- Patch: Unnoticable tweaks — slight visual changes, package updates


[octicons]: http://github-octicons.herokuapp.com
[bower]: http://bower.io/
[sprockets]: http://guides.rubyonrails.org/asset_pipeline.html
25 changes: 25 additions & 0 deletions vendor/assets/bower_components/octicons/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "octicons",
"description": "GitHub's icon font",
"version": "1.5.2",
"license": "SIL OFL 1.1, MIT",
"private": true,
"homepage": "http://octicons.github.com",
"authors": [
"GitHub <[email protected]>"
],
"main": [
"octicons/sprockets-octicons.scss",
"octicons/octicons.eot",
"octicons/octicons.svg",
"octicons/octicons.ttf",
"octicons/octicons.woff"
],
"keywords": [
"GitHub",
"icons",
"font",
"web font",
"icon font"
]
}
Binary file not shown.
Loading

0 comments on commit 26f290d

Please sign in to comment.