typeplate 2.1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b79d823b5491d4ed92cd2949b4f0c2599a5238fd
4
+ data.tar.gz: 8d4f7fc31eb5d66e8c5a61dc6b33853b4ae73af4
5
+ SHA512:
6
+ metadata.gz: 804899c3af7975825def47e17e75a4eacbd04bb7a23970e4b97d35f898d3f26f0a0bd09096c42c8e41657e41514166a2543a2f405b197020a7a699f03e9adf7b
7
+ data.tar.gz: 1c0b2d0bee0f40bedb9023f73022a936a0a273499ee74c355bcc3827b2f865600b269407afd4d8d098564aece6a5f3f7cf6e377b8c3889d4df5da35e5daf9a53
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/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in typeplate.gemspec
4
+ gemspec
data/LICENSE.CC ADDED
@@ -0,0 +1,66 @@
1
+ Creative Commons
2
+ Attribution 3.0 Unported
3
+
4
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE.
5
+ License
6
+
7
+ THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
8
+
9
+ BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
10
+
11
+ 1. Definitions
12
+
13
+ "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
14
+ "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
15
+ "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
16
+ "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
17
+ "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
18
+ "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
19
+ "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
20
+ "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
21
+ "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
22
+ 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
23
+
24
+ 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
25
+
26
+ to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
27
+ to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
28
+ to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
29
+ to Distribute and Publicly Perform Adaptations.
30
+ For the avoidance of doubt:
31
+
32
+ Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
33
+ Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
34
+ Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
35
+ The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
36
+
37
+ 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
38
+
39
+ You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested.
40
+ If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
41
+ Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
42
+ 5. Representations, Warranties and Disclaimer
43
+
44
+ UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
45
+
46
+ 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
47
+
48
+ 7. Termination
49
+
50
+ This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
51
+ Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
52
+ 8. Miscellaneous
53
+
54
+ Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
55
+ Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
56
+ If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
57
+ No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
58
+ This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
59
+ The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
60
+ Creative Commons Notice
61
+
62
+ Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor.
63
+
64
+ Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of this License.
65
+
66
+ Creative Commons may be contacted at http://creativecommons.org/.
data/LICENSE.MIT ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015, Pablo Olmos de Aguilera C.
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,76 @@
1
+ # Typeplate
2
+
3
+ <a href="//typeplate.com"><img src="http://typeplate.com/img/logo.png" alt="typeplate logo" width="216" height="216"></a>
4
+
5
+ This is a simple gem to being able to include the [Typeplate Starter Kit](http://typeplate.com/)
6
+ Sass library on your ruby app (middleman, padrino, sinatra, nanoc, ecc).
7
+
8
+ Description from their authors:
9
+
10
+ Frameworks make decisions for you about how to organize, structure and design
11
+ a site. Pattern libraries don’t separate styling and markup, making them tough
12
+ to use in a truly modular fashion. We weren’t satisfied, so we made a thing that
13
+ doesn’t do that.
14
+
15
+ Typeplate is a "typographic starter kit". We don’t make aesthetic design
16
+ choices, but define proper markup with extensible styling for common typographic
17
+ patterns. A stripped–down Sass library concerned with the appropriate technical
18
+ implementation of design patterns–not how they look.
19
+
20
+ ## Installation
21
+
22
+ Add this line to your application's Gemfile:
23
+
24
+ ```ruby
25
+ gem 'typeplate'
26
+ ```
27
+
28
+ And then execute:
29
+
30
+ $ bundle
31
+
32
+ Or install it yourself as:
33
+
34
+ $ gem install typeplate
35
+
36
+ ## Usage
37
+
38
+ Under your `application.sass` file, just import the file:
39
+
40
+ @import typeplate
41
+
42
+ Or, just the mixins:
43
+
44
+ @import typeplate/mixins
45
+
46
+ For instructions on the basis of this awesome library, please see their
47
+ [excellent documentation](http://typeplate.com).
48
+
49
+ ## Development
50
+
51
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
52
+ `bin/console` for an interactive prompt that will allow you to experiment.
53
+
54
+ ## Versioning
55
+
56
+ To simplify this, the version of this gem will stay in sync with the version
57
+ that Typeplate provides. The fourth digit will indicate patches and updates
58
+ specific to this gem.
59
+
60
+ ## Contributing
61
+
62
+ 1. Fork it ( https://github.com/PaBLoX-CL/typeplate/fork )
63
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
64
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
65
+ 4. Push to the branch (`git push origin my-new-feature`)
66
+ 5. Create a new Pull Request
67
+
68
+ ## TODO
69
+
70
+ + Maybe add a rails hook
71
+ + Find a way to automate the building when a new tag from typeplate is created
72
+
73
+ ## LICENSE
74
+
75
+ Code from [typeplate](https://github.com/typeplate/starter-kit) is CC 3.0 Attribution,
76
+ while the code from this gem is licensed under a MIT license.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,64 @@
1
+ // $Ampersands
2
+ // -------------------------------------//
3
+ // Call your custom ampersand on any element.
4
+ //
5
+ // @markup <h6 class="ampersand">Dewey Cheat 'em & Howe</h6>
6
+ // @example .ampersand { @extend %typl8-amp-placeholder; }
7
+
8
+ %typl8-amp-placeholder {
9
+ @include typl8-ampersand($typl8-amp-fontface, $typl8-amp-fontfamily);
10
+ }
11
+
12
+
13
+ // $Blockquote
14
+ // -------------------------------------//
15
+ // Style your blockquote citations
16
+ //
17
+ // @example .citation { @extend %typl8-cite; }
18
+
19
+ %typl8-cite {
20
+ @include typl8-cite-style($typl8-cite-display, $typl8-cite-align, $typl8-cite-font-size);
21
+ }
22
+
23
+
24
+ // $Wordwrap
25
+ // -------------------------------------//
26
+ // Control word wrapping and breaks in your text.
27
+ //
28
+ // 'normal' Lines may only break at normal word break points.
29
+ // 'break-word' Unbreakable words may be broken at arbitrary points.
30
+ //
31
+ // @example article { @extend %typl8-breakword; }
32
+
33
+ %typl8-breakword {
34
+ word-wrap: break-word;
35
+ }
36
+
37
+ %typl8-normal-wrap {
38
+ word-wrap: normal;
39
+ }
40
+
41
+ %typl8-inherit-wrap {
42
+ word-wrap: auto;
43
+ }
44
+
45
+
46
+ // $OpenType
47
+ // -------------------------------------//
48
+ // Control OpenType feature settings where desired.
49
+ //
50
+ // @use
51
+ // smallcaps body { @extend %typl8-ot--smcp; }
52
+ // text figures body { @extend %typl8-ot--onum; }
53
+
54
+ %typl8-ot--smcp {
55
+ @each $prefix in $typl8-prefixes {
56
+ #{$prefix}font-feature-settings: "smcp";
57
+ }
58
+ }
59
+
60
+ %typl8-ot--onum {
61
+ @each $prefix in $typl8-prefixes {
62
+ #{$prefix}font-feature-settings: 'onum';
63
+ }
64
+ }
@@ -0,0 +1,38 @@
1
+ // $Unicode-Range-Ampersand
2
+ // -------------------------------------//
3
+
4
+ @font-face {
5
+ font-family: '#{$typl8-amp-fontface}';
6
+ src: $typl8-amp-src;
7
+ unicode-range: U+0026;
8
+ }
9
+
10
+ @font-face {
11
+ font-family: '#{$typl8-amp-fontface}'; // fallback
12
+ src: $typl8-amp-fallback;
13
+ unicode-range: U+270C;
14
+ }
15
+
16
+
17
+ // $Icon-Font-Helper
18
+ // -------------------------------------//
19
+ // Loading multiple icon fonts using Compass
20
+ //
21
+ // 1. Install Compass.
22
+ // 2. Create a 'fonts' directory in the root of your project.
23
+ // 3. Specify within your 'config.rb' the following line…
24
+ // fonts_dir = "name-of-your-fonts-directory" ( i.e. fonts_dir = "fonts" )
25
+ // 4. Set your '$typl8-icon-fonts' variable as noted
26
+
27
+ @if ($typl8-icon-fonts != null) {
28
+ @each $font in $typl8-icon-fonts {
29
+ @include font-face($font,
30
+ font-files(
31
+ '#{$font}/#{$font}.woff',
32
+ '#{$font}/#{$font}.ttf',
33
+ '#{$font}/#{$font}.svg', svg
34
+ ),
35
+ '#{$font}/#{$font}.eot'
36
+ )
37
+ }
38
+ }
@@ -0,0 +1,27 @@
1
+ // $Context Calculator
2
+ // -------------------------------------//
3
+ // target / context = result
4
+ //
5
+ // @example p { font-size: typl8-context-calc(24, 16, px, 18 * 1.65); }
6
+
7
+ @function typl8-context-calc($scale, $base, $value) {
8
+ @return ($scale/$base) + $value;
9
+ }
10
+
11
+
12
+ // $Measure-Margin
13
+ // -------------------------------------//
14
+ // divide 1 unit of measure by given font-size & return relative value
15
+
16
+ @function typl8-measure-margin($scale, $measure, $value) {
17
+ $pixelValue: $scale/$measure; // ($measure/$scale) issue#40 https://github.com/typeplate/starter-kit/issues/40
18
+ $remValue: $pixelValue * $typl8-font-base;
19
+
20
+ @if $value == rem {
21
+ @return $pixelValue + $value;
22
+ } @else if $value == em {
23
+ @return ($remValue/$scale) + $value;
24
+ } @else {
25
+ @return $remValue * 1px;
26
+ }
27
+ }
@@ -0,0 +1,141 @@
1
+ // $Dropcap
2
+ // -------------------------------------//
3
+
4
+ .typl8-drop-cap {
5
+ @include typl8-dropcap(
6
+ $typl8-dropcap-float-position,
7
+ $typl8-dropcap-font-size,
8
+ $typl8-dropcap-font-family,
9
+ $typl8-dropcap-txt-indent,
10
+ $typl8-dropcap-margin,
11
+ $typl8-dropcap-padding,
12
+ $typl8-dropcap-color,
13
+ $typl8-dropcap-line-height,
14
+ $typl8-dropcap-bg
15
+ );
16
+ }
17
+
18
+ // @notes
19
+ // combats our sibling paragraph syling and indentation
20
+ p + .typl8-drop-cap {
21
+ text-indent: 0;
22
+ margin-top: 0;
23
+ }
24
+
25
+
26
+ // $Definition-Lists
27
+ // -------------------------------------//
28
+ /**
29
+ * Lining Definition Style Markup
30
+ *
31
+ <dl class="typl8-lining">
32
+ <dt><b></b></dt>
33
+ <dd></dd>
34
+ </dl>
35
+ *
36
+ * Extend this object into your markup.
37
+ *
38
+ */
39
+
40
+ .typl8-lining {
41
+ @include typl8-definition-list-style(lining);
42
+ }
43
+
44
+ /**
45
+ * Dictionary Definition Style Markup
46
+ *
47
+ <dl class="typl8-dictionary-style">
48
+ <dt><b></b></dt>
49
+ <dd></dd>
50
+ </dl>
51
+ *
52
+ * Extend this object into your markup.
53
+ *
54
+ */
55
+
56
+ .typl8-dictionary-style {
57
+ @include typl8-definition-list-style(dictionary-style);
58
+ }
59
+
60
+
61
+ // $Blockquote-Markup
62
+ // -------------------------------------//
63
+ /**
64
+ * Blockquote Markup
65
+ *
66
+ <figure>
67
+ <blockquote cite="">
68
+ <p></p>
69
+ </blockquote>
70
+ <figcaption>
71
+ <cite>
72
+ <small><a href=""></a></small>
73
+ </cite>
74
+ </figcaption>
75
+ </figure>
76
+ *
77
+ * Extend this object into your markup.
78
+ *
79
+ */
80
+
81
+
82
+ // $Pull-Quotes
83
+ // -------------------------------------//
84
+ // @notes
85
+ // http://24ways.org/2005/swooshy-curly-quotes-without-images
86
+
87
+ /**
88
+ * Pull Quotes Markup
89
+ *
90
+ <aside class="typl8-pull-quote">
91
+ <blockquote>
92
+ <p></p>
93
+ </blockquote>
94
+ </aside>
95
+ *
96
+ * Extend this object into your custom stylesheet.
97
+ *
98
+ */
99
+
100
+ .typl8-pull-quote {
101
+ @include typl8-pull-quotes(
102
+ $typl8-pull-quote-fontsize,
103
+ $typl8-pull-quote-opacity,
104
+ $typl8-pull-quote-color
105
+ );
106
+ }
107
+
108
+
109
+ // $Figures
110
+ // -------------------------------------//
111
+ /**
112
+ * Figures Markup
113
+ *
114
+ <figure>
115
+ <figcaption>
116
+ <strong>Fig. X.X | </strong><cite title=""></cite>
117
+ </figcaption>
118
+ </figure>
119
+ *
120
+ * Extend this object into your markup.
121
+ *
122
+ */
123
+
124
+
125
+ // $Footnotes
126
+ // -------------------------------------//
127
+ /**
128
+ * Footnote Markup : Replace 'X' with your unique number for each footnote
129
+ *
130
+ <article>
131
+ <p><sup><a href="#fn-itemX" id="fn-returnX"></a></sup></p>
132
+ <footer>
133
+ <ol class="foot-notes">
134
+ <li id="fn-itemX"><a href="#fn-returnX">↩</a></li>
135
+ </ol>
136
+ </footer>
137
+ </article>
138
+ *
139
+ * Extend this object into your markup.
140
+ *
141
+ */
@@ -0,0 +1,284 @@
1
+ // $Typescale
2
+ // -------------------------------------//
3
+
4
+ @mixin typl8-typescale($scale, $base, $value, $measure:"") {
5
+ @if $value == rem {
6
+ font-size: $scale * 1px;
7
+ font-size: typl8-context-calc($scale, $base, $value);
8
+ } @else if $value == em {
9
+ font-size: typl8-context-calc($scale, $base, $value);
10
+ } @else {
11
+ font-size: $scale * 1px;
12
+ }
13
+
14
+ @if $measure != "" {
15
+ @if $value == rem {
16
+ margin-bottom: typl8-measure-margin($scale, $measure, $value: px);
17
+ margin-bottom: typl8-measure-margin($scale, $measure, $value);
18
+ } @else if $value == em {
19
+ margin-bottom: typl8-measure-margin($scale, $measure, $value: em);
20
+ } @else {
21
+ margin-bottom: typl8-measure-margin($scale, $measure, $value);
22
+ }
23
+ }
24
+ }
25
+
26
+
27
+ // $Headings
28
+ // https://github.com/typeplate/starter-kit/issues/27
29
+ // -------------------------------------//
30
+ // Props to Harry Roberts for this trick.
31
+ //
32
+ // @notes
33
+ // optimizeLegibility Enables ligatures and kerning
34
+ // single line height Fixes large spaces when a heading wraps two lines
35
+
36
+ %typl8-hN {
37
+ text-rendering: optimizeLegibility;
38
+ line-height: 1;
39
+ margin-top: 0;
40
+ color: $typl8-heading-color;
41
+ }
42
+
43
+ @mixin typl8-headings() {
44
+ @each $name, $size in $typl8-scale {
45
+ .#{$name} {
46
+ @extend %typl8-hN;
47
+ @include typl8-typescale(
48
+ $size,
49
+ $typl8-font-base,
50
+ $typl8-typescale-unit,
51
+ $typl8-measure
52
+ );
53
+ }
54
+ }
55
+ }
56
+
57
+ @mixin typl8-headings-style() {
58
+ @each $h, $size in $typl8-headings {
59
+ #{$h} {
60
+ @extend .#{$size};
61
+ }
62
+ }
63
+ }
64
+
65
+
66
+ // $Hypens
67
+ // -------------------------------------//
68
+ // @notes
69
+ // http://caniuse.com/#search=hyphens
70
+ // http://trentwalton.com/2011/09/07/css-hyphenation
71
+ //
72
+ // @values [ none | manual | auto ]
73
+
74
+ @mixin typl8-hyphens($val) {
75
+ @each $prefix in $typl8-prefixes {
76
+ #{$prefix}hyphens: $val;
77
+ }
78
+ }
79
+
80
+
81
+ // $Smallcaps
82
+ // -------------------------------------//
83
+ // @notes
84
+ // http://caniuse.com/#search=font-variant
85
+ // http://blog.hypsometry.com/articles/true-small-capitals-with-font-face
86
+ // 'font-variant' depends on the font family in use.
87
+ // Some font-families don't support small caps
88
+ // or don't provide them with their Webfont.
89
+
90
+ @mixin typl8-smallcaps($color, $font-weight) {
91
+ @each $prefix in $typl8-prefixes {
92
+ #{$prefix}font-variant: small-caps;
93
+ }
94
+ font-weight: $font-weight;
95
+ text-transform: lowercase;
96
+ color: $color;
97
+ }
98
+
99
+
100
+ // $Fontsize-Adjust
101
+ // -------------------------------------//
102
+ // @notes
103
+ // firefox 17+ only (as of Feb. 2013)
104
+ // correct x-height for fallback fonts.
105
+ // requires secret formula yet to be discovered.
106
+
107
+ @mixin typl8-font-size-adjust($adjust-value) {
108
+ font-size-adjust: $adjust-value;
109
+ }
110
+
111
+
112
+ // $Ampersand
113
+ // -------------------------------------//
114
+
115
+ @mixin typl8-ampersand($typl8-amp-fontfamily...) {
116
+ font-family: $typl8-amp-fontfamily;
117
+ }
118
+
119
+
120
+ // $Blockquote
121
+ // -------------------------------------//
122
+ // "-" is your citation flourish.
123
+ //
124
+ // I always say important things because I'm so smart
125
+ // - Super Important Person
126
+ //
127
+ // @example .your-class-name { @include typl8-blockquote("-"); }
128
+
129
+ @mixin typl8-blockquote($citation-flourish) {
130
+ p {
131
+ &:last-of-type {
132
+ margin-bottom: -#{$typl8-line-height/2}em;
133
+ }
134
+ }
135
+
136
+ + figcaption {
137
+ @extend %typl8-cite;
138
+
139
+ &:before {
140
+ content: $citation-flourish;
141
+ }
142
+ }
143
+ }
144
+
145
+ @mixin typl8-cite-style($display, $text-align, $font-size) {
146
+ display: $display;
147
+ font-size: $font-size;
148
+ text-align: $text-align;
149
+ }
150
+
151
+
152
+ // $Pull-Quotes
153
+ // -------------------------------------//
154
+
155
+ @mixin typl8-pull-quotes($fontsize, $opacity, $color) {
156
+ position: relative;
157
+ padding: typl8-context-calc($fontsize, $fontsize, em);
158
+
159
+ &:before,
160
+ &:after {
161
+ height: typl8-context-calc($fontsize, $fontsize, em);
162
+ opacity: $opacity;
163
+ position: absolute;
164
+ font-size: $fontsize;
165
+ color: $color;
166
+ }
167
+
168
+ &:before {
169
+ content: '“';
170
+ top: 0;
171
+ left: 0;
172
+ }
173
+
174
+ &:after {
175
+ content: '”';
176
+ bottom: 0;
177
+ right: 0;
178
+ }
179
+ }
180
+
181
+
182
+ // $Dropcap
183
+ // -------------------------------------//
184
+ // Add styling to intro paragraphs using a dropcap
185
+ //
186
+ // @markup <p class="typl8-drop-cap">Lorem ipsum dolor sit amet</p>
187
+ // @example .dropcap { @include typl8-dropcap; }
188
+
189
+ @mixin typl8-dropcap(
190
+ $float-position,
191
+ $font-size,
192
+ $font-family,
193
+ $txt-indent,
194
+ $margin,
195
+ $padding,
196
+ $color,
197
+ $line-height,
198
+ $bg
199
+ ) {
200
+ &:first-letter {
201
+ float: $float-position;
202
+ margin: $margin;
203
+ padding: $padding;
204
+ font-size: $font-size;
205
+ font-family: $font-family;
206
+ line-height: $line-height;
207
+ text-indent: $txt-indent;
208
+ background: $bg;
209
+ color: $color;
210
+ }
211
+ }
212
+
213
+
214
+ // $Code
215
+ // -------------------------------------//
216
+
217
+ @mixin typl8-white-space($wrap-space) {
218
+ @if $wrap-space == 'pre-wrap' {
219
+ white-space: #{-moz-}$wrap-space;
220
+ white-space: $wrap-space;
221
+ } @else {
222
+ white-space: $wrap-space;
223
+ }
224
+ }
225
+
226
+
227
+ // $Definition-Lists
228
+ // -------------------------------------//
229
+ // @notes
230
+ // http://lea.verou.me/2012/02/flexible-multiline-definition-lists-with-2-lines-of-css
231
+ // http://lea.verou.me/2012/02/flexible-multiline-definition-lists-with-2-lines-of-css
232
+
233
+ @mixin typl8-definition-list-style($style) {
234
+ @if $style == lining {
235
+ dt,
236
+ dd {
237
+ display: inline;
238
+ margin: 0;
239
+ }
240
+
241
+ dt,
242
+ dd {
243
+ & + dt {
244
+ &:before {
245
+ content: "\A";
246
+ white-space: pre;
247
+ }
248
+ }
249
+ }
250
+
251
+ dd {
252
+ & + dd {
253
+ &:before {
254
+ content: ", ";
255
+ }
256
+ }
257
+ &:before {
258
+ content: ": ";
259
+ margin-left: -0.2rem; //removes extra space between the dt and the colon
260
+ }
261
+ }
262
+ }
263
+
264
+ @if $style == dictionary-style {
265
+ dt {
266
+ display: inline;
267
+ counter-reset: definitions;
268
+ & + dt {
269
+ &:before {
270
+ content: ", ";
271
+ margin-left: -0.2rem; // removes extra space between the dt and the comma
272
+ }
273
+ }
274
+ }
275
+
276
+ dd {
277
+ display: block;
278
+ counter-increment: definitions;
279
+ &:before {
280
+ content: counter(definitions, decimal) ". ";
281
+ }
282
+ }
283
+ }
284
+ }
@@ -0,0 +1,102 @@
1
+ // $Global
2
+ // -------------------------------------//
3
+
4
+ html {
5
+ @if $typl8-custom-font {
6
+ font: $typl8-font-weight #{$typl8-font-size + "%"}/#{$typl8-line-height} $typl8-custom-font, $typl8-font-family;
7
+ } @else {
8
+ font: $typl8-font-weight #{$typl8-font-size + "%"}/#{$typl8-line-height} $typl8-font-family;
9
+ }
10
+ }
11
+
12
+ body {
13
+ @extend %typl8-breakword;
14
+ @include typl8-hyphens(auto);
15
+ color: $typl8-copy-color;
16
+ }
17
+
18
+
19
+ // $Headings
20
+ // http://codepen.io/grayghostvisuals/pen/IKsbw
21
+ // -------------------------------------//
22
+
23
+ @include typl8-headings;
24
+ @include typl8-headings-style;
25
+
26
+
27
+ // $Parargraphs
28
+ // -------------------------------------//
29
+
30
+ p {
31
+ margin: auto auto $typl8-indent-val;
32
+ @if $typl8-paragraph-spacing == false {
33
+ & + p {
34
+ text-indent: $typl8-indent-val;
35
+ margin-top: -$typl8-indent-val;
36
+ }
37
+ }
38
+ }
39
+
40
+ // $Blockquotes
41
+ // -------------------------------------//
42
+
43
+ blockquote {
44
+ + figcaption cite {
45
+ @extend %typl8-cite;
46
+ }
47
+ }
48
+
49
+
50
+ // $Legal Text
51
+ // -------------------------------------//
52
+
53
+ small {
54
+ font-size: $typl8-small-print-size;
55
+ }
56
+
57
+
58
+ // $Hyphenation
59
+ // -------------------------------------//
60
+ // @notes
61
+ // http://meyerweb.com/eric/thoughts/2012/12/17/where-to-avoid-css-hyphenation
62
+
63
+ input,
64
+ abbr,
65
+ acronym,
66
+ blockquote,
67
+ code,
68
+ kbd,
69
+ q,
70
+ samp,
71
+ var {
72
+ @include typl8-hyphens(none);
73
+ }
74
+
75
+
76
+ // $Codeblocks
77
+ // -------------------------------------//
78
+
79
+ pre {
80
+ @include typl8-white-space(pre);
81
+
82
+ code {
83
+ @extend %typl8-normal-wrap;
84
+ @include typl8-white-space(pre-wrap);
85
+ }
86
+ }
87
+
88
+ code {
89
+ @include typl8-white-space(pre);
90
+ font-family: monospace;
91
+ }
92
+
93
+
94
+ // $Smallcaps
95
+ // -------------------------------------//
96
+
97
+ abbr {
98
+ @include typl8-smallcaps($typl8-smcps-color, $typl8-smcps-weight);
99
+ &[title]:hover {
100
+ cursor: help;
101
+ }
102
+ }
@@ -0,0 +1,140 @@
1
+ // $Base
2
+ // -------------------------------------//
3
+ // General base styles for type
4
+ //
5
+ // $typl8-custom-font [<"Custom-Font-Name">[, <fallback>]]
6
+ // $typl8-font-size 112.5% converts to an 18px base
7
+ // $typl8-font-base converts % base value to a px value (16 * (112.5/100) = 18)
8
+ // $typl8-font-family non-font-face stack
9
+
10
+ $typl8-serif-boolean: true !default;
11
+ $typl8-custom-font: false !default;
12
+ $typl8-font-family: if($typl8-serif-boolean, serif, sans-serif) !default;
13
+ $typl8-font-weight: normal !default;
14
+ $typl8-line-height: 1.65 !default;
15
+ $typl8-font-size: 112.5 !default;
16
+ $typl8-font-base: 16 * ($typl8-font-size/100) !default;
17
+ $typl8-measure: $typl8-font-base * $typl8-line-height !default;
18
+ $typl8-prefixes: -webkit-, -moz-, -ms-, '' !default;
19
+
20
+
21
+ // $Paragraphs
22
+ // -------------------------------------//
23
+ // Controls paragraphs vertical whitespace
24
+ // for subsequent paragraphs.
25
+ //
26
+ // $typl8-paragraph-spacing [<'false'> | <'true'>]
27
+
28
+ $typl8-paragraph-spacing: false !default;
29
+ $typl8-indent-val: 1.5em !default;
30
+
31
+
32
+ // $Small-Print
33
+ // -------------------------------------//
34
+
35
+ $typl8-small-print-size: 65% !default;
36
+
37
+
38
+ // $Base-Colors
39
+ // -------------------------------------//
40
+
41
+ $typl8-heading-color: #222 !default;
42
+ $typl8-copy-color: #444 !default;
43
+
44
+
45
+ // $Ampersands
46
+ // -------------------------------------//
47
+
48
+ $typl8-amp-fontface: Ampersand !default;
49
+ $typl8-amp-fontfamily: Verdana, sans-serif !default;
50
+ $typl8-amp-src: local('Georgia'), local('Garamond'), local('Palatino'), local('Book Antiqua') !default;
51
+ $typl8-amp-fallback: local('Georgia') !default;
52
+
53
+
54
+ // $Icon-Font-Helper
55
+ // -------------------------------------//
56
+ // Link single or multiple icon font sets. Requires Compass
57
+ //
58
+ // single icon font $typl8-icon-fonts: (icon-name);
59
+ // multiple icon fonts $typl8-icon-fonts: (icon-name1, icon-name2, icon-name3);
60
+
61
+ $typl8-icon-fonts: null !default;
62
+
63
+
64
+ // $Typescale
65
+ // -------------------------------------//
66
+ // Greek heading names and scale using base font-size
67
+ //
68
+ // typl8-tera 117 = 18 × 6.5
69
+ // typl8-giga 90 = 18 × 5
70
+ // typl8-mega 72 = 18 × 4
71
+ // typl8-alpha 60 = 18 × 3.3333
72
+ // typl8-beta 48 = 18 × 2.6667
73
+ // typl8-gamma 36 = 18 × 2
74
+ // typl8-delta 24 = 18 × 1.3333
75
+ // typl8-epsilon 21 = 18 × 1.1667
76
+ // typl8-zeta 18 = 18 × 1
77
+
78
+ $typl8-scale: (
79
+ typl8-tera: 117,
80
+ typl8-giga: 90,
81
+ typl8-mega: 72,
82
+ typl8-alpha: 60,
83
+ typl8-beta: 48,
84
+ typl8-gamma: 36,
85
+ typl8-delta: 24,
86
+ typl8-epsilon: 21,
87
+ typl8-zeta: 18,
88
+ ) !default;
89
+
90
+ $typl8-headings: (
91
+ h1: typl8-mega,
92
+ h2: typl8-alpha,
93
+ h3: typl8-beta,
94
+ h4: typl8-gamma,
95
+ h5: typl8-delta,
96
+ h6: typl8-zeta
97
+ ) !default;
98
+
99
+
100
+ // $Typescale Unit
101
+ // -------------------------------------//
102
+
103
+ $typl8-typescale-unit: rem !default;
104
+
105
+
106
+ // $Pull-Quotes
107
+ // -------------------------------------//
108
+
109
+ $typl8-pull-quote-fontsize: 4em !default;
110
+ $typl8-pull-quote-opacity: 0.5 !default;
111
+ $typl8-pull-quote-color: #dc976e !default;
112
+
113
+
114
+ // $Citations
115
+ // -------------------------------------//
116
+
117
+ $typl8-cite-display: block !default;
118
+ $typl8-cite-align: right !default;
119
+ $typl8-cite-font-size: inherit !default;
120
+
121
+
122
+ // $Small-Caps
123
+ // -------------------------------------//
124
+
125
+ $typl8-smcps-color: gray !default;
126
+ $typl8-smcps-weight: 600 !default;
127
+
128
+
129
+ // $DropCap
130
+ // -------------------------------------//
131
+
132
+ $typl8-dropcap-float-position: left !default;
133
+ $typl8-dropcap-font-size: 4em !default;
134
+ $typl8-dropcap-font-family: inherit !default;
135
+ $typl8-dropcap-txt-indent: 0 !default;
136
+ $typl8-dropcap-margin: 10px 10px 0 0 !default;
137
+ $typl8-dropcap-padding: 0 20px !default;
138
+ $typl8-dropcap-color: inherit !default;
139
+ $typl8-dropcap-line-height: 1 !default;
140
+ $typl8-dropcap-bg: transparent !default;
@@ -0,0 +1,17 @@
1
+ /*!
2
+ Typeplate : Starter Kit
3
+ URL ........... http://typeplate.com
4
+ Version ....... 2.1.0
5
+ Github ........ https://github.com/typeplate/starter-kit
6
+ Authors ....... Dennis Gaebel (@gryghostvisuals) & Zachary Kain (@zakkain)
7
+ License ....... Creative Commmons Attribution 3.0
8
+ License URL ... https://github.com/typeplate/starter-kit/blob/master/license.txt
9
+ */
10
+
11
+ @import "typeplate-vars";
12
+ @import "typeplate-fonts";
13
+ @import "typeplate-functions";
14
+ @import "typeplate-mixins";
15
+ @import "typeplate-extends";
16
+ @import "typeplate-styles";
17
+ @import "typeplate-helpers";
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "typeplate"
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
data/lib/typeplate.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'typeplate/version'
2
+
3
+ unless defined?(Sass)
4
+ require 'sass'
5
+ end
6
+
7
+ module Typeplate
8
+ typeplate_path = File.expand_path("../../app/assets/stylesheets", __FILE__)
9
+
10
+ ENV["SASS_PATH"] = [ENV["SASS_PATH"], typeplate_path].compact.join(File::PATH_SEPARATOR)
11
+ end
@@ -0,0 +1,3 @@
1
+ module Typeplate
2
+ VERSION = "2.1.0.1"
3
+ end
data/typeplate.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'typeplate/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "typeplate"
8
+ spec.version = Typeplate::VERSION
9
+ spec.authors = ["Pablo Olmos de Aguilera Corradini"]
10
+ spec.email = ["pablo+gem@odac.co"]
11
+
12
+ spec.summary = "A gem to access the [Typeplate](http://typeplate.com) sass library."
13
+ spec.description = %q{Typeplate is a “Typographic Starter Kit.” We don’t make aesthetic design choices, but define proper markup with extensible styling for common typographic patterns.}
14
+ spec.homepage = "https://github.com/PaBLoX-CL/typeplate"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.require_paths = ["lib"]
18
+ spec.licenses = ['CC-BY-3.0', 'MIT']
19
+
20
+ spec.add_runtime_dependency "sass", "~> 3.0"
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.9"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ end
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: typeplate
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Pablo Olmos de Aguilera Corradini
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.9'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.9'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description: Typeplate is a “Typographic Starter Kit.” We don’t make aesthetic design
56
+ choices, but define proper markup with extensible styling for common typographic
57
+ patterns.
58
+ email:
59
+ - pablo+gem@odac.co
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - ".travis.yml"
66
+ - CODE_OF_CONDUCT.md
67
+ - Gemfile
68
+ - LICENSE.CC
69
+ - LICENSE.MIT
70
+ - README.md
71
+ - Rakefile
72
+ - app/assets/stylesheets/_typeplate-extends.scss
73
+ - app/assets/stylesheets/_typeplate-fonts.scss
74
+ - app/assets/stylesheets/_typeplate-functions.scss
75
+ - app/assets/stylesheets/_typeplate-helpers.scss
76
+ - app/assets/stylesheets/_typeplate-mixins.scss
77
+ - app/assets/stylesheets/_typeplate-styles.scss
78
+ - app/assets/stylesheets/_typeplate-vars.scss
79
+ - app/assets/stylesheets/_typeplate.scss
80
+ - bin/console
81
+ - bin/setup
82
+ - lib/typeplate.rb
83
+ - lib/typeplate/version.rb
84
+ - typeplate.gemspec
85
+ homepage: https://github.com/PaBLoX-CL/typeplate
86
+ licenses:
87
+ - CC-BY-3.0
88
+ - MIT
89
+ metadata: {}
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubyforge_project:
106
+ rubygems_version: 2.4.5
107
+ signing_key:
108
+ specification_version: 4
109
+ summary: A gem to access the [Typeplate](http://typeplate.com) sass library.
110
+ test_files: []
111
+ has_rdoc: