para 0.6.9 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/para/admin/tangram-mosaic.png +0 -0
  3. data/app/assets/images/para/admin/template-section.svg +23 -0
  4. data/app/assets/javascripts/para/admin.coffee +20 -0
  5. data/app/assets/javascripts/para/admin/tabs.coffee +22 -5
  6. data/app/assets/javascripts/para/admin/theme_actions.coffee +3 -3
  7. data/app/assets/javascripts/para/inputs/material-input.coffee +4 -0
  8. data/app/assets/javascripts/para/inputs/multi-select-input.coffee +173 -0
  9. data/app/assets/javascripts/para/inputs/nested_many.coffee +9 -9
  10. data/app/assets/stylesheets/para/admin.sass +5 -5
  11. data/app/assets/stylesheets/para/admin/main.sass +32 -0
  12. data/app/assets/stylesheets/para/admin/src/_alert.sass +17 -0
  13. data/app/assets/stylesheets/para/admin/src/_base.sass +51 -0
  14. data/app/assets/stylesheets/para/admin/src/_bootstrap-variables.scss +874 -0
  15. data/app/assets/stylesheets/para/admin/src/_breadcrumb.sass +22 -0
  16. data/app/assets/stylesheets/para/admin/src/_buttons.sass +107 -0
  17. data/app/assets/stylesheets/para/admin/src/_checkable.sass +94 -0
  18. data/app/assets/stylesheets/para/admin/src/_common.sass +203 -0
  19. data/app/assets/stylesheets/para/admin/src/_dropdown.sass +40 -0
  20. data/app/assets/stylesheets/para/admin/src/_form.sass +271 -0
  21. data/app/assets/stylesheets/para/admin/src/_list.sass +61 -0
  22. data/app/assets/stylesheets/para/admin/src/_mixins.sass +113 -0
  23. data/app/assets/stylesheets/para/admin/src/_multi-select.sass +91 -0
  24. data/app/assets/stylesheets/para/admin/src/_navigation.sass +150 -0
  25. data/app/assets/stylesheets/para/admin/src/_navtabs.sass +41 -0
  26. data/app/assets/stylesheets/para/admin/src/_nested-many.sass +69 -0
  27. data/app/assets/stylesheets/para/admin/src/_nested_one.sass +13 -0
  28. data/app/assets/stylesheets/para/admin/src/_orderable.sass +44 -0
  29. data/app/assets/stylesheets/para/admin/src/_page-loading.sass +39 -0
  30. data/app/assets/stylesheets/para/admin/src/_pagination.sass +34 -0
  31. data/app/assets/stylesheets/para/admin/src/_panel.sass +55 -0
  32. data/app/assets/stylesheets/para/admin/src/_responsive.sass +100 -0
  33. data/app/assets/stylesheets/para/admin/{theme → src}/_sorting.sass +11 -3
  34. data/app/assets/stylesheets/para/admin/src/_statcard.sass +41 -0
  35. data/app/assets/stylesheets/para/admin/src/_table.sass +33 -0
  36. data/app/assets/stylesheets/para/admin/src/_tree.sass +52 -0
  37. data/app/assets/stylesheets/para/admin/src/_variables.sass +37 -0
  38. data/app/assets/stylesheets/para/admin/src/_well.sass +12 -0
  39. data/app/assets/stylesheets/para/{admin/src → lib}/datetimepicker.sass +1 -3
  40. data/app/assets/stylesheets/para/{admin/src → lib}/fuelux.sass +3 -5
  41. data/app/assets/stylesheets/para/lib/jasny-bootstrap.sass +97 -0
  42. data/app/assets/stylesheets/para/{admin/src → lib}/redactor.sass +2 -5
  43. data/app/assets/stylesheets/para/lib/selectize.sass +112 -0
  44. data/app/assets/stylesheets/para/lib/slider.sass +12 -0
  45. data/app/controllers/concerns/para/admin/resource_controller_concerns.rb +14 -2
  46. data/app/controllers/para/admin/base_controller.rb +7 -0
  47. data/app/controllers/para/admin/crud_resources_controller.rb +13 -6
  48. data/app/controllers/para/admin/form_resources_controller.rb +5 -3
  49. data/app/controllers/para/admin/resources_controller.rb +9 -3
  50. data/app/controllers/para/admin/search_controller.rb +15 -0
  51. data/app/controllers/para/application_controller.rb +10 -2
  52. data/app/helpers/para/admin/page_helper.rb +9 -9
  53. data/app/helpers/para/application_helper.rb +1 -10
  54. data/app/helpers/para/form_helper.rb +5 -6
  55. data/app/helpers/para/model_helper.rb +13 -3
  56. data/app/helpers/para/ordering_helper.rb +1 -1
  57. data/app/helpers/para/search_results_helper.rb +16 -0
  58. data/app/helpers/para/tree_helper.rb +10 -6
  59. data/app/models/para/page.rb +5 -0
  60. data/app/models/para/page/section.rb +42 -0
  61. data/app/models/para/page/section_resource.rb +12 -0
  62. data/app/views/layouts/para/admin.html.haml +5 -8
  63. data/app/views/para/admin/dashboard.html.haml +21 -8
  64. data/app/views/para/admin/form_resources/show.html.haml +1 -1
  65. data/app/views/para/admin/imports/new.html.haml +2 -2
  66. data/app/views/para/admin/resources/_actions.html.haml +3 -3
  67. data/app/views/para/admin/resources/_add_button.html.haml +1 -1
  68. data/app/views/para/admin/resources/_exports_menu.html.haml +6 -6
  69. data/app/views/para/admin/resources/_filters.html.haml +7 -8
  70. data/app/views/para/admin/resources/_imports_menu.html.haml +6 -6
  71. data/app/views/para/admin/resources/_list.html.haml +14 -15
  72. data/app/views/para/admin/resources/_per_page_select.html.haml +4 -3
  73. data/app/views/para/admin/resources/_subclassable_add_button.html.haml +3 -3
  74. data/app/views/para/admin/resources/_tree.html.haml +7 -9
  75. data/app/views/para/admin/resources/_tree_item.html.haml +5 -6
  76. data/app/views/para/admin/resources/edit.html.haml +1 -1
  77. data/app/views/para/admin/resources/new.html.haml +1 -1
  78. data/app/views/para/admin/search/_result.html.haml +7 -0
  79. data/app/views/para/admin/search/index.html.haml +1 -0
  80. data/app/views/para/admin/settings_component/show.html.haml +1 -1
  81. data/app/views/para/admin/shared/_breadcrumbs.html.haml +2 -3
  82. data/app/views/para/admin/shared/_header.html.haml +16 -27
  83. data/app/views/para/admin/shared/_navigation.html.haml +20 -19
  84. data/app/views/para/form/_tabs.html.haml +6 -7
  85. data/app/views/para/inputs/_multi_select.html.haml +40 -0
  86. data/app/views/para/inputs/_nested_many.html.haml +4 -4
  87. data/app/views/para/inputs/multi_select/_no_items.html.haml +6 -0
  88. data/app/views/para/inputs/nested_many/_add.html.haml +1 -2
  89. data/app/views/para/inputs/nested_many/_add_with_subclasses.html.haml +4 -5
  90. data/app/views/para/inputs/nested_many/_container.html.haml +7 -8
  91. data/app/views/shared/_breadcrumbs.html.haml +4 -0
  92. data/config/locales/fr.yml +29 -4
  93. data/db/migrate/20170324125547_create_para_page_section_resources.rb +15 -0
  94. data/lib/generators/para/filters/templates/_filters.html.haml +3 -5
  95. data/lib/generators/para/install/templates/initializer.rb +12 -0
  96. data/lib/generators/para/page/section/section_generator.rb +13 -2
  97. data/lib/generators/para/page/section/templates/section.html.haml.erb +3 -0
  98. data/lib/generators/para/resource/resource_generator.rb +1 -1
  99. data/lib/para.rb +25 -21
  100. data/lib/para/attribute_field.rb +2 -0
  101. data/lib/para/attribute_field/base.rb +1 -1
  102. data/lib/para/attribute_field/belongs_to.rb +1 -1
  103. data/lib/para/attribute_field/boolean.rb +1 -1
  104. data/lib/para/attribute_field/friendly_id.rb +19 -0
  105. data/lib/para/attribute_field/has_many.rb +43 -4
  106. data/lib/para/attribute_field/nested_field.rb +46 -0
  107. data/lib/para/attribute_field/nested_many.rb +30 -9
  108. data/lib/para/attribute_field/nested_one.rb +28 -9
  109. data/lib/para/attribute_field/password.rb +1 -1
  110. data/lib/para/attribute_field/relation.rb +19 -1
  111. data/lib/para/attribute_field_mappings.rb +9 -3
  112. data/lib/para/breadcrumbs/breadcrumb.rb +57 -10
  113. data/lib/para/breadcrumbs/controller.rb +19 -6
  114. data/lib/para/breadcrumbs/manager.rb +9 -1
  115. data/lib/para/config.rb +3 -0
  116. data/lib/para/controller_resource.rb +34 -0
  117. data/lib/para/engine.rb +33 -14
  118. data/lib/para/exporter/base.rb +1 -1
  119. data/lib/para/ext.rb +1 -1
  120. data/lib/para/ext/active_record_nested_attributes.rb +51 -0
  121. data/lib/para/ext/paperclip.rb +2 -6
  122. data/lib/para/form_builder.rb +3 -0
  123. data/lib/para/form_builder/attributes_mappings_tracker.rb +45 -0
  124. data/lib/para/form_builder/containers.rb +13 -17
  125. data/lib/para/form_builder/nested_form.rb +2 -3
  126. data/lib/para/helpers.rb +8 -0
  127. data/lib/para/helpers/attributes_mappings.rb +13 -0
  128. data/lib/para/helpers/resource_name.rb +14 -0
  129. data/lib/para/inputs.rb +1 -0
  130. data/lib/para/inputs/multi_select_input.rb +90 -0
  131. data/lib/para/inputs/nested_many_input.rb +6 -1
  132. data/lib/para/markup/resources_table.rb +15 -11
  133. data/lib/para/model_field_parsers.rb +3 -2
  134. data/lib/para/model_field_parsers/base.rb +7 -2
  135. data/lib/para/model_field_parsers/friendly_id.rb +19 -0
  136. data/lib/para/model_field_parsers/relations.rb +20 -1
  137. data/lib/para/page/model.rb +3 -1
  138. data/lib/para/routes.rb +1 -0
  139. data/lib/para/simple_form_config.rb +85 -0
  140. data/lib/para/version.rb +1 -1
  141. data/lib/rails/routing_mapper.rb +5 -8
  142. data/vendor/assets/javascripts/jasny-bootstrap.js +577 -0
  143. data/vendor/assets/stylesheets/animate.css +3340 -0
  144. data/vendor/assets/stylesheets/hint.css +649 -0
  145. data/vendor/assets/stylesheets/jasny-bootstrap.css +287 -0
  146. metadata +114 -67
  147. data/app/assets/images/para/admin/bg.png +0 -0
  148. data/app/assets/javascripts/para/admin.js +0 -20
  149. data/app/assets/stylesheets/admin/theme.sass +0 -0
  150. data/app/assets/stylesheets/para/admin/src/jasny.bootstrap.sass +0 -40
  151. data/app/assets/stylesheets/para/admin/src/nested_many.sass +0 -5
  152. data/app/assets/stylesheets/para/admin/src/page-loading.sass +0 -24
  153. data/app/assets/stylesheets/para/admin/src/page-top-bar.sass +0 -9
  154. data/app/assets/stylesheets/para/admin/src/selectize.sass +0 -46
  155. data/app/assets/stylesheets/para/admin/src/slider.sass +0 -12
  156. data/app/assets/stylesheets/para/admin/theme.sass +0 -22
  157. data/app/assets/stylesheets/para/admin/theme/_base.sass +0 -176
  158. data/app/assets/stylesheets/para/admin/theme/_breadcrumb.sass +0 -75
  159. data/app/assets/stylesheets/para/admin/theme/_buttons.sass +0 -27
  160. data/app/assets/stylesheets/para/admin/theme/_checkable.sass +0 -108
  161. data/app/assets/stylesheets/para/admin/theme/_commonds.sass +0 -210
  162. data/app/assets/stylesheets/para/admin/theme/_dropdown.sass +0 -52
  163. data/app/assets/stylesheets/para/admin/theme/_form.sass +0 -150
  164. data/app/assets/stylesheets/para/admin/theme/_list.sass +0 -139
  165. data/app/assets/stylesheets/para/admin/theme/_navigation.sass +0 -229
  166. data/app/assets/stylesheets/para/admin/theme/_navtabs.sass +0 -151
  167. data/app/assets/stylesheets/para/admin/theme/_orderable.sass +0 -45
  168. data/app/assets/stylesheets/para/admin/theme/_panel.sass +0 -264
  169. data/app/assets/stylesheets/para/admin/theme/_responsive.sass +0 -123
  170. data/app/assets/stylesheets/para/admin/theme/_table.sass +0 -28
  171. data/app/assets/stylesheets/para/admin/theme/_tree.sass +0 -74
  172. data/app/assets/stylesheets/para/admin/theme/_variables.sass +0 -31
  173. data/app/assets/stylesheets/para/application.css +0 -15
  174. data/app/assets/stylesheets/para/lib/_variables.scss +0 -646
  175. data/app/assets/stylesheets/para/overrides/responsive.sass +0 -62
  176. data/app/assets/stylesheets/para/overrides/theme.sass +0 -172
  177. data/lib/para/ext/cancan.rb +0 -26
  178. data/vendor/assets/javascripts/jasny.bootstrap.min.js +0 -7
  179. data/vendor/assets/stylesheets/animate.min.css +0 -6
  180. data/vendor/assets/stylesheets/jasny.bootstrap.min.css +0 -7
@@ -1,139 +0,0 @@
1
- @import 'variables'
2
-
3
- @import "compass/css3/border-radius"
4
-
5
- // List with progress bar
6
- .progress-list
7
- float: left
8
- width: 100%
9
- padding: 0 5px
10
- font-size: 11px
11
- .progress
12
- clear: both
13
- margin-top: 20px
14
-
15
- // List with tags
16
- .list-tags
17
- float: left
18
- width: 100%
19
- list-style: none
20
- padding: 0
21
- margin: 0
22
- li
23
- float: left
24
- display: block
25
- position: relative
26
- a
27
- display: block
28
- float: left
29
- background: $btn-default-bg
30
- border: 1px solid $gray-lighter
31
- +border-radius(3px)
32
- line-height: 23px
33
- font-size: 11px
34
- margin: 0 5px 5px 0
35
- padding: 0 8px
36
- color: $breadcrumb-active-color
37
- &:hover
38
- text-decoration: none
39
- background: #F0F0F0
40
-
41
- // Basic list group
42
- .list-group
43
- margin: 0
44
- .list-group-item
45
- line-height: 20px
46
- .fa
47
- margin-right: 10px
48
- .btn .fa
49
- margin-right: 0
50
- .progress
51
- margin: 5px 0
52
- &.active .badge
53
- color: $breadcrumb-active-color
54
- &:last-child
55
- border-bottom: 0
56
- &.list-group-simple
57
- border: 0
58
- background: 0 0
59
- .list-group-item
60
- border: 0
61
- background: 0 0
62
- padding: 5px 10px
63
- &.border-bottom .list-group-item:last-child
64
- border-bottom: 1px solid $list-group-border
65
- &.list-group-navigation
66
- border: 0
67
- float: left
68
- width: 100%
69
- .list-group-item
70
- border-left: 0
71
- border-right: 0
72
- +border-radius(0)
73
-
74
- .padding-0 .list-group
75
- border: 0
76
- .list-group-item
77
- border-width: 1px 0 0
78
- +border-radius(0)
79
- &:first-child
80
- border-top: 0
81
-
82
- .list-group-item
83
- &.active
84
- background: $brand-primary
85
- border-color: $brand-primary
86
- &:focus, &:hover
87
- background: $brand-primary
88
- border-color: $brand-primary
89
- border-color: $list-group-border
90
-
91
- a.list-group-item
92
- &:focus, &:hover
93
- background: $list-group-hover-bg
94
-
95
- // List group for contact
96
- .list-group-contacts .list-group-item
97
- padding: 10px
98
- img
99
- border: 2px solid $btn-default-bg
100
- +border-radius(50%)
101
- width: 40px
102
- margin-right: 10px
103
- .contacts-title
104
- font-size: $font-size-h6
105
- font-weight: 600
106
- line-height: 20px
107
- p
108
- margin-bottom: 0
109
- line-height: 20px
110
- &.active
111
- background: $btn-default-bg
112
- border-color: $list-group-border
113
- color: $breadcrumb-active-color
114
-
115
- .list-group-controls
116
- position: absolute
117
- right: 10px
118
- top: 15px
119
-
120
- .list-group-status
121
- float: left
122
- margin-right: 10px
123
- height: 40px
124
- width: 10px
125
- position: relative
126
- &:after
127
- position: absolute
128
- left: 0
129
- top: 15px
130
- width: 10px
131
- height: 10px
132
- +border-radius(50%)
133
- content: " "
134
- &.status-online:after
135
- background: $brand-success
136
- &.status-away:after
137
- background: $brand-warning
138
- &.status-offline:after
139
- background: $gray
@@ -1,229 +0,0 @@
1
- @import "variables"
2
-
3
- @import "compass/css3/box-shadow"
4
- @import "compass/css3/transition"
5
- @import "compass/css3/text-shadow"
6
- @import "compass/css3/border-radius"
7
-
8
- .page-sidebar
9
- position: fixed
10
- height: 100%
11
- bottom: 0
12
- overflow: auto
13
- background-color: $navbar-default-bg
14
- width: $left-menu-width-open
15
- float: left
16
- z-index: 3
17
- +box-shadow(2px 0 5px #fafafa)
18
- &.navbar-collapse
19
- padding: 0
20
-
21
- .navbar-toggle
22
- border-color: $navbar-default-toggle-border-color
23
- margin-left: 10px
24
- .icon-bar
25
- background-color: $navbar-default-toggle-icon-bar-bg
26
- &:hover,
27
- &:focus
28
- background-color: $navbar-default-toggle-hover-bg
29
-
30
- .brand-logo
31
- width: 100%
32
- text-align: center
33
- padding: 0
34
- border-bottom: 0
35
- height: $navbar-height
36
- a
37
- color: #fff !important
38
- font-size: 1.4em
39
- font-weight: 400
40
- display: block
41
- height: $navbar-height
42
- background-color: $navbar-default-brand-color
43
- padding: 15px
44
- line-height: 20px
45
- .fa
46
- color: $navbar-icon-brand-color !important
47
- &:hover,
48
- &:focus,
49
- &:active
50
- background-color: $navbar-default-brand-hover-bg !important
51
- text-decoration: none
52
-
53
- .sidebar-navigation,
54
- .sidebar-navigation ul,
55
- .navigation-horizontal
56
- width: 100%
57
- padding: 0
58
- margin: 0
59
- float: left
60
- list-style: none
61
- display: block
62
- z-index: 3
63
- background-color: $navbar-default-bg
64
- +box-shadow(0 2px 5px #fafafa)
65
- .ul-navbar li
66
- float: left
67
- display: block
68
- width: 100%
69
- padding: 0
70
- margin: 0
71
- position: relative
72
-
73
- .component-section-item
74
- border-bottom: 1px solid $navbar-default-border
75
-
76
- .component-section-title
77
- display: block
78
- float: left
79
- width: 100%
80
- font-weight: bold
81
- text-transform: uppercase
82
- background-color: $gray-lighter
83
- color: $gray-darker
84
- padding: 15px
85
- line-height: 19px
86
- &:hover,
87
- &:focus
88
- background-color: $gray-lighter
89
- color: $gray-darker
90
- cursor: default
91
- text-decoration: none
92
-
93
-
94
- .component-item
95
- a, button
96
- display: block
97
- float: left
98
- width: 100%
99
- line-height: 19px
100
- color: $navbar-default-link-color
101
- font-weight: 400
102
- padding: 10px 15px
103
- text-decoration: none
104
- transition: all 200ms ease
105
- &:hover,
106
- &:focus
107
- color: $navbar-default-link-hover-color
108
- background-color: $navbar-default-link-hover-bg
109
- padding-left: 25px
110
-
111
- &.active
112
- a, button
113
- color: $navbar-default-link-active-color
114
- background-color: $navbar-default-link-active-bg
115
- border-right: 4px solid $navbar-default-link-active-color
116
- &:hover,
117
- &:focus
118
- padding-left: 15px
119
-
120
-
121
- // Horizontal Navbar
122
- .navigation-horizontal
123
- height: $navbar-height
124
- background: $navbar-default-bg
125
- .ul-navbar
126
- &.list-inline
127
- margin-left: 0
128
-
129
- .brand-logo a
130
- border-bottom: 0
131
- width: $left-menu-width-open
132
- li
133
- background-color: #fff
134
- > a, button
135
- padding: 10px 15px
136
- border-bottom: 0
137
- line-height: 19px
138
- color: $navbar-default-link-color
139
- +text-shadow(none)
140
- display: block
141
-
142
- &:hover
143
- background: $navbar-default-link-hover-bg
144
- text-decoration: none
145
- .fa, .glyphicon
146
- color: $navbar-icon-color
147
- .fa, .glyphicon
148
- color: $navbar-default-link-color
149
- &.navbar-toggle
150
- padding: 9px 10px
151
- border-bottom: 1px solid $navbar-default-toggle-border-color
152
- display: none
153
- .brand-logo a
154
- background-color: $navbar-default-brand-color
155
- &.active > a,
156
- &.active > button
157
- background: $navbar-default-link-active-bg
158
- .fa, .glyphicon
159
- color: $navbar-icon-color
160
- ul
161
- width: $left-menu-width-open
162
- position: absolute
163
- overflow: visible
164
- +border-radius(3px)
165
- +box-shadow(0 2px 1px 0 rgba(0, 0, 0, 0.1))
166
- z-index: 3
167
- li
168
- width: 100%
169
-
170
- li
171
- width: auto
172
- position: relative
173
- &.active > ul
174
- display: block
175
-
176
- .xn-icon-button > a,
177
- .xn-icon-button > button
178
- padding: 15px 10px
179
- text-align: center
180
- width: 50px
181
- .fa, .glyphicon
182
- margin: 0
183
-
184
- > li
185
-
186
- &.xn-profile
187
- padding: 0
188
- border-bottom: 1px solid #273541
189
- .profile-mini
190
- display: none
191
- width: 50px
192
- padding: 7px
193
- img
194
- width: 36px
195
- border: 2px solid #FFF
196
- +border-radius(50%)
197
- .informer
198
- font-size: 11px
199
- position: absolute
200
- line-height: 20px
201
- text-align: center
202
- padding: 0 5px
203
- background: #BBB
204
- right: 10px
205
- top: 15px
206
- color: #FFF
207
- +border-radius(3px)
208
- &.pulsate
209
- animation: pulsate 1s ease-out
210
- animation-iteration-count: infinite
211
- &.informer-primary
212
- background: $brand-primary
213
- &.informer-success
214
- background: $brand-success
215
- &.informer-info
216
- background: $brand-info
217
- &.informer-warning
218
- background: $brand-warning
219
- &.informer-danger
220
- background: $brand-danger
221
- li li .informer
222
- top: 12px
223
- .xn-icon-button .informer
224
- left: auto
225
- bottom: auto
226
- right: 1px
227
- top: 5px
228
-
229
-
@@ -1,151 +0,0 @@
1
- @import 'variables'
2
-
3
- @import "compass/css3/box-shadow"
4
- @import "compass/css3/transition"
5
- @import "compass/css3/border-radius"
6
-
7
- .tabs
8
- float: left
9
- width: 100%
10
- position: relative
11
- margin-top: 40px
12
-
13
- .nav-tabs
14
- border-bottom: 0
15
- margin-bottom: 0
16
- margin-top: -40px
17
- padding: 0 5px
18
- &.nav-justified
19
- border-bottom: 0
20
- margin-bottom: 0
21
- margin-top: -40px
22
- padding: 0 5px
23
-
24
- .block-head .nav-tabs
25
- border-bottom: 0
26
-
27
- .nav-tabs
28
- >
29
- li
30
- margin-bottom: 0
31
- > a
32
- margin-right: 5px
33
- border: 0
34
- font-size: 14px
35
- border-top: 2px solid transparent
36
- +border-radius(0)
37
- color: #333
38
- +single-transition(all 200ms ease)
39
- background: $btn-default-bg
40
- padding: 9px 15px
41
- &:first-child > a
42
- +border-radius(5px 0 0)
43
- > a:hover
44
- border-color: transparent
45
- background: #FFF
46
- .dropdown.active.open > a:hover
47
- border: 0
48
- border-top: 2px solid $brand-primary
49
- background: #FFF
50
- +border-radius( 3px 3px 0 0)
51
- li.active > a
52
- border: 0
53
- border-top: 2px solid $brand-primary
54
- background: #FFF
55
- +border-radius( 3px 3px 0 0)
56
- &:focus, &:hover
57
- border: 0
58
- border-top: 2px solid $brand-primary
59
- background: #FFF
60
- +border-radius( 3px 3px 0 0)
61
- &.nav-justified >
62
- li > a
63
- border: 0
64
- border-top: 2px solid transparent
65
- +border-radius( 0)
66
- color: #333
67
- +single-transition(all 200ms ease)
68
- &:hover
69
- border-color: $brand-primary
70
- background: 0 0
71
- .active > a
72
- border: 0
73
- border-top: 2px solid $brand-primary
74
- background: #FFF
75
- +border-radius( 3px 3px 0 0)
76
- &:focus, &:hover
77
- border: 0
78
- border-top: 2px solid $brand-primary
79
- background: #FFF
80
- +border-radius( 3px 3px 0 0)
81
- a
82
- .caret, &:hover .caret
83
- color: $brand-primary
84
-
85
- .nav-tabs-vertical
86
- .tabs
87
- margin-top: 0
88
- .nav-tabs
89
- margin-top: 0
90
- float: left
91
- width: 150px
92
- position: absolute
93
- left: 0
94
- border-bottom: 0
95
- padding: 0
96
- >
97
- li
98
- width: 100%
99
- > a
100
- width: 100%
101
- +border-radius( 0)
102
- border-top: 0
103
- border-left: 2px solid transparent
104
- background: #FFF
105
- &:hover
106
- border-left-color: $brand-primary
107
- background: 0 0
108
- .dropdown.active.open > a:hover
109
- border-top: 0
110
- border-left: 2px solid $brand-primary
111
- background: $btn-default-bg
112
- li
113
- &.active > a
114
- border-top: 0
115
- border-left: 2px solid $brand-primary
116
- background: $btn-default-bg
117
- &:focus, &:hover
118
- border-top: 0
119
- border-left: 2px solid $brand-primary
120
- background: $btn-default-bg
121
- &:first-child > a
122
- +border-top-left-radius(3px)
123
- &:last-child > a
124
- +border-bottom-left-radius(3px)
125
- .tab-content
126
- width: auto
127
- margin-left: 150px
128
- .panel-body
129
- padding-top: 10px
130
-
131
- .form-tabs
132
- .navbar
133
- margin-bottom: 0
134
- +border-radius( 0)
135
- .nav li
136
- border-top: none
137
- &.active
138
- border-top-color: $navbar-inverse-link-hover-color
139
- margin-bottom: 0
140
-
141
- @media (min-width: $screen-md-min)
142
- .form-tabs
143
- .navbar
144
- .nav li
145
- border-top: 4px solid transparent
146
- &.active
147
- border-top-color: $navbar-inverse-link-hover-color
148
- border-bottom: 1px solid #fff
149
- margin-bottom: -1px
150
- > a
151
- padding-top: 12.5px