reactive-css 0.1.0
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.
- data/README.mkdn +54 -0
- data/lib/reactive.rb +3 -0
- data/stylesheets/_reactive.scss +2 -0
- data/stylesheets/reactive-css/_clearfix.scss +24 -0
- data/stylesheets/reactive-css/_font-library.scss +9 -0
- data/stylesheets/reactive-css/_has-layout.scss +46 -0
- data/stylesheets/reactive-css/_reset.scss +31 -0
- data/stylesheets/reactive-css/_support.scss +36 -0
- data/templates/project/manifest.rb +16 -0
- data/templates/project/screen.scss +7 -0
- metadata +88 -0
data/README.mkdn
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
Compass / Reactive Boilerplate Template
|
2
|
+
=======================================
|
3
|
+
|
4
|
+
Boilerplate template consisting of 3 partials and 2 helper files.
|
5
|
+
|
6
|
+
|
7
|
+
Installation
|
8
|
+
============
|
9
|
+
|
10
|
+
From the command line:
|
11
|
+
|
12
|
+
(sudo) gem install reactive
|
13
|
+
|
14
|
+
Add to a project:
|
15
|
+
|
16
|
+
// rails: compass.config, other: config.rb
|
17
|
+
require 'reactive'
|
18
|
+
|
19
|
+
// command line
|
20
|
+
compass install reactive
|
21
|
+
|
22
|
+
Or create a new project:
|
23
|
+
|
24
|
+
compass -r reactive -f reactive project_directory
|
25
|
+
|
26
|
+
|
27
|
+
Reset
|
28
|
+
==========
|
29
|
+
Standard Reset from Eric Meyers
|
30
|
+
To import use @import("reactive/reset");
|
31
|
+
|
32
|
+
|
33
|
+
Clearfix
|
34
|
+
==========
|
35
|
+
Clearfix with has layout option for ie. Requires a boolean to enable/disable item.
|
36
|
+
To import use @import("reactive/clearfix");
|
37
|
+
To use @include clearfix;
|
38
|
+
|
39
|
+
|
40
|
+
Variable to enable/disable ie is: $legacy-support-for-ie
|
41
|
+
|
42
|
+
|
43
|
+
Font Library
|
44
|
+
============
|
45
|
+
HTML fonts available by calling a variable
|
46
|
+
$helvetica
|
47
|
+
$geneva
|
48
|
+
$lucida
|
49
|
+
$verdana
|
50
|
+
$cambria
|
51
|
+
$palatino
|
52
|
+
$times
|
53
|
+
$courier
|
54
|
+
$monaco
|
data/lib/reactive.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
@import "has-layout";
|
2
|
+
|
3
|
+
@mixin clearfix {
|
4
|
+
&:before {
|
5
|
+
content: "\0020";
|
6
|
+
display: block;
|
7
|
+
height: 0;
|
8
|
+
visibility: hidden;
|
9
|
+
}
|
10
|
+
&:after {
|
11
|
+
content: "\0020";
|
12
|
+
display: block;
|
13
|
+
height: 0;
|
14
|
+
visibility: hidden;
|
15
|
+
clear: both;
|
16
|
+
}
|
17
|
+
@include has-layout;
|
18
|
+
}
|
19
|
+
@mixin cleartext {
|
20
|
+
overflow:hidden;
|
21
|
+
font-size:0;
|
22
|
+
line-height:0;
|
23
|
+
text-indent:-9999px;
|
24
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
$helvetica: "helvetica neue", arial, helvetica, freesans, "liberation sans", "numbus sans l", sans-serif;
|
2
|
+
$geneva: geneva, tahoma, "dejavu sans condensed", sans-serif;
|
3
|
+
$lucida: "lucida grande", "lucia sans unicode", "lucida sans", lucida, sans-serif;
|
4
|
+
$verdana: verdana, "bitstream vera sans", "dejavu sans", "liberation sans", geneva, sans-serif;
|
5
|
+
$cambria: cambria, georgia, "bitstream charter", "century schoolbook l", "liberation serif", times, serif;
|
6
|
+
$palatino: "palatino linotype", palatino, palladio, "urw palladio l", "book antiqua", "liberation serif", times, serif;
|
7
|
+
$times: times, "times new roman", "nimbus roman no9 l", freeserif, "liberation serif", serif;
|
8
|
+
$courier: "courier new", courier, freemono, "nimbus mono l", "liberation mono", monospace;
|
9
|
+
$monaco: monaco, "lucida console", "dejavu sans mono", "bitstream vera sans mono", "liberation mono", monospace;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
@import "support";
|
2
|
+
|
3
|
+
// The `zoom` approach generates less CSS but does not validate.
|
4
|
+
// Set this to `block` to use the display-property to hack the
|
5
|
+
// element to gain layout.
|
6
|
+
$default-has-layout-approach: zoom !default;
|
7
|
+
|
8
|
+
// This mixin causes an element matching the selector
|
9
|
+
// to gain the "hasLayout" property in internet explorer.
|
10
|
+
// More information on [hasLayout](http://reference.sitepoint.com/css/haslayout).
|
11
|
+
@mixin has-layout($approach: $default-has-layout-approach) {
|
12
|
+
@if $legacy-support-for-ie {
|
13
|
+
@if $approach == zoom {
|
14
|
+
@include has-layout-zoom;
|
15
|
+
} @else if $approach == block {
|
16
|
+
@include has-layout-block;
|
17
|
+
} @else {
|
18
|
+
@warn "Unknown has-layout approach: #{$approach}";
|
19
|
+
@include has-layout-zoom;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
@mixin has-layout-zoom {
|
25
|
+
@if $legacy-support-for-ie {
|
26
|
+
*zoom: 1;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
@mixin has-layout-block {
|
31
|
+
@if $legacy-support-for-ie {
|
32
|
+
// This makes ie6 get layout
|
33
|
+
display: inline-block;
|
34
|
+
// and this puts it back to block
|
35
|
+
& { display: block; }
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
// A hack to supply IE6 (and below) with a different property value.
|
40
|
+
// [Read more](http://www.cssportal.com/css-hacks/#in_css-important).
|
41
|
+
@mixin bang-hack($property, $value, $ie6-value) {
|
42
|
+
@if $legacy-support-for-ie6 {
|
43
|
+
#{$property}: #{$value} !important;
|
44
|
+
#{$property}: #{$ie6-value};
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/* RESET (meyerweb.com/eric/tools/css/reset/)*/
|
2
|
+
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym,
|
3
|
+
address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
|
4
|
+
b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead,
|
5
|
+
tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section,
|
6
|
+
summary, time, mark, audio, video { margin:0; padding:0; border:0; outline:0; font-size:100%; font: inherit;
|
7
|
+
vertical-align: baseline;}
|
8
|
+
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
|
9
|
+
body {line-height: 1;}
|
10
|
+
ol, ul {list-style: none;}
|
11
|
+
blockquote, q {quotes: none;}
|
12
|
+
blockquote:before, blockquote:after,
|
13
|
+
q:before, q:after {content: '';content: none;}
|
14
|
+
ins {text-decoration: none;}
|
15
|
+
del {text-decoration: line-through;}
|
16
|
+
table {border-collapse: collapse;border-spacing: 0;}
|
17
|
+
|
18
|
+
/* REACTIVE - BASE STYLES
|
19
|
+
-----------------------------------------------------------------------------------------------------------*/
|
20
|
+
input[type=button], input[type=submit], button { cursor: pointer; }
|
21
|
+
menu li { margin: 0; }
|
22
|
+
#skipLinks{ height: 1px; left: -999em; position: absolute; top: -999em; width: 1px; }
|
23
|
+
em, i{font-style:italic;}strong, b{font-weight:bold;}
|
24
|
+
|
25
|
+
/* STRUCTURE
|
26
|
+
-----------------------------------------------------------------------------------------------------------*/
|
27
|
+
html, body{
|
28
|
+
width:100%;
|
29
|
+
height:100%;
|
30
|
+
}
|
31
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
// Usually compass hacks apply to both ie6 & 7 -- set this to false to disable support for both.
|
2
|
+
$legacy-support-for-ie: true !default;
|
3
|
+
|
4
|
+
// Setting this to false will result in smaller output, but no support for ie6 hacks
|
5
|
+
$legacy-support-for-ie6: $legacy-support-for-ie !default;
|
6
|
+
|
7
|
+
// Setting this to false will result in smaller output, but no support for ie7 hacks
|
8
|
+
$legacy-support-for-ie7: $legacy-support-for-ie !default;
|
9
|
+
|
10
|
+
// Setting this to false will result in smaller output, but no support for legacy ie8 hacks
|
11
|
+
$legacy-support-for-ie8: $legacy-support-for-ie !default;
|
12
|
+
|
13
|
+
// @private
|
14
|
+
// The user can simply set $legacy-support-for-ie and 6, 7, and 8 will be set accordingly,
|
15
|
+
// But in case the user set each of those explicitly, we need to sync the value of
|
16
|
+
// this combined variable.
|
17
|
+
$legacy-support-for-ie: $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8;
|
18
|
+
|
19
|
+
// Support for mozilla in experimental css3 properties (-moz).
|
20
|
+
$experimental-support-for-mozilla : true !default;
|
21
|
+
// Support for webkit in experimental css3 properties (-webkit).
|
22
|
+
$experimental-support-for-webkit : true !default;
|
23
|
+
// Support for webkit's original (non-standard) gradient syntax.
|
24
|
+
$support-for-original-webkit-gradients : true !default;
|
25
|
+
// Support for opera in experimental css3 properties (-o).
|
26
|
+
$experimental-support-for-opera : true !default;
|
27
|
+
// Support for microsoft in experimental css3 properties (-ms).
|
28
|
+
$experimental-support-for-microsoft : true !default;
|
29
|
+
// Support for khtml in experimental css3 properties (-khtml).
|
30
|
+
$experimental-support-for-khtml : false !default;
|
31
|
+
// Support for svg in experimental css3 properties.
|
32
|
+
// Setting this to true might add significant size to your
|
33
|
+
// generated stylesheets.
|
34
|
+
$experimental-support-for-svg : false !default;
|
35
|
+
// Support for CSS PIE in experimental css3 properties (-pie).
|
36
|
+
$experimental-support-for-pie : false !default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Make sure you list all the project template files here in the manifest.
|
2
|
+
description "A basic install of the commonly used styles for Reactive."
|
3
|
+
stylesheet 'screen.scss', :media => 'screen, projection'
|
4
|
+
|
5
|
+
help %Q{
|
6
|
+
By default a basic reset and clearfix is included on first install. To use the clear fix simply type @include clearfix inside the declaration as follows:
|
7
|
+
|
8
|
+
.example {
|
9
|
+
@include clearfix
|
10
|
+
}
|
11
|
+
|
12
|
+
}
|
13
|
+
|
14
|
+
welcome_message %Q{
|
15
|
+
Thank you for using the SASS Reactive Extension. Should you have any questions please ask Sam Chalmers (the king of FEDs).
|
16
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
Welcome to the Reactive Extension.
|
3
|
+
In this file you should write your main styles. (or centralize your imports)
|
4
|
+
Import this file using the following HTML or equivalent:
|
5
|
+
<link href="/stylesheets/screen.css" media="screen, projection" />
|
6
|
+
|
7
|
+
@import reactive-css/reset
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: reactive-css
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Ritchie Anesco
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-05-10 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: compass
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 29
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 11
|
32
|
+
version: "0.11"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
description: Boilerplate template implementation for compass
|
36
|
+
email: ritchie.anesco@reactive.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files: []
|
42
|
+
|
43
|
+
files:
|
44
|
+
- README.mkdn
|
45
|
+
- lib/reactive.rb
|
46
|
+
- stylesheets/_reactive.scss
|
47
|
+
- stylesheets/reactive-css/_clearfix.scss
|
48
|
+
- stylesheets/reactive-css/_font-library.scss
|
49
|
+
- stylesheets/reactive-css/_has-layout.scss
|
50
|
+
- stylesheets/reactive-css/_reset.scss
|
51
|
+
- stylesheets/reactive-css/_support.scss
|
52
|
+
- templates/project/manifest.rb
|
53
|
+
- templates/project/screen.scss
|
54
|
+
homepage: http://www.reactive.com/
|
55
|
+
licenses: []
|
56
|
+
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options: []
|
59
|
+
|
60
|
+
require_paths:
|
61
|
+
- lib
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
hash: 3
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
version: "0"
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
80
|
+
requirements: []
|
81
|
+
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 1.8.24
|
84
|
+
signing_key:
|
85
|
+
specification_version: 3
|
86
|
+
summary: Boilerplate template implementation for compass
|
87
|
+
test_files: []
|
88
|
+
|