compass-pug 0.0.5 → 0.0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +6 -3
  3. data/stylesheets/pug/_mixins.scss +51 -0
  4. metadata +15 -10
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OThkM2ZhNjEzYjkzMTlmYjIyOTA2Y2ExZWRiYTg4NWMxZDAyNzM1MQ==
4
+ ZWVjODc1MWNhMDc5MWY1OTAyMmM4MjJiZTFhN2UxZDNlNzE2MmI0Ng==
5
5
  data.tar.gz: !binary |-
6
- NWE2ZmJjMTcyMWRhOTI3YzMyNzFjOGE2ZGYxZGJlNDc4ZTQzMTdkNw==
6
+ NGQyOTc2OWYyNjI5ZmJhOGZmOWJkMGNjYWI1MWJmNDEzMjlmZjlmOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDNlNDE5NDViNDk1MGZjNzI5ZTNmMWI2ZjMxNTk1MDEzNjkzMzI0NDVhNzZm
10
- Nzk5ZmY0MGY2NDI3ZjA2YjBhMDJlMzJiYzEzYjU0ZjgxNWExNDM0MDU3N2Iw
11
- ZDJjZWI3NDAyMDQzNmIzNzM4ZTUxNDZmMzY2NzVjY2YyOWFiZGU=
9
+ ODMzMThmNzBhZTMzMWYyMDQ1YzU2Nzc1MDJhZTlmMDhhZWJiMzlmM2I3NzNk
10
+ OGU1NTM1Njk4YTYyM2E2NWY5Y2Y5M2I0YzlmOWVjNTdjNTFkOGQ1OGY5NTBj
11
+ MDI3OGIyYTgxMWU3ZDg4ZTQ3MjEyMTA1NWY3OWI5MjVkYzgzZDg=
12
12
  data.tar.gz: !binary |-
13
- ZTAzYjllZGVlNTBjMzZjZjEwOWJjZTI4ODM4YTE3OGYwNWE2ODY1NGNkNDAx
14
- MzRiNDU2Y2YyMDcxODZkOGRmYzFkOGY2OWQwYTgxOTkyMWVjMmJhNWJmZjFj
15
- YzYyYzhjY2E1NDUzYjEwZTMzZGVhMjE0MDQzNTczNWI4M2ZmN2M=
13
+ NmMzZDIzNDZhNzY0MzM2NjNhZTU3ZDc0Mzg2MDU2YmQyZjRkMDM2ZTEzY2Vj
14
+ MjU4MmYzODY5MzllNDU5MmE0NzM4ODA4N2Q5MWI4OTIzZWUwOWI2NGRlODIx
15
+ NTdiNDMxMzUxMDUwOWI1ZDgyMDBlMDUxZjJiZWYwZjQ1YjdiZjc=
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Pug for Compass
2
2
 
3
- A collection of Sass functions and mixins for use in Compass projects. It currently requires Compass `>= 1.0.0.rc.1`.
3
+ Pug is a collection of mixins and functions for use in Sass/Compass projects. It provides various helpers and utilities, some of which are adapted from CSS classes included in various HTML starter packages like Bootstrap and HTML5 Boilerplate. It aims to increase consistency and productivity in front-end development, as well as to help get non-semantic utility classes out of markup.
4
4
 
5
5
  ## Installation
6
6
 
7
- Pug is distributed as a Ruby gem called `compass-pug`. You can install it with the `gem` command:
7
+ Pug is distributed as a Ruby gem called `compass-pug` and requires Compass `1.0+`. You can install it (and its dependencies) with the `gem` command:
8
8
 
9
9
  gem install compass-pug
10
10
 
@@ -26,7 +26,10 @@ For complete details, including function/mixin parameters, view the `stylesheets
26
26
  * `pug-alignleft()`: Sets `display:inline`, `float:left` and applies some right margin based on the configured horizontal unit.
27
27
  * `pug-alignright()`: Sets `display:inline`, `float:right` and applies some left margin based on the configured horizontal unit.
28
28
  * `pug-clearfix()`: Clearfix. Alias for `pug-micro-clearfix()`.
29
+ * `pug-columns-3()`: Apply to items that should be displayed in a 3-column grid.
30
+ * `pug-columns-4()`: Apply to items that should be displayed in a 4-column grid.
29
31
  * `pug-dark-bg-with-light-text()`: Quickly apply bg, text and link colors to a selector appropriate for a dark background with light text.
32
+ * `pug-image-replacement()`: [Adapted from HTML5 Boilerplate's](http://html5boilerplate.com/) `.ir` class.
30
33
  * `pug-light-bg-with-dark-text()`: Quickly apply bg, text and link colors to a selector appropriate for a light background with dark text.
31
34
  * `pug-micro-clearfix()`: [Provides Nicolas Gallagher's Micro Clearfix](http://nicolasgallagher.com/micro-clearfix-hack/).
32
35
  * `pug-placeholder-color()`: Generates cross-browser CSS (with selectors) for setting the color of input field placeholder text. Via [CSS Tricks](http://css-tricks.com/snippets/css/style-placeholder-text/).
@@ -45,6 +48,7 @@ For complete details, including function/mixin parameters, view the `stylesheets
45
48
 
46
49
  Below are the variables and their default values defined in `stylesheets/_pug.scss`. You can override any or all of these in your code by declaring them yourself *before* you import Pug (omit the `!default` flag shown on the definitions below if you do that).
47
50
 
51
+ // Colors
48
52
  $pug-bg-color-light: #FFF !default;
49
53
  $pug-bg-color-dark: #202020 !default;
50
54
 
@@ -72,7 +76,6 @@ Below are the variables and their default values defined in `stylesheets/_pug.sc
72
76
  // Vars related to horizontal rhythm (gridding).
73
77
  $pug-hr-horizontal-unit: 10px !default;
74
78
 
75
-
76
79
  ## Development
77
80
 
78
81
  ### Generating a Release
@@ -36,6 +36,34 @@
36
36
  @include pug-micro-clearfix();
37
37
  }
38
38
 
39
+ /**
40
+ * Apply to items that should be displayed in a 3-column grid.
41
+ */
42
+ @mixin pug-columns-3 {
43
+ float: left;
44
+ margin-right: 1.83%;
45
+ max-width: 385px;
46
+ position: relative;
47
+ width: 32.08%;
48
+ &:nth-of-type(3n) {
49
+ margin-right: 0;
50
+ }
51
+ }
52
+
53
+ /**
54
+ * Apply to items that should be displayed in a 4-column grid.
55
+ */
56
+ @mixin pug-columns-4 {
57
+ float: left;
58
+ margin-right: 1.08%;
59
+ max-width: 290px;
60
+ position: relative;
61
+ width: 24.16%;
62
+ &:nth-of-type(4n) {
63
+ margin-right: 0;
64
+ }
65
+ }
66
+
39
67
  /**
40
68
  * Quickly apply appropriate styles to an element for having a dark background.
41
69
  *
@@ -46,6 +74,8 @@
46
74
  * @param string $link-default-color
47
75
  * @param string $link-visited-color
48
76
  * @param string $link-hover-color
77
+ *
78
+ * @see pug-dark-bg-with-dark-text
49
79
  */
50
80
  @mixin pug-dark-bg-with-light-text(
51
81
  $bg-color: $pug-bg-color-dark,
@@ -69,6 +99,25 @@
69
99
  }
70
100
  }
71
101
 
102
+ /**
103
+ * Image replacement
104
+ *
105
+ * Adapted from HTML5 Boilerplate's .ir class.
106
+ */
107
+ @mixin pug-image-replacement {
108
+ background-color: transparent;
109
+ border: 0;
110
+ overflow: hidden;
111
+ /* IE 6/7 fallback */
112
+ *text-indent: -9999px;
113
+ &:before {
114
+ content: "";
115
+ display: block;
116
+ height: 150%;
117
+ width: 0;
118
+ }
119
+ }
120
+
72
121
  /**
73
122
  * Quickly apply appropriate styles to an element for having a light background.
74
123
  *
@@ -79,6 +128,8 @@
79
128
  * @param string $link-default-color
80
129
  * @param string $link-visited-color
81
130
  * @param string $link-hover-color
131
+ *
132
+ * @see pug-dark-bg-with-light-text
82
133
  */
83
134
  @mixin pug-light-bg-with-dark-text(
84
135
  $bg-color: $pug-bg-color-light,
metadata CHANGED
@@ -1,30 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-pug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kamm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-06 00:00:00.000000000 Z
11
+ date: 2014-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: compass
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.rc.1
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0.rc.1
27
- description: a collection of mixins for compass
26
+ version: '1.0'
27
+ description: Pug is a collection of mixins and functions for use in Sass/Compass projects.
28
+ It provides various helpers and utilities, some of which are adapted from CSS classes
29
+ included in various HTML starter packages like Bootstrap and HTML5 Boilerplate.
30
+ It aims to increase consistency and productivity in front-end development, as well
31
+ as to help get non-semantic utility classes out of markup.
28
32
  email: ak@kamm.co
29
33
  executables: []
30
34
  extensions: []
@@ -35,8 +39,9 @@ files:
35
39
  - stylesheets/_pug.scss
36
40
  - stylesheets/pug/_functions.scss
37
41
  - stylesheets/pug/_mixins.scss
38
- homepage: http://kamm.co/
39
- licenses: []
42
+ homepage: https://github.com/fatleaf/compass-pug
43
+ licenses:
44
+ - MIT
40
45
  metadata: {}
41
46
  post_install_message:
42
47
  rdoc_options: []
@@ -57,5 +62,5 @@ rubyforge_project:
57
62
  rubygems_version: 2.2.2
58
63
  signing_key:
59
64
  specification_version: 4
60
- summary: a collection of mixins for compass
65
+ summary: A collection of mixins and functions for use in Sass/Compass projects.
61
66
  test_files: []