compass-helium 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +47 -0
- data/lib/compass-helium.rb +3 -0
- data/stylesheets/_compass-helium.scss +17 -0
- data/stylesheets/compass-helium/buttons.scss +520 -0
- data/stylesheets/compass-helium/components.scss +109 -0
- data/stylesheets/compass-helium/config.scss +134 -0
- data/stylesheets/compass-helium/dropdowns.scss +94 -0
- data/stylesheets/compass-helium/forms.scss +272 -0
- data/stylesheets/compass-helium/grid.scss +113 -0
- data/stylesheets/compass-helium/master.scss +17 -0
- data/stylesheets/compass-helium/modals.scss +159 -0
- data/stylesheets/compass-helium/navs.scss +264 -0
- data/stylesheets/compass-helium/type.scss +150 -0
- data/stylesheets/compass-helium/utilities.scss +272 -0
- data/stylesheets/compass-helium/webfonts.scss +8 -0
- data/templates/project/config.rb +12 -0
- data/templates/project/fonts/entypo.eot +0 -0
- data/templates/project/fonts/entypo.svg +13 -0
- data/templates/project/fonts/entypo.ttf +0 -0
- data/templates/project/fonts/entypo.woff +0 -0
- data/templates/project/forms.html +439 -0
- data/templates/project/index.html +151 -0
- data/templates/project/js/bootstrap-collapse.js +156 -0
- data/templates/project/js/bootstrap-dropdown.js +153 -0
- data/templates/project/js/bootstrap-modal-ck.js +18 -0
- data/templates/project/js/bootstrap-modal.js +234 -0
- data/templates/project/js/bootstrap-transition.js +60 -0
- data/templates/project/js/bootstrap.min.js +6 -0
- data/templates/project/js/jquery.min.js +2 -0
- data/templates/project/manifest.rb +30 -0
- data/templates/project/modals.html +152 -0
- data/templates/project/sass/style.scss +3 -0
- metadata +116 -0
@@ -0,0 +1,109 @@
|
|
1
|
+
// Progress indicator
|
2
|
+
// ------------------
|
3
|
+
|
4
|
+
$progress-indicator-step-diameter: 36px;
|
5
|
+
$progress-indicator-connector-height: 14px;
|
6
|
+
$progress-indicator-fill-padding: 4px;
|
7
|
+
|
8
|
+
.progress-indicator {
|
9
|
+
|
10
|
+
@include list-reset();
|
11
|
+
text-align: center;
|
12
|
+
font-size: 0;
|
13
|
+
|
14
|
+
.step {
|
15
|
+
display: inline-block;
|
16
|
+
position: relative;
|
17
|
+
width: 16%;
|
18
|
+
|
19
|
+
a {
|
20
|
+
&:hover {
|
21
|
+
text-decoration: none;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.step-number {
|
26
|
+
display: block;
|
27
|
+
width: $progress-indicator-step-diameter;
|
28
|
+
height: $progress-indicator-step-diameter;
|
29
|
+
margin: 0 auto;
|
30
|
+
padding: $progress-indicator-fill-padding;
|
31
|
+
background: #ccc;
|
32
|
+
|
33
|
+
@include border-radius(100px);
|
34
|
+
|
35
|
+
.fill {
|
36
|
+
display: block;
|
37
|
+
position: relative;
|
38
|
+
z-index: 2;
|
39
|
+
width: $progress-indicator-step-diameter - ($progress-indicator-fill-padding * 2);
|
40
|
+
height: $progress-indicator-step-diameter - ($progress-indicator-fill-padding * 2);
|
41
|
+
|
42
|
+
@include border-radius(100px);
|
43
|
+
|
44
|
+
font-size: 16px;
|
45
|
+
line-height: $progress-indicator-step-diameter - ($progress-indicator-fill-padding * 2);
|
46
|
+
|
47
|
+
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.step-title {
|
52
|
+
color: $muted-font-color;
|
53
|
+
font-size: 12px;
|
54
|
+
}
|
55
|
+
|
56
|
+
.step-connector {
|
57
|
+
display: block;
|
58
|
+
position: absolute;
|
59
|
+
top: ($progress-indicator-step-diameter / 2) - ($progress-indicator-connector-height / 2);
|
60
|
+
left: 50%;
|
61
|
+
width: 100%;
|
62
|
+
height: $progress-indicator-connector-height;
|
63
|
+
padding: $progress-indicator-fill-padding 0;
|
64
|
+
background: #ccc;
|
65
|
+
}
|
66
|
+
|
67
|
+
&.completed {
|
68
|
+
|
69
|
+
.step-number {
|
70
|
+
.fill {
|
71
|
+
background: $link-color;
|
72
|
+
color: #fff;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.step-connector {
|
77
|
+
.fill {
|
78
|
+
display: block;
|
79
|
+
position: relative;
|
80
|
+
z-index: 1;
|
81
|
+
height: $progress-indicator-connector-height - ($progress-indicator-fill-padding * 2);
|
82
|
+
background: $link-color;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
&.current {
|
88
|
+
.step-number {
|
89
|
+
padding: 0;
|
90
|
+
background: none;
|
91
|
+
|
92
|
+
.fill {
|
93
|
+
width: $progress-indicator-step-diameter;
|
94
|
+
height: $progress-indicator-step-diameter;
|
95
|
+
background: $link-color;
|
96
|
+
color: #fff;
|
97
|
+
font-size: 18px;
|
98
|
+
line-height: $progress-indicator-step-diameter;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
&:last-child {
|
104
|
+
.step-connector {
|
105
|
+
display: none;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
@@ -0,0 +1,134 @@
|
|
1
|
+
// Colors
|
2
|
+
// ------
|
3
|
+
|
4
|
+
$gray-light: #999 !default;
|
5
|
+
$gray: #444 !default;
|
6
|
+
$gray-dark: #222 !default;
|
7
|
+
$blue: #006699 !default;
|
8
|
+
$facebook-blue: #3B5998 !default;
|
9
|
+
$twitter-blue: #00ACED !default;
|
10
|
+
$red-dark: #A01D2B !default;
|
11
|
+
|
12
|
+
|
13
|
+
// Grid
|
14
|
+
// -----
|
15
|
+
|
16
|
+
$page-width: 940px !default;
|
17
|
+
$column-count: 12 !default;
|
18
|
+
$column-gutter: 20px !default;
|
19
|
+
$responsive-breakpoint: 767px !default;
|
20
|
+
$mobile-padding: 15px !default; // Distance from content to edge of screen on mobile
|
21
|
+
$tablet-padding: 20px !default; // Distance from content to edge of screen on tablet
|
22
|
+
|
23
|
+
// Typography
|
24
|
+
// ----------
|
25
|
+
|
26
|
+
$base-font-color : $gray !default;
|
27
|
+
$muted-font-color : $gray-light !default;
|
28
|
+
$base-font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif !default;
|
29
|
+
$base-font-size : 14px !default;
|
30
|
+
$base-line-height : 21px !default;
|
31
|
+
$small-font-size : 12px !default;
|
32
|
+
$small-line-height : 18px !default;
|
33
|
+
$heading-font-family : $base-font-family !default;
|
34
|
+
$heading-font-weight: 600 !default;
|
35
|
+
$heading-color : $gray-dark !default;
|
36
|
+
$icon-size: 20px !default;
|
37
|
+
|
38
|
+
// Links
|
39
|
+
// -----
|
40
|
+
|
41
|
+
$link-color : $blue !default;
|
42
|
+
|
43
|
+
// Miscellaneous UI
|
44
|
+
// ----------------
|
45
|
+
|
46
|
+
$site-background-color: #fafafa !default;
|
47
|
+
$big-border-radius: 4px !default;
|
48
|
+
$small-border-radius: 4px !default;
|
49
|
+
$border-color: rgba(0,0,0,0.13) !default;
|
50
|
+
$box-shadow: 0px 1px 1px rgba(0,0,0,0.08) !default;
|
51
|
+
|
52
|
+
// Buttons
|
53
|
+
// -------
|
54
|
+
|
55
|
+
$button-theme: glossy !default; // Required - can take values of glossy or flat
|
56
|
+
$button-height: 32px !default; // Total height of normal size button
|
57
|
+
$button-caret-height: 4px !default;
|
58
|
+
$button-font-color: $base-font-color !default;
|
59
|
+
$button-font-family: $heading-font-family !default;
|
60
|
+
$button-font-size: 12px !default;
|
61
|
+
$button-font-weight: 600 !default;
|
62
|
+
$button-icon-size: 16px !default;
|
63
|
+
$button-solid-background: #e0e0e0 !default; // Solid color for flat buttons and fallback
|
64
|
+
$button-highlight: #fbfbfb !default; // Top gradient stop for glossy theme
|
65
|
+
$button-lowlight: darken($button-highlight, 6%) !default; // Bottom gradient stop for glossy theme
|
66
|
+
$button-border-color: rgba(0,0,0,0.2) !default; // Border color - ignored when theme is flat, highly recommended to keep this as an alpha value of black
|
67
|
+
$button-border-width: 1px !default; // Border width - ignored when theme is flat
|
68
|
+
$button-shine: #fff !default; // 1px shine at top of button and inset text - ignored when theme is flat
|
69
|
+
$button-horizontal-padding: $button-font-size !default;
|
70
|
+
$button-border-radius: $small-border-radius !default;
|
71
|
+
$button-box-shadow: 0px 1px 1px rgba(0,0,0,0.08) !default;
|
72
|
+
$button-large-height: 40px !default;
|
73
|
+
$button-large-font-size: 16px !default;
|
74
|
+
$button-large-horizontal-padding: 20px !default;
|
75
|
+
$button-small-height: 24px !default;
|
76
|
+
$button-small-font-size: 11px !default;
|
77
|
+
$button-small-horizontal-padding: 11px !default;
|
78
|
+
|
79
|
+
// Navbar
|
80
|
+
// ------
|
81
|
+
|
82
|
+
$navbar-background-color: $gray-dark !default;
|
83
|
+
$navbar-height: 50px !default;
|
84
|
+
$navbar-highlight: #99191C !default;
|
85
|
+
$navbar-lowlight: #6A111A !default;
|
86
|
+
$navbar-link-font-size: 14px !default;
|
87
|
+
$navbar-link-color: #fff !default;
|
88
|
+
$navbar-branding-font-size: 18px !default;
|
89
|
+
$navbar-caret-height: 5px !default;
|
90
|
+
$navbar-link-horizontal-padding: $navbar-link-font-size !default;
|
91
|
+
|
92
|
+
$vertical-nav-link-font-size: 16px !default;
|
93
|
+
$vertical-nav-link-height: 32px !default;
|
94
|
+
|
95
|
+
$mobile-nav-link-font-size: $base-font-size !default;
|
96
|
+
$mobile-nav-link-height: 30px !default;
|
97
|
+
|
98
|
+
// Dropdowns
|
99
|
+
// ---------
|
100
|
+
|
101
|
+
$dropdown-background: #fff !default;
|
102
|
+
$dropdown-link-font-size: $base-font-size !default;
|
103
|
+
$dropdown-link-height: 24px !default;
|
104
|
+
$dropdown-caret-height: 5px !default;
|
105
|
+
$dropdown-box-shadow: 0px 1px 2px rgba(0,0,0,0.2) !default;
|
106
|
+
|
107
|
+
// Forms
|
108
|
+
// -----
|
109
|
+
|
110
|
+
$form-input-height: 30px !default;
|
111
|
+
$form-input-gutter: 20px !default;
|
112
|
+
$form-transition-duration: 0.2s !default;
|
113
|
+
$input-border-radius: 2px !default;
|
114
|
+
$placeholder-color: $muted-font-color !default;
|
115
|
+
$placeholder-focus-color: lighten($muted-font-color, 15%) !default;
|
116
|
+
$radio-checkbox-input-height: 13px !default;
|
117
|
+
$radio-checkbox-item-height: $base-font-size * 2 !default;
|
118
|
+
$radio-checkbox-font-size: $base-font-size !default;
|
119
|
+
$radio-checkbox-line-height: $base-line-height !default;
|
120
|
+
$single-checkbox-font-size: $small-font-size !default;
|
121
|
+
$error-color: $red-dark !default;
|
122
|
+
|
123
|
+
// Modals
|
124
|
+
// ------
|
125
|
+
|
126
|
+
$modal-padding: 20px !default;
|
127
|
+
$modal-width: 400px !default;
|
128
|
+
|
129
|
+
// Sprites
|
130
|
+
// -------
|
131
|
+
|
132
|
+
$sprite-color-size: 300px 300px !default;
|
133
|
+
$sprite-icons-white-size: 300px 300px !default;
|
134
|
+
$sprite-icons-black-size: 300px 300px !default;
|
@@ -0,0 +1,94 @@
|
|
1
|
+
// Generic dropdown styles
|
2
|
+
// -----------------------
|
3
|
+
|
4
|
+
.has-dropdown {
|
5
|
+
position: relative; // for positioning of dropdown
|
6
|
+
|
7
|
+
> a {
|
8
|
+
position: relative; // for positioning of caret
|
9
|
+
}
|
10
|
+
|
11
|
+
&.open > a {
|
12
|
+
background: $dropdown-background !important;
|
13
|
+
color: $base-font-color !important;
|
14
|
+
|
15
|
+
&:after {
|
16
|
+
@include pseudo();
|
17
|
+
width: 100%;
|
18
|
+
height: 6px;
|
19
|
+
background: $dropdown-background;
|
20
|
+
bottom: -4px;
|
21
|
+
left: 0px;
|
22
|
+
z-index: 2;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.dropdown { // dropdown menu styles
|
27
|
+
|
28
|
+
@include border-radius(0 0 $small-border-radius $small-border-radius);
|
29
|
+
|
30
|
+
@if $button-theme == "glossy" {
|
31
|
+
@include box-shadow($dropdown-box-shadow);
|
32
|
+
}
|
33
|
+
|
34
|
+
visibility: hidden;
|
35
|
+
position: absolute;
|
36
|
+
left: -1px;
|
37
|
+
top: 100%;
|
38
|
+
min-width: 160px;
|
39
|
+
margin: 0;
|
40
|
+
padding: $base-font-size - (($dropdown-link-height - $dropdown-link-font-size) / 2) 0;
|
41
|
+
background: $dropdown-background;
|
42
|
+
background-clip: border-box;
|
43
|
+
border: $button-border-width solid $button-border-color;
|
44
|
+
line-height: 1;
|
45
|
+
z-index: 1;
|
46
|
+
|
47
|
+
&.right { // Align dropdown with right edge of parent item
|
48
|
+
float: none;
|
49
|
+
left: auto;
|
50
|
+
right: -1px;
|
51
|
+
}
|
52
|
+
|
53
|
+
> li {
|
54
|
+
display: block;
|
55
|
+
margin: 0;
|
56
|
+
padding: 0;
|
57
|
+
|
58
|
+
> a {
|
59
|
+
position: relative;
|
60
|
+
display: block;
|
61
|
+
padding: ($dropdown-link-height - $dropdown-link-font-size) / 2 $base-font-size;
|
62
|
+
font-size: $dropdown-link-font-size;
|
63
|
+
text-decoration: none;
|
64
|
+
white-space: nowrap;
|
65
|
+
|
66
|
+
&:hover {
|
67
|
+
background-color: $link-color;
|
68
|
+
color: #fff;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
.divider {
|
74
|
+
border-top: 1px solid $border-color;
|
75
|
+
margin: $base-font-size - (($dropdown-link-height - $dropdown-link-font-size) / 2) 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
.section-title {
|
79
|
+
padding: ($dropdown-link-height - $dropdown-link-font-size) / 2 $base-font-size;
|
80
|
+
color: $muted-font-color;
|
81
|
+
font-size: 11px;
|
82
|
+
font-weight: bold;
|
83
|
+
text-transform: uppercase;
|
84
|
+
cursor: default;
|
85
|
+
}
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
&.open {
|
90
|
+
.dropdown {
|
91
|
+
visibility: visible;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
@@ -0,0 +1,272 @@
|
|
1
|
+
// Forms
|
2
|
+
// -----
|
3
|
+
|
4
|
+
label,
|
5
|
+
input,
|
6
|
+
textarea {
|
7
|
+
color: $base-font-color;
|
8
|
+
font-size: $base-font-size;
|
9
|
+
font-family: $base-font-family;
|
10
|
+
font-weight: normal;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Basic form layouts
|
14
|
+
// ------------------
|
15
|
+
|
16
|
+
.field-group {
|
17
|
+
margin-bottom: $base-font-size;
|
18
|
+
|
19
|
+
.field-label {
|
20
|
+
display: block;
|
21
|
+
color: $gray-dark;
|
22
|
+
}
|
23
|
+
|
24
|
+
.field-instructions {
|
25
|
+
float: none;
|
26
|
+
clear: both;
|
27
|
+
color: $muted-font-color;
|
28
|
+
font-size: $small-font-size;
|
29
|
+
|
30
|
+
a {
|
31
|
+
color: $muted-font-color;
|
32
|
+
text-decoration: underline;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.input-inline {
|
38
|
+
display: inline-block;
|
39
|
+
height: $form-input-height;
|
40
|
+
line-height: $form-input-height;
|
41
|
+
}
|
42
|
+
|
43
|
+
.multi-field {
|
44
|
+
|
45
|
+
@include clearfix();
|
46
|
+
|
47
|
+
input, .input-inline {
|
48
|
+
float: left;
|
49
|
+
margin-right: ($base-font-size / 2) - 2;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
// Left-aligned labels
|
54
|
+
// -------------------
|
55
|
+
|
56
|
+
|
57
|
+
@media screen and (min-width: $responsive-breakpoint) {
|
58
|
+
|
59
|
+
.labels-left {
|
60
|
+
|
61
|
+
.field-group {
|
62
|
+
@include clearfix();
|
63
|
+
}
|
64
|
+
|
65
|
+
.field-label {
|
66
|
+
position: relative;
|
67
|
+
left: $form-input-gutter / 2;
|
68
|
+
line-height: $base-font-size + 2;
|
69
|
+
padding: ($form-input-height - ($base-font-size + 2)) / 2 0;
|
70
|
+
text-align: right;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
// Text fields and textareas
|
76
|
+
// -------------------------
|
77
|
+
|
78
|
+
textarea,
|
79
|
+
input[type="text"],
|
80
|
+
input[type="password"],
|
81
|
+
input[type="datetime"],
|
82
|
+
input[type="datetime-local"],
|
83
|
+
input[type="date"],
|
84
|
+
input[type="month"],
|
85
|
+
input[type="time"],
|
86
|
+
input[type="week"],
|
87
|
+
input[type="number"],
|
88
|
+
input[type="email"],
|
89
|
+
input[type="url"],
|
90
|
+
input[type="search"],
|
91
|
+
input[type="tel"],
|
92
|
+
input[type="color"] {
|
93
|
+
|
94
|
+
@include border-radius($input-border-radius);
|
95
|
+
@include box-shadow(inset 0px 1px 0px rgba(0,0,0,0.06));
|
96
|
+
|
97
|
+
display: inline-block;
|
98
|
+
height: $form-input-height;
|
99
|
+
width: 100%;
|
100
|
+
max-width: 100%;
|
101
|
+
padding: 0 $base-font-size / 2;
|
102
|
+
border: 1px solid rgba(0,0,0,0.25);
|
103
|
+
|
104
|
+
outline: none;
|
105
|
+
-webkit-appearance: none;
|
106
|
+
|
107
|
+
&:focus {
|
108
|
+
border-color: $link-color;
|
109
|
+
@include box-shadow(0px 0px 3px rgba($link-color, 0.3));
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
input::-webkit-outer-spin-button,
|
114
|
+
input::-webkit-inner-spin-button {
|
115
|
+
/* display: none; <- Crashes Chrome on hover */
|
116
|
+
-webkit-appearance: none;
|
117
|
+
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
118
|
+
}
|
119
|
+
|
120
|
+
textarea {
|
121
|
+
height: auto;
|
122
|
+
min-width: 100%;
|
123
|
+
min-height: $form-input-height;
|
124
|
+
padding: $base-font-size / 2;
|
125
|
+
}
|
126
|
+
|
127
|
+
@for $i from 1 through 10 {
|
128
|
+
input.char#{$i} { width: ($i * ($base-font-size * 0.75)) + $base-font-size ; }
|
129
|
+
}
|
130
|
+
|
131
|
+
// Special positioning for select
|
132
|
+
// ------------------------------
|
133
|
+
|
134
|
+
.select-holder {
|
135
|
+
height: $form-input-height;
|
136
|
+
display: table-cell;
|
137
|
+
vertical-align: middle;
|
138
|
+
}
|
139
|
+
|
140
|
+
// Placeholders
|
141
|
+
// ------------
|
142
|
+
|
143
|
+
::-webkit-input-placeholder {
|
144
|
+
color: $placeholder-color;
|
145
|
+
@include transition($form-transition-duration all);
|
146
|
+
}
|
147
|
+
|
148
|
+
:-moz-placeholder {
|
149
|
+
color: $placeholder-color;
|
150
|
+
@include transition($form-transition-duration all);
|
151
|
+
}
|
152
|
+
|
153
|
+
::-webkit-input-placeholder:focus {
|
154
|
+
color: $placeholder-focus-color;
|
155
|
+
}
|
156
|
+
|
157
|
+
:-moz-placeholder:focus {
|
158
|
+
color: $placeholder-focus-color;
|
159
|
+
}
|
160
|
+
|
161
|
+
// Radio and checkbox
|
162
|
+
// ------------------
|
163
|
+
|
164
|
+
input[type=radio],
|
165
|
+
input[type=checkbox] {
|
166
|
+
margin: 0;
|
167
|
+
cursor: pointer;
|
168
|
+
}
|
169
|
+
|
170
|
+
// Radio and checkbox lists
|
171
|
+
// ------------------------
|
172
|
+
|
173
|
+
.radio-checkbox-list {
|
174
|
+
@include list-reset();
|
175
|
+
margin-bottom: 0;
|
176
|
+
|
177
|
+
> li {
|
178
|
+
padding: ($radio-checkbox-item-height - $radio-checkbox-line-height) / 2 0;
|
179
|
+
}
|
180
|
+
|
181
|
+
input[type=radio],
|
182
|
+
input[type=checkbox] {
|
183
|
+
display: block;
|
184
|
+
position: absolute;
|
185
|
+
top: ($radio-checkbox-line-height - $radio-checkbox-input-height) / 2;
|
186
|
+
left: 0px;
|
187
|
+
}
|
188
|
+
|
189
|
+
label {
|
190
|
+
display: block;
|
191
|
+
position: relative;
|
192
|
+
padding-left: $radio-checkbox-input-height * 1.61;
|
193
|
+
cursor: pointer;
|
194
|
+
}
|
195
|
+
|
196
|
+
.error-message {
|
197
|
+
margin-left: $radio-checkbox-input-height * 1.61;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
// Single checkboxes
|
202
|
+
// -----------------
|
203
|
+
|
204
|
+
.single-checkbox {
|
205
|
+
display: block;
|
206
|
+
position: relative;
|
207
|
+
padding: ($base-line-height - ($single-checkbox-font-size * 1.2)) / 2 0 ($base-line-height - ($single-checkbox-font-size * 1.2)) / 2 $radio-checkbox-input-height * 1.61;
|
208
|
+
font-size: $single-checkbox-font-size;
|
209
|
+
line-height: 1.2;
|
210
|
+
cursor: pointer;
|
211
|
+
|
212
|
+
input[type=radio],
|
213
|
+
input[type=checkbox] {
|
214
|
+
display: block;
|
215
|
+
position: absolute;
|
216
|
+
top: ($base-line-height - $radio-checkbox-input-height) / 2;
|
217
|
+
left: 0px;
|
218
|
+
}
|
219
|
+
|
220
|
+
a {
|
221
|
+
text-decoration: underline;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
// Buttons
|
226
|
+
// -------
|
227
|
+
|
228
|
+
button {
|
229
|
+
margin: 0;
|
230
|
+
font-size: 100%;
|
231
|
+
vertical-align: middle;
|
232
|
+
// *overflow: visible; // Inner spacing ie IE6/7
|
233
|
+
// line-height: normal !important; // FF3/4 have !important on line-height in UA stylesheet
|
234
|
+
}
|
235
|
+
|
236
|
+
button::-moz-focus-inner,
|
237
|
+
input::-moz-focus-inner {
|
238
|
+
padding: 0;
|
239
|
+
border: 0;
|
240
|
+
}
|
241
|
+
|
242
|
+
// Errors
|
243
|
+
// ------
|
244
|
+
|
245
|
+
.error {
|
246
|
+
label {
|
247
|
+
color: $error-color;
|
248
|
+
}
|
249
|
+
|
250
|
+
input {
|
251
|
+
border-color: $error-color;
|
252
|
+
}
|
253
|
+
.error-message {
|
254
|
+
@include border-radius($input-border-radius);
|
255
|
+
|
256
|
+
display: inline-block;
|
257
|
+
position: relative;
|
258
|
+
margin-top: $base-font-size / 2;
|
259
|
+
padding: $base-font-size / 2;
|
260
|
+
background: $error-color;
|
261
|
+
color: #fff;
|
262
|
+
font-size: $small-font-size;
|
263
|
+
line-height: $small-font-size;
|
264
|
+
|
265
|
+
&:after {
|
266
|
+
position: absolute;
|
267
|
+
top: -12px;
|
268
|
+
left: 10px;
|
269
|
+
@include css-triangle(6px, $error-color, bottom)
|
270
|
+
}
|
271
|
+
}
|
272
|
+
}
|