dropcloth 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +69 -3
- data/dropcloth.gemspec +2 -2
- data/stylesheets/base/_mixins.scss +44 -45
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Njg2MDAzZjE2OTk2YjBkZTFmMDE2ODJiZDM0OGE4MDI2MzNkYzUyMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTY1OWZjNGQ3ZWY4ZjAxNGYwZjM4NGFhZjJlMjJhNDU4MDlmYmIyNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmNhOGUyZDUyMTk3ZWNhOTU3YmE2OWE3NTIxM2ZiNWQ1M2EzNGY5NTc2NDJm
|
10
|
+
YjRlMmRjYTM3MTVkZTk1NWM2OTcyNzU0YjkyOTk4MzgzYjYzM2QxODRkYjBk
|
11
|
+
ZTcyYjk4NDhlY2JiNTM5MjA0YTcwNTMxMTZmMzk2NWFhYWI1NTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmNhNGU5NjBhOWRmZTgzZmZlYTBlODhjNzc1NWZiZDc5NWQ3MmU5OTkxYWFk
|
14
|
+
ZTA4M2M2NGMwMzQwZTA5NjE1MmFkMzc1ZDhmZTNjOWFjMDUzMmQwNmY4NDNm
|
15
|
+
NWIwZTE2MDM0NmQ3NWJlNDI5NWQ3ZjFmOGU2YTRlYTNhM2FkMDg=
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ Install
|
|
11
11
|
|
12
12
|
Dropcloth is distributed as a Ruby Gem. On your computer, simply run:
|
13
13
|
|
14
|
-
|
14
|
+
$ sudo gem install dropcloth
|
15
15
|
|
16
16
|
|
17
17
|
Use
|
@@ -21,12 +21,78 @@ If you are using Compass (and you should!) then you can add it to an existing
|
|
21
21
|
project by editing the project's configuration file, config.rb, and adding this
|
22
22
|
line:
|
23
23
|
|
24
|
-
|
24
|
+
require "dropcloth"
|
25
25
|
|
26
26
|
You can then start using Dropcloth in your theme. Just add this line to one
|
27
27
|
of your .sass or .scss files and theme with confidence!
|
28
28
|
|
29
|
-
|
29
|
+
@import "dropcloth";
|
30
|
+
|
31
|
+
|
32
|
+
Sass Mixins & Placeholders
|
33
|
+
--------------------------
|
34
|
+
|
35
|
+
### @include onhover{ @content; }
|
36
|
+
|
37
|
+
* Enables hover effects. Includes .hover helper class as well as :focus for accessibility.
|
38
|
+
|
39
|
+
|
40
|
+
### @include placeholder($opacity: 1) { @content; }
|
41
|
+
|
42
|
+
* Styles HTML5 placeholder attributes with .placeholder class support for legacy support.
|
43
|
+
|
44
|
+
* *@param (float) $opacity* -- A floating decimal to be passed as the element's opacity (default: 1).
|
45
|
+
|
46
|
+
* *@see* https://github.com/mathiasbynens/jquery-placeholder
|
47
|
+
|
48
|
+
|
49
|
+
### @include selection{ @content; }
|
50
|
+
|
51
|
+
* Cross-browser selection styling.
|
52
|
+
|
53
|
+
|
54
|
+
### @include linkify($rev: false);
|
55
|
+
|
56
|
+
* Styles all <a> element children as a revlink or stdlink (see placeholders below)
|
57
|
+
|
58
|
+
* *@param (bool) $rev* -- Whether the link should be reversed or not (default: false).
|
59
|
+
|
60
|
+
|
61
|
+
### @extend %no-title;
|
62
|
+
|
63
|
+
* Hides Drupal .block-title elements.
|
64
|
+
|
65
|
+
|
66
|
+
### @extend %stdlink;
|
67
|
+
|
68
|
+
* Standard Link. Removes underline text-decoration on hover.
|
69
|
+
|
70
|
+
|
71
|
+
### @extend %revlink;
|
72
|
+
|
73
|
+
* Reverse Link. Removes underline text-decoration, but displays it on hover.
|
74
|
+
|
75
|
+
|
76
|
+
### @extend %grayscale;
|
77
|
+
|
78
|
+
* A more x-browser friendly grayscale filter.
|
79
|
+
|
80
|
+
* *@requires* compass/css3
|
81
|
+
|
82
|
+
|
83
|
+
### @extend %element-invisible;
|
84
|
+
|
85
|
+
* Hides an element the way Drupal does a la .element-invisble.
|
86
|
+
|
87
|
+
|
88
|
+
### @extend %element-invisible-off;
|
89
|
+
|
90
|
+
* Reverses effects of element-invisible.
|
91
|
+
|
92
|
+
|
93
|
+
### @extend %element-focusable;
|
94
|
+
|
95
|
+
* Hides an element using element-invisible, but allows it to be displayed on focus.
|
30
96
|
|
31
97
|
|
32
98
|
Requirements
|
data/dropcloth.gemspec
CHANGED
@@ -6,10 +6,10 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.summary = %q{A Compass plugin for Drupal.}
|
7
7
|
s.description = %q{Dropcloth provides a set of base styles for Drupal theming.}
|
8
8
|
|
9
|
-
s.homepage = '
|
9
|
+
s.homepage = 'https://github.com/kaidjohnson/dropcloth'
|
10
10
|
s.rubyforge_project =
|
11
11
|
|
12
|
-
s.version = '0.1.
|
12
|
+
s.version = '0.1.4'
|
13
13
|
s.date = '2013-10-07'
|
14
14
|
s.license = 'GPL-2'
|
15
15
|
|
@@ -1,46 +1,19 @@
|
|
1
|
-
//
|
2
|
-
@mixin
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
// Hides an element from view, the Drupal way.
|
9
|
-
@mixin element-invisible {
|
10
|
-
position: absolute !important;
|
11
|
-
height: 1px;
|
12
|
-
width: 1px;
|
13
|
-
overflow: hidden;
|
14
|
-
margin: 0;
|
15
|
-
padding: 0;
|
16
|
-
clip: rect(1px, 1px, 1px, 1px);
|
17
|
-
}
|
18
|
-
|
19
|
-
// Turns off the element-invisible effect.
|
20
|
-
@mixin element-invisible-off {
|
21
|
-
position: static !important;
|
22
|
-
clip: auto;
|
23
|
-
height: auto;
|
24
|
-
width: auto;
|
25
|
-
overflow: auto;
|
26
|
-
}
|
27
|
-
|
28
|
-
// Hides the element but makes it appear on focus. Improves accessibility.
|
29
|
-
@mixin element-focusable {
|
30
|
-
@include element-invisible;
|
31
|
-
&:active,
|
32
|
-
&:focus {
|
33
|
-
@include element-invisible-off;
|
1
|
+
// Hover shortcut
|
2
|
+
@mixin onhover{
|
3
|
+
&.hover,
|
4
|
+
&:hover,
|
5
|
+
&:focus{
|
6
|
+
@content;
|
34
7
|
}
|
35
8
|
}
|
36
9
|
|
37
10
|
// Style placeholders
|
38
|
-
@mixin placeholder($
|
39
|
-
&.placeholder { @include opacity($
|
40
|
-
&:-ms-input-placeholder { @include opacity($
|
41
|
-
&:-moz-placeholder { @include opacity($
|
42
|
-
&::-moz-placeholder { @include opacity($
|
43
|
-
&::-webkit-input-placeholder { @include opacity($
|
11
|
+
@mixin placeholder($opacity: 1) {
|
12
|
+
&.placeholder { @include opacity($opacity); @content; }
|
13
|
+
&:-ms-input-placeholder { @include opacity($opacity); @content; }
|
14
|
+
&:-moz-placeholder { @include opacity($opacity); @content; }
|
15
|
+
&::-moz-placeholder { @include opacity($opacity); @content; }
|
16
|
+
&::-webkit-input-placeholder { @include opacity($opacity); @content; }
|
44
17
|
}
|
45
18
|
|
46
19
|
// Style ::selection
|
@@ -49,12 +22,10 @@
|
|
49
22
|
::-moz-selection{ @content; }
|
50
23
|
}
|
51
24
|
|
52
|
-
//
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
&:focus{
|
57
|
-
@content;
|
25
|
+
// Hides block titles.
|
26
|
+
%no-title {
|
27
|
+
.block-title{
|
28
|
+
display: none;
|
58
29
|
}
|
59
30
|
}
|
60
31
|
|
@@ -81,6 +52,34 @@
|
|
81
52
|
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
|
82
53
|
}
|
83
54
|
|
55
|
+
// Hides an element from view, the Drupal way.
|
56
|
+
%element-invisible {
|
57
|
+
position: absolute !important;
|
58
|
+
height: 1px;
|
59
|
+
width: 1px;
|
60
|
+
overflow: hidden;
|
61
|
+
margin: 0;
|
62
|
+
padding: 0;
|
63
|
+
clip: rect(1px, 1px, 1px, 1px);
|
64
|
+
}
|
65
|
+
|
66
|
+
// Turns off the element-invisible effect.
|
67
|
+
%element-invisible-off {
|
68
|
+
position: static !important;
|
69
|
+
clip: auto;
|
70
|
+
height: auto;
|
71
|
+
width: auto;
|
72
|
+
overflow: auto;
|
73
|
+
}
|
74
|
+
|
75
|
+
// Hides the element but makes it appear on focus. Improves accessibility.
|
76
|
+
%element-focusable {
|
77
|
+
@extend %element-invisible;
|
78
|
+
@include onhover{
|
79
|
+
@extend %element-invisible-off;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
84
83
|
// Links within a container
|
85
84
|
@mixin linkify($rev: false) {
|
86
85
|
a{
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dropcloth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kai Johnson
|
@@ -56,7 +56,7 @@ files:
|
|
56
56
|
- stylesheets/dropcloth.scss
|
57
57
|
- templates/project/manifest.rb
|
58
58
|
- dropcloth.gemspec
|
59
|
-
homepage:
|
59
|
+
homepage: https://github.com/kaidjohnson/dropcloth
|
60
60
|
licenses:
|
61
61
|
- GPL-2
|
62
62
|
metadata: {}
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubyforge_project: 0.1.
|
78
|
+
rubyforge_project: 0.1.4
|
79
79
|
rubygems_version: 2.1.5
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|