binda 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +83 -25
  3. data/app/assets/javascripts/binda/application.js +3 -3
  4. data/app/assets/javascripts/binda/components/bootstrap.js +3 -4
  5. data/app/assets/javascripts/binda/components/field_group_editor.js +10 -10
  6. data/app/assets/javascripts/binda/components/field_setting_choices.js +61 -49
  7. data/app/assets/javascripts/binda/components/fileupload.js +135 -118
  8. data/app/assets/javascripts/binda/components/form_item.js +65 -65
  9. data/app/assets/javascripts/binda/components/form_item_editor.js +19 -19
  10. data/app/assets/javascripts/binda/components/form_item_image.js +11 -13
  11. data/app/assets/javascripts/binda/components/form_item_repeater.js +77 -71
  12. data/app/assets/javascripts/binda/components/login-shader.js +171 -164
  13. data/app/assets/javascripts/binda/components/login_form.js +65 -73
  14. data/app/assets/javascripts/binda/components/radio-toggle.js +8 -12
  15. data/app/assets/javascripts/binda/components/select2.js +19 -14
  16. data/app/assets/javascripts/binda/components/sortable.js +76 -71
  17. data/app/assets/javascripts/binda/dist/binda.bundle.js +735 -727
  18. data/app/assets/javascripts/binda/index.js +49 -35
  19. data/app/assets/stylesheets/binda/components/assets_manager.scss +13 -22
  20. data/app/assets/stylesheets/binda/components/b-alert.scss +18 -14
  21. data/app/assets/stylesheets/binda/components/b-btn.scss +24 -43
  22. data/app/assets/stylesheets/binda/components/field_setting_choices.scss +16 -31
  23. data/app/assets/stylesheets/binda/components/fileupload.scss +25 -42
  24. data/app/assets/stylesheets/binda/components/form_item.scss +51 -93
  25. data/app/assets/stylesheets/binda/components/form_item_choices.scss +7 -10
  26. data/app/assets/stylesheets/binda/components/login.scss +2 -2
  27. data/app/assets/stylesheets/binda/components/main_header.scss +5 -10
  28. data/app/assets/stylesheets/binda/components/main_sidebar.scss +42 -46
  29. data/app/assets/stylesheets/binda/components/main_sortable_table.scss +12 -21
  30. data/app/assets/stylesheets/binda/components/main_table.scss +18 -35
  31. data/app/assets/stylesheets/binda/components/popup_warning.scss +14 -27
  32. data/app/assets/stylesheets/binda/components/select2.scss +46 -48
  33. data/app/assets/stylesheets/binda/components/sortable.scss +25 -45
  34. data/app/assets/stylesheets/binda/components/standard-form.scss +43 -73
  35. data/app/assets/stylesheets/binda/controllers/users_sessions_new.scss +52 -89
  36. data/app/assets/stylesheets/binda/index.scss +0 -1
  37. data/app/assets/stylesheets/binda/settings/buttons.scss +9 -10
  38. data/app/assets/stylesheets/binda/settings/common.scss +17 -22
  39. data/app/assets/stylesheets/binda/settings/fonts.scss +112 -67
  40. data/app/assets/stylesheets/binda/settings/tiny_mce_overrides.scss +20 -36
  41. data/app/assets/stylesheets/binda/settings/variables.scss +38 -43
  42. data/app/controllers/binda/choices_controller.rb +14 -11
  43. data/app/controllers/binda/components_controller.rb +6 -4
  44. data/app/controllers/binda/structures_controller.rb +7 -3
  45. data/app/helpers/binda/components_helper.rb +69 -3
  46. data/app/helpers/binda/field_groups_helper.rb +16 -6
  47. data/app/helpers/binda/structures_helper.rb +1 -4
  48. data/app/models/binda/application_record.rb +4 -1
  49. data/app/models/binda/asset.rb +3 -1
  50. data/app/models/binda/b.rb +1 -0
  51. data/app/models/binda/category.rb +1 -0
  52. data/app/models/binda/checkbox.rb +2 -0
  53. data/app/models/binda/choice.rb +74 -41
  54. data/app/models/binda/component.rb +1 -1
  55. data/app/models/binda/date.rb +4 -0
  56. data/app/models/binda/deprecation.rb +7 -0
  57. data/app/models/binda/field_group.rb +16 -3
  58. data/app/models/binda/field_setting.rb +168 -41
  59. data/app/models/binda/image.rb +1 -0
  60. data/app/models/binda/radio.rb +2 -0
  61. data/app/models/binda/relation.rb +3 -0
  62. data/app/models/binda/repeater.rb +3 -0
  63. data/app/models/binda/selection.rb +237 -0
  64. data/app/models/binda/string.rb +4 -0
  65. data/app/models/binda/structure.rb +25 -14
  66. data/app/models/binda/text.rb +9 -0
  67. data/app/models/binda/video.rb +1 -0
  68. data/app/models/concerns/binda/default_helpers.rb +40 -31
  69. data/app/models/concerns/binda/deprecations.rb +6 -0
  70. data/app/models/concerns/binda/fieldable_association_helpers.rb +366 -0
  71. data/app/models/concerns/binda/fieldable_associations.rb +32 -369
  72. data/app/views/binda/boards/edit.html.erb +15 -2
  73. data/app/views/binda/categories/_form.html.erb +24 -51
  74. data/app/views/binda/categories/edit.html.erb +23 -3
  75. data/app/views/binda/categories/index.html.erb +49 -25
  76. data/app/views/binda/categories/new.html.erb +21 -2
  77. data/app/views/binda/components/edit.html.erb +27 -4
  78. data/app/views/binda/components/index.html.erb +47 -50
  79. data/app/views/binda/components/new.html.erb +12 -2
  80. data/app/views/binda/components/sort_index.html.erb +28 -13
  81. data/app/views/binda/field_groups/_form_body.html.erb +43 -82
  82. data/app/views/binda/field_groups/_form_item.html.erb +3 -120
  83. data/app/views/binda/field_groups/_form_section.html.erb +11 -16
  84. data/app/views/binda/field_groups/_form_section_repeater.html.erb +7 -15
  85. data/app/views/binda/field_groups/edit.html.erb +14 -2
  86. data/app/views/binda/field_groups/form_item/_form_item_choice_editor.html.erb +11 -0
  87. data/app/views/binda/field_groups/form_item/_form_item_editor.html.erb +14 -0
  88. data/app/views/binda/field_groups/form_item/_form_item_header.html.erb +25 -0
  89. data/app/views/binda/field_groups/form_item/_form_item_new_editor.html.erb +8 -0
  90. data/app/views/binda/field_groups/form_item/_form_item_persisted_editor.html.erb +27 -0
  91. data/app/views/binda/field_groups/form_item/form_item_choice/_form_item_allow_null_choice.html.erb +11 -0
  92. data/app/views/binda/field_groups/form_item/form_item_choice/_form_item_choice_header.html.erb +11 -0
  93. data/app/views/binda/field_groups/form_item/form_item_choice/_form_item_default_choice.html.erb +11 -0
  94. data/app/views/binda/field_groups/form_item/form_item_choice/_form_item_new_choice.html.erb +16 -0
  95. data/app/views/binda/field_groups/form_item/form_item_choice/_form_item_persisted_choices.html.erb +16 -0
  96. data/app/views/binda/field_groups/new.html.erb +14 -2
  97. data/app/views/binda/field_settings/_form_body.html.erb +1 -3
  98. data/app/views/binda/field_settings/edit.html.erb +1 -1
  99. data/app/views/binda/field_settings/new.html.erb +1 -1
  100. data/app/views/binda/fieldable/_form_body.html.erb +24 -72
  101. data/app/views/binda/fieldable/_form_item_date.html.erb +1 -4
  102. data/app/views/binda/fieldable/_form_item_image.html.erb +3 -7
  103. data/app/views/binda/fieldable/_form_item_new_repeater.html.erb +0 -13
  104. data/app/views/binda/fieldable/_form_item_selections.html.erb +20 -112
  105. data/app/views/binda/fieldable/form_item_selections/_form_item_checkbox.html.erb +34 -0
  106. data/app/views/binda/fieldable/form_item_selections/_form_item_radio.html.erb +28 -0
  107. data/app/views/binda/fieldable/form_item_selections/_form_item_selection.html.erb +30 -0
  108. data/app/views/binda/manage/users/_form_body.html.erb +1 -31
  109. data/app/views/binda/manage/users/edit.html.erb +12 -2
  110. data/app/views/binda/manage/users/index.html.erb +36 -19
  111. data/app/views/binda/manage/users/new.html.erb +14 -3
  112. data/app/views/binda/structures/_form_body.html.erb +2 -25
  113. data/app/views/binda/structures/_form_section.html.erb +43 -65
  114. data/app/views/binda/structures/_form_sidebar.html.erb +19 -12
  115. data/app/views/binda/structures/edit.html.erb +20 -3
  116. data/app/views/binda/structures/index.html.erb +46 -26
  117. data/app/views/binda/structures/new.html.erb +13 -2
  118. data/app/views/binda/structures/sort_index.html.erb +37 -17
  119. data/app/views/binda/users/sessions/new.html.erb +25 -20
  120. data/app/views/layouts/binda/_form_errors.html.erb +10 -0
  121. data/app/views/layouts/binda/_sidebar.html.erb +6 -6
  122. data/app/views/layouts/binda/application.html.erb +1 -1
  123. data/config/initializers/carrierwave.rb +3 -2
  124. data/config/locales/en.yml +56 -12
  125. data/config/tinymce.yml +2 -2
  126. data/db/migrate/1_create_binda_tables.rb +1 -1
  127. data/lib/binda/version.rb +1 -1
  128. data/lib/generators/binda/setup/setup_generator.rb +2 -2
  129. data/lib/tasks/add_default_choice_to_all_selections_with_no_choices_task.rake +6 -0
  130. metadata +58 -8
  131. data/app/assets/stylesheets/binda/components/form_item_image.scss +0 -0
  132. data/app/views/binda/field_groups/_form_item_choice.erb +0 -104
@@ -1,47 +1,38 @@
1
-
2
1
  // STANDARD FORM -- GENERAL STYLES
3
2
 
4
- .standard-form
5
- {
3
+ .standard-form {
6
4
  width: 100%;
7
5
  }
8
6
 
9
- .standard-form--body
10
- {
7
+ .standard-form--body {
11
8
  float: left;
12
9
  width: 75%;
13
10
  padding-right: 24px;
14
11
  vertical-align: top;
15
12
  }
16
13
 
17
-
18
14
  // STANDARD FORM -- SIDEBAR
19
15
 
20
- .standard-form--sidebar
21
- {
16
+ .standard-form--sidebar {
22
17
  float: left;
23
18
  width: 25%;
24
19
  }
25
20
 
26
-
27
21
  // STANDARD FORM -- SECTION
28
22
 
29
- .standard-form--container
30
- {
23
+ .standard-form--container {
31
24
  overflow-y: hidden;
32
25
  margin-bottom: 48px;
33
26
  border-bottom: 1px solid $color-gray-lighter;
34
27
  background-color: $color-white;
35
28
 
36
- &.field-settings-container
37
- {
29
+ &.field-settings-container {
38
30
  margin-bottom: 0 !important;
39
31
  border-right: none !important;
40
32
  border-left: none !important;
41
33
  }
42
-
43
- .control-label
44
- {
34
+
35
+ .control-label {
45
36
  font-weight: bold;
46
37
  margin-top: 0;
47
38
  margin-bottom: 8px;
@@ -49,74 +40,67 @@
49
40
  @extend .b-h4;
50
41
  }
51
42
 
52
- .control-label-required
53
- {
43
+ .control-label-required {
54
44
  @extend .text-muted;
55
45
  }
56
46
 
57
- .has-error
58
- {
47
+ .has-error {
59
48
  .control-label-required,
60
49
  .control-label,
61
- span.help-block
62
- {
50
+ span.help-block {
63
51
  color: $color-danger;
64
52
  }
65
53
  }
66
54
 
67
- .form-group
68
- {
55
+ .form-group {
69
56
  margin-bottom: 0;
70
57
  padding: 20px 12px 28px;
71
58
  border-top: 1px solid $color-gray-lightest;
72
59
  }
73
60
 
74
- .form-control
75
- {
76
- transition: border .3s ease-in-out;
61
+ .form-control {
62
+ transition: border 0.3s ease-in-out;
77
63
  border: none;
78
64
  border: 1px solid transparent;
79
65
  background-color: $color-gray-lightest;
80
66
  box-shadow: none;
81
67
 
82
68
  &:hover,
83
- &:focus
84
- {
69
+ &:focus {
85
70
  border: 1px solid $color-gray-lighter;
86
71
  outline: none;
87
72
  background-image: none;
88
73
  box-shadow: none;
89
74
  }
90
75
 
91
- &.disabled
92
- {
76
+ &.disabled {
93
77
  color: $color-gray-lighter;
94
78
  background-color: $color-gray-lightest;
95
79
 
96
- &:hover
97
- {
80
+ &:hover {
98
81
  border: 1px solid transparent;
99
82
  }
100
83
  }
101
84
  }
102
- .help-block
103
- {
85
+ .help-block {
104
86
  color: $color-gray;
105
87
  }
106
88
  }
107
89
 
108
-
109
90
  // STANDARD FORM -- HEADER
110
91
 
111
- .standard-form--header
112
- {
92
+ .standard-form--header {
113
93
  padding: 6px 12px;
114
94
  color: $color-white;
115
- background-image: linear-gradient(to right, $color-gray-darker, lighten( $color-gray-darker, 6%));
95
+ background-image: linear-gradient(
96
+ to right,
97
+ $color-gray-darker,
98
+ lighten($color-gray-darker, 6%)
99
+ );
116
100
 
117
101
  a,
118
- small
119
- {
102
+ small,
103
+ i {
120
104
  // font-weight: bold;
121
105
  margin-bottom: 0;
122
106
  color: $color-white;
@@ -125,88 +109,74 @@
125
109
 
126
110
  .standard-form--boolean,
127
111
  .standard-form--radio,
128
- .standard-form--checkbox
129
- {
130
- .standard-form--input-box
131
- {
112
+ .standard-form--checkbox {
113
+ .standard-form--input-box {
132
114
  position: relative;
133
115
  top: 2px;
134
116
  display: inline-block;
135
117
  width: 1em;
136
118
  height: 1em;
137
119
  margin-right: 5px;
138
- transition: background-color .2s ease-in-out;
120
+ transition: background-color 0.2s ease-in-out;
139
121
  border: 1px solid $text-color;
140
122
  }
141
123
 
142
- input[type='radio'],
143
- input[type='checkbox']
144
- {
124
+ input[type="radio"],
125
+ input[type="checkbox"] {
145
126
  position: relative;
146
127
  display: inline-block;
147
128
  width: 1px;
148
129
  height: 1px;
149
- transition: background-color .3s ease-in-out;
130
+ transition: background-color 0.3s ease-in-out;
150
131
  opacity: 0;
151
- &:hover + span
152
- {
132
+ &:hover + span {
153
133
  background-color: $color-gray-lighter;
154
134
  }
155
- &:checked + span
156
- {
135
+ &:checked + span {
157
136
  background-color: $color-gray-dark;
158
137
  }
159
138
  }
160
139
  }
161
140
 
162
141
  .standard-form--boolean label span,
163
- .standard-form--radio label span
164
- {
142
+ .standard-form--radio label span {
165
143
  border-radius: 1em;
166
144
  }
167
145
 
168
- .standard-form--secondary-actions
169
- {
146
+ .standard-form--secondary-actions {
170
147
  display: inline-block;
171
148
  width: 100%;
172
149
  padding: 0 12px 28px;
173
150
 
174
- .b-btn-settings:last-child
175
- {
151
+ .b-btn-settings:last-child {
176
152
  margin-bottom: 0;
177
153
  }
178
154
  }
179
155
 
180
- .standard-form--main-actions
181
- {
156
+ .standard-form--main-actions {
182
157
  display: block;
183
158
  float: left;
184
159
  width: 100%;
185
- padding: 20px 12px; // Padding bottom is 20px instead of 28px because there shouldn't be any heading (or label) preceding the main-actions buttons
160
+ padding: 20px 12px; // Padding bottom is 20px instead of 28px because there shouldn't be any heading (or label) preceding the main-actions buttons
186
161
  border-top: 1px solid $color-gray-lightest;
187
162
  }
188
163
 
189
164
  .standard-form--secondary-actions,
190
- .standard-form--main-actions
191
- {
192
- .b-btn-settings:last-child
193
- {
165
+ .standard-form--main-actions {
166
+ .b-btn-settings:last-child {
194
167
  margin-bottom: 0;
195
168
  }
196
169
  }
197
170
 
198
- .standard-form--suggestion
199
- {
171
+ .standard-form--suggestion {
200
172
  width: 100%;
201
173
  padding: 20px 12px;
202
174
  border-top: 1px solid $color-gray-lightest;
203
175
  }
204
176
 
205
- .standard-form--hint-on-new-record
206
- {
177
+ .standard-form--hint-on-new-record {
207
178
  padding: 12px;
208
179
  }
209
180
 
210
181
  .standard-form--choices-header {
211
-
212
- }
182
+ }
@@ -1,14 +1,10 @@
1
- body.sessions-new.devise-view
2
- {
3
-
4
- #main-container
5
- {
1
+ body.sessions-new.devise-view {
2
+ #main-container {
6
3
  position: relative;
7
4
  height: 100vh;
8
5
  margin-left: 0;
9
6
  }
10
- #main-content
11
- {
7
+ #main-content {
12
8
  position: absolute;
13
9
  top: 50%;
14
10
  left: 50%;
@@ -19,108 +15,96 @@ body.sessions-new.devise-view
19
15
  background-color: transparent;
20
16
  }
21
17
 
22
- canvas
23
- {
18
+ canvas {
24
19
  top: 0;
25
20
  left: 0;
26
21
  width: 100vw;
27
22
  height: 100vw;
28
23
  }
29
24
 
30
- .login--header
31
- {
25
+ .login--header {
32
26
  position: fixed;
33
27
  top: 3em;
34
28
  right: 0;
35
29
  left: 0;
36
30
  text-align: center;
37
- p
38
- {
31
+ p {
39
32
  @extend .b-h4;
40
33
  color: $color-white;
41
34
  }
42
35
  }
43
36
 
44
- .login--footer
45
- {
37
+ .login--footer {
46
38
  position: fixed;
47
39
  bottom: 1em;
48
40
  right: 0;
49
41
  left: 0;
50
42
  text-align: center;
51
- a, a:hover, a:visited
52
- {
43
+ a,
44
+ a:hover,
45
+ a:visited {
53
46
  color: $color-white;
54
47
  opacity: 0.6;
55
48
  }
56
49
  }
57
50
 
58
- .login .form-group
59
- {
51
+ .login .form-group {
60
52
  // override Binda standard form style
61
53
  margin-bottom: 0;
62
54
  }
63
55
 
64
- .login--form
65
- {
56
+ .login--form {
66
57
  position: relative;
67
58
  width: 100%;
68
59
  margin: 0 auto;
69
60
  padding: 2em 0;
70
61
 
71
- ol.login--questions
72
- {
62
+ ol.login--questions {
73
63
  position: relative;
74
64
  margin: 0;
75
65
  padding: 0;
76
66
  list-style: none;
77
- transition: height .4s;
67
+ transition: height 0.4s;
78
68
  }
79
69
 
80
- ol.login--questions::before
81
- {
70
+ ol.login--questions::before {
82
71
  position: absolute;
83
72
  bottom: 0;
84
73
  left: 0;
85
74
  width: 100%;
86
75
  height: 2px;
87
- content: '';
76
+ content: "";
88
77
  background-color: $color-white;
89
78
  }
90
79
 
91
- .login--questions li
92
- {
80
+ .login--questions li {
93
81
  position: relative;
94
82
  z-index: 100;
95
83
  visibility: hidden;
96
84
  height: 0;
97
- transition: visibility 0s .4s, height 0s .4s;
85
+ transition: visibility 0s 0.4s, height 0s 0.4s;
98
86
  }
99
87
 
100
- .login--questions li.login--current
101
- {
88
+ .login--questions li.login--current {
102
89
  visibility: visible;
103
90
  height: auto;
104
91
  transition: none;
105
92
  }
106
93
 
107
- .login--questions li > span
108
- {
94
+ .login--questions li > span {
109
95
  display: block;
110
96
  overflow: hidden;
111
97
  }
112
98
 
113
- .login--questions li > span label
114
- {
99
+ .login--questions li > span label {
115
100
  @extend .b-h4;
116
101
  display: block;
117
- transition: transform .4s;
102
+ transition: transform 0.4s;
118
103
  transform: translateY(-100%);
119
104
  color: $color-white;
120
105
  }
121
106
 
122
- .login--questions li.login--current > span label
123
- {
107
+ .login--questions li.login--current > span label {
124
108
  transition: none;
125
109
  transform: translateY(0);
126
110
  }
@@ -129,16 +113,15 @@ body.sessions-new.devise-view
129
113
  padding-right: 8px;
130
114
  }
131
115
 
132
- .login--questions input
133
- {
116
+ .login--questions input {
134
117
  font-size: 3em;
135
118
  line-height: 1;
136
119
  display: block;
137
120
  width: calc(100% - 2em);
138
121
  height: 2em;
139
- margin: .3em 0 0 0;
122
+ margin: 0.3em 0 0 0;
140
123
  padding: 0 1em 0 0;
141
- transition: opacity .3s;
124
+ transition: opacity 0.3s;
142
125
  opacity: 0;
143
126
  color: $color-white;
144
127
  border: none;
@@ -146,26 +129,22 @@ body.sessions-new.devise-view
146
129
  box-shadow: none;
147
130
  }
148
131
 
149
- .login--questions .login--current input
150
- {
132
+ .login--questions .login--current input {
151
133
  opacity: 1;
152
134
  }
153
135
 
154
- .login--questions input:focus
155
- {
136
+ .login--questions input:focus {
156
137
  outline: none;
157
138
  background-image: none;
158
139
  box-shadow: none;
159
140
  }
160
141
  }
161
142
 
162
- .login--show-next li.login--current > span label
163
- {
164
- animation: loginFromMoveUp .4s both;
143
+ .login--show-next li.login--current > span label {
144
+ animation: loginFromMoveUp 0.4s both;
165
145
  }
166
146
 
167
- .login--next
168
- {
147
+ .login--next {
169
148
  font-size: 2.5em;
170
149
  position: absolute;
171
150
  z-index: 100;
@@ -176,7 +155,7 @@ body.sessions-new.devise-view
176
155
  height: 2em;
177
156
  padding: 0;
178
157
  cursor: pointer;
179
- transition: transform .3s, opacity .3s;
158
+ transition: transform 0.3s, opacity 0.3s;
180
159
  transform: translateX(-20%);
181
160
  text-align: center;
182
161
  pointer-events: none;
@@ -188,21 +167,18 @@ body.sessions-new.devise-view
188
167
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
189
168
  }
190
169
 
191
- .login--next:hover
192
- {
170
+ .login--next:hover {
193
171
  transform: translateX(-20%) scale(1.1);
194
172
  }
195
173
 
196
- .login--next:focus
197
- {
174
+ .login--next:focus {
198
175
  outline: none;
199
176
  background-image: none;
200
177
  box-shadow: none;
201
178
  }
202
179
 
203
- .login--next::after
204
- {
205
- font-family: 'Font Awesome 5 Free';
180
+ .login--next::after {
181
+ font-family: "Font Awesome 5 Free";
206
182
  font-weight: 900;
207
183
  font-style: normal;
208
184
  font-variant: normal;
@@ -212,7 +188,7 @@ body.sessions-new.devise-view
212
188
  left: 0;
213
189
  width: 100%;
214
190
  height: 100%;
215
- content: '\f061';
191
+ content: "\f061";
216
192
  text-transform: none;
217
193
 
218
194
  speak: none;
@@ -220,20 +196,17 @@ body.sessions-new.devise-view
220
196
  -moz-osx-font-smoothing: grayscale;
221
197
  }
222
198
 
223
- .login--next.login--show
224
- {
199
+ .login--next.login--show {
225
200
  transform: translateX(0);
226
201
  pointer-events: auto;
227
202
  opacity: 1;
228
203
  }
229
204
 
230
- .login--submit-button
231
- {
205
+ .login--submit-button {
232
206
  display: none;
233
207
  margin-top: 20px;
234
208
 
235
- input[type='submit']
236
- {
209
+ input[type="submit"] {
237
210
  font-size: 14px;
238
211
  position: relative;
239
212
  left: 50%;
@@ -246,64 +219,54 @@ body.sessions-new.devise-view
246
219
  @extend .default-font;
247
220
  @extend .p;
248
221
  -webkit-appearance: none;
249
- -moz-appearance: none;
222
+ -moz-appearance: none;
250
223
  }
251
224
  }
252
225
 
253
- .login--radio-button
254
- {
226
+ .login--radio-button {
255
227
  margin-top: 2em;
256
228
 
257
- input[type='radio']
258
- {
229
+ input[type="radio"] {
259
230
  display: inline-block;
260
231
  width: 1px;
261
232
  height: 1px;
262
233
  opacity: 0;
263
- &:hover + label span
264
- {
234
+ &:hover + label span {
265
235
  background-color: $color-gray-lightest;
266
236
  }
267
- &:checked + label span
268
- {
237
+ &:checked + label span {
269
238
  background-color: $color-gray-lighter;
270
239
  }
271
240
  }
272
241
 
273
- label
274
- {
242
+ label {
275
243
  position: relative;
276
244
  color: $color-white;
277
245
 
278
- span
279
- {
246
+ span {
280
247
  position: relative;
281
248
  margin-top: 2px;
282
249
  display: inline-block;
283
250
  width: 1em;
284
251
  height: 1em;
285
252
  margin-right: 5px;
286
- transition: background-color .2s ease-in-out;
253
+ transition: background-color 0.2s ease-in-out;
287
254
  border: 1px solid $color-white;
288
255
  border-radius: 1em;
289
256
  }
290
257
  }
291
258
  }
292
259
  /* Remove IE clear cross */
293
- input[type=text]::-ms-clear
294
- {
260
+ input[type="text"]::-ms-clear {
295
261
  display: none;
296
262
  }
297
263
  }
298
264
 
299
- @keyframes loginFromMoveUp
300
- {
301
- from
302
- {
265
+ @keyframes loginFromMoveUp {
266
+ from {
303
267
  transform: translateY(100%);
304
268
  }
305
- to
306
- {
269
+ to {
307
270
  transform: translateY(0);
308
271
  }
309
272
  }