mokio 0.0.15 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +5 -5
  2. data/app/assets/javascripts/backend.js +6 -3
  3. data/app/assets/javascripts/backend/datatable.js.coffee.erb +28 -26
  4. data/app/assets/javascripts/backend/head.js +1 -0
  5. data/app/assets/javascripts/backend/main.js +69 -44
  6. data/app/assets/javascripts/backend/mokio_dynamic_fields.js +20 -0
  7. data/app/assets/javascripts/backend/vendors/select2/select2.min.js +2 -0
  8. data/app/assets/stylesheets/backend.scss +6 -2
  9. data/app/assets/stylesheets/backend/custom.scss +13 -1
  10. data/app/assets/stylesheets/backend/main.scss +74 -73
  11. data/app/assets/stylesheets/backend/plugins/forms/select2/select2.scss +4 -0
  12. data/app/assets/stylesheets/backend/plugins/tables/dataTables/{jquery.dataTables.scss → jquery.dataTables.css} +7 -7
  13. data/app/assets/stylesheets/backend/theme/main.scss +413 -0
  14. data/app/assets/stylesheets/backend/theme/nice-select/_nice-select-prefixed.scss +190 -0
  15. data/app/assets/stylesheets/backend/theme/nice-select/nice-select.scss +178 -0
  16. data/app/assets/stylesheets/backend/theme/nice-select/style.scss +20 -0
  17. data/app/assets/stylesheets/backend/vendors/select2/select2.min.css +1 -0
  18. data/app/datatables/commons_datatable.rb +56 -36
  19. data/app/helpers/mokio/backend/backend_helper.rb +27 -1
  20. data/app/helpers/mokio/backend/common_helper.rb +9 -4
  21. data/app/helpers/mokio/backend/dynamic_fields_helper.rb +91 -0
  22. data/app/models/devise_custom_failure.rb +9 -0
  23. data/app/models/mokio/article.rb +0 -1
  24. data/app/models/mokio/contact.rb +0 -1
  25. data/app/models/mokio/content.rb +0 -1
  26. data/app/models/mokio/menu.rb +0 -1
  27. data/app/models/mokio/mov_gallery.rb +0 -1
  28. data/app/models/mokio/pic_gallery.rb +0 -1
  29. data/app/models/mokio/seo_tag.rb +5 -0
  30. data/app/models/mokio/support.rb +0 -1
  31. data/app/uploaders/ckeditor_picture_uploader.rb +2 -2
  32. data/app/views/devise/sessions/new.html.haml +2 -1
  33. data/app/views/mokio/articles/_form.html.slim +6 -3
  34. data/app/views/mokio/common/_form_content.html.slim +4 -4
  35. data/app/views/mokio/common/edit.html.slim +1 -5
  36. data/app/views/mokio/common/index.html.slim +3 -0
  37. data/app/views/mokio/common/modals/_modal_seo_tags.html.slim +47 -0
  38. data/app/views/mokio/common/new.html.slim +1 -4
  39. data/app/views/mokio/contacts/_form.html.slim +9 -7
  40. data/app/views/mokio/contents/new.html.slim +1 -2
  41. data/app/views/mokio/data_files/_file_upload.html.erb +1 -6
  42. data/app/views/mokio/layout/sidebar.html.slim +6 -13
  43. data/app/views/mokio/menus/_form.html.slim +97 -0
  44. data/app/views/mokio/menus/{_form.html.haml → _old_form.html.haml} +5 -6
  45. data/app/views/mokio/menus/{_form_slim.html.slim → _old_form_slim.html.slim} +8 -10
  46. data/app/views/mokio/menus/new_menu_position.slim +1 -1
  47. data/app/views/mokio/mov_galleries/_form_inputs.html.slim +3 -3
  48. data/app/views/mokio/pic_galleries/_form_inputs.html.slim +3 -3
  49. data/app/views/mokio/static_modules/_form.html.slim +2 -1
  50. data/config/initializers/frontend.rb +3 -0
  51. data/config/initializers/simple_form.rb +9 -0
  52. data/config/locales/en.yml +16 -26
  53. data/config/locales/pl.yml +11 -20
  54. data/db/migrate/20140422135850_add_mokio_to_application.rb +22 -24
  55. data/db/migrate/20191217135611_create_mokio_seo_tags.rb +11 -0
  56. data/lib/mokio.rb +37 -10
  57. data/lib/mokio/concerns.rb +3 -13
  58. data/lib/mokio/concerns/common/controller_functions.rb +1 -15
  59. data/lib/mokio/concerns/common/controller_object.rb +2 -2
  60. data/lib/mokio/concerns/common/seo_tags.rb +32 -0
  61. data/lib/mokio/concerns/common/services/sitemap_service.rb +196 -0
  62. data/lib/mokio/concerns/controllers/application.rb +5 -5
  63. data/lib/mokio/concerns/controllers/base.rb +12 -12
  64. data/lib/mokio/concerns/controllers/common.rb +6 -4
  65. data/lib/mokio/concerns/controllers/data_files.rb +3 -3
  66. data/lib/mokio/concerns/controllers/menus.rb +11 -13
  67. data/lib/mokio/concerns/controllers/mov_galleries.rb +1 -2
  68. data/lib/mokio/concerns/controllers/photos.rb +10 -10
  69. data/lib/mokio/concerns/controllers/pic_galleries.rb +2 -3
  70. data/lib/mokio/concerns/controllers/users.rb +4 -3
  71. data/lib/mokio/concerns/controllers/youtubes.rb +7 -7
  72. data/lib/mokio/concerns/models/available_module.rb +3 -3
  73. data/lib/mokio/concerns/models/common.rb +1 -29
  74. data/lib/mokio/concerns/models/contact_template.rb +0 -4
  75. data/lib/mokio/concerns/models/content.rb +15 -7
  76. data/lib/mokio/concerns/models/data_file.rb +3 -9
  77. data/lib/mokio/concerns/models/lang.rb +11 -7
  78. data/lib/mokio/concerns/models/menu.rb +4 -4
  79. data/lib/mokio/concerns/models/module_position.rb +1 -1
  80. data/lib/mokio/concerns/models/recipient.rb +0 -2
  81. data/lib/mokio/concerns/models/seo_tag.rb +118 -0
  82. data/lib/mokio/concerns/models/static_module.rb +2 -2
  83. data/lib/mokio/concerns/models/user.rb +1 -1
  84. data/lib/mokio/engine.rb +7 -17
  85. data/lib/mokio/frontend_helpers.rb +1 -0
  86. data/lib/mokio/frontend_helpers/seo_tag_helper.rb +33 -0
  87. data/lib/mokio/simple-form-wrappers.rb +11 -0
  88. data/lib/mokio/version.rb +1 -1
  89. data/lib/tasks/mokio_install.rake +37 -9
  90. data/spec/dummy/Rakefile +1 -3
  91. data/spec/dummy/app/controllers/application_controller.rb +1 -1
  92. data/spec/dummy/config.ru +1 -2
  93. data/spec/dummy/config/application.rb +9 -12
  94. data/spec/dummy/config/database.yml +18 -0
  95. data/spec/dummy/config/environment.rb +1 -1
  96. data/spec/dummy/log/development.log +0 -0
  97. data/spec/dummy/log/development_mokio.log +9 -0
  98. data/spec/models/content_spec.rb +0 -1
  99. data/spec/models/menu_spec.rb +8 -9
  100. data/spec/models/mov_gallery_spec.rb +0 -1
  101. data/spec/models/pic_gallery_spec.rb +0 -1
  102. metadata +212 -407
  103. data/README.rdoc +0 -47
  104. data/app/assets/javascripts/backend/plugins/forms/select/select2.js +0 -2195
  105. data/app/assets/javascripts/backend/plugins/forms/select/select2.min.js +0 -76
  106. data/app/assets/javascripts/backend/plugins/tables/dataTables/jquery.dataTables.js +0 -12099
  107. data/app/assets/javascripts/backend/plugins/tables/dataTables/jquery.dataTables.min.js +0 -155
  108. data/app/controllers/mokio/base_articles_controller.rb +0 -3
  109. data/app/controllers/mokio/base_contacts_controller.rb +0 -5
  110. data/app/controllers/mokio/base_contents_controller.rb +0 -3
  111. data/app/controllers/mokio/base_mov_galleries_controller.rb +0 -3
  112. data/app/controllers/mokio/base_pic_galleries_controller.rb +0 -4
  113. data/app/controllers/passwords_controller.rb +0 -14
  114. data/app/models/mokio/base_article.rb +0 -29
  115. data/app/models/mokio/base_contact.rb +0 -30
  116. data/app/models/mokio/base_content.rb +0 -5
  117. data/app/models/mokio/base_mov_gallery.rb +0 -30
  118. data/app/models/mokio/base_pic_gallery.rb +0 -30
  119. data/app/models/mokio/meta.rb +0 -24
  120. data/app/views/mokio/backend/articles/_form.html.haml +0 -9
  121. data/app/views/mokio/backend/common/_form_content.html.haml +0 -36
  122. data/app/views/mokio/backend/common/_gmap.html.haml +0 -39
  123. data/app/views/mokio/backend/common/_main_pic.html.haml +0 -4
  124. data/app/views/mokio/backend/common/_meta.html.haml +0 -51
  125. data/app/views/mokio/backend/common/_notice.html.haml +0 -3
  126. data/app/views/mokio/backend/common/_obj.html.haml +0 -16
  127. data/app/views/mokio/backend/common/copy.html.haml +0 -5
  128. data/app/views/mokio/backend/common/edit.html.haml +0 -6
  129. data/app/views/mokio/backend/common/index.html.haml +0 -19
  130. data/app/views/mokio/backend/common/new.html.haml +0 -6
  131. data/app/views/mokio/backend/contacts/_form.html.haml +0 -42
  132. data/app/views/mokio/backend/contents/_content_info_widget.html.haml +0 -22
  133. data/app/views/mokio/backend/dashboard/_content.html.haml +0 -9
  134. data/app/views/mokio/backend/dashboard/show.html.haml +0 -35
  135. data/app/views/mokio/backend/dashboard/tbl_content.html.haml +0 -24
  136. data/app/views/mokio/backend/data_files/_file_upload.html.erb +0 -71
  137. data/app/views/mokio/backend/data_files/uploader.html.haml +0 -15
  138. data/app/views/mokio/backend/errors/404.html.haml +0 -45
  139. data/app/views/mokio/backend/errors/unauthorized.html.haml +0 -11
  140. data/app/views/mokio/backend/layout/_user_widget.html.haml +0 -8
  141. data/app/views/mokio/backend/layout/header.html.haml +0 -14
  142. data/app/views/mokio/backend/layout/sidebar.html.haml +0 -59
  143. data/app/views/mokio/backend/menus/_form.html.haml +0 -66
  144. data/app/views/mokio/backend/menus/_menu.html.haml +0 -24
  145. data/app/views/mokio/backend/menus/index.html.haml +0 -53
  146. data/app/views/mokio/backend/menus/index.json.jbuilder +0 -4
  147. data/app/views/mokio/backend/menus/lang_changed.js.haml +0 -6
  148. data/app/views/mokio/backend/menus/sort.html.haml +0 -1
  149. data/app/views/mokio/backend/menus/update_menu_breadcrumps.js.haml +0 -1
  150. data/app/views/mokio/backend/mov_galleries/_form.html.haml +0 -17
  151. data/app/views/mokio/backend/mov_galleries/_form_inputs.html.haml +0 -8
  152. data/app/views/mokio/backend/photos/_gallery.html.haml +0 -25
  153. data/app/views/mokio/backend/photos/create.js.haml +0 -1
  154. data/app/views/mokio/backend/photos/crop_photo.js.haml +0 -10
  155. data/app/views/mokio/backend/photos/crop_thumb.js.haml +0 -11
  156. data/app/views/mokio/backend/photos/destroy.js.haml +0 -1
  157. data/app/views/mokio/backend/photos/from_external_link.html.haml +0 -19
  158. data/app/views/mokio/backend/photos/get_photo.js.haml +0 -1
  159. data/app/views/mokio/backend/photos/get_thumb.js.haml +0 -1
  160. data/app/views/mokio/backend/photos/photo.html.haml +0 -54
  161. data/app/views/mokio/backend/photos/remove_thumb.js.haml +0 -10
  162. data/app/views/mokio/backend/photos/rotate_photo.js.haml +0 -10
  163. data/app/views/mokio/backend/photos/rotate_thumb.js.haml +0 -11
  164. data/app/views/mokio/backend/photos/thumb.html.haml +0 -9
  165. data/app/views/mokio/backend/photos/update_thumb.js.haml +0 -11
  166. data/app/views/mokio/backend/photos/upload_external_links.js.haml +0 -4
  167. data/app/views/mokio/backend/pic_galleries/_form.html.haml +0 -16
  168. data/app/views/mokio/backend/pic_galleries/_form_inputs.html.haml +0 -9
  169. data/app/views/mokio/backend/site_helper/first_login.html.haml +0 -14
  170. data/app/views/mokio/backend/static_modules/_form.html.haml +0 -9
  171. data/app/views/mokio/backend/users/_form.html.haml +0 -11
  172. data/app/views/mokio/backend/users/edit_password.html.haml +0 -13
  173. data/app/views/mokio/backend/youtubes/_edit.html.haml +0 -49
  174. data/app/views/mokio/backend/youtubes/_gallery.html.haml +0 -24
  175. data/app/views/mokio/backend/youtubes/_new.html.haml +0 -4
  176. data/app/views/mokio/backend/youtubes/_preview_movie.html.haml +0 -1
  177. data/app/views/mokio/backend/youtubes/_search_yt.html.haml +0 -8
  178. data/app/views/mokio/backend/youtubes/_search_yt_body.html.haml +0 -11
  179. data/app/views/mokio/backend/youtubes/find.js.haml +0 -1
  180. data/app/views/mokio/backend/youtubes/preview.html.haml +0 -36
  181. data/app/views/mokio/backend/youtubes/preview_movie.js.haml +0 -5
  182. data/app/views/mokio/backend/youtubes/thumb.html.haml +0 -14
  183. data/app/views/mokio/backend/youtubes/uploader.html.haml +0 -10
  184. data/app/views/mokio/backend/youtubes/youtube.html.haml +0 -12
  185. data/app/views/mokio/base_articles/_multi_lang_form.html.slim +0 -18
  186. data/app/views/mokio/base_contacts/_multi_lang_form.html.slim +0 -48
  187. data/app/views/mokio/base_contents/update_content_form.js.slim +0 -1
  188. data/app/views/mokio/base_pic_galleries/_multi_lang_form.html.slim +0 -13
  189. data/app/views/mokio/common/_meta.html.slim +0 -50
  190. data/app/views/mokio/common/_multi_lang_gmap.html.slim +0 -41
  191. data/app/views/mokio/common/_multi_lang_meta.html.slim +0 -50
  192. data/app/views/mokio/common/multi_lang_form_content.html.slim +0 -56
  193. data/db/migrate/20140731061227_create_mokio_external_scripts.rb +0 -12
  194. data/db/migrate/20141009125027_alter_external_scripts.rb +0 -13
  195. data/db/migrate/20141024131942_migrate_external_codes_to_external_scripts.rb +0 -25
  196. data/db/migrate/20141209072051_change_data_type_for_display_dates.rb +0 -8
  197. data/db/migrate/20141209101853_add_menu_css_options.rb +0 -6
  198. data/db/migrate/20150220071158_add_subtitle_to_contents.rb +0 -7
  199. data/db/migrate/20150220091326_add_main_pic_to_mokio_menu.rb +0 -5
  200. data/db/migrate/20150408074951_create_mokio_base_contents.rb +0 -17
  201. data/db/migrate/20150408075454_add_base_content_id_to_mokio_contents.mokio.rb +0 -6
  202. data/db/migrate/20150414054139_add_name_to_mokio_users.rb +0 -6
  203. data/db/migrate/20150414070406_add_author_and_editor_to_mokio_content.rb +0 -6
  204. data/db/migrate/20150528104851_add_base_content_id_to_mokio_data_files.rb +0 -5
  205. data/lib/mokio/concerns/controllers/base_articles.rb +0 -31
  206. data/lib/mokio/concerns/controllers/base_contacts.rb +0 -32
  207. data/lib/mokio/concerns/controllers/base_contents.rb +0 -167
  208. data/lib/mokio/concerns/controllers/base_mov_galleries.rb +0 -48
  209. data/lib/mokio/concerns/controllers/base_pic_galleries.rb +0 -32
  210. data/lib/mokio/concerns/models/base_article.rb +0 -21
  211. data/lib/mokio/concerns/models/base_contact.rb +0 -36
  212. data/lib/mokio/concerns/models/base_content.rb +0 -51
  213. data/lib/mokio/concerns/models/base_mov_gallery.rb +0 -19
  214. data/lib/mokio/concerns/models/base_pic_gallery.rb +0 -22
  215. data/lib/mokio/concerns/models/meta.rb +0 -39
  216. data/spec/factories/meta.rb +0 -37
  217. data/spec/models/meta_spec.rb +0 -26
@@ -515,3 +515,7 @@ disabled look for already selected choices in the results dropdown
515
515
  .select2-result-unselectable .select2-match { text-decoration: none; }
516
516
 
517
517
  .select2-offscreen { position: absolute; left: -10000px; }
518
+
519
+ .select2-results__options li:first-child {
520
+ min-height: 25px;
521
+ }
@@ -171,9 +171,9 @@ table.display {
171
171
  margin: 0 auto;
172
172
  clear: both;
173
173
  width: 100%;
174
-
174
+
175
175
  /* Note Firefox 3.5 and before have a bug with border-collapse
176
- * ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 )
176
+ * ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 )
177
177
  * border-spacing: 0; is one possible option. Conditional-css.com is
178
178
  * useful for this kind of thing
179
179
  *
@@ -181,7 +181,7 @@ table.display {
181
181
  * It subtracts one px relative to the other browsers from the first column, and
182
182
  * adds one to the end...
183
183
  *
184
- * If you want that effect I'd suggest setting a border-top/left on th/td's and
184
+ * If you want that effect I'd suggest setting a border-top/left on th/td's and
185
185
  * then filling in the gaps with other borders.
186
186
  */
187
187
  }
@@ -202,7 +202,7 @@ table.display thead tr {
202
202
  table.display thead th {
203
203
  font-weight: bold;
204
204
  cursor: pointer;
205
- * cursor: hand;
205
+ // * cursor: hand;
206
206
  }
207
207
  table.display tfoot tr {
208
208
  background: rgb(255,255,255);
@@ -265,7 +265,7 @@ table.display td.center {
265
265
  .sorting_desc_disabled {
266
266
  background: image-url('backend/plugins/data_tables/sort_desc_disabled.png') no-repeat center right !important;
267
267
  }
268
-
268
+
269
269
  th:active {
270
270
  outline: none;
271
271
  }
@@ -394,7 +394,7 @@ td.details {
394
394
  }
395
395
 
396
396
  .paging_full_numbers a.paginate_button,
397
- .paging_full_numbers a.paginate_active {
397
+ .paging_full_numbers a.paginate_button.current {
398
398
  border: 1px solid #aaa;
399
399
  -webkit-border-radius: 5px;
400
400
  -moz-border-radius: 5px;
@@ -437,7 +437,7 @@ td.details {
437
437
  background: #e8e6e6;
438
438
  }
439
439
 
440
- .paging_full_numbers a.paginate_active {
440
+ .paging_full_numbers a.paginate_button.current {
441
441
  color: #f2f2f2;
442
442
  box-shadow:0 1px 0 #eaeaea ,0 1px 0 #67c3da inset;
443
443
  border-color: #5098aa;
@@ -0,0 +1,413 @@
1
+
2
+
3
+ @import 'nice-select/style';
4
+
5
+ //global
6
+ $primary-color: #13a067;
7
+
8
+ //typo
9
+
10
+ h2,
11
+ #lead-editor p,
12
+ #content-editor p,
13
+ #content-editor ul,
14
+ #content-editor ol {
15
+ font-family: 'magneta', serif;
16
+ }
17
+
18
+ h3 {
19
+ font-family: 'Poppisns', sans-serif;
20
+ }
21
+
22
+ h2,h3 {
23
+ font-weight: 600;
24
+ }
25
+
26
+ h2 {
27
+ font-size: 38px;
28
+ margin: 60px 0 30px;
29
+
30
+ &:first-child {
31
+ margin-top: 0;
32
+ }
33
+ }
34
+
35
+ h3 {
36
+ font-size: 20px;
37
+ margin: 50px 0 25px;
38
+ }
39
+
40
+ a,button {
41
+ transition: all 200ms ease-in;
42
+ }
43
+
44
+ .btn-outline {
45
+ background-image: linear-gradient(to bottom, #fafafa 0, #dcdcdc 100%);
46
+ display: inline-block;
47
+ font-size: 12px;
48
+ color: #555;
49
+ padding: 8px 10px;
50
+ border: 1px solid #ccc;
51
+
52
+ &:hover {
53
+ opacity: .85;
54
+ }
55
+
56
+ span {
57
+ color: #555;
58
+
59
+ &::before {
60
+ margin-right: 5px;
61
+ }
62
+ }
63
+ }
64
+
65
+ #lead-editor,
66
+ #content-editor {
67
+ max-width: 765px;
68
+ padding: 20px;
69
+
70
+ p,ul,ol {
71
+ font-size: 19px;
72
+ line-height: 160%;
73
+ margin: 0 0 15px;
74
+ }
75
+
76
+ ul,ol {
77
+ margin-left: 30px;
78
+
79
+ li {
80
+ line-height: 150%;
81
+ }
82
+ }
83
+
84
+ ul {
85
+ &.list-link {
86
+ p {
87
+ margin: 0;
88
+ }
89
+ }
90
+ }
91
+ }
92
+
93
+ .news__brief-desc {
94
+ padding: 0 20px;
95
+ }
96
+
97
+
98
+ //widgets
99
+ .info {
100
+ align-items: end;
101
+ display: flex;
102
+ flex-wrap: wrap;
103
+ justify-content: space-between;
104
+ margin: 45px 0 50px;
105
+ }
106
+
107
+ .info__label {
108
+ align-items: center;
109
+ font-size: 12px;
110
+ font-weight: 600;
111
+ margin: 0 0 7px;
112
+ text-transform: uppercase;
113
+ }
114
+
115
+ .info__image {
116
+ margin: 0;
117
+ text-align: center;
118
+ width: 55px;
119
+
120
+ img {
121
+ max-width: 75px;
122
+ width: 100%;
123
+ }
124
+ }
125
+
126
+ .info__content {
127
+ width: calc(100% - 70px);
128
+
129
+ p:not([class]) {
130
+ margin: 0;
131
+ }
132
+
133
+ p:not([class]),
134
+ ul {
135
+ font-size: 14px;
136
+ }
137
+ }
138
+
139
+ @media only screen and (min-width: 640px) {
140
+ .info {
141
+ align-items: center;
142
+ }
143
+
144
+ .info__image {
145
+ width: 120px;
146
+ }
147
+
148
+ .info__content {
149
+ width: calc(100% - 120px);
150
+ }
151
+ }
152
+
153
+ .highlight {
154
+ background: image-url('bg/highlight.svg') repeat 0 0/cover;
155
+ padding: 6px 3px 2px;
156
+ }
157
+
158
+ //icons
159
+ .ic {
160
+ background-repeat: no-repeat;
161
+ background-position: 50% 50%;
162
+ display: inline-block;
163
+ height: 17px;
164
+ width: 17px;
165
+ }
166
+
167
+ .ic--research {
168
+ background-image: image-url('icons/research.svg');
169
+ color: transparent;
170
+ }
171
+
172
+ .ic--sheet {
173
+ background-image: image-url('icons/sheet.svg');
174
+ color: transparent;
175
+ }
176
+
177
+ .anno {
178
+ border: 0!important;
179
+ font-weight: 600;
180
+
181
+ &.research {
182
+ color: $primary-color;
183
+ }
184
+ }
185
+
186
+ hr {
187
+ background: image-url('bg/line.svg') repeat 0 0;
188
+ border: 0;
189
+ height: 4px;
190
+ margin: 50px 0;
191
+
192
+ &:nth-of-type(2) {
193
+ background-position: 200px 0;
194
+ }
195
+
196
+ &:nth-of-type(3) {
197
+ background-position: 400px 0;
198
+ }
199
+
200
+ &:nth-of-type(3) {
201
+ background-position: 600px 0;
202
+ }
203
+
204
+ &.border {
205
+ background: none;
206
+ border-bottom: 1px solid $gray-light;
207
+ height: 0;
208
+ }
209
+ }
210
+
211
+ //backend
212
+
213
+ #content-editor {
214
+ table {
215
+ td,th {
216
+ font-size: 12px;
217
+ padding: 5px;
218
+ vertical-align: top;
219
+ }
220
+
221
+ td {
222
+ p {
223
+ font-family: 'Poppins', sans-serif;
224
+ font-size: 15px;
225
+ line-height: 120%;
226
+ margin: 0;
227
+ }
228
+ }
229
+ }
230
+ }
231
+
232
+ .table thead th,
233
+ .table tbody td {
234
+ text-align: left!important;
235
+
236
+ br {
237
+ display: inline-block;
238
+ font-size: 13px;
239
+ line-height: 8px;
240
+ height: 8px;
241
+ content: "A";
242
+ width: 8px;
243
+ }
244
+ br:after {
245
+ content: ', ';
246
+ white-space: pre;
247
+ }
248
+ }
249
+
250
+ .table thead th:first-child {
251
+ width: 30px;
252
+ }
253
+ .table thead th:last-child {
254
+ text-align: center!important;
255
+ width: 80px;
256
+ }
257
+ .table tbody td:last-child {
258
+ text-align: center!important;
259
+ }
260
+ .table tbody {
261
+ tr {
262
+ td {
263
+ transition: background 200ms ease-in;
264
+ }
265
+ &:hover {
266
+ td {
267
+ background: #109bff1a;
268
+ }
269
+ }
270
+ }
271
+ }
272
+
273
+
274
+
275
+ .remove_fields {
276
+ border: 1px solid #d00;
277
+ border-radius: 5px;
278
+ display: inline-block;
279
+ margin-top: 6px;
280
+ padding: 4px 10px;
281
+
282
+ span {
283
+ color: #d00;
284
+ font-size: 13px;
285
+
286
+ &::before {
287
+ margin-right: 5px;
288
+ }
289
+ }
290
+ }
291
+
292
+ #lead-editor {
293
+ min-height: 200px;
294
+ }
295
+
296
+ #content-editor {
297
+ min-height: 500px;
298
+ }
299
+
300
+ .cke_editable {
301
+ &:focus {
302
+ outline: none;
303
+ }
304
+
305
+ a {
306
+ color: #555;
307
+ border-bottom: 2px dotted $primary-color;
308
+
309
+ &:hover {
310
+ color: $primary-color;
311
+ }
312
+ }
313
+ }
314
+
315
+ .cke_show_borders {
316
+ border: 1px solid rgba(0, 0, 0, 0.15);
317
+ }
318
+
319
+ .form-row .form-label {
320
+ padding-top: 11px;
321
+ }
322
+
323
+ #content .form-row.row-fluid .row-fluid {
324
+ margin-bottom: 10px;
325
+ }
326
+
327
+ select,
328
+ textarea,
329
+ input[type="text"],
330
+ input[type="password"],
331
+ input[type="datetime"],
332
+ input[type="datetime-local"],
333
+ input[type="date"],
334
+ input[type="month"],
335
+ input[type="time"],
336
+ input[type="week"],
337
+ input[type="number"],
338
+ input[type="email"],
339
+ input[type="url"],
340
+ input[type="search"],
341
+ input[type="tel"],
342
+ input[type="color"],
343
+ .uneditable-input {
344
+ color: #353535;
345
+ font-family: 'Open Sans', Helvetica, Arial, sans-serif;
346
+ font-size: 14px;
347
+ padding: 10px 18px;
348
+
349
+ &:focus {
350
+ outline: none;
351
+ }
352
+ }
353
+
354
+ form#new_article_product,
355
+ form[id^="edit_article_product"] {
356
+ .tab-content {
357
+ padding-bottom: 70px;
358
+ }
359
+
360
+ .form-actions {
361
+ bottom: 0;
362
+ border: 1px solid #c4c4c4;
363
+ height: 50px;
364
+ margin: 0;
365
+ padding-top: 35px;
366
+ position: fixed;
367
+ right: 35px;
368
+ width: calc(100% - 82px);
369
+ z-index: 10000;
370
+
371
+ @media only screen and (min-width: 481px) {
372
+ width: calc(100% - 92px);
373
+ }
374
+
375
+ @media only screen and (min-width: 981px) {
376
+ width: calc(100% - 334px);
377
+ }
378
+ }
379
+ }
380
+
381
+ .mainnav {
382
+ .contents_nav {
383
+ > .hasUl {
384
+ pointer-events: none;
385
+ }
386
+
387
+ #add_content {
388
+ display: block!important;
389
+ }
390
+ }
391
+ }
392
+
393
+
394
+ .row-fluid.article_product_product span.select2.select2-container{
395
+ width: 100%!important;
396
+ }
397
+
398
+
399
+ .select2-selection--single {
400
+ border-radius:0 !important;
401
+ height: 42px !important;
402
+ font-size: 14px;
403
+ padding: 7px 18px;
404
+ border-color: #9d9d9d !important;
405
+ }
406
+
407
+ .select2-container {
408
+ width:100%;
409
+ }
410
+ .select2-selection--multiple {
411
+ border-radius:0 !important;
412
+ border-color: #9d9d9d !important;
413
+ }