compass_unstyled 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -0
- data/lib/compass_unstyled.rb +30 -0
- data/stylesheets/_compass_unstyled.scss +26 -0
- data/stylesheets/compass_unstyled/_alerts.scss +38 -0
- data/stylesheets/compass_unstyled/_buttons.scss +23 -0
- data/stylesheets/compass_unstyled/_clearfix.scss +15 -0
- data/stylesheets/compass_unstyled/_form.scss +40 -0
- data/stylesheets/compass_unstyled/_lists.scss +10 -0
- data/stylesheets/compass_unstyled/_navigation.scss +86 -0
- data/stylesheets/compass_unstyled/_normalize.scss +423 -0
- data/stylesheets/compass_unstyled/_reset.scss +79 -0
- data/stylesheets/compass_unstyled/_tables.scss +22 -0
- data/stylesheets/compass_unstyled/_typography.scss +39 -0
- data/stylesheets/compass_unstyled/_variables.scss +38 -0
- data/templates/project/index.html +143 -0
- data/templates/project/manifest.rb +19 -0
- data/templates/project/unstyled.scss +1 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4bd95597fb33326e9b19a705e97b02e9eed05761
|
4
|
+
data.tar.gz: 721835773243051959dbb794ae1c501de47e8225
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ba9a4941da3cb45c3745657f925ed65d1e458bc191ce870f93a681d92d2da38f61ec1b9511d1da27d7acd092260e327542c23f56c7909d7b264b89c3473ff5e4
|
7
|
+
data.tar.gz: 18ab8703b3c11223d9fd70f5c5be0d2746f83d69d4b43b0407669062aa6e42ef83a34522ea4d851a1337733a814fe4920efdea15eba1a1419eb293ac8d7bd8ef
|
data/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# All gems that are required for this extension to work should go here.
|
2
|
+
# These are the requires you would normally put in your config.rb file
|
3
|
+
# By default, you should always included Compass. Do not include your
|
4
|
+
# extension.
|
5
|
+
require 'compass'
|
6
|
+
|
7
|
+
# This tells Compass what your Compass extension is called, and where to find
|
8
|
+
# its files
|
9
|
+
# Replace 'extension' with the name of your extension. Spaces allowed.
|
10
|
+
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
11
|
+
Compass::Frameworks.register('compass_unstyled', :path => extension_path)
|
12
|
+
|
13
|
+
# Version and date of version for your Compass extension.
|
14
|
+
# Replace Extension with the name of your extension
|
15
|
+
# Letters, numbers, and underscores only
|
16
|
+
# Version is a number. If a version contains alphas, it will be created as
|
17
|
+
# a prerelease version
|
18
|
+
# Date is in the form of YYYY-MM-DD
|
19
|
+
# module compass_unstyled
|
20
|
+
# VERSION = "1.0"
|
21
|
+
# DATE = "2014-02-09"
|
22
|
+
# end
|
23
|
+
|
24
|
+
# This is where any custom SassScript should be placed. The functions will be
|
25
|
+
# available on require of your extension without the need for users to import
|
26
|
+
# any partials. Uncomment below.
|
27
|
+
|
28
|
+
# module Sass::Script::Functions
|
29
|
+
#
|
30
|
+
# end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$UNSTYLED
|
3
|
+
\*------------------------------------*/
|
4
|
+
|
5
|
+
@import "compass";
|
6
|
+
@import "compass_unstyled/variables";
|
7
|
+
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Importing Generic Items: normalize, reset, etc.
|
11
|
+
*/
|
12
|
+
@import "compass_unstyled/normalize";
|
13
|
+
@import "compass_unstyled/reset";
|
14
|
+
@import "compass_unstyled/clearfix";
|
15
|
+
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Unstyled Specific Styles
|
19
|
+
*/
|
20
|
+
@import "compass_unstyled/typography";
|
21
|
+
@import "compass_unstyled/lists";
|
22
|
+
@import "compass_unstyled/navigation";
|
23
|
+
@import "compass_unstyled/tables";
|
24
|
+
@import "compass_unstyled/buttons";
|
25
|
+
@import "compass_unstyled/form";
|
26
|
+
@import "compass_unstyled/alerts";
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$ALERTS
|
3
|
+
\*------------------------------------*/
|
4
|
+
|
5
|
+
.message {
|
6
|
+
margin-bottom: 20px;
|
7
|
+
padding: 15px;
|
8
|
+
font-weight: bold;
|
9
|
+
@include border-radius(3px);
|
10
|
+
display: table;
|
11
|
+
width: 100%;
|
12
|
+
}
|
13
|
+
|
14
|
+
.message__content, .message__close {
|
15
|
+
display: table-cell;
|
16
|
+
}
|
17
|
+
|
18
|
+
.message__close {
|
19
|
+
@extend .icon-close;
|
20
|
+
font-size: 12px;
|
21
|
+
vertical-align: middle;
|
22
|
+
text-align: right;
|
23
|
+
}
|
24
|
+
|
25
|
+
.message--success {
|
26
|
+
background-color: lighten($green, 15%);
|
27
|
+
color: darken($green, 30%);
|
28
|
+
}
|
29
|
+
|
30
|
+
.message--error {
|
31
|
+
background-color: lighten($red, 15%);
|
32
|
+
color: darken($red, 30%);
|
33
|
+
}
|
34
|
+
|
35
|
+
.message--notice {
|
36
|
+
background-color: lighten($blue, 20%);
|
37
|
+
color: darken($blue, 30%);
|
38
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$BUTTONS
|
3
|
+
\*------------------------------------*/
|
4
|
+
|
5
|
+
button, input[type="submit"] {
|
6
|
+
font-family: $base-font-family;
|
7
|
+
padding: 0 20px;
|
8
|
+
background-color: $accent-color;
|
9
|
+
border: 1px solid transparent;
|
10
|
+
color: $white;
|
11
|
+
font-size: 14px;
|
12
|
+
line-height: 40px;
|
13
|
+
@include border-radius(3px);
|
14
|
+
|
15
|
+
|
16
|
+
&:active {
|
17
|
+
@include box-shadow(rgba(0,0,0,0.2) 1px 1px 5px inset);
|
18
|
+
}
|
19
|
+
|
20
|
+
&:focus {
|
21
|
+
outline: 0;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$CLEARFIX
|
3
|
+
\*------------------------------------*/
|
4
|
+
/**
|
5
|
+
* Micro clearfix, as per: css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
|
6
|
+
* Extend the clearfix class with Sass to avoid the `.cf` class appearing over
|
7
|
+
* and over in your markup.
|
8
|
+
*/
|
9
|
+
.cf{
|
10
|
+
&:after{
|
11
|
+
content:"";
|
12
|
+
display:table;
|
13
|
+
clear:both;
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$FORMS
|
3
|
+
\*------------------------------------*/
|
4
|
+
fieldset {
|
5
|
+
margin-bottom: 20px;
|
6
|
+
border: none;
|
7
|
+
}
|
8
|
+
|
9
|
+
label {
|
10
|
+
margin-bottom: 5px;
|
11
|
+
font-weight: bold;
|
12
|
+
display: block;
|
13
|
+
}
|
14
|
+
|
15
|
+
input[type="text"], textarea {
|
16
|
+
width: 100%;
|
17
|
+
min-height: 35px;
|
18
|
+
padding: 0 10px;
|
19
|
+
border: 1px solid $light-gray;
|
20
|
+
background-color: $white;
|
21
|
+
font-size: $base-font-size;
|
22
|
+
color: $dark-gray;
|
23
|
+
display: block;
|
24
|
+
@include box-sizing(border-box);
|
25
|
+
@include box-shadow(rgba(0,0,0,0.06) 0 1px 3px inset);
|
26
|
+
@include border-radius(5px);
|
27
|
+
|
28
|
+
&:focus {
|
29
|
+
border-color: $accent-color;
|
30
|
+
@include box-shadow(rgba(0,0,0,0.075) 0 1px 1px inset, rgba($accent-color, 0.6) 0 0 8px)
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
textarea {
|
35
|
+
padding: 10px;
|
36
|
+
}
|
37
|
+
|
38
|
+
select {
|
39
|
+
font-size: $base-font-size;
|
40
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$NAVIGATION
|
3
|
+
\*------------------------------------*/
|
4
|
+
/**
|
5
|
+
* Nav abstraction as per: csswizardry.com/2011/09/the-nav-abstraction
|
6
|
+
* When used on an `ol` or `ul`, this class throws the list into horizontal mode
|
7
|
+
* e.g.:
|
8
|
+
*
|
9
|
+
<ul class=nav>
|
10
|
+
<li><a href=#>Home</a></li>
|
11
|
+
<li><a href=#>About</a></li>
|
12
|
+
<li><a href=#>Portfolio</a></li>
|
13
|
+
<li><a href=#>Contact</a></li>
|
14
|
+
</ul>
|
15
|
+
*
|
16
|
+
* Demo: jsfiddle.net/inuitcss/Vnph4
|
17
|
+
*
|
18
|
+
*/
|
19
|
+
.nav{
|
20
|
+
list-style:none;
|
21
|
+
margin-left:0;
|
22
|
+
@extend .cf;
|
23
|
+
|
24
|
+
> li{
|
25
|
+
|
26
|
+
&,
|
27
|
+
> a{
|
28
|
+
display:inline-block;
|
29
|
+
*display:inline;
|
30
|
+
zoom:1;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
|
36
|
+
/**
|
37
|
+
* `.nav--stacked` extends `.nav` and throws the list into vertical mode, e.g.:
|
38
|
+
*
|
39
|
+
<ul class="nav nav--stacked">
|
40
|
+
<li><a href=#>Home</a></li>
|
41
|
+
<li><a href=#>About</a></li>
|
42
|
+
<li><a href=#>Portfolio</a></li>
|
43
|
+
<li><a href=#>Contact</a></li>
|
44
|
+
</ul>
|
45
|
+
*
|
46
|
+
*/
|
47
|
+
.nav--stacked{
|
48
|
+
|
49
|
+
> li{
|
50
|
+
display:list-item;
|
51
|
+
|
52
|
+
> a{
|
53
|
+
display:block;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Give nav links a big, blocky hit area. Extends `.nav`, e.g.:
|
60
|
+
*
|
61
|
+
<ul class="nav nav--block">
|
62
|
+
<li><a href=#>Home</a></li>
|
63
|
+
<li><a href=#>About</a></li>
|
64
|
+
<li><a href=#>Portfolio</a></li>
|
65
|
+
<li><a href=#>Contact</a></li>
|
66
|
+
</ul>
|
67
|
+
*
|
68
|
+
*/
|
69
|
+
.nav--block{
|
70
|
+
line-height:1;
|
71
|
+
/**
|
72
|
+
* Remove whitespace caused by `inline-block`.
|
73
|
+
*/
|
74
|
+
letter-spacing:-0.31em;
|
75
|
+
word-spacing:-0.43em;
|
76
|
+
white-space:nowrap;
|
77
|
+
|
78
|
+
> li{
|
79
|
+
letter-spacing:normal;
|
80
|
+
word-spacing:normal;
|
81
|
+
|
82
|
+
> a{
|
83
|
+
padding:20px;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,423 @@
|
|
1
|
+
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
|
2
|
+
|
3
|
+
/**
|
4
|
+
* 1. Set default font family to sans-serif.
|
5
|
+
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
6
|
+
* user zoom.
|
7
|
+
*/
|
8
|
+
|
9
|
+
html {
|
10
|
+
font-family: sans-serif; /* 1 */
|
11
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
12
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
13
|
+
}
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Remove default margin.
|
17
|
+
*/
|
18
|
+
|
19
|
+
body {
|
20
|
+
margin: 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
/* HTML5 display definitions
|
24
|
+
========================================================================== */
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Correct `block` display not defined in IE 8/9.
|
28
|
+
*/
|
29
|
+
|
30
|
+
article,
|
31
|
+
aside,
|
32
|
+
details,
|
33
|
+
figcaption,
|
34
|
+
figure,
|
35
|
+
footer,
|
36
|
+
header,
|
37
|
+
hgroup,
|
38
|
+
main,
|
39
|
+
nav,
|
40
|
+
section,
|
41
|
+
summary {
|
42
|
+
display: block;
|
43
|
+
}
|
44
|
+
|
45
|
+
/**
|
46
|
+
* 1. Correct `inline-block` display not defined in IE 8/9.
|
47
|
+
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
48
|
+
*/
|
49
|
+
|
50
|
+
audio,
|
51
|
+
canvas,
|
52
|
+
progress,
|
53
|
+
video {
|
54
|
+
display: inline-block; /* 1 */
|
55
|
+
vertical-align: baseline; /* 2 */
|
56
|
+
}
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Prevent modern browsers from displaying `audio` without controls.
|
60
|
+
* Remove excess height in iOS 5 devices.
|
61
|
+
*/
|
62
|
+
|
63
|
+
audio:not([controls]) {
|
64
|
+
display: none;
|
65
|
+
height: 0;
|
66
|
+
}
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Address `[hidden]` styling not present in IE 8/9.
|
70
|
+
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
71
|
+
*/
|
72
|
+
|
73
|
+
[hidden],
|
74
|
+
template {
|
75
|
+
display: none;
|
76
|
+
}
|
77
|
+
|
78
|
+
/* Links
|
79
|
+
========================================================================== */
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Remove the gray background color from active links in IE 10.
|
83
|
+
*/
|
84
|
+
|
85
|
+
a {
|
86
|
+
background: transparent;
|
87
|
+
}
|
88
|
+
|
89
|
+
/**
|
90
|
+
* Improve readability when focused and also mouse hovered in all browsers.
|
91
|
+
*/
|
92
|
+
|
93
|
+
a:active,
|
94
|
+
a:hover {
|
95
|
+
outline: 0;
|
96
|
+
}
|
97
|
+
|
98
|
+
/* Text-level semantics
|
99
|
+
========================================================================== */
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Address styling not present in IE 8/9, Safari 5, and Chrome.
|
103
|
+
*/
|
104
|
+
|
105
|
+
abbr[title] {
|
106
|
+
border-bottom: 1px dotted;
|
107
|
+
}
|
108
|
+
|
109
|
+
/**
|
110
|
+
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
111
|
+
*/
|
112
|
+
|
113
|
+
b,
|
114
|
+
strong {
|
115
|
+
font-weight: bold;
|
116
|
+
}
|
117
|
+
|
118
|
+
/**
|
119
|
+
* Address styling not present in Safari 5 and Chrome.
|
120
|
+
*/
|
121
|
+
|
122
|
+
dfn {
|
123
|
+
font-style: italic;
|
124
|
+
}
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Address variable `h1` font-size and margin within `section` and `article`
|
128
|
+
* contexts in Firefox 4+, Safari 5, and Chrome.
|
129
|
+
*/
|
130
|
+
|
131
|
+
h1 {
|
132
|
+
font-size: 2em;
|
133
|
+
margin: 0.67em 0;
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Address styling not present in IE 8/9.
|
138
|
+
*/
|
139
|
+
|
140
|
+
mark {
|
141
|
+
background: #ff0;
|
142
|
+
color: #000;
|
143
|
+
}
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Address inconsistent and variable font size in all browsers.
|
147
|
+
*/
|
148
|
+
|
149
|
+
small {
|
150
|
+
font-size: 80%;
|
151
|
+
}
|
152
|
+
|
153
|
+
/**
|
154
|
+
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
155
|
+
*/
|
156
|
+
|
157
|
+
sub,
|
158
|
+
sup {
|
159
|
+
font-size: 75%;
|
160
|
+
line-height: 0;
|
161
|
+
position: relative;
|
162
|
+
vertical-align: baseline;
|
163
|
+
}
|
164
|
+
|
165
|
+
sup {
|
166
|
+
top: -0.5em;
|
167
|
+
}
|
168
|
+
|
169
|
+
sub {
|
170
|
+
bottom: -0.25em;
|
171
|
+
}
|
172
|
+
|
173
|
+
/* Embedded content
|
174
|
+
========================================================================== */
|
175
|
+
|
176
|
+
/**
|
177
|
+
* Remove border when inside `a` element in IE 8/9.
|
178
|
+
*/
|
179
|
+
|
180
|
+
img {
|
181
|
+
border: 0;
|
182
|
+
}
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Correct overflow displayed oddly in IE 9.
|
186
|
+
*/
|
187
|
+
|
188
|
+
svg:not(:root) {
|
189
|
+
overflow: hidden;
|
190
|
+
}
|
191
|
+
|
192
|
+
/* Grouping content
|
193
|
+
========================================================================== */
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Address margin not present in IE 8/9 and Safari 5.
|
197
|
+
*/
|
198
|
+
|
199
|
+
figure {
|
200
|
+
margin: 1em 40px;
|
201
|
+
}
|
202
|
+
|
203
|
+
/**
|
204
|
+
* Address differences between Firefox and other browsers.
|
205
|
+
*/
|
206
|
+
|
207
|
+
hr {
|
208
|
+
-moz-box-sizing: content-box;
|
209
|
+
box-sizing: content-box;
|
210
|
+
height: 0;
|
211
|
+
}
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Contain overflow in all browsers.
|
215
|
+
*/
|
216
|
+
|
217
|
+
pre {
|
218
|
+
overflow: auto;
|
219
|
+
}
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Address odd `em`-unit font size rendering in all browsers.
|
223
|
+
*/
|
224
|
+
|
225
|
+
code,
|
226
|
+
kbd,
|
227
|
+
pre,
|
228
|
+
samp {
|
229
|
+
font-family: monospace, monospace;
|
230
|
+
font-size: 1em;
|
231
|
+
}
|
232
|
+
|
233
|
+
/* Forms
|
234
|
+
========================================================================== */
|
235
|
+
|
236
|
+
/**
|
237
|
+
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
238
|
+
* styling of `select`, unless a `border` property is set.
|
239
|
+
*/
|
240
|
+
|
241
|
+
/**
|
242
|
+
* 1. Correct color not being inherited.
|
243
|
+
* Known issue: affects color of disabled elements.
|
244
|
+
* 2. Correct font properties not being inherited.
|
245
|
+
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
246
|
+
*/
|
247
|
+
|
248
|
+
button,
|
249
|
+
input,
|
250
|
+
optgroup,
|
251
|
+
select,
|
252
|
+
textarea {
|
253
|
+
color: inherit; /* 1 */
|
254
|
+
font: inherit; /* 2 */
|
255
|
+
margin: 0; /* 3 */
|
256
|
+
}
|
257
|
+
|
258
|
+
/**
|
259
|
+
* Address `overflow` set to `hidden` in IE 8/9/10.
|
260
|
+
*/
|
261
|
+
|
262
|
+
button {
|
263
|
+
overflow: visible;
|
264
|
+
}
|
265
|
+
|
266
|
+
/**
|
267
|
+
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
268
|
+
* All other form control elements do not inherit `text-transform` values.
|
269
|
+
* Correct `button` style inheritance in Firefox, IE 8+, and Opera
|
270
|
+
* Correct `select` style inheritance in Firefox.
|
271
|
+
*/
|
272
|
+
|
273
|
+
button,
|
274
|
+
select {
|
275
|
+
text-transform: none;
|
276
|
+
}
|
277
|
+
|
278
|
+
/**
|
279
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
280
|
+
* and `video` controls.
|
281
|
+
* 2. Correct inability to style clickable `input` types in iOS.
|
282
|
+
* 3. Improve usability and consistency of cursor style between image-type
|
283
|
+
* `input` and others.
|
284
|
+
*/
|
285
|
+
|
286
|
+
button,
|
287
|
+
html input[type="button"], /* 1 */
|
288
|
+
input[type="reset"],
|
289
|
+
input[type="submit"] {
|
290
|
+
-webkit-appearance: button; /* 2 */
|
291
|
+
cursor: pointer; /* 3 */
|
292
|
+
}
|
293
|
+
|
294
|
+
/**
|
295
|
+
* Re-set default cursor for disabled elements.
|
296
|
+
*/
|
297
|
+
|
298
|
+
button[disabled],
|
299
|
+
html input[disabled] {
|
300
|
+
cursor: default;
|
301
|
+
}
|
302
|
+
|
303
|
+
/**
|
304
|
+
* Remove inner padding and border in Firefox 4+.
|
305
|
+
*/
|
306
|
+
|
307
|
+
button::-moz-focus-inner,
|
308
|
+
input::-moz-focus-inner {
|
309
|
+
border: 0;
|
310
|
+
padding: 0;
|
311
|
+
}
|
312
|
+
|
313
|
+
/**
|
314
|
+
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
315
|
+
* the UA stylesheet.
|
316
|
+
*/
|
317
|
+
|
318
|
+
input {
|
319
|
+
line-height: normal;
|
320
|
+
}
|
321
|
+
|
322
|
+
/**
|
323
|
+
* It's recommended that you don't attempt to style these elements.
|
324
|
+
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
325
|
+
*
|
326
|
+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
327
|
+
* 2. Remove excess padding in IE 8/9/10.
|
328
|
+
*/
|
329
|
+
|
330
|
+
input[type="checkbox"],
|
331
|
+
input[type="radio"] {
|
332
|
+
box-sizing: border-box; /* 1 */
|
333
|
+
padding: 0; /* 2 */
|
334
|
+
}
|
335
|
+
|
336
|
+
/**
|
337
|
+
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
338
|
+
* `font-size` values of the `input`, it causes the cursor style of the
|
339
|
+
* decrement button to change from `default` to `text`.
|
340
|
+
*/
|
341
|
+
|
342
|
+
input[type="number"]::-webkit-inner-spin-button,
|
343
|
+
input[type="number"]::-webkit-outer-spin-button {
|
344
|
+
height: auto;
|
345
|
+
}
|
346
|
+
|
347
|
+
/**
|
348
|
+
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
349
|
+
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
350
|
+
* (include `-moz` to future-proof).
|
351
|
+
*/
|
352
|
+
|
353
|
+
input[type="search"] {
|
354
|
+
-webkit-appearance: textfield; /* 1 */
|
355
|
+
-moz-box-sizing: content-box;
|
356
|
+
-webkit-box-sizing: content-box; /* 2 */
|
357
|
+
box-sizing: content-box;
|
358
|
+
}
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
362
|
+
* Safari (but not Chrome) clips the cancel button when the search input has
|
363
|
+
* padding (and `textfield` appearance).
|
364
|
+
*/
|
365
|
+
|
366
|
+
input[type="search"]::-webkit-search-cancel-button,
|
367
|
+
input[type="search"]::-webkit-search-decoration {
|
368
|
+
-webkit-appearance: none;
|
369
|
+
}
|
370
|
+
|
371
|
+
/**
|
372
|
+
* Define consistent border, margin, and padding.
|
373
|
+
*/
|
374
|
+
|
375
|
+
fieldset {
|
376
|
+
border: 1px solid #c0c0c0;
|
377
|
+
margin: 0 2px;
|
378
|
+
padding: 0.35em 0.625em 0.75em;
|
379
|
+
}
|
380
|
+
|
381
|
+
/**
|
382
|
+
* 1. Correct `color` not being inherited in IE 8/9.
|
383
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
384
|
+
*/
|
385
|
+
|
386
|
+
legend {
|
387
|
+
border: 0; /* 1 */
|
388
|
+
padding: 0; /* 2 */
|
389
|
+
}
|
390
|
+
|
391
|
+
/**
|
392
|
+
* Remove default vertical scrollbar in IE 8/9.
|
393
|
+
*/
|
394
|
+
|
395
|
+
textarea {
|
396
|
+
overflow: auto;
|
397
|
+
}
|
398
|
+
|
399
|
+
/**
|
400
|
+
* Don't inherit the `font-weight` (applied by a rule above).
|
401
|
+
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
402
|
+
*/
|
403
|
+
|
404
|
+
optgroup {
|
405
|
+
font-weight: bold;
|
406
|
+
}
|
407
|
+
|
408
|
+
/* Tables
|
409
|
+
========================================================================== */
|
410
|
+
|
411
|
+
/**
|
412
|
+
* Remove most spacing between table cells.
|
413
|
+
*/
|
414
|
+
|
415
|
+
table {
|
416
|
+
border-collapse: collapse;
|
417
|
+
border-spacing: 0;
|
418
|
+
}
|
419
|
+
|
420
|
+
td,
|
421
|
+
th {
|
422
|
+
padding: 0;
|
423
|
+
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$RESET
|
3
|
+
\*------------------------------------*/
|
4
|
+
/**
|
5
|
+
* A more considered reset; more of a restart...
|
6
|
+
* As per: csswizardry.com/2011/10/reset-restarted
|
7
|
+
*/
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Let’s make the box model all nice, shall we...?
|
11
|
+
*/
|
12
|
+
*{
|
13
|
+
&,
|
14
|
+
&:before,
|
15
|
+
&:after{
|
16
|
+
@include box-sizing(border-box);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
body {
|
21
|
+
margin: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
h1,h2,h3,h4,h5,h6,
|
25
|
+
p,blockquote,pre,
|
26
|
+
dl,dd,ol,ul,
|
27
|
+
form,fieldset,legend,
|
28
|
+
table,th,td,caption,
|
29
|
+
hr{
|
30
|
+
margin:0;
|
31
|
+
padding:0;
|
32
|
+
}
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Give a help cursor to elements that give extra info on `:hover`.
|
36
|
+
*/
|
37
|
+
abbr[title],dfn[title]{
|
38
|
+
cursor:help;
|
39
|
+
}
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Remove underlines from potentially troublesome elements.
|
43
|
+
*/
|
44
|
+
u,ins{
|
45
|
+
text-decoration:none;
|
46
|
+
}
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Apply faux underline via `border-bottom`.
|
50
|
+
*/
|
51
|
+
ins{
|
52
|
+
border-bottom:1px solid;
|
53
|
+
}
|
54
|
+
|
55
|
+
/**
|
56
|
+
* So that `alt` text is visually offset if images don’t load.
|
57
|
+
*/
|
58
|
+
img{
|
59
|
+
font-style:italic;
|
60
|
+
}
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Give form elements some cursor interactions...
|
64
|
+
*/
|
65
|
+
label,
|
66
|
+
input,
|
67
|
+
textarea,
|
68
|
+
button,
|
69
|
+
select,
|
70
|
+
option{
|
71
|
+
cursor:pointer;
|
72
|
+
}
|
73
|
+
.form-control:active,
|
74
|
+
.form-control:focus,
|
75
|
+
textarea:active,
|
76
|
+
textarea:focus{
|
77
|
+
cursor:text;
|
78
|
+
outline:none;
|
79
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$TABLES
|
3
|
+
\*------------------------------------*/
|
4
|
+
table {
|
5
|
+
border-collapse: collapse;
|
6
|
+
table-layout: fixed;
|
7
|
+
width: 100%;
|
8
|
+
}
|
9
|
+
|
10
|
+
th, td {
|
11
|
+
padding: 0 10px;
|
12
|
+
text-align: left;
|
13
|
+
line-height: 2.5em;
|
14
|
+
}
|
15
|
+
|
16
|
+
th {
|
17
|
+
border-bottom: 2px solid $gray;
|
18
|
+
}
|
19
|
+
|
20
|
+
td {
|
21
|
+
border-bottom: 1px solid $light-gray;
|
22
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$TYPOGRAPHY
|
3
|
+
\*------------------------------------*/
|
4
|
+
body {
|
5
|
+
font:#{($base-font-size/16px)*1em}/#{$line-height-ratio} $base-font-family;
|
6
|
+
color: $dark-gray;
|
7
|
+
-webkit-font-smoothing: antialiased;
|
8
|
+
}
|
9
|
+
|
10
|
+
h1, h2, h3, h4, h5, h6 {
|
11
|
+
text-rendering: optimizeLegibility;
|
12
|
+
margin-bottom: 0.5em;
|
13
|
+
line-height: 1em;
|
14
|
+
}
|
15
|
+
|
16
|
+
h1 { font-size: 36px/$base-font-size*1em; }
|
17
|
+
h2 { font-size: 30px/$base-font-size*1em; }
|
18
|
+
h3 { font-size: 24px/$base-font-size*1em; }
|
19
|
+
h4 { font-size: 18px/$base-font-size*1em; }
|
20
|
+
h5 { font-size: 14px/$base-font-size*1em; }
|
21
|
+
h6 { font-size: 12px/$base-font-size*1em; }
|
22
|
+
|
23
|
+
p {
|
24
|
+
margin-bottom: 1em;
|
25
|
+
}
|
26
|
+
|
27
|
+
a, a:visited {
|
28
|
+
color: $accent-color;
|
29
|
+
text-decoration: none;
|
30
|
+
@include transition(all .3s ease-in-out);
|
31
|
+
}
|
32
|
+
|
33
|
+
a:hover {
|
34
|
+
color: darken($accent-color, 15%);
|
35
|
+
}
|
36
|
+
|
37
|
+
hr {
|
38
|
+
margin: 30px 0;
|
39
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$VARIABLES
|
3
|
+
\*------------------------------------*/
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Typography
|
7
|
+
*/
|
8
|
+
$sans-serif: "Helvetica Neue", "Helvetica", Arial, sans-serif !default;
|
9
|
+
$serif: "Georgia", serif !default;
|
10
|
+
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Font Sizing
|
14
|
+
*/
|
15
|
+
$base-font-size: 16px !default;
|
16
|
+
$line-height-ratio: 1.5em !default;
|
17
|
+
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Colors
|
21
|
+
*/
|
22
|
+
$dark-gray: #333333 !default;
|
23
|
+
$gray: #aaaaaa !default;
|
24
|
+
$light-gray: #dadada !default;
|
25
|
+
$white: #ffffff !default;
|
26
|
+
|
27
|
+
$blue: #477DCA !default;
|
28
|
+
$green: #9ED54F !default;
|
29
|
+
$red: #e46a6e !default;
|
30
|
+
$yellow: #ffc72a !default;
|
31
|
+
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Base Values
|
35
|
+
*/
|
36
|
+
$base-font-family: $sans-serif;
|
37
|
+
$font-color: $dark-gray;
|
38
|
+
$accent-color: $blue;
|
@@ -0,0 +1,143 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title>Unstyled: Sensible Project Defaults</title>
|
5
|
+
<link rel="stylesheet" href="css/defaults.css">
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<div style="max-width: 80%;">
|
10
|
+
<h1>Unstyled: Sensible Project Defaults</h1>
|
11
|
+
|
12
|
+
<h2>Headings</h2>
|
13
|
+
<h1>h1. Heading</h1>
|
14
|
+
<h2>h2. Heading</h2>
|
15
|
+
<h3>h3. Heading</h3>
|
16
|
+
<h4>h4. Heading</h4>
|
17
|
+
<h5>h5. Heading</h5>
|
18
|
+
<h6>h6. Heading</h6>
|
19
|
+
|
20
|
+
<hr>
|
21
|
+
|
22
|
+
<h1>Paragraph</h1>
|
23
|
+
<p>Curabitur blandit <a href="#">Test Link</a> tempus porttitor. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Vestibulum id ligula porta felis euismod semper. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
24
|
+
|
25
|
+
<p>Nulla vitae elit libero, a pharetra augue. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
26
|
+
|
27
|
+
<hr>
|
28
|
+
|
29
|
+
<h1>Lists</h1>
|
30
|
+
|
31
|
+
<h2>Unordered List</h2>
|
32
|
+
<ul>
|
33
|
+
<li>Item 1</li>
|
34
|
+
<li>Item 2</li>
|
35
|
+
<li>Item 3</li>
|
36
|
+
</ul>
|
37
|
+
|
38
|
+
<h2>Ordered List</h2>
|
39
|
+
<ol>
|
40
|
+
<li>Item 1</li>
|
41
|
+
<li>Item 2</li>
|
42
|
+
<li>Item 3</li>
|
43
|
+
</ol>
|
44
|
+
|
45
|
+
<hr>
|
46
|
+
|
47
|
+
<h1>Navigation</h1>
|
48
|
+
|
49
|
+
<h2>Inline (Base) Nav</h2>
|
50
|
+
<ul class="nav" style="margin-bottom: 20px;">
|
51
|
+
<li><a href="#">Nav Item</a></li>
|
52
|
+
<li><a href="#">Nav Item</a></li>
|
53
|
+
<li><a href="#">Nav Item</a></li>
|
54
|
+
</ul>
|
55
|
+
|
56
|
+
<h2>Inline Block Nav</h2>
|
57
|
+
<ul class="nav nav--block">
|
58
|
+
<li><a href="#">Nav Item</a></li>
|
59
|
+
<li><a href="#">Nav Item</a></li>
|
60
|
+
<li><a href="#">Nav Item</a></li>
|
61
|
+
</ul>
|
62
|
+
|
63
|
+
<h2>Stacked Nav</h2>
|
64
|
+
<ul class="nav nav--stacked">
|
65
|
+
<li><a href="#">Nav Item</a></li>
|
66
|
+
<li><a href="#">Nav Item</a></li>
|
67
|
+
<li><a href="#">Nav Item</a></li>
|
68
|
+
</ul>
|
69
|
+
|
70
|
+
<hr>
|
71
|
+
|
72
|
+
<h1>Forms</h1>
|
73
|
+
<fieldset>
|
74
|
+
<label>Text Input</label>
|
75
|
+
<input type="text" placeholder="Text Input" />
|
76
|
+
</fieldset>
|
77
|
+
|
78
|
+
<fieldset>
|
79
|
+
<label>Textarea</label>
|
80
|
+
<textarea rows="5"></textarea>
|
81
|
+
</fieldset>
|
82
|
+
|
83
|
+
<fieldset>
|
84
|
+
<label>Dropdown</label>
|
85
|
+
<select>
|
86
|
+
<option>Option 1</option>
|
87
|
+
<option>Option 2</option>
|
88
|
+
<option>Option 3</option>
|
89
|
+
</select>
|
90
|
+
</fieldset>
|
91
|
+
|
92
|
+
<hr>
|
93
|
+
|
94
|
+
<h1>Tables</h1>
|
95
|
+
|
96
|
+
<table>
|
97
|
+
<thead>
|
98
|
+
<th>Header 1</th>
|
99
|
+
<th>Header 2</th>
|
100
|
+
<th>Header 2</th>
|
101
|
+
</thead>
|
102
|
+
<tbody>
|
103
|
+
<tr>
|
104
|
+
<td>Item 1</td>
|
105
|
+
<td>Item 2</td>
|
106
|
+
<td>Item 3</td>
|
107
|
+
</tr>
|
108
|
+
<tr>
|
109
|
+
<td>Item 1</td>
|
110
|
+
<td>Item 2</td>
|
111
|
+
<td>Item 3</td>
|
112
|
+
</tr>
|
113
|
+
<tr>
|
114
|
+
<td>Item 1</td>
|
115
|
+
<td>Item 2</td>
|
116
|
+
<td>Item 3</td>
|
117
|
+
</tr>
|
118
|
+
</tbody>
|
119
|
+
</table>
|
120
|
+
|
121
|
+
<hr>
|
122
|
+
|
123
|
+
<h1>Buttons</h1>
|
124
|
+
<button>Simple Button</button>
|
125
|
+
|
126
|
+
<hr>
|
127
|
+
|
128
|
+
<h1>Messaging</h1>
|
129
|
+
|
130
|
+
<div class="message message--success">
|
131
|
+
<span class="message__content">This is a successful message.</span>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div class="message message--error">
|
135
|
+
<span class="message__content">This is an error message.</span>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<div class="message message--notice">
|
139
|
+
<span class="message__content">This is a notice.</span>
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
</body>
|
143
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Description
|
2
|
+
description "A sensible default stylesheet for Compass projects."
|
3
|
+
|
4
|
+
# Stylesheet Import
|
5
|
+
file 'unstyled.scss', :like => :stylesheet, :media => 'screen, projection'
|
6
|
+
|
7
|
+
# Compass Extension Help
|
8
|
+
help %Q{
|
9
|
+
Documentation is available at http://github.com/marcelosomers/unstyled
|
10
|
+
}
|
11
|
+
|
12
|
+
# Compass Extension Welcome Message
|
13
|
+
# Users will see this when they create a new project using this template.
|
14
|
+
welcome_message %Q{
|
15
|
+
This is Compass Unstyled: Sensible defaults for a Compass project.
|
16
|
+
It is meant to be removed once styling is being applied.
|
17
|
+
|
18
|
+
More documentation is available at http://github.com/marcelosomers/unstyled
|
19
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "compass_unstyled";
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: compass_unstyled
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marcelo Somers
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-02-10 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.2.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.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: compass
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.12.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.12.1
|
41
|
+
description: Sensible default styles for your Compass project.
|
42
|
+
email:
|
43
|
+
- msomers@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- README.md
|
49
|
+
- lib/compass_unstyled.rb
|
50
|
+
- stylesheets/_compass_unstyled.scss
|
51
|
+
- stylesheets/compass_unstyled/_alerts.scss
|
52
|
+
- stylesheets/compass_unstyled/_buttons.scss
|
53
|
+
- stylesheets/compass_unstyled/_clearfix.scss
|
54
|
+
- stylesheets/compass_unstyled/_form.scss
|
55
|
+
- stylesheets/compass_unstyled/_lists.scss
|
56
|
+
- stylesheets/compass_unstyled/_navigation.scss
|
57
|
+
- stylesheets/compass_unstyled/_normalize.scss
|
58
|
+
- stylesheets/compass_unstyled/_reset.scss
|
59
|
+
- stylesheets/compass_unstyled/_tables.scss
|
60
|
+
- stylesheets/compass_unstyled/_typography.scss
|
61
|
+
- stylesheets/compass_unstyled/_variables.scss
|
62
|
+
- templates/project/index.html
|
63
|
+
- templates/project/manifest.rb
|
64
|
+
- templates/project/unstyled.scss
|
65
|
+
homepage: http://github.com/marcelosomers/unstyled
|
66
|
+
licenses: []
|
67
|
+
metadata: {}
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 1.3.6
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project: compass_unstyled
|
84
|
+
rubygems_version: 2.2.1
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: Styles to get you started, but meant to be removed once design is applied.
|
88
|
+
test_files: []
|