Skip to content

Commit

Permalink
Merge pull request #72 from 540co/realease/1.5.0
Browse files Browse the repository at this point in the history
Realease/1.5.0
  • Loading branch information
ostranme authored May 16, 2019
2 parents 543cbc1 + 195e99d commit b8c60f1
Show file tree
Hide file tree
Showing 14 changed files with 972 additions and 33 deletions.
36 changes: 35 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,31 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.5.0](https://github.com/540co/govicons/releases/tag/1.5.0) - 2019-05-16

### Added

- SVG Sprites

### Fixed

- SASS .sr-only mixin support for "_screen-reader.scss".
- SASS .pull-left and .pull-right for "_border-pulled.scss".

## [1.4.1](https://github.com/540co/govicons/releases/tag/1.4.1) - 2018-08-25

### Fixed

- SASS file reference name "_screen_reader.scss" to "_screen-reader.scss" (Replace underscore with hyphen)

### Changed

- Fix typos in demo site.

## [1.4.0](https://github.com/540co/govicons/releases/tag/v1.4.0) - 2018-02-25

### Added

- This CHANGELOG file to hopefully serve as an evolving example of a
standardized open source project CHANGELOG.
- Wiki page for how to use icons on desktop apps
Expand All @@ -15,37 +38,48 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Accessibility support for screen readers

### Changed

- Fix typos in demo site.


## [1.3.0](https://github.com/540co/govicons/releases/tag/v1.3.0) - 2016-10-24

### Added

- Adding barcode, ruler, construction, fingerprint, nuclear-plant, radioactive, biohazard, microscope, dna, road-sign, road, road-barricade, submarine, radar, reticle-dot, reticle-crosshair, dogtags, medal-circle, medal-star, 18f-logo icons

## [1.2.0](https://github.com/540co/govicons/releases/tag/1.2.0) - 2016-03-17

### Added

- New NPM package `govicons`

### Changed

- Fix typos in LICENSE section of README

## [1.1.0](https://github.com/540co/govicons/releases/tag/1.1.0) - 2017-12-07

### Added

- Adding statue-of-liberty, liberty-bell, users, user-politician, shield-o, us-shield, missile, satellite, drone, security-camera, textile, leaf, recycle, mobile-phone, us-flag-straight icons
- WOFF File Format 2.0 (.woff2) for web fonts

### Changed

- Fix typos in README

### Fixed

- The "us-flag" icon should be named "us-flag-wavy"
- The "capital" icon should be named "capitol"
- The "clock" icon should be named "clock-o"
- The "ship" icon should be named "ship-front"
- SASS reference link in bower json


## [1.0.0](https://github.com/540co/govicons/releases/tag/1.0.0) - 2015-11-28

### Added

- 80 government themed icons
- Initial CSS, SASS, and LESS framework
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ Gov Icons is a icon font and CSS toolkit with 129 government themed icons, for e

## Getting started

#### Quick Start CDN

Load and insert from CDN link.

```html
<link rel="stylesheet" href="https://unpkg.com/govicons@latest/css/govicons.min.css">
```

#### Usage

- Download and place the entire `govicons` directory into your project
- In the `<head>` of your html, reference the location to your govicons.min.css

Expand All @@ -26,25 +36,32 @@ Gov Icons is a icon font and CSS toolkit with 129 government themed icons, for e
#### Install with bower

```shell
$ bower install govicons
bower install govicons
```

#### Install with npm

```shell
$ npm install govicons
npm install govicons
```

#### Explore

Get started and learn how to use Gov Icons at <http://govicons.io>!

## Change Log

- We'll keep track of each release in the [CHANGELOG.md](./CHANGELOG.md)
- Looking for older versions of Gov Icons? Check the [releases](https://github.com/540co/govicons/releases).

## Contributing

Please read through our [contributing guidelines](./CONTRIBUTING.md). Included are directions for opening issues.

## Related Projects

- [govicons-sketch](https://github.com/540co/govicons-sketch) - Gov icons as a Sketch library

## Licensing

- Gov Icons licensed under [SIL OFL 1.1](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "govicons",
"description": "Govicons - Government font and CSS toolkit",
"version": "1.4.1",
"version": "1.5.0",
"keywords": [
"government",
"font",
Expand Down
27 changes: 26 additions & 1 deletion css/govicons.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Govicons v1.4.1 by @540co - https://github.com/540co/govicons - @540co
* Govicons v1.5.0 by @540co - https://github.com/540co/govicons - @540co
* License (Font: SIL OFL 1.1, CSS: MIT License)
*/
/* FONT PATH
Expand Down Expand Up @@ -91,6 +91,31 @@
border-radius: .1em;
padding: .2em .25em .15em;
}
.fa-pull-left {
float: left;
}
.fa-pull-right {
float: right;
}
.fa.fa-pull-left {
margin-right: .3em;
}
.fa.fa-pull-right {
margin-left: .3em;
}
/* Deprecated */
.pull-right {
float: right;
}
.pull-left {
float: left;
}
.fa.pull-left {
margin-right: .3em;
}
.fa.pull-right {
margin-left: .3em;
}
.gi-spin {
-webkit-animation: gi-spin 2s infinite linear;
animation: gi-spin 2s infinite linear;
Expand Down
2 changes: 1 addition & 1 deletion css/govicons.min.css

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions less/bordered-pulled.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Bordered & Pulled
// -------------------------

.@{gi-css-prefix}-border {
padding: .2em .25em .15em;
border: solid .08em @gi-border-color;
border-radius: .1em;
}

.@{gi-css-prefix}-pull-left {
float: left;
}

.@{gi-css-prefix}-pull-right {
float: right;
}

.@{gi-css-prefix} {
&.@{gi-css-prefix}-pull-left {
margin-right: .3em;
}

&.@{gi-css-prefix}-pull-right {
margin-left: .3em;
}
}

/* Deprecated */
.pull-right {
float: right;
}

.pull-left {
float: left;
}

.@{gi-css-prefix} {
&.pull-left {
margin-right: .3em;
}

&.pull-right {
margin-left: .3em;
}
}
8 changes: 0 additions & 8 deletions less/bordered.less

This file was deleted.

6 changes: 3 additions & 3 deletions less/govicons.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Govicons v1.4.1 by @540co - https://github.com/540co/govicons - @540co
* Govicons v1.5.0 by @540co - https://github.com/540co/govicons - @540co
* License (Font: SIL OFL 1.1, CSS: MIT License)
*/

Expand All @@ -10,9 +10,9 @@
@import "larger.less";
@import "fixed-width.less";
@import "list.less";
@import "bordered.less";
@import "bordered-pulled.less";
@import "animated.less";
@import "rotated-flipped.less";
@import "stacked.less";
@import "icons.less";
@import "screen-reader.less";
@import "screen-reader.less";
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "govicons",
"description": "Govicons - Government font and CSS toolkit",
"version": "1.4.1",
"version": "1.5.0",
"style": "css/govicons.css",
"keywords": ["gov", "icons", "Govicons", "icon", "font", "bootstrap"],
"homepage": "http://govicons.io/",
Expand Down
45 changes: 45 additions & 0 deletions scss/_bordered-pulled.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Bordered & Pulled
// -------------------------

.#{$gi-css-prefix}-border {
padding: .2em .25em .15em;
border: solid .08em $gi-border-color;
border-radius: .1em;
}

.#{$gi-css-prefix}-pull-left {
float: left;
}

.#{$gi-css-prefix}-pull-right {
float: right;
}

.#{$gi-css-prefix} {
&.#{$gi-css-prefix}-pull-left {
margin-right: .3em;
}

&.#{$gi-css-prefix}-pull-right {
margin-left: .3em;
}
}

/* Deprecated */
.pull-right {
float: right;
}

.pull-left {
float: left;
}

.#{$gi-css-prefix} {
&.pull-left {
margin-right: .3em;
}

&.pull-right {
margin-left: .3em;
}
}
8 changes: 0 additions & 8 deletions scss/_bordered.scss

This file was deleted.

42 changes: 38 additions & 4 deletions scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,47 @@
@mixin gi-icon-rotate($degrees, $rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
-webkit-transform: rotate($degrees);
-ms-transform: rotate($degrees);
transform: rotate($degrees);
-ms-transform: rotate($degrees);
transform: rotate($degrees);
}

@mixin gi-icon-flip($horiz, $vert, $rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
-webkit-transform: scale($horiz, $vert);
-ms-transform: scale($horiz, $vert);
transform: scale($horiz, $vert);
-ms-transform: scale($horiz, $vert);
transform: scale($horiz, $vert);
}

// Only display content to screen readers. A la Bootstrap 4.
//
// See: http://a11yproject.com/posts/how-to-hide-content/

@mixin sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}

// Use in conjunction with .sr-only to only display content when it's focused.
//
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
//
// Credit: HTML5 Boilerplate

@mixin sr-only-focusable {

&:active,
&:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
}
6 changes: 3 additions & 3 deletions scss/govicons.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Govicons v1.4.1 by @540co - https://github.com/540co/govicons - @540co
* Govicons v1.5.0 by @540co - https://github.com/540co/govicons - @540co
* License (Font: SIL OFL 1.1, CSS: MIT License)
*/

Expand All @@ -10,9 +10,9 @@
@import "larger";
@import "fixed-width";
@import "list";
@import "bordered";
@import "bordered-pulled";
@import "animated";
@import "rotated-flipped";
@import "stacked";
@import "icons";
@import "screen-reader";
@import "screen-reader";
Loading

0 comments on commit b8c60f1

Please sign in to comment.