gravityframework 0.0.2 → 0.0.3
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/bin/{gravity-init.rb → gravity-new.rb} +9 -5
- data/gravityframework.gemspec +1 -1
- data/lib/gravityframework/src/index.html +2 -1
- data/lib/gravityframework/src/public/coffeescripts/spec/application.spec.coffee +4 -0
- data/lib/gravityframework/src/{images → public/images}/baseline_20.png +0 -0
- data/lib/gravityframework/src/public/javascripts/application/main.js +6 -0
- data/lib/gravityframework/src/public/javascripts/application.js +8 -0
- data/lib/gravityframework/src/public/javascripts/spec/application.spec.js +6 -0
- data/lib/gravityframework/src/{javascripts/test/lib/jasmine-1.1.0.rc1 → public/javascripts/spec/jasmine}/MIT.LICENSE +0 -0
- data/lib/gravityframework/src/{javascripts/test/lib/jasmine-1.1.0.rc1 → public/javascripts/spec/jasmine}/jasmine-html.js +0 -0
- data/lib/gravityframework/src/{javascripts/test/lib/jasmine-1.1.0.rc1 → public/javascripts/spec/jasmine}/jasmine.css +0 -0
- data/lib/gravityframework/src/{javascripts/test/lib/jasmine-1.1.0.rc1 → public/javascripts/spec/jasmine}/jasmine.js +0 -0
- data/lib/gravityframework/src/{javascripts/test/lib/jasmine-1.1.0.rc1 → public/javascripts/spec/jasmine}/jasmine_favicon.png +0 -0
- data/lib/gravityframework/src/{javascripts/test → public/javascripts/spec}/spec_runner.html +6 -7
- data/lib/gravityframework/src/public/stylesheets/css/style.css +1 -0
- data/lib/gravityframework/src/public/stylesheets/sass/lib/_core.sass +17 -0
- data/lib/gravityframework/src/{stylesheets → public/stylesheets}/sass/lib/_elements.sass +8 -10
- data/lib/gravityframework/src/{stylesheets/sass/lib/helpers → public/stylesheets/sass/lib}/_mixins.sass +0 -0
- data/lib/gravityframework/src/{stylesheets → public/stylesheets}/sass/lib/_reset.sass +1 -0
- data/lib/gravityframework/src/public/stylesheets/sass/lib/_settings.sass +50 -0
- data/lib/gravityframework/src/{stylesheets → public/stylesheets}/sass/lib/_typography.sass +5 -6
- data/lib/gravityframework/src/public/stylesheets/sass/lib/helpers/_alerts.sass +9 -0
- data/lib/gravityframework/src/public/stylesheets/sass/lib/helpers/_buttons.sass +24 -0
- data/lib/gravityframework/src/{stylesheets → public/stylesheets}/sass/lib/helpers/_classes.sass +0 -0
- data/lib/gravityframework/src/{stylesheets → public/stylesheets}/sass/lib/helpers/_forms.sass +0 -0
- data/lib/gravityframework/src/{stylesheets/sass/lib → public/stylesheets/sass/lib/helpers}/_grid.sass +4 -1
- data/lib/gravityframework/src/{stylesheets → public/stylesheets}/sass/lib/helpers/_media_queries.sass +0 -0
- data/lib/gravityframework/src/public/stylesheets/sass/lib/helpers/_pagination.sass +10 -0
- data/lib/gravityframework/src/{stylesheets → public/stylesheets}/sass/lib/helpers/_tables.sass +2 -5
- data/lib/gravityframework/src/{stylesheets → public/stylesheets}/sass/style.sass +4 -5
- data/lib/gravityframework/src/rakefile +14 -5
- data/lib/gravityframework/src/views/all_styles.slim +137 -0
- data/lib/gravityframework/src/views/index.slim +23 -0
- data/lib/gravityframework/version.rb +1 -1
- data/lib/gravityframework.rb +38 -1
- metadata +48 -46
- data/lib/gravityframework/src/javascripts/application.coffee +0 -6
- data/lib/gravityframework/src/javascripts/test/spec/Application.spec.js +0 -10
- data/lib/gravityframework/src/stylesheets/css/style.css +0 -841
- data/lib/gravityframework/src/stylesheets/sass/lib/_core.sass +0 -7
- data/lib/gravityframework/src/stylesheets/sass/lib/_settings.sass +0 -43
- data/lib/gravityframework/src/stylesheets/sass/lib/helpers/_buttons.sass +0 -15
- data/lib/gravityframework/src/stylesheets/scss/lib/_core.scss +0 -9
- data/lib/gravityframework/src/stylesheets/scss/lib/_elements.scss +0 -109
- data/lib/gravityframework/src/stylesheets/scss/lib/_grid.scss +0 -39
- data/lib/gravityframework/src/stylesheets/scss/lib/_reset.scss +0 -90
- data/lib/gravityframework/src/stylesheets/scss/lib/_settings.scss +0 -49
- data/lib/gravityframework/src/stylesheets/scss/lib/_typography.scss +0 -48
- data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_buttons.scss +0 -22
- data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_classes.scss +0 -25
- data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_forms.scss +0 -215
- data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_media_queries.scss +0 -169
- data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_mixins.scss +0 -83
- data/lib/gravityframework/src/stylesheets/scss/lib/helpers/_tables.scss +0 -30
- data/lib/gravityframework/src/stylesheets/scss/style.scss +0 -38
- data/lib/gravityframework/src/views/index.haml +0 -21
- data/lib/installer.rb +0 -16
@@ -1,43 +0,0 @@
|
|
1
|
-
/* --------------------------------------------------------------
|
2
|
-
*
|
3
|
-
*Built with Gravity
|
4
|
-
*http://Gravityframework.com
|
5
|
-
*Version 0.0.1
|
6
|
-
*Developed by: Owain Lewis
|
7
|
-
*www.owainlewis.com
|
8
|
-
*License: MIT
|
9
|
-
*http://www.opensource.org/licenses/mit-license.php
|
10
|
-
*
|
11
|
-
*--------------------------------------------------------------
|
12
|
-
|
13
|
-
/*
|
14
|
-
*
|
15
|
-
*Grid Layout
|
16
|
-
|
17
|
-
$width: 940px
|
18
|
-
$gutters: 20px
|
19
|
-
$columns: 12
|
20
|
-
$baseline: 20px
|
21
|
-
|
22
|
-
/*
|
23
|
-
*
|
24
|
-
*Fonts
|
25
|
-
|
26
|
-
$sans: "Helvetica Neue", Helvetica, Arial, sans-serif
|
27
|
-
$serif: Georgia, Times, serif
|
28
|
-
$mono: "Lucida Console", "Andale Mono", monospace
|
29
|
-
$font-size: 14px
|
30
|
-
|
31
|
-
/*
|
32
|
-
*
|
33
|
-
*Colors
|
34
|
-
|
35
|
-
$background: white
|
36
|
-
$text: #333333
|
37
|
-
$links: #1c7fc4
|
38
|
-
$borders: #dddddd
|
39
|
-
$headings: #333333
|
40
|
-
|
41
|
-
$white: white
|
42
|
-
$grey: #666666
|
43
|
-
$black: black
|
@@ -1,15 +0,0 @@
|
|
1
|
-
=button($color, $text_color, $width)
|
2
|
-
+rounded(10px)
|
3
|
-
+gradient(lighten($color, 30%), $color)
|
4
|
-
cursor: pointer
|
5
|
-
font-weight: bold
|
6
|
-
color: $text_color
|
7
|
-
display: block
|
8
|
-
border: 1px solid darken($color, 10%)
|
9
|
-
text-align: center
|
10
|
-
padding: 10px 20px
|
11
|
-
margin: 0 0 20px 0
|
12
|
-
@if $width
|
13
|
-
width: $width
|
14
|
-
&:hover
|
15
|
-
+gradient(lighten($color, 40%), lighten($color, 10%))
|
@@ -1,109 +0,0 @@
|
|
1
|
-
/* --------------------------------------------------------------
|
2
|
-
|
3
|
-
PAGE ELEMENTS
|
4
|
-
|
5
|
-
-------------------------------------------------------------- */
|
6
|
-
|
7
|
-
p {
|
8
|
-
margin-bottom: $baseline;
|
9
|
-
}
|
10
|
-
ul, ol {
|
11
|
-
margin-bottom: $baseline;
|
12
|
-
}
|
13
|
-
ul {
|
14
|
-
list-style: none;
|
15
|
-
}
|
16
|
-
ol {
|
17
|
-
list-style-type: decimal;
|
18
|
-
}
|
19
|
-
li {
|
20
|
-
margin-bottom: $baseline/2;
|
21
|
-
}
|
22
|
-
|
23
|
-
ul li ul {
|
24
|
-
margin-left: $baseline;
|
25
|
-
margin-top: $baseline/2;
|
26
|
-
margin-bottom: $baseline/2;
|
27
|
-
}
|
28
|
-
|
29
|
-
dl {
|
30
|
-
margin-bottom: $baseline;
|
31
|
-
}
|
32
|
-
dl dt {
|
33
|
-
font-weight: bold;
|
34
|
-
margin-bottom: $baseline/2;
|
35
|
-
}
|
36
|
-
dl dd {
|
37
|
-
margin-bottom: $baseline/2;
|
38
|
-
}
|
39
|
-
|
40
|
-
abbr, acronym {
|
41
|
-
border-bottom: 1px dotted #000;
|
42
|
-
}
|
43
|
-
address {
|
44
|
-
font-style: italic;
|
45
|
-
}
|
46
|
-
del {
|
47
|
-
color: #000;
|
48
|
-
}
|
49
|
-
|
50
|
-
a {
|
51
|
-
color: $links;
|
52
|
-
text-decoration: none;
|
53
|
-
@include transition();
|
54
|
-
/* Force a hand pointer for all links */
|
55
|
-
cursor:pointer;
|
56
|
-
}
|
57
|
-
a:hover {
|
58
|
-
text-decoration: none;
|
59
|
-
}
|
60
|
-
|
61
|
-
blockquote {
|
62
|
-
display:block;
|
63
|
-
}
|
64
|
-
strong {
|
65
|
-
font-weight: bold;
|
66
|
-
}
|
67
|
-
em, dfn {
|
68
|
-
font-style: italic;
|
69
|
-
}
|
70
|
-
dfn {
|
71
|
-
font-weight: bold;
|
72
|
-
}
|
73
|
-
pre, code {
|
74
|
-
margin: 10px 0;
|
75
|
-
white-space: pre;
|
76
|
-
}
|
77
|
-
pre, code, tt {
|
78
|
-
font: 1em monospace;
|
79
|
-
line-height: 1.5;
|
80
|
-
}
|
81
|
-
tt {
|
82
|
-
display: block;
|
83
|
-
}
|
84
|
-
|
85
|
-
q {
|
86
|
-
font-style: italic;
|
87
|
-
font-weight: bold;
|
88
|
-
font-family:$serif;
|
89
|
-
}
|
90
|
-
cite {
|
91
|
-
display: block;
|
92
|
-
font-weight: bold;
|
93
|
-
}
|
94
|
-
|
95
|
-
/* --------------------------------------------------------------
|
96
|
-
|
97
|
-
IMAGES
|
98
|
-
|
99
|
-
-------------------------------------------------------------- */
|
100
|
-
|
101
|
-
img {
|
102
|
-
margin-bottom: 10px;
|
103
|
-
}
|
104
|
-
|
105
|
-
figcaption {
|
106
|
-
display: block;
|
107
|
-
font-weight: bold;
|
108
|
-
font-style: italic;
|
109
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
/* --------------------------------------------------------------
|
2
|
-
|
3
|
-
CSS GRID. www.owainlewis.com
|
4
|
-
|
5
|
-
-------------------------------------------------------------- */
|
6
|
-
|
7
|
-
$col_width: ($width - ($gutters * ($columns - 1))) / $columns;
|
8
|
-
$col_total_width: $col_width + $gutters;
|
9
|
-
|
10
|
-
@mixin col($n: 1) {
|
11
|
-
float: left;
|
12
|
-
@include buildColumn($n);
|
13
|
-
}
|
14
|
-
|
15
|
-
@mixin last() {
|
16
|
-
margin-right: 0;
|
17
|
-
}
|
18
|
-
|
19
|
-
@mixin buildColumn($n: 1) {
|
20
|
-
width: ($n * $col_width) + (($n - 1) * $gutters);
|
21
|
-
@if $n == 1 {
|
22
|
-
@include last()
|
23
|
-
}
|
24
|
-
@if $n == columns {
|
25
|
-
@include last()
|
26
|
-
}
|
27
|
-
@else {
|
28
|
-
margin-right: $gutters;
|
29
|
-
}
|
30
|
-
|
31
|
-
}
|
32
|
-
|
33
|
-
@for $i from 1 through $columns {
|
34
|
-
.col-#{$i} {
|
35
|
-
@include col($i);
|
36
|
-
&:last-child{ @include last() }
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
@@ -1,90 +0,0 @@
|
|
1
|
-
html,body,div,span,object,iframe,
|
2
|
-
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
|
3
|
-
abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,
|
4
|
-
small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,
|
5
|
-
fieldset,form,label,legend,
|
6
|
-
table,caption,tbody,tfoot,thead,tr,th,td,
|
7
|
-
article,aside,canvas,details,figcaption,figure,
|
8
|
-
footer,header,hgroup,menu,nav,section,summary,
|
9
|
-
time,mark,audio,video {
|
10
|
-
margin: 0;
|
11
|
-
padding: 0;
|
12
|
-
border: 0;
|
13
|
-
font-size: 100%;
|
14
|
-
font: inherit;
|
15
|
-
vertical-align: baseline;
|
16
|
-
}
|
17
|
-
article,aside,details,figcaption,figure,
|
18
|
-
footer,header,hgroup,menu,nav,section {
|
19
|
-
display: block;
|
20
|
-
}
|
21
|
-
blockquote,q {
|
22
|
-
quotes: none;
|
23
|
-
}
|
24
|
-
blockquote:before,blockquote:after,
|
25
|
-
q:before,q:after {
|
26
|
-
content: "";
|
27
|
-
content: none;
|
28
|
-
}
|
29
|
-
ins {
|
30
|
-
background-color: #ff9;
|
31
|
-
color: #000;
|
32
|
-
text-decoration: none;
|
33
|
-
}
|
34
|
-
mark {
|
35
|
-
background-color: #ff9;
|
36
|
-
color: #000;
|
37
|
-
font-style: italic;
|
38
|
-
font-weight: bold;
|
39
|
-
}
|
40
|
-
del {
|
41
|
-
text-decoration: line-through;
|
42
|
-
}
|
43
|
-
abbr[title],dfn[title] {
|
44
|
-
border-bottom: 1px dotted;
|
45
|
-
cursor: help;
|
46
|
-
}
|
47
|
-
table {
|
48
|
-
border-collapse: collapse;
|
49
|
-
border-spacing: 0;
|
50
|
-
}
|
51
|
-
hr {
|
52
|
-
display: block;
|
53
|
-
height: 1px;
|
54
|
-
border: 0;
|
55
|
-
border-top: 1px solid #ccc;
|
56
|
-
margin: 1em 0;
|
57
|
-
padding: 0;
|
58
|
-
}
|
59
|
-
input,select {
|
60
|
-
vertical-align: middle;
|
61
|
-
}
|
62
|
-
|
63
|
-
textarea {
|
64
|
-
overflow: auto;
|
65
|
-
}
|
66
|
-
|
67
|
-
.ie6 legend,.ie7 legend {
|
68
|
-
margin-left: -7px;
|
69
|
-
}
|
70
|
-
|
71
|
-
input[wtype="radio"] {
|
72
|
-
vertical-align: text-bottom;
|
73
|
-
}
|
74
|
-
input[type="checkbox"] {
|
75
|
-
vertical-align: bottom;
|
76
|
-
}
|
77
|
-
.ie7 input[type="checkbox"] {
|
78
|
-
vertical-align: baseline;
|
79
|
-
}
|
80
|
-
.ie6 input {
|
81
|
-
vertical-align: text-bottom;
|
82
|
-
}
|
83
|
-
|
84
|
-
label,input[type="button"],input[type="submit"],input[type="image"],button {
|
85
|
-
cursor: pointer;
|
86
|
-
}
|
87
|
-
|
88
|
-
button,input,select,textarea {
|
89
|
-
margin: 0;
|
90
|
-
}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
/* --------------------------------------------------------------
|
2
|
-
|
3
|
-
Built with Gravity
|
4
|
-
http://Gravityframework.com
|
5
|
-
Version 1.3.1
|
6
|
-
Developed by: Owain Lewis
|
7
|
-
www.owainlewis.com
|
8
|
-
License: MIT
|
9
|
-
http://www.opensource.org/licenses/mit-license.php
|
10
|
-
|
11
|
-
-------------------------------------------------------------- */
|
12
|
-
|
13
|
-
/*
|
14
|
-
|
15
|
-
Grid Layout
|
16
|
-
|
17
|
-
*/
|
18
|
-
|
19
|
-
$width: 940px;
|
20
|
-
$gutters: 20px;
|
21
|
-
$columns: 12;
|
22
|
-
$baseline: 20px;
|
23
|
-
|
24
|
-
/*
|
25
|
-
|
26
|
-
Fonts
|
27
|
-
|
28
|
-
*/
|
29
|
-
|
30
|
-
$sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
31
|
-
$serif: Georgia, Times, serif;
|
32
|
-
$mono: "Lucida Console", "Andale Mono", monospace;
|
33
|
-
$font-size: 14px;
|
34
|
-
|
35
|
-
/*
|
36
|
-
|
37
|
-
Colors
|
38
|
-
|
39
|
-
*/
|
40
|
-
|
41
|
-
$background: #FFF;
|
42
|
-
$text: #333;
|
43
|
-
$links: #1c7fc4;
|
44
|
-
$borders:#DDD;
|
45
|
-
$headings: #333;
|
46
|
-
|
47
|
-
$white:#fff;
|
48
|
-
$grey: #666;
|
49
|
-
$black: #000;
|
@@ -1,48 +0,0 @@
|
|
1
|
-
/* --------------------------------------------------------------
|
2
|
-
|
3
|
-
TYPOGRAPHY
|
4
|
-
|
5
|
-
-------------------------------------------------------------- */
|
6
|
-
|
7
|
-
/* Default fonts and colors. */
|
8
|
-
body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea {
|
9
|
-
line-height: $baseline;
|
10
|
-
font-family: $sans;
|
11
|
-
color: $text;
|
12
|
-
font-size:$font-size;
|
13
|
-
}
|
14
|
-
|
15
|
-
/* --------------------------------------------------------------
|
16
|
-
|
17
|
-
HEADINGS
|
18
|
-
|
19
|
-
-------------------------------------------------------------- */
|
20
|
-
|
21
|
-
h1,h2,h3,h4,h5 {
|
22
|
-
margin-bottom: $baseline;
|
23
|
-
color:$headings;
|
24
|
-
font-weight:900;
|
25
|
-
}
|
26
|
-
|
27
|
-
h1 {
|
28
|
-
font-size: $baseline*2;
|
29
|
-
line-height:$baseline*2;
|
30
|
-
}
|
31
|
-
h2 {
|
32
|
-
font-size: $baseline;
|
33
|
-
line-height:$baseline;
|
34
|
-
}
|
35
|
-
h3 {
|
36
|
-
font-size: $baseline;
|
37
|
-
line-height:$baseline;
|
38
|
-
}
|
39
|
-
h4 {
|
40
|
-
font-size: $baseline;
|
41
|
-
line-height:$baseline;
|
42
|
-
}
|
43
|
-
h5 {
|
44
|
-
font-size: $baseline;
|
45
|
-
line-height:$baseline;
|
46
|
-
}
|
47
|
-
|
48
|
-
@import "_elements";
|
@@ -1,22 +0,0 @@
|
|
1
|
-
@mixin button($color, $text_color,$width) {
|
2
|
-
@include rounded(10px);
|
3
|
-
@include gradient(lighten($color,30%),$color);
|
4
|
-
cursor: pointer;
|
5
|
-
font-weight: bold;
|
6
|
-
color:$text_color;
|
7
|
-
display: block;
|
8
|
-
border: 1px solid darken($color, 10%);
|
9
|
-
text-align: center;
|
10
|
-
padding: 10px 20px;
|
11
|
-
margin: 0 0 20px 0;
|
12
|
-
@if ($width){
|
13
|
-
width:$width;
|
14
|
-
}
|
15
|
-
|
16
|
-
&:hover {
|
17
|
-
@include gradient(lighten($color,40%),lighten($color,10%));
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
|
22
|
-
|
@@ -1,25 +0,0 @@
|
|
1
|
-
/* --------------------------------------------------------------
|
2
|
-
|
3
|
-
GENERAL CLASSES
|
4
|
-
|
5
|
-
-------------------------------------------------------------- */
|
6
|
-
|
7
|
-
.wrap {
|
8
|
-
width: $width;
|
9
|
-
margin: 0 auto;
|
10
|
-
}
|
11
|
-
.clear {
|
12
|
-
clear: both;
|
13
|
-
}
|
14
|
-
.center {
|
15
|
-
text-align: center;
|
16
|
-
}
|
17
|
-
.uppercase {
|
18
|
-
text-transform: uppercase;
|
19
|
-
}
|
20
|
-
.titlecase {
|
21
|
-
text-transform: capitalize;
|
22
|
-
}
|
23
|
-
.invisible {
|
24
|
-
visibility: hidden;
|
25
|
-
}
|
@@ -1,215 +0,0 @@
|
|
1
|
-
/* --------------------------------------------------------------
|
2
|
-
|
3
|
-
Form Settings.
|
4
|
-
Most of this is inspired by the awesome work of Nathan Smith and formalize css!
|
5
|
-
|
6
|
-
-------------------------------------------------------------- */
|
7
|
-
|
8
|
-
$formPadding: 5px;
|
9
|
-
|
10
|
-
::-moz-focus-inner {
|
11
|
-
border: 0;
|
12
|
-
padding: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
input[type="search"]::-webkit-search-decoration {
|
16
|
-
display: none;
|
17
|
-
}
|
18
|
-
|
19
|
-
form {
|
20
|
-
margin-bottom: $baseline;
|
21
|
-
}
|
22
|
-
fieldset {
|
23
|
-
margin-bottom: $baseline;
|
24
|
-
}
|
25
|
-
|
26
|
-
input[type="text"]:focus,
|
27
|
-
input[type="password"]:focus,
|
28
|
-
input[type="email"]:focus,
|
29
|
-
input[type="tel"]:focus,
|
30
|
-
textarea:focus {
|
31
|
-
border: 1px solid #aaa;
|
32
|
-
color: #444;
|
33
|
-
}
|
34
|
-
textarea {
|
35
|
-
min-height: 100px;
|
36
|
-
resize: none;
|
37
|
-
overflow: auto;
|
38
|
-
width: 100%;
|
39
|
-
}
|
40
|
-
label,
|
41
|
-
legend {
|
42
|
-
display: block;
|
43
|
-
font-weight: bold;
|
44
|
-
font-size: 13px;
|
45
|
-
}
|
46
|
-
select {
|
47
|
-
width: 100%;
|
48
|
-
}
|
49
|
-
input[type="checkbox"] {
|
50
|
-
display: inline;
|
51
|
-
}
|
52
|
-
label span,
|
53
|
-
legend span {
|
54
|
-
font-weight: normal;
|
55
|
-
font-size: 13px;
|
56
|
-
color: #444;
|
57
|
-
}
|
58
|
-
|
59
|
-
input,
|
60
|
-
button,
|
61
|
-
select,
|
62
|
-
textarea {
|
63
|
-
vertical-align: middle;
|
64
|
-
}
|
65
|
-
|
66
|
-
input[type="radio"],
|
67
|
-
input[type="checkbox"] {
|
68
|
-
position: relative;
|
69
|
-
vertical-align: top;
|
70
|
-
top: 3px;
|
71
|
-
/* IE8, IE9, IE10 */
|
72
|
-
top: 0\0;
|
73
|
-
/* IE7 */
|
74
|
-
*top: -3px;
|
75
|
-
margin-right: 5px;
|
76
|
-
}
|
77
|
-
|
78
|
-
/* iPad */
|
79
|
-
@media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 1024px) {
|
80
|
-
input[type="radio"],
|
81
|
-
input[type="checkbox"] {
|
82
|
-
vertical-align: baseline;
|
83
|
-
top: 2px;
|
84
|
-
}
|
85
|
-
|
86
|
-
}
|
87
|
-
|
88
|
-
/* iPhone 3 */
|
89
|
-
@media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 480px) {
|
90
|
-
input[type="radio"],
|
91
|
-
input[type="checkbox"] {
|
92
|
-
vertical-align: baseline;
|
93
|
-
top: 0;
|
94
|
-
}
|
95
|
-
|
96
|
-
}
|
97
|
-
|
98
|
-
/* iPhone 4 */
|
99
|
-
@media (-webkit-min-device-pixel-ratio: 2) and (max-device-width: 480px) {
|
100
|
-
input[type="radio"],
|
101
|
-
input[type="checkbox"] {
|
102
|
-
vertical-align: baseline;
|
103
|
-
top: 0;
|
104
|
-
}
|
105
|
-
|
106
|
-
}
|
107
|
-
|
108
|
-
textarea,
|
109
|
-
select,
|
110
|
-
input[type="date"],
|
111
|
-
input[type="datetime"],
|
112
|
-
input[type="datetime-local"],
|
113
|
-
input[type="email"],
|
114
|
-
input[type="month"],
|
115
|
-
input[type="number"],
|
116
|
-
input[type="password"],
|
117
|
-
input[type="search"],
|
118
|
-
input[type="tel"],
|
119
|
-
input[type="text"],
|
120
|
-
input[type="time"],
|
121
|
-
input[type="url"],
|
122
|
-
input[type="week"] {
|
123
|
-
-webkit-appearance: none;
|
124
|
-
-moz-border-radius: 0;
|
125
|
-
-webkit-border-radius: 0;
|
126
|
-
border-radius: 0;
|
127
|
-
-webkit-box-sizing: border-box;
|
128
|
-
-moz-box-sizing: border-box;
|
129
|
-
box-sizing: border-box;
|
130
|
-
-moz-background-clip: padding;
|
131
|
-
-webkit-background-clip: padding;
|
132
|
-
background-clip: padding-box;
|
133
|
-
border: 1px solid $borders;
|
134
|
-
border-color: $borders $borders $borders;
|
135
|
-
color: $black;
|
136
|
-
padding: $formPadding;
|
137
|
-
outline: none;
|
138
|
-
@include rounded(2px);
|
139
|
-
font: 12px $sans;
|
140
|
-
margin: 0 0 20px 0;
|
141
|
-
width: 100%;
|
142
|
-
display: block;
|
143
|
-
@include gradient(#fafafa,#fff);
|
144
|
-
|
145
|
-
/* IE7 */
|
146
|
-
*padding-top: 2px;
|
147
|
-
*padding-bottom: 1px;
|
148
|
-
*height: auto;
|
149
|
-
}
|
150
|
-
|
151
|
-
/*
|
152
|
-
Separate rule for Firefox.
|
153
|
-
Separate rule for IE, too.
|
154
|
-
Cannot stack with WebKit's.
|
155
|
-
*/
|
156
|
-
::-webkit-input-placeholder {
|
157
|
-
color: $black;
|
158
|
-
}
|
159
|
-
|
160
|
-
input:-moz-placeholder,
|
161
|
-
textarea:-moz-placeholder {
|
162
|
-
color: $black;
|
163
|
-
}
|
164
|
-
|
165
|
-
:invalid {
|
166
|
-
/*
|
167
|
-
Suppress red glow that Firefox
|
168
|
-
adds to form fields by default,
|
169
|
-
even when user is still typing.
|
170
|
-
*/
|
171
|
-
-moz-box-shadow: none;
|
172
|
-
-webkit-box-shadow: none;
|
173
|
-
box-shadow: none;
|
174
|
-
}
|
175
|
-
|
176
|
-
/* Tweaks for Safari + Chrome. */
|
177
|
-
@media (-webkit-min-device-pixel-ratio: 0) {
|
178
|
-
|
179
|
-
select[size],
|
180
|
-
select[multiple] {
|
181
|
-
background-image: none;
|
182
|
-
padding: 0;
|
183
|
-
}
|
184
|
-
|
185
|
-
::-webkit-validation-bubble-message {
|
186
|
-
box-shadow: rgba(0, 0, 0, 0.5) 0 0 5px;
|
187
|
-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #666), color-stop(1, #000));
|
188
|
-
border: $borders;
|
189
|
-
color: #fff;
|
190
|
-
font: $sans;
|
191
|
-
padding: 15px 15px 17px;
|
192
|
-
text-shadow: #000 0 0 1px;
|
193
|
-
}
|
194
|
-
|
195
|
-
::-webkit-validation-bubble-top-outer-arrow,
|
196
|
-
::-webkit-validation-bubble-top-inner-arrow {
|
197
|
-
display: none;
|
198
|
-
}
|
199
|
-
}
|
200
|
-
|
201
|
-
optgroup {
|
202
|
-
color: #000;
|
203
|
-
font-style: normal;
|
204
|
-
font-weight: normal;
|
205
|
-
}
|
206
|
-
|
207
|
-
button[type=submit], input[type='submit']{
|
208
|
-
padding:7px 12px;
|
209
|
-
text-align:center;
|
210
|
-
font-weight:bold;
|
211
|
-
@include rounded(5px);
|
212
|
-
@include gradient();
|
213
|
-
border:0;
|
214
|
-
color:#FFF;
|
215
|
-
}
|