droidcss 1.0.3 → 1.0.4
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.md
CHANGED
@@ -6,11 +6,36 @@ Small responsive framework with grids and couple mixins. We've took the most use
|
|
6
6
|
|
7
7
|
## What's under the hood?
|
8
8
|
|
9
|
-
*
|
9
|
+
* Normalize.css
|
10
10
|
* CSS3 Mixins
|
11
11
|
* Compiled CSS file (from SCSS)
|
12
12
|
|
13
|
-
## How to use
|
13
|
+
## How to use DroidCSS within Rails/Sinatra application
|
14
|
+
|
15
|
+
#### Step 1: Set variables
|
16
|
+
|
17
|
+
Set variables if needed. Otherwise, skip to the next step.
|
18
|
+
|
19
|
+
Create a file called setup.scss in 'partials' folder and declare it right before any DroidCSS files declaration. You main SCSS (probably, it will be application.scss) file will look like this:
|
20
|
+
|
21
|
+
@import 'partials/setup';
|
22
|
+
|
23
|
+
|
24
|
+
#### Step 2.1: Application without web-fonts (@font-face)
|
25
|
+
|
26
|
+
Import DroidCSS main file:
|
27
|
+
|
28
|
+
@import 'droidcss';
|
29
|
+
|
30
|
+
#### Step 2.2: Application with web-fonts (@font-face)
|
31
|
+
|
32
|
+
Create a new file 'fonts.scss' in 'partials' folder. Place font-face mixins in fonts.scss file. Then import all needed files in the main scss file:
|
33
|
+
|
34
|
+
@import 'droidcss/mixins';
|
35
|
+
@import 'partials/fonts';
|
36
|
+
@import 'droidcss/base';
|
37
|
+
|
38
|
+
## How to use SCSS without Rails/Sinatra application
|
14
39
|
|
15
40
|
On Mac it's easy to use it with:
|
16
41
|
|
@@ -19,6 +44,10 @@ On Mac it's easy to use it with:
|
|
19
44
|
* [Hammer](http://www.hammerformac.com/)
|
20
45
|
* [LiveReload](http://www.livereload.com/)
|
21
46
|
|
47
|
+
Just drag&drop DroidCSS folder into the application, then point your html file to DroidCSS. For example:
|
48
|
+
|
49
|
+
<link href="droidcss/droidcss.css" rel="stylesheet">
|
50
|
+
|
22
51
|
## Variables
|
23
52
|
|
24
53
|
All the variables can be found in partials/setup.scss file
|
@@ -108,8 +137,8 @@ CSS output result:
|
|
108
137
|
|
109
138
|
@font-face {
|
110
139
|
font-family: "MuseoSans";
|
111
|
-
font-weight:
|
112
|
-
font-style:
|
140
|
+
font-weight: 700;
|
141
|
+
font-style: italic;
|
113
142
|
src: url("/assets/fonts/museosans-bold-italic.eot");
|
114
143
|
src: url("/assets/fonts/museosans-bold-italic.eot?#iefix") format("embedded-opentype"), url("/assets/fonts/museosans-bold-italic.woff") format("woff"), url("/assets/fonts/museosans-bold-italic.ttf") format("truetype"), url("/assets/fonts/museosans-bold-italic.svg#MuseoSans") format("svg");
|
115
144
|
}
|
@@ -138,6 +167,52 @@ CSS output result:
|
|
138
167
|
-moz-transition: opacity 0.2s linear;
|
139
168
|
transition: opacity 0.2s linear;
|
140
169
|
|
170
|
+
#### Size:
|
171
|
+
|
172
|
+
Usage:
|
173
|
+
|
174
|
+
@include size(100px, 200px);
|
175
|
+
|
176
|
+
CSS output result:
|
177
|
+
|
178
|
+
width: 100px;
|
179
|
+
height: 200px;
|
180
|
+
|
181
|
+
#### Square:
|
182
|
+
|
183
|
+
Usage:
|
184
|
+
|
185
|
+
@include square(100px);
|
186
|
+
|
187
|
+
CSS output result:
|
188
|
+
|
189
|
+
width: 100px;
|
190
|
+
height: 100px;
|
191
|
+
|
192
|
+
#### Triangle:
|
193
|
+
|
194
|
+
Creates a triangle. Arguments: ($size, $color, $direction)
|
195
|
+
|
196
|
+
$direction may be:
|
197
|
+
|
198
|
+
* up
|
199
|
+
* down
|
200
|
+
* left
|
201
|
+
* right
|
202
|
+
|
203
|
+
Usage:
|
204
|
+
|
205
|
+
@include triangle(10px, #ccc, down);
|
206
|
+
|
207
|
+
CSS output result:
|
208
|
+
|
209
|
+
height: 0;
|
210
|
+
width: 0;
|
211
|
+
border-color: transparent;
|
212
|
+
border-style: solid;
|
213
|
+
border-width: 5px;
|
214
|
+
border-top-color: #ccc;
|
215
|
+
|
141
216
|
## Default classes
|
142
217
|
|
143
218
|
Default classes available in *partials/defaults.scss*:
|
@@ -148,6 +223,10 @@ Default classes available in *partials/defaults.scss*:
|
|
148
223
|
* .clear - clearing blocks
|
149
224
|
* .clearfix - clearfix for blocks
|
150
225
|
|
226
|
+
## Contributors
|
227
|
+
|
228
|
+
Thanks for contributing into the gem, [Alexander](https://github.com/selivandex)!
|
229
|
+
|
151
230
|
## License
|
152
231
|
|
153
232
|
Licenced under MIT: <http://opensource.org/licenses/MIT>.
|
data/lib/droidcss/version.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
@mixin triangle ($size, $color, $direction) {
|
2
|
+
height: 0;
|
3
|
+
width: 0;
|
4
|
+
border-color: transparent;
|
5
|
+
border-style: solid;
|
6
|
+
border-width: $size / 2;
|
7
|
+
|
8
|
+
@if $direction == up {
|
9
|
+
border-bottom-color: $color;
|
10
|
+
|
11
|
+
} @else if $direction == right {
|
12
|
+
border-left-color: $color;
|
13
|
+
|
14
|
+
} @else if $direction == down {
|
15
|
+
border-top-color: $color;
|
16
|
+
|
17
|
+
} @else if $direction == left {
|
18
|
+
border-right-color: $color;
|
19
|
+
}
|
20
|
+
}
|
metadata
CHANGED
@@ -1,36 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: droidcss
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 4
|
9
|
+
version: 1.0.4
|
5
10
|
platform: ruby
|
6
|
-
authors:
|
11
|
+
authors:
|
7
12
|
- Ilya Gorenburg
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
16
|
+
|
17
|
+
date: 2013-10-13 00:00:00 +04:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
14
21
|
name: sass
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ! '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.2.0
|
20
|
-
type: :runtime
|
21
22
|
prerelease: false
|
22
|
-
|
23
|
-
requirements:
|
24
|
-
- -
|
25
|
-
- !ruby/object:Gem::Version
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 3
|
29
|
+
- 2
|
30
|
+
- 0
|
26
31
|
version: 3.2.0
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
27
34
|
description: Small responsive framework
|
28
|
-
email:
|
35
|
+
email:
|
29
36
|
- ilya@droidlabs.pro
|
30
37
|
executables: []
|
38
|
+
|
31
39
|
extensions: []
|
40
|
+
|
32
41
|
extra_rdoc_files: []
|
33
|
-
|
42
|
+
|
43
|
+
files:
|
34
44
|
- .gitignore
|
35
45
|
- CHANGELOG.MD
|
36
46
|
- LICENSE
|
@@ -49,33 +59,42 @@ files:
|
|
49
59
|
- vendor/assets/stylesheets/droidcss/mixins/font-face.scss
|
50
60
|
- vendor/assets/stylesheets/droidcss/mixins/gradients.scss
|
51
61
|
- vendor/assets/stylesheets/droidcss/mixins/prefixer.scss
|
62
|
+
- vendor/assets/stylesheets/droidcss/mixins/sizing.scss
|
52
63
|
- vendor/assets/stylesheets/droidcss/mixins/transforms.scss
|
53
64
|
- vendor/assets/stylesheets/droidcss/mixins/transitions.scss
|
65
|
+
- vendor/assets/stylesheets/droidcss/mixins/triangle.scss
|
54
66
|
- vendor/assets/stylesheets/droidcss/partials/defaults.scss
|
55
67
|
- vendor/assets/stylesheets/droidcss/partials/grid.scss
|
56
68
|
- vendor/assets/stylesheets/droidcss/partials/reset.scss
|
69
|
+
has_rdoc: true
|
57
70
|
homepage: https://github.com/droidlabs/droidcss
|
58
|
-
licenses:
|
71
|
+
licenses:
|
59
72
|
- MIT
|
60
|
-
metadata: {}
|
61
73
|
post_install_message:
|
62
74
|
rdoc_options: []
|
63
|
-
|
75
|
+
|
76
|
+
require_paths:
|
64
77
|
- lib
|
65
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
version: "0"
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
version: "0"
|
75
92
|
requirements: []
|
93
|
+
|
76
94
|
rubyforge_project:
|
77
|
-
rubygems_version:
|
95
|
+
rubygems_version: 1.3.6
|
78
96
|
signing_key:
|
79
|
-
specification_version:
|
97
|
+
specification_version: 3
|
80
98
|
summary: Small responsive framework
|
81
99
|
test_files: []
|
100
|
+
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
MzUyOGM0ZmZiZjI4MGE0ZGU3NDhlZTcyM2M5NjhhOTExZGRmNGFiZg==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MDM0NmQ5MTcyNmJiYjU4MTlkYTUxNGUwZWViOWY5ZmYzYjE4MzQ3OQ==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
OTBhMWEzMzY4MTkzMGRjZTk1N2Y1MzQ0NTE3NWYyOTg0NGQxNmJkZTUzNWU4
|
10
|
-
YTViODM2YjE4NTQ5NGE5MzM4NmE5MDIzYTg5YmQzOWNmYWYyOTRlYTFjNGRj
|
11
|
-
MmMxNmM5MzJlMTNmZjRiNGNmZDE0Y2U5YTQ2N2Q2M2I4ZWU3OGI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZWQ5NTk0NGIyMDJiZDZlODg1ZDM1MGNmM2YzZjA5NTY0ZDA4MmUzZWJkZGY0
|
14
|
-
YzgzZDZkZDYzMDQ0YzkzYjExODMzNzA1NTI0YzdhNGEyOWQ1YmFjNDVjZWM2
|
15
|
-
YWU1YWI1YmE1OWY2YjIxMzY3NjA5MjdhY2M1ODYxZGJlOTk0NTU=
|