styleyt 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/templates/images/16x16/add.png +0 -0
- data/templates/images/16x16/edit.png +0 -0
- data/templates/images/16x16/index.png +0 -0
- data/templates/images/16x16/remove.png +0 -0
- data/templates/images/22x22/arrow-right.png +0 -0
- data/templates/images/22x22/edit.png +0 -0
- data/templates/images/22x22/insert_booking.png +0 -0
- data/templates/images/22x22/remove.png +0 -0
- data/templates/images/32x32/edit.png +0 -0
- data/templates/images/32x32/remove.png +0 -0
- data/templates/images/favicon.ico +0 -0
- data/templates/images/logo.png +0 -0
- data/templates/preview/index.html.haml +62 -0
- data/templates/stylesheets/ie.scss +8 -0
- data/templates/stylesheets/ie6.scss +7 -0
- data/templates/stylesheets/partials/_application.sass +0 -0
- data/templates/stylesheets/partials/_base.sass +38 -0
- data/templates/stylesheets/partials/_content.sass +107 -0
- data/templates/stylesheets/partials/_cyt.sass +173 -0
- data/templates/stylesheets/partials/_formtastic.sass +203 -0
- data/templates/stylesheets/partials/_formtastic_cyt.sass +68 -0
- data/templates/stylesheets/partials/_header.sass +28 -0
- data/templates/stylesheets/partials/_invoice.sass +187 -0
- data/templates/stylesheets/partials/_jquery.sass +2 -0
- data/templates/stylesheets/partials/_layout.sass +19 -0
- data/templates/stylesheets/partials/_navigation.sass +2 -0
- data/templates/stylesheets/partials/_pagination.sass +61 -0
- data/templates/stylesheets/partials/_redmine.sass +270 -0
- data/templates/stylesheets/partials/_scaffold.sass +67 -0
- data/templates/stylesheets/partials/_sidebar.sass +5 -0
- data/templates/stylesheets/partials/content/_ajax_indicator.sass +27 -0
- data/templates/stylesheets/partials/content/_fancy_buttons.sass +10 -0
- data/templates/stylesheets/partials/content/_flash_errors.sass +45 -0
- data/templates/stylesheets/partials/content/_icons.sass +16 -0
- data/templates/stylesheets/partials/content/_overview.sass +37 -0
- data/templates/stylesheets/partials/content/_table_list.sass +23 -0
- data/templates/stylesheets/partials/formtastic/_formtastic_base.sass +624 -0
- data/templates/stylesheets/partials/jquery/_jquery_ui.sass +1473 -0
- data/templates/stylesheets/partials/jquery/_tooltip.sass +13 -0
- data/templates/stylesheets/partials/navigation/_main.sass +33 -0
- data/templates/stylesheets/partials/navigation/_sidebar.sass +18 -0
- data/templates/stylesheets/print.sass +30 -0
- data/templates/stylesheets/print.scss +26 -0
- data/templates/stylesheets/screen.scss +25 -0
- data/templates/stylesheets/themes/default/colors.sass +9 -0
- data/templates/stylesheets/themes/red/colors.sass +0 -0
- data/templates/test.css +0 -0
- metadata +53 -12
data/Rakefile
CHANGED
@@ -13,9 +13,9 @@ begin
|
|
13
13
|
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
14
14
|
gem.rubyforge_project = gem.name
|
15
15
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
|
-
gem.files = Dir["{lib,test}/**/*", "[A-Z]*"]
|
16
|
+
gem.files = Dir["{lib,test,templates}/**/*", "[A-Z]*"]
|
17
17
|
gem.require_path = 'lib'
|
18
|
-
gem.add_dependency 'rails', '3.0.0'
|
18
|
+
gem.add_dependency 'rails', '~>3.0.0'
|
19
19
|
gem.add_dependency 'haml'
|
20
20
|
gem.add_dependency 'compass'
|
21
21
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,62 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
|
3
|
+
%head
|
4
|
+
%meta{:charset => 'utf-8'}/
|
5
|
+
%meta{:content => "Roman Simecek <roman.simecek@cyt.ch>", :name => "author"}/
|
6
|
+
|
7
|
+
%link{:rel => "shortcut icon", :href => 'favicon.ico'}/
|
8
|
+
|
9
|
+
- [:screen, :print].each do |css|
|
10
|
+
%link{:rel => 'stylesheet', :href => "#{css.to_s}.css", :media => css.to_s}
|
11
|
+
/[if lt IE 8]
|
12
|
+
%link{:rel => 'stylesheet', :href => 'ie.css', :media => 'screen'}
|
13
|
+
|
14
|
+
%title
|
15
|
+
Styleyt - Preview
|
16
|
+
|
17
|
+
%body
|
18
|
+
#container
|
19
|
+
#header
|
20
|
+
#logo{:style => 'margin: 14px; float: left;'}
|
21
|
+
%h1{:style => 'display: inline; color: #002B3D'} CyMail
|
22
|
+
#main-menu
|
23
|
+
%ul
|
24
|
+
- ["Mail Journal", "Compose Mail", "Settings", "Login"].each do |entry|
|
25
|
+
%li
|
26
|
+
= entry
|
27
|
+
|
28
|
+
#content
|
29
|
+
#alert.flash.alert You need to sign in or sign up before continuing.
|
30
|
+
%form#user_new.formtastic.user{"accept-charset" => "UTF-8", :action => "/users/sign_in", :method => "post"}
|
31
|
+
%div{:style => "margin: 0pt; padding: 0pt; display: inline;"}
|
32
|
+
%input{:name => "_snowman", :type => "hidden", :value => "\xE2\x98\x83"}/
|
33
|
+
%input{:name => "authenticity_token", :type => "hidden", :value => "U9J1bYde/Elhoeu6aUDT5rPF62TpojHFjnZ35TTl9u4="}/
|
34
|
+
%fieldset.inputs
|
35
|
+
%ol
|
36
|
+
%li#user_email_input.string.required
|
37
|
+
%label{:for => "user_email"}
|
38
|
+
Email
|
39
|
+
%abbr{:title => "required"} *
|
40
|
+
%input#user_email{:maxlength => "255", :name => "user[email]", :size => "50", :type => "text", :value => ""}/
|
41
|
+
%li#user_password_input.password.required
|
42
|
+
%label{:for => "user_password"}
|
43
|
+
Password
|
44
|
+
%abbr{:title => "required"} *
|
45
|
+
%input#user_password{:name => "user[password]", :size => "50", :type => "password"}/
|
46
|
+
%p.inline-hints Leave blank if you don't want to change it
|
47
|
+
%li#user_remember_me_input.boolean.optional
|
48
|
+
%label{:for => "user_remember_me"}
|
49
|
+
%input{:name => "user[remember_me]", :type => "hidden", :value => "0"}/
|
50
|
+
= succeed "Remember" do
|
51
|
+
%input#user_remember_me{:name => "user[remember_me]", :type => "checkbox", :value => "1"}/
|
52
|
+
me
|
53
|
+
%fieldset.buttons
|
54
|
+
%ol
|
55
|
+
%li.commit
|
56
|
+
%input#user_submit.create{:name => "commit", :type => "submit", :value => "Sign in"}/
|
57
|
+
%a{:href => "/users/sign_up"} Sign up
|
58
|
+
%br/
|
59
|
+
%a{:href => "/users/password/new"} Forgot your password?
|
60
|
+
%br/
|
61
|
+
|
62
|
+
#sidebar
|
File without changes
|
@@ -0,0 +1,38 @@
|
|
1
|
+
$blueprint-grid-columns : 24
|
2
|
+
$blueprint-grid-width : 30px
|
3
|
+
$blueprint-grid-margin : 10px
|
4
|
+
|
5
|
+
// Color definition
|
6
|
+
$dark_blue : #507aaa
|
7
|
+
$light_blue : #759fcf
|
8
|
+
$white : #ffffff
|
9
|
+
$gray : #555555
|
10
|
+
$link_color : $dark_blue
|
11
|
+
$link_color_hover : $light_blue
|
12
|
+
$bg_dark_blue : #AEB9CF
|
13
|
+
$red : red
|
14
|
+
|
15
|
+
// Font family definitions
|
16
|
+
=serif-font
|
17
|
+
font-family: Times, "Times New Roman", Georgia, serif
|
18
|
+
=sanserif-font
|
19
|
+
font-family: Verdana, Arial, Helvetica, sans-serif
|
20
|
+
|
21
|
+
// Font size definitions
|
22
|
+
$h1_size : 25px
|
23
|
+
$h2_size : 20px
|
24
|
+
$h3_size : 16px
|
25
|
+
$text_size : 14px
|
26
|
+
|
27
|
+
// Column widths
|
28
|
+
$column_header : $blueprint-grid-columns
|
29
|
+
$column_sidebar : 3
|
30
|
+
$column_content : $blueprint-grid-columns - $column_sidebar
|
31
|
+
$column_small_form : 7
|
32
|
+
$column_big_form : 10
|
33
|
+
|
34
|
+
// Content
|
35
|
+
$content_padding : 1em
|
36
|
+
|
37
|
+
// Borders
|
38
|
+
$border_radius : 5px
|
@@ -0,0 +1,107 @@
|
|
1
|
+
@import 'partials/content/table_list'
|
2
|
+
@import 'partials/content/icons'
|
3
|
+
@import 'partials/formtastic/formtastic_base'
|
4
|
+
@import 'partials/content/ajax_indicator'
|
5
|
+
@import 'partials/content/flash_errors'
|
6
|
+
@import 'partials/content/fancy_buttons'
|
7
|
+
@import 'partials/content/overview'
|
8
|
+
|
9
|
+
// Headers styling
|
10
|
+
h1,
|
11
|
+
h2,
|
12
|
+
h3
|
13
|
+
+sanserif-font
|
14
|
+
font-weight: bold
|
15
|
+
border-bottom: 1px solid #bbbbbb
|
16
|
+
h2
|
17
|
+
font-size: $h2_size
|
18
|
+
margin-bottom: $h2_size
|
19
|
+
h1
|
20
|
+
font-size: $h1_size
|
21
|
+
margin-bottom: $h1_size
|
22
|
+
h3
|
23
|
+
font-size: $h3_size
|
24
|
+
margin-bottom: $h3_size
|
25
|
+
|
26
|
+
a
|
27
|
+
text-decoration: none
|
28
|
+
color: $link_color
|
29
|
+
&:hover
|
30
|
+
color: $link_color_hover
|
31
|
+
|
32
|
+
// Cash up styling
|
33
|
+
#cash_register_new,
|
34
|
+
#new_day
|
35
|
+
+column($column_small_form)
|
36
|
+
#cash_register_new
|
37
|
+
ul
|
38
|
+
width: 50%
|
39
|
+
float: left
|
40
|
+
&.second
|
41
|
+
li
|
42
|
+
width: 141px
|
43
|
+
float: right
|
44
|
+
label
|
45
|
+
width: 45px
|
46
|
+
float: left
|
47
|
+
input
|
48
|
+
width: 90px
|
49
|
+
#cash
|
50
|
+
float: left
|
51
|
+
color: red
|
52
|
+
text-decoration: underline
|
53
|
+
font-weight: bold
|
54
|
+
#result
|
55
|
+
width: 100%
|
56
|
+
margin-top: 10px
|
57
|
+
padding-top: 10px
|
58
|
+
border-top: 1px solid black
|
59
|
+
label
|
60
|
+
font-weight: bold
|
61
|
+
margin-right: 15px
|
62
|
+
input
|
63
|
+
width: 100%
|
64
|
+
li:first-child
|
65
|
+
margin-bottom: 10px
|
66
|
+
#new_day
|
67
|
+
label
|
68
|
+
width: 160px
|
69
|
+
input
|
70
|
+
width: 100px
|
71
|
+
float: right
|
72
|
+
&#day_submit
|
73
|
+
width: 100%
|
74
|
+
|
75
|
+
// Form styling
|
76
|
+
form.formtastic
|
77
|
+
+float-form
|
78
|
+
|
79
|
+
#day_edit
|
80
|
+
table
|
81
|
+
th
|
82
|
+
padding-right: 20px
|
83
|
+
|
84
|
+
// Accounting **
|
85
|
+
tr.currency, th.currency
|
86
|
+
text-align: right
|
87
|
+
|
88
|
+
.booking_list tr
|
89
|
+
td
|
90
|
+
background-color: white
|
91
|
+
border-left: 0px none
|
92
|
+
border-right: 0px none
|
93
|
+
border-bottom: 1px solid
|
94
|
+
border-left: 0px none
|
95
|
+
border-right: 0px none
|
96
|
+
|
97
|
+
// Snippet from Redmine.css
|
98
|
+
.contextual
|
99
|
+
float: right
|
100
|
+
white-space: nowrap
|
101
|
+
line-height: 1.4em
|
102
|
+
margin-top: 5px
|
103
|
+
padding-left: 10px
|
104
|
+
font-size: 0.9em
|
105
|
+
input
|
106
|
+
font-size: 0.9em
|
107
|
+
// End of snippet
|
@@ -0,0 +1,173 @@
|
|
1
|
+
// Imports
|
2
|
+
@import "compass/css3/box-shadow"
|
3
|
+
@import 'partials/formtastic'
|
4
|
+
@import 'partials/formtastic_cyt'
|
5
|
+
@import 'partials/pagination'
|
6
|
+
|
7
|
+
// CyT **
|
8
|
+
body
|
9
|
+
color: #484848
|
10
|
+
background: #f3f3f3
|
11
|
+
+sanserif-font
|
12
|
+
|
13
|
+
#container
|
14
|
+
margin-top: $h2_size
|
15
|
+
width: 95%
|
16
|
+
|
17
|
+
#header
|
18
|
+
background-color: #aeb9cf
|
19
|
+
height: 54px
|
20
|
+
margin: 0
|
21
|
+
color: #f8f8f8
|
22
|
+
padding: 4px 8px 0px 6px
|
23
|
+
position: relative
|
24
|
+
+border-radius($border_radius)
|
25
|
+
border: 1px solid #dddddd
|
26
|
+
a
|
27
|
+
color: #f8f8f8
|
28
|
+
|
29
|
+
// Content
|
30
|
+
#content
|
31
|
+
background-color: white
|
32
|
+
margin: 0px
|
33
|
+
border: 1px solid #dddddd
|
34
|
+
padding: $content_padding
|
35
|
+
+sanserif-font
|
36
|
+
font-size: $text_size
|
37
|
+
+border-radius($border_radius)
|
38
|
+
|
39
|
+
* html #content
|
40
|
+
padding-left: 0
|
41
|
+
margin-top: 0px
|
42
|
+
padding: $content_padding
|
43
|
+
|
44
|
+
html>body
|
45
|
+
#content, #sidebar
|
46
|
+
min-height: 600px
|
47
|
+
|
48
|
+
* html body
|
49
|
+
#content, #sidebar
|
50
|
+
height: 600px
|
51
|
+
|
52
|
+
// Sidebar
|
53
|
+
#sidebar
|
54
|
+
background-color: white
|
55
|
+
margin: 0px
|
56
|
+
border: 1px solid #dddddd
|
57
|
+
padding: $content_padding
|
58
|
+
+sanserif-font
|
59
|
+
font-size: $text_size
|
60
|
+
+border-radius($border_radius)
|
61
|
+
|
62
|
+
// Login form
|
63
|
+
#login-form
|
64
|
+
table
|
65
|
+
margin-top: 5em
|
66
|
+
padding: 1em
|
67
|
+
margin-left: auto
|
68
|
+
margin-right: auto
|
69
|
+
border: 2px solid #fdbf3b
|
70
|
+
background-color: #ffebc1
|
71
|
+
td
|
72
|
+
padding: 6px
|
73
|
+
label
|
74
|
+
font-weight: bold
|
75
|
+
|
76
|
+
table th
|
77
|
+
text-align: left
|
78
|
+
font-size: 90%
|
79
|
+
|
80
|
+
h2, h3, h4
|
81
|
+
border-bottom: 1px solid #bbbbbb
|
82
|
+
|
83
|
+
// Welcome
|
84
|
+
.welcome
|
85
|
+
margin: 2em
|
86
|
+
margin-bottom: 3.5em
|
87
|
+
p
|
88
|
+
width: 100%
|
89
|
+
font-size: 13pt
|
90
|
+
font-variant: italic
|
91
|
+
img
|
92
|
+
margin-right: 0.5em
|
93
|
+
float: left
|
94
|
+
|
95
|
+
// Forms
|
96
|
+
.fieldWithErrors
|
97
|
+
display: inline
|
98
|
+
input
|
99
|
+
border-color: #dd0000
|
100
|
+
|
101
|
+
// Icons
|
102
|
+
td.action-links
|
103
|
+
border: none 0px
|
104
|
+
|
105
|
+
th.action-links
|
106
|
+
width: 40px
|
107
|
+
|
108
|
+
.contextual48
|
109
|
+
float: right
|
110
|
+
white-space: nowrap
|
111
|
+
line-height: 1.4em
|
112
|
+
margin-top: 30px
|
113
|
+
padding-left: 10px
|
114
|
+
font-size: 0.9em
|
115
|
+
|
116
|
+
.icon
|
117
|
+
background-position: 0% 40%
|
118
|
+
background-repeat: no-repeat
|
119
|
+
padding-left: 20px
|
120
|
+
padding-top: 2px
|
121
|
+
padding-bottom: 3px
|
122
|
+
|
123
|
+
.icon22
|
124
|
+
background-position: 0% 40%
|
125
|
+
background-repeat: no-repeat
|
126
|
+
padding-left: 26px
|
127
|
+
line-height: 22px
|
128
|
+
vertical-align: middle
|
129
|
+
|
130
|
+
.icon48
|
131
|
+
background-position: 0% 40%
|
132
|
+
background-repeat: no-repeat
|
133
|
+
padding-left: 60px
|
134
|
+
line-height: 48px
|
135
|
+
vertical-align: middle
|
136
|
+
|
137
|
+
.icon-add
|
138
|
+
background-image: url(/images/16x16/add.png)
|
139
|
+
|
140
|
+
.icon-delete
|
141
|
+
background-image: url(/images/16x16/remove.png)
|
142
|
+
|
143
|
+
.icon-edit
|
144
|
+
background-image: url(/images/16x16/edit.png)
|
145
|
+
|
146
|
+
.icon-index
|
147
|
+
background-image: url(/images/16x16/index.png)
|
148
|
+
|
149
|
+
// restful-authentication
|
150
|
+
#right-menu
|
151
|
+
float: right
|
152
|
+
div
|
153
|
+
margin: 0.2em
|
154
|
+
|
155
|
+
#user-bar-greeting, #user-bar-action
|
156
|
+
display: inline
|
157
|
+
|
158
|
+
#user-bar-greeting a, #user-bar-action a
|
159
|
+
font-weight: bold
|
160
|
+
|
161
|
+
// Navigation
|
162
|
+
.navigation_section
|
163
|
+
margin: 2em
|
164
|
+
margin-bottom: 3.5em
|
165
|
+
img
|
166
|
+
margin-right: 1em
|
167
|
+
float: left
|
168
|
+
ul
|
169
|
+
list-style-type: none
|
170
|
+
li
|
171
|
+
text-align: left
|
172
|
+
font-weight: bold
|
173
|
+
font-style: italic
|
@@ -0,0 +1,203 @@
|
|
1
|
+
/* -------------------------------------------------------------------------------------------------
|
2
|
+
*
|
3
|
+
*It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after
|
4
|
+
*this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs.
|
5
|
+
*This will allow you to update formtastic.css with new releases without clobbering your own changes.
|
6
|
+
*
|
7
|
+
*This stylesheet forms part of the Formtastic Rails Plugin
|
8
|
+
*(c) 2008 Justin French
|
9
|
+
*
|
10
|
+
*--------------------------------------------------------------------------------------------------
|
11
|
+
|
12
|
+
/* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just form.formtastic
|
13
|
+
*--------------------------------------------------------------------------------------------------
|
14
|
+
|
15
|
+
form.formtastic
|
16
|
+
margin: 0
|
17
|
+
padding: 0
|
18
|
+
ul, ol, li, fieldset, legend, input, textarea, select, p
|
19
|
+
margin: 0
|
20
|
+
padding: 0
|
21
|
+
fieldset
|
22
|
+
border: 0
|
23
|
+
em, strong
|
24
|
+
font-style: normal
|
25
|
+
font-weight: normal
|
26
|
+
ol, ul
|
27
|
+
list-style: none
|
28
|
+
abbr, acronym
|
29
|
+
border: 0
|
30
|
+
font-variant: normal
|
31
|
+
input, textarea, select
|
32
|
+
font-family: inherit
|
33
|
+
font-size: inherit
|
34
|
+
font-weight: inherit
|
35
|
+
input, textarea, select
|
36
|
+
font-size: 100%
|
37
|
+
legend
|
38
|
+
white-space: normal
|
39
|
+
color: black
|
40
|
+
ul.errors
|
41
|
+
color: #cc0000
|
42
|
+
margin: 0.5em 0 1.5em 25%
|
43
|
+
list-style: square
|
44
|
+
li
|
45
|
+
padding: 0
|
46
|
+
border: none
|
47
|
+
display: list-item
|
48
|
+
fieldset
|
49
|
+
&.inputs
|
50
|
+
|
51
|
+
&.buttons
|
52
|
+
padding-left: 25%
|
53
|
+
ol
|
54
|
+
|
55
|
+
&.buttons li
|
56
|
+
float: left
|
57
|
+
padding-right: 0.5em
|
58
|
+
display: inline-block
|
59
|
+
&:after
|
60
|
+
content: "."
|
61
|
+
display: block
|
62
|
+
height: 0
|
63
|
+
clear: both
|
64
|
+
visibility: hidden
|
65
|
+
|
66
|
+
// SEMANTIC ERRORS
|
67
|
+
// FIELDSETS & LISTS
|
68
|
+
// clearfixing the fieldsets
|
69
|
+
html[xmlns] form.formtastic fieldset
|
70
|
+
display: block
|
71
|
+
|
72
|
+
* html form.formtastic fieldset
|
73
|
+
height: 1%
|
74
|
+
|
75
|
+
// INPUT LIs
|
76
|
+
form.formtastic fieldset > ol > li
|
77
|
+
margin-bottom: 1.5em
|
78
|
+
display: inline-block
|
79
|
+
&:after
|
80
|
+
content: "."
|
81
|
+
display: block
|
82
|
+
height: 0
|
83
|
+
clear: both
|
84
|
+
visibility: hidden
|
85
|
+
|
86
|
+
// clearfixing the li's
|
87
|
+
html[xmlns] form.formtastic fieldset > ol > li
|
88
|
+
display: block
|
89
|
+
|
90
|
+
* html form.formtastic fieldset > ol > li
|
91
|
+
height: 1%
|
92
|
+
|
93
|
+
form.formtastic fieldset
|
94
|
+
> ol > li
|
95
|
+
&.required, &.optional, &.error
|
96
|
+
label
|
97
|
+
display: block
|
98
|
+
width: 25%
|
99
|
+
float: left
|
100
|
+
padding-top: 0.2em
|
101
|
+
> li label
|
102
|
+
line-height: 100%
|
103
|
+
padding-top: 0
|
104
|
+
input
|
105
|
+
line-height: 100%
|
106
|
+
vertical-align: middle
|
107
|
+
margin-top: -0.1em
|
108
|
+
fieldset
|
109
|
+
position: relative
|
110
|
+
legend
|
111
|
+
position: absolute
|
112
|
+
width: 95%
|
113
|
+
padding-top: 0.1em
|
114
|
+
left: 0px
|
115
|
+
span, &.label label
|
116
|
+
position: absolute
|
117
|
+
ol
|
118
|
+
float: left
|
119
|
+
width: 74%
|
120
|
+
margin: 0
|
121
|
+
padding: 0 0 0 25%
|
122
|
+
li
|
123
|
+
padding: 0
|
124
|
+
border: 0
|
125
|
+
p
|
126
|
+
&.inline-hints
|
127
|
+
color: #666666
|
128
|
+
margin: 0.5em 0 0 25%
|
129
|
+
&.inline-errors
|
130
|
+
color: #cc0000
|
131
|
+
margin: 0.5em 0 0 25%
|
132
|
+
ul.errors
|
133
|
+
color: #cc0000
|
134
|
+
margin: 0.5em 0 0 25%
|
135
|
+
list-style: square
|
136
|
+
li
|
137
|
+
padding: 0
|
138
|
+
border: none
|
139
|
+
display: list-item
|
140
|
+
&.string input
|
141
|
+
max-width: 74%
|
142
|
+
&.password input
|
143
|
+
max-width: 13em
|
144
|
+
&.numeric input
|
145
|
+
max-width: 74%
|
146
|
+
&.text textarea
|
147
|
+
width: 74%
|
148
|
+
ol li.hidden
|
149
|
+
display: none
|
150
|
+
|
151
|
+
// LABELS
|
152
|
+
// NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
|
153
|
+
// INLINE HINTS
|
154
|
+
// INLINE ERRORS
|
155
|
+
// STRING & NUMERIC OVERRIDES
|
156
|
+
// TEXTAREA OVERRIDES
|
157
|
+
|
158
|
+
// HIDDEN OVERRIDES
|
159
|
+
// The dual declarations are required because of our clearfix display hack on the LIs, which is more
|
160
|
+
// specific than the more general rule below.
|
161
|
+
// TODO: Revist the clearing hack and this rule.
|
162
|
+
html[xmlns] form.formtastic fieldset ol li.hidden
|
163
|
+
display: none
|
164
|
+
|
165
|
+
// BOOLEAN OVERRIDES
|
166
|
+
form.formtastic fieldset > ol > li
|
167
|
+
&.boolean label
|
168
|
+
padding-left: 25%
|
169
|
+
width: auto
|
170
|
+
input
|
171
|
+
margin: 0 0.5em 0 0.2em
|
172
|
+
&.radio fieldset ol
|
173
|
+
margin-bottom: -0.6em
|
174
|
+
li
|
175
|
+
margin: 0.1em 0 0.5em 0
|
176
|
+
label
|
177
|
+
float: none
|
178
|
+
width: 100%
|
179
|
+
input
|
180
|
+
margin-right: 0.2em
|
181
|
+
&.check_boxes fieldset ol
|
182
|
+
margin-bottom: -0.6em
|
183
|
+
li
|
184
|
+
margin: 0.1em 0 0.5em 0
|
185
|
+
label
|
186
|
+
float: none
|
187
|
+
width: 100%
|
188
|
+
input
|
189
|
+
margin-right: 0.2em
|
190
|
+
&.date fieldset ol li, &.time fieldset ol li, &.datetime fieldset ol li
|
191
|
+
float: left
|
192
|
+
width: auto
|
193
|
+
margin: 0 0.3em 0 0
|
194
|
+
&.date fieldset ol li label, &.time fieldset ol li label, &.datetime fieldset ol li label
|
195
|
+
display: none
|
196
|
+
&.date fieldset ol li label input, &.time fieldset ol li label input, &.datetime fieldset ol li label input
|
197
|
+
display: inline
|
198
|
+
margin: 0
|
199
|
+
padding: 0
|
200
|
+
|
201
|
+
// RADIO OVERRIDES
|
202
|
+
// CHECK BOXES (COLLECTION) OVERRIDES
|
203
|
+
// DATE & TIME OVERRIDES
|