LearnPress – WordPress LMS Plugin - Version 3.0.7

Version Description

~ Improved: ui/ux when adding/removing course items ~ Improved: ui/ux when adding/removing questions of a quiz ~ Improved: auto focus mouse to input when changing type of new course item ~ Improved: show confirm message before removing course item to trash ~ Improved: move item to trash when delete instead of delete it permanently ~ Improved: changed icon to turn on/off an item is preview and add tooltip ~ Improved: removed green effect when updating via ajax ~ Improved: focus mouse on search input when searching items ~ Improved: show button for closing popup ~ Improved: flush Hard Cache when updating post ~ Improved: updated metabox to latest version and changed textdomain ~ Fixed: pending course does not show for instructor ~ Fixed: filter lessons/quizzes by course does not work properly ~ Fixed: wrong currency symbol for Turkish lira ~ Fixed: division by zero when calculating course results ~ Fixed: get default thumbnail image for archive course if it option is turn of ~ Removed: option thumbnail size for single course ~ Improved somethings...

Download this release

Release Info

Developer leehld
Plugin Icon 128x128 LearnPress – WordPress LMS Plugin
Version 3.0.7
Comparing to
See all releases

Code changes from version 3.0.6 to 3.0.7

Files changed (168) hide show
  1. assets/css/admin/admin.css +472 -138
  2. assets/js/admin/admin.js +2 -0
  3. assets/js/admin/course-editor.js +737 -633
  4. assets/js/admin/question-editor.js +20 -2
  5. assets/js/admin/quiz-editor.js +85 -14
  6. assets/js/frontend/quiz.js +1 -1
  7. assets/js/global.js +29 -10
  8. assets/scss/_mixin.scss +18 -0
  9. assets/scss/admin/_admin-editor.scss +159 -585
  10. assets/scss/admin/_order.scss +12 -8
  11. assets/scss/admin/_post-types.scss +2 -0
  12. assets/scss/admin/_question-editor.scss +242 -0
  13. assets/scss/admin/_quiz-editor.scss +587 -0
  14. assets/scss/admin/_settings.scss +16 -4
  15. assets/scss/admin/admin.scss +13 -0
  16. inc/abstract-settings.php +21 -16
  17. inc/admin/class-lp-admin-ajax.php +27 -2
  18. inc/admin/class-lp-admin-dashboard.php +1 -1
  19. inc/admin/editor/class-lp-admin-editor-course.php +6 -1
  20. inc/admin/editor/class-lp-admin-editor-question.php +9 -3
  21. inc/admin/editor/class-lp-admin-editor-quiz.php +19 -1
  22. inc/admin/lp-admin-actions.php +6 -1
  23. inc/admin/meta-box/class-lp-meta-box-helper.php +3 -0
  24. inc/admin/meta-box/fields/color-schema.php +1 -1
  25. inc/admin/settings/class-lp-settings-courses.php +23 -23
  26. inc/admin/settings/class-lp-settings-profile.php +5 -4
  27. inc/admin/views/course/added-items-preview.php +19 -17
  28. inc/admin/views/course/curriculum.php +33 -19
  29. inc/admin/views/course/editor.php +18 -28
  30. inc/admin/views/course/modal-choose-items.php +179 -155
  31. inc/admin/views/course/new-section-item.php +97 -84
  32. inc/admin/views/course/new-section.php +34 -30
  33. inc/admin/views/course/pagination.php +37 -35
  34. inc/admin/views/course/section-item.php +98 -75
  35. inc/admin/views/course/section.php +198 -134
  36. inc/admin/views/course/sections.php +40 -37
  37. inc/admin/views/editor-wrapper.php +1 -12
  38. inc/admin/views/meta-boxes/order/actions.php +1 -1
  39. inc/admin/views/meta-boxes/order/order-item.php +6 -3
  40. inc/admin/views/placeholder-animation.php +23 -0
  41. inc/admin/views/question/actions.php +8 -1
  42. inc/admin/views/question/answer.php +22 -4
  43. inc/admin/views/question/option.php +6 -3
  44. inc/admin/views/quiz/editor.php +18 -17
  45. inc/admin/views/quiz/modal-choose-items.php +19 -5
  46. inc/admin/views/quiz/question-actions.php +5 -4
  47. inc/admin/views/quiz/question-answer-option.php +7 -3
  48. inc/admin/views/quiz/question-answer.php +19 -5
  49. inc/admin/views/quiz/question-meta.php +68 -52
  50. inc/admin/views/quiz/question-settings.php +7 -2
  51. inc/admin/views/quiz/question.php +5 -1
  52. inc/admin/views/svg-icon.php +16 -0
  53. inc/class-lp-hard-cache.php +3 -0
  54. inc/class-lp-install.php +4 -0
  55. inc/class-lp-settings.php +18 -28
  56. inc/course/abstract-course.php +7 -2
  57. inc/course/class-lp-course-item.php +6 -2
  58. inc/course/lp-course-functions.php +11 -5
  59. inc/curds/class-lp-quiz-curd.php +7 -4
  60. inc/curds/class-lp-section-curd.php +16 -6
  61. inc/custom-post-types/abstract.php +197 -0
  62. inc/custom-post-types/course.php +79 -41
  63. inc/custom-post-types/lesson.php +34 -25
  64. inc/custom-post-types/question.php +9 -3
  65. inc/custom-post-types/quiz.php +31 -35
  66. inc/libraries/meta-box/css/datepicker.css +1 -1
  67. inc/libraries/meta-box/css/file.css +40 -25
  68. inc/libraries/meta-box/css/image-advanced.css +0 -52
  69. inc/libraries/meta-box/css/image-select.css +2 -2
  70. inc/libraries/meta-box/css/image.css +50 -47
  71. inc/libraries/meta-box/css/input-list.css +2 -1
  72. inc/libraries/meta-box/css/media.css +22 -44
  73. inc/libraries/meta-box/css/range.css +5 -9
  74. inc/libraries/meta-box/css/select-advanced.css +3 -0
  75. inc/libraries/meta-box/css/select.css +3 -2
  76. inc/libraries/meta-box/css/style.css +39 -17
  77. inc/libraries/meta-box/css/video.css +0 -22
  78. inc/libraries/meta-box/img/loader.gif +0 -0
  79. inc/libraries/meta-box/inc/about/about.php +3 -3
  80. inc/libraries/meta-box/inc/about/sections/getting-started.php +15 -15
  81. inc/libraries/meta-box/inc/about/sections/tabs.php +1 -1
  82. inc/libraries/meta-box/inc/about/sections/welcome.php +2 -2
  83. inc/libraries/meta-box/inc/autoloader.php +6 -2
  84. inc/libraries/meta-box/inc/clone.php +9 -2
  85. inc/libraries/meta-box/inc/core.php +39 -6
  86. inc/libraries/meta-box/inc/field-registry.php +11 -13
  87. inc/libraries/meta-box/inc/field.php +79 -28
  88. inc/libraries/meta-box/inc/fields/autocomplete.php +3 -3
  89. inc/libraries/meta-box/inc/fields/button.php +1 -1
  90. inc/libraries/meta-box/inc/fields/checkbox-list.php +0 -1
  91. inc/libraries/meta-box/inc/fields/checkbox.php +8 -5
  92. inc/libraries/meta-box/inc/fields/choice.php +7 -4
  93. inc/libraries/meta-box/inc/fields/color.php +26 -11
  94. inc/libraries/meta-box/inc/fields/datetime.php +20 -0
  95. inc/libraries/meta-box/inc/fields/fieldset-text.php +26 -11
  96. inc/libraries/meta-box/inc/fields/file-input.php +5 -4
  97. inc/libraries/meta-box/inc/fields/file.php +122 -110
  98. inc/libraries/meta-box/inc/fields/image-advanced.php +8 -16
  99. inc/libraries/meta-box/inc/fields/image-select.php +8 -5
  100. inc/libraries/meta-box/inc/fields/image.php +55 -26
  101. inc/libraries/meta-box/inc/fields/input-list.php +2 -4
  102. inc/libraries/meta-box/inc/fields/input.php +11 -9
  103. inc/libraries/meta-box/inc/fields/key-value.php +17 -13
  104. inc/libraries/meta-box/inc/fields/map.php +49 -30
  105. inc/libraries/meta-box/inc/fields/media.php +15 -15
  106. inc/libraries/meta-box/inc/fields/multiple-values.php +7 -4
  107. inc/libraries/meta-box/inc/fields/oembed.php +10 -9
  108. inc/libraries/meta-box/inc/fields/post.php +7 -34
  109. inc/libraries/meta-box/inc/fields/select-advanced.php +1 -1
  110. inc/libraries/meta-box/inc/fields/select.php +1 -1
  111. inc/libraries/meta-box/inc/fields/slider.php +1 -1
  112. inc/libraries/meta-box/inc/fields/taxonomy-advanced.php +36 -20
  113. inc/libraries/meta-box/inc/fields/taxonomy.php +12 -11
  114. inc/libraries/meta-box/inc/fields/text-list.php +30 -21
  115. inc/libraries/meta-box/inc/fields/textarea.php +13 -11
  116. inc/libraries/meta-box/inc/fields/thickbox-image.php +0 -80
  117. inc/libraries/meta-box/inc/fields/user.php +1 -1
  118. inc/libraries/meta-box/inc/fields/video.php +19 -6
  119. inc/libraries/meta-box/inc/fields/wysiwyg.php +1 -1
  120. inc/libraries/meta-box/inc/functions.php +32 -10
  121. inc/libraries/meta-box/inc/loader.php +12 -8
  122. inc/libraries/meta-box/inc/media-modal.php +3 -1
  123. inc/libraries/meta-box/inc/meta-box-registry.php +22 -0
  124. inc/libraries/meta-box/inc/meta-box.php +104 -23
  125. inc/libraries/meta-box/inc/storage-registry.php +4 -0
  126. inc/libraries/meta-box/inc/storages/post.php +4 -10
  127. inc/libraries/meta-box/inc/templates/image-advanced.php +6 -6
  128. inc/libraries/meta-box/inc/templates/media.php +11 -11
  129. inc/libraries/meta-box/inc/templates/video.php +9 -9
  130. inc/libraries/meta-box/inc/validation.php +1 -1
  131. inc/libraries/meta-box/inc/walkers/select.php +1 -1
  132. inc/libraries/meta-box/inc/wpml.php +2 -2
  133. inc/libraries/meta-box/js/autocomplete.js +7 -7
  134. inc/libraries/meta-box/js/autosave.js +12 -10
  135. inc/libraries/meta-box/js/clone.js +89 -32
  136. inc/libraries/meta-box/js/date.js +6 -2
  137. inc/libraries/meta-box/js/datetime.js +2 -2
  138. inc/libraries/meta-box/js/file-input.js +9 -3
  139. inc/libraries/meta-box/js/file-upload.js +9 -13
  140. inc/libraries/meta-box/js/file.js +33 -31
  141. inc/libraries/meta-box/js/image-advanced.js +14 -4
  142. inc/libraries/meta-box/js/image-upload.js +7 -4
  143. inc/libraries/meta-box/js/input-list.js +2 -2
  144. inc/libraries/meta-box/js/jquery-validation/additional-methods.min.js +4 -4
  145. inc/libraries/meta-box/js/jquery-validation/jquery.validate.min.js +4 -4
  146. inc/libraries/meta-box/js/map-frontend.js +5 -0
  147. inc/libraries/meta-box/js/map.js +47 -35
  148. inc/libraries/meta-box/js/media.js +135 -41
  149. inc/libraries/meta-box/js/oembed.js +6 -8
  150. inc/libraries/meta-box/js/range.js +2 -2
  151. inc/libraries/meta-box/js/select-advanced.js +2 -2
  152. inc/libraries/meta-box/js/select.js +2 -2
  153. inc/libraries/meta-box/js/select2/i18n/en.js +1 -1
  154. inc/libraries/meta-box/js/select2/select2.min.js +1 -1
  155. inc/libraries/meta-box/js/slider.js +2 -2
  156. inc/libraries/meta-box/js/thickbox-image.js +0 -34
  157. inc/libraries/meta-box/js/validate.js +7 -2
  158. inc/libraries/meta-box/js/video.js +7 -4
  159. inc/libraries/meta-box/js/wysiwyg.js +5 -5
  160. inc/libraries/meta-box/meta-box.php +3 -3
  161. inc/libraries/meta-box/readme.txt +74 -672
  162. inc/lp-constants.php +1 -1
  163. inc/lp-core-functions.php +7 -7
  164. inc/user-item/class-lp-user-item-course.php +69 -45
  165. inc/user-item/class-lp-user-item-quiz.php +12 -8
  166. inc/user/class-lp-profile.php +3 -3
  167. languages/learnpress-pl_PL.mo +0 -0
  168. languages/learnpress-pl_PL.po +7137 -1671
assets/css/admin/admin.css CHANGED
@@ -1731,15 +1731,26 @@
1731
  .post-type-lp_order #order_details .order-items table .remove-order-item {
1732
  text-decoration: none;
1733
  outline: none;
1734
- color: #FF0000;
1735
- display: none;
1736
- margin-left: 10px; }
 
 
1737
  .post-type-lp_order #order_details .order-items table .order-item-row:hover .remove-order-item {
1738
  display: inline-block; }
1739
 
1740
  .color-schemas {
1741
  margin: 0 20px 20px 0;
1742
  float: left; }
 
 
 
 
 
 
 
 
 
1743
  .color-schemas table {
1744
  border-collapse: collapse;
1745
  position: relative; }
@@ -1769,9 +1780,6 @@
1769
  color: #FF0000; }
1770
  .color-schemas .wp-color-result {
1771
  margin: 0; }
1772
- .color-schemas .color-selector input {
1773
- width: 0 !important;
1774
- opacity: 0; }
1775
  .color-schemas .clone-schema {
1776
  display: none; }
1777
  .color-schemas:first-child .remove-schema,
@@ -1793,6 +1801,30 @@
1793
  /**
1794
  * General style for admin editor.
1795
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1796
  .lp-admin-editor {
1797
  background-color: #fff;
1798
  border: 1px solid #ddd;
@@ -1809,7 +1841,7 @@
1809
  * Course admin editor.
1810
  */
1811
  #admin-editor-lp_course .lp-course-curriculum .heading {
1812
- padding: 15px;
1813
  position: relative; }
1814
  #admin-editor-lp_course .lp-course-curriculum .heading h4 {
1815
  margin: 0;
@@ -1847,16 +1879,19 @@
1847
 
1848
  #admin-editor-lp_course .lp-course-curriculum .curriculum-sections {
1849
  margin: 0;
1850
- padding: 10px;
1851
  border-top: 1px solid #ddd; }
1852
 
1853
  #admin-editor-lp_course .lp-course-curriculum .section {
1854
  border: 1px solid #e5e5e5;
1855
- margin-bottom: 10px;
1856
  opacity: 1;
1857
- background: #FFF; }
 
 
 
 
 
1858
  #admin-editor-lp_course .lp-course-curriculum .section.new-section {
1859
- margin-bottom: 0; }
1860
  #admin-editor-lp_course .lp-course-curriculum .section.new-section form {
1861
  margin: 0; }
1862
  #admin-editor-lp_course .lp-course-curriculum .section.new-section .section-head {
@@ -1866,19 +1901,37 @@
1866
  top: 1px; }
1867
  #admin-editor-lp_course .lp-course-curriculum .section.new-section .section-head .creatable:before {
1868
  content: "\f132"; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1869
  #admin-editor-lp_course .lp-course-curriculum .section:hover .section-actions .remove {
1870
  display: inline-block; }
1871
- #admin-editor-lp_course .lp-course-curriculum .section.sortable-ghost {
1872
- opacity: 0.5; }
1873
- #admin-editor-lp_course .lp-course-curriculum .section.updating .section-head {
1874
- background-color: #e6f2d0; }
1875
  #admin-editor-lp_course .lp-course-curriculum .section input {
1876
  background-color: transparent;
1877
  box-shadow: none; }
1878
  #admin-editor-lp_course .lp-course-curriculum .section input:focus {
1879
  box-shadow: none; }
1880
  #admin-editor-lp_course .lp-course-curriculum .section .section-head {
1881
- background-color: #f9f9f9;
1882
  padding: 3px;
1883
  position: relative;
1884
  transition: background 500ms ease-out; }
@@ -1941,13 +1994,15 @@
1941
  font-size: 1.2em;
1942
  border: none;
1943
  line-height: 30px;
1944
- width: calc(100% - 80px);
1945
  padding-left: 0; }
1946
  #admin-editor-lp_course .lp-course-curriculum .section .description-input {
1947
  border: none;
1948
  width: 100%;
1949
  color: #999;
1950
- font-style: italic; }
 
 
1951
  #admin-editor-lp_course .lp-course-curriculum .section .description-input:focus {
1952
  color: #444; }
1953
 
@@ -1965,31 +2020,29 @@
1965
  transition: background 200ms ease-out;
1966
  display: flex;
1967
  justify-content: center;
1968
- align-items: center; }
 
 
 
1969
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item:nth-child(2n+1) {
1970
  background-color: #f4fcff; }
1971
- #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.sortable-ghost {
1972
- opacity: 0.5; }
1973
- #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.updating {
1974
- background-color: #e6f2d0; }
1975
- #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.updating:before {
1976
- position: absolute;
1977
- content: '';
1978
- top: 0;
1979
- left: 0;
1980
- right: 0;
1981
- bottom: 0;
1982
- z-index: 2; }
1983
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.removing {
1984
  background-color: #ffeded; }
1985
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .drag {
1986
- width: 18px;
1987
  height: 20px;
1988
  cursor: url("../../images/openhand.cur") 7 5, default;
1989
- flex-shrink: 0;
1990
  visibility: hidden;
1991
  fill: #d5dce0;
1992
- padding-top: 3px; }
 
1993
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .drag:hover {
1994
  fill: #0085ba; }
1995
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .icon {
@@ -2030,13 +2083,14 @@
2030
  display: flex;
2031
  align-items: center;
2032
  transition: all 200ms ease-out; }
 
 
2033
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .title {
2034
  display: inline-block;
2035
  margin: 0;
2036
  flex: 1; }
2037
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types {
2038
- display: inline-block;
2039
- margin-left: 17px; }
2040
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types:hover, #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types:focus {
2041
  background-color: #fff; }
2042
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types:hover .type, #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types:focus .type {
@@ -2058,6 +2112,8 @@
2058
  content: '\f469'; }
2059
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types .type.lp_lesson:before {
2060
  content: '\f330'; }
 
 
2061
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions {
2062
  text-align: right; }
2063
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action {
@@ -2083,7 +2139,6 @@
2083
  position: absolute;
2084
  top: 100%;
2085
  width: 165px;
2086
- padding: 2px 0;
2087
  right: 0;
2088
  background: #fdfeff;
2089
  margin: 0;
@@ -2093,11 +2148,13 @@
2093
  text-align: center; }
2094
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action.delete-item ul li {
2095
  margin: 0;
2096
- padding: 8px;
2097
- border-bottom: 1px solid #eee; }
2098
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action.delete-item ul li a {
2099
  color: #0073aa;
2100
- text-decoration: none; }
 
 
2101
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action.delete-item ul li a.delete-permanently {
2102
  color: #d05d5d; }
2103
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action.delete-item ul li:hover {
@@ -2111,11 +2168,33 @@
2111
  content: '\f469'; }
2112
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.lp_lesson .icon:before {
2113
  content: '\f330'; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2114
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .icon {
2115
- width: 38px;
2116
  font-size: 20px;
2117
  color: #0085ba;
2118
- text-align: center; }
 
2119
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .icon:before {
2120
  font-family: Dashicons; }
2121
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item input {
@@ -2140,37 +2219,57 @@
2140
  #admin-editor-lp_course .lp-course-curriculum .section-actions .remove.confirm .icon {
2141
  display: none; }
2142
 
2143
- /**
2144
- * Quiz admin editor.
2145
- */
2146
- #admin-editor-lp_quiz .lp-box-data-head .status {
2147
- font-family: Dashicons;
2148
- font-size: 20px;
2149
- position: relative;
2150
- top: 5px;
2151
- margin-left: 10px;
2152
- visibility: hidden; }
2153
- #admin-editor-lp_quiz .lp-box-data-head .status:before {
2154
- content: "\f463"; }
2155
- #admin-editor-lp_quiz .lp-box-data-head .status.loading {
2156
- visibility: visible;
2157
- animation: rotation 2s infinite linear;
2158
- display: inline-block; }
2159
 
2160
- #admin-editor-lp_quiz .lp-box-data-head .collapse-list-questions {
2161
- font-family: Dashicons;
2162
  position: absolute;
2163
  top: 0;
2164
- right: 5px;
2165
- bottom: 0;
2166
- font-size: 30px;
2167
- display: flex;
2168
- justify-content: center;
2169
- align-items: center;
2170
- cursor: pointer;
2171
- width: 40px;
2172
- height: 55px;
2173
- color: #999; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2174
 
2175
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions {
2176
  color: #777;
@@ -2181,40 +2280,43 @@
2181
  text-align: center; }
2182
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > * {
2183
  width: 100%;
2184
- padding: 9px 10px; }
2185
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .sort {
2186
- width: 15px;
2187
- fill: #d5dce0;
2188
  cursor: url("../../images/openhand.cur") 7 5, default;
2189
  visibility: hidden;
2190
- padding-right: 0;
2191
- position: relative; }
2192
- #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .sort svg {
2193
- width: 18px;
2194
- height: 20px;
2195
- position: absolute;
2196
- top: 50%;
2197
- margin-top: -10px;
2198
- left: 4px; }
2199
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .sort:hover {
2200
- fill: #0085ba; }
2201
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .order {
2202
- width: 10px; }
2203
- #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .name {
2204
- padding: 10px; }
 
 
 
 
2205
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .type {
2206
  width: 150px; }
2207
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .actions {
2208
  width: 300px; }
 
 
2209
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row:hover > .sort {
2210
  visibility: visible; }
 
 
2211
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .header {
2212
- border-bottom: 1px solid #ddd; }
 
2213
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .header .table-row > * {
2214
- font-weight: bold;
2215
- padding: 12px 8px 12px 0; }
2216
- #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .header .table-row .sort {
2217
- width: 45px; }
 
2218
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-actions .name input {
2219
  width: 100%;
2220
  font-size: 14px;
@@ -2224,8 +2326,6 @@
2224
  font-weight: normal;
2225
  color: #777;
2226
  padding: 0; }
2227
- #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-actions.updating {
2228
- background-color: #e6f2d0; }
2229
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings {
2230
  border: 1px solid #ddd;
2231
  border-left: none;
@@ -2234,13 +2334,28 @@
2234
  padding: 20px; }
2235
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options {
2236
  border: 1px solid #ddd; }
2237
- #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options thead .answer-text {
 
 
 
 
2238
  width: calc(100% - 100px); }
2239
- #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options thead .answer-correct {
2240
- width: 65px; }
 
 
 
 
 
 
 
 
 
 
2241
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr {
2242
  background: #fff;
2243
- border: 1px solid #DDD; }
 
2244
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr:nth-child(2n) {
2245
  background: #f4fcff; }
2246
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr td {
@@ -2249,10 +2364,63 @@
2249
  position: static;
2250
  border: none; }
2251
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr td.sort {
2252
- cursor: url("../../images/openhand.cur") 7 5, default; }
 
 
 
 
 
 
2253
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr td.answer-correct {
2254
  text-align: center; }
2255
- #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody .answer-option .answer-text input {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2256
  width: 100%;
2257
  font-size: 14px;
2258
  border: none;
@@ -2266,6 +2434,42 @@
2266
  border-bottom: 1px solid #f1f1f1; }
2267
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item:nth-child(2n+1) {
2268
  background: #f4fcff; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2269
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .cell {
2270
  padding: 10px; }
2271
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-actions .name input {
@@ -2320,7 +2524,8 @@
2320
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings {
2321
  background: #fff; }
2322
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings .quiz-question-options {
2323
- text-align: left; }
 
2324
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings .quiz-question-options .inside {
2325
  margin: 0;
2326
  padding: 0; }
@@ -2329,21 +2534,48 @@
2329
  margin: 0; }
2330
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings .quiz-question-options .inside .rwmb-meta-box .rwmb-field:nth-child(2n+1) {
2331
  background: #f4fcff; }
2332
- #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row {
2333
- text-align: left; }
2334
- #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question {
2335
- padding-left: 65px;
2336
- margin-top: -1px;
2337
- border-top: 1px solid #DDD; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2338
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question .title {
2339
  position: relative;
2340
  display: inline-block;
2341
  min-width: 500px; }
2342
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question .title input {
2343
- border: 1px solid #DDD;
2344
  width: 100%;
2345
  margin: 0;
2346
- padding: 6px 6px;
2347
  -webkit-box-shadow: none;
2348
  -moz-box-shadow: none;
2349
  box-shadow: none;
@@ -2356,6 +2588,11 @@
2356
  box-shadow: none; }
2357
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question .title input:focus {
2358
  border-color: #DDD; }
 
 
 
 
 
2359
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question .add-new {
2360
  display: inline;
2361
  position: relative; }
@@ -2399,11 +2636,39 @@
2399
  #admin-editor-lp_question {
2400
  background: #fff; }
2401
  #admin-editor-lp_question .lp-box-data-head {
2402
- padding: 5px 15px; }
2403
  #admin-editor-lp_question .lp-box-data-head .heading {
2404
- float: left; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2405
  #admin-editor-lp_question .lp-box-data-head .question-actions {
2406
- margin-top: 8px; }
 
 
 
 
 
 
 
 
 
 
2407
  #admin-editor-lp_question .lp-box-data-head .question-actions .question-types ul {
2408
  position: absolute;
2409
  top: 100%;
@@ -2421,11 +2686,11 @@
2421
  display: block;
2422
  white-space: nowrap;
2423
  text-decoration: none;
2424
- padding: 5px 25px;
2425
  font-size: 12px;
2426
  text-align: right;
2427
  color: #0073aa;
2428
- margin: 0; }
2429
  #admin-editor-lp_question .lp-box-data-head .question-actions .question-types ul:hover {
2430
  display: block; }
2431
  #admin-editor-lp_question .lp-box-data-head .question-actions:hover .question-types ul {
@@ -2443,27 +2708,43 @@
2443
  padding: 15px;
2444
  background: #F5F5F5;
2445
  border-bottom: 1px solid #DDD; }
2446
- #admin-editor-lp_question .lp-box-data-content table.list-question-answers thead tr th.sort, #admin-editor-lp_question .lp-box-data-content table.list-question-answers thead tr th.order, #admin-editor-lp_question .lp-box-data-content table.list-question-answers thead tr th.actions {
2447
- width: 10px; }
2448
- #admin-editor-lp_question .lp-box-data-content table.list-question-answers thead tr th.answer-correct {
2449
- width: 65px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
2450
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr {
2451
  background: #f4fcff;
2452
  color: #777; }
2453
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr:nth-child(2n) {
2454
  background: #fff; }
2455
- #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr:hover td.actions .remove-answer {
2456
- visibility: visible; }
2457
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.sort {
2458
  width: 15px;
2459
  text-align: center;
2460
  font-size: 18px;
2461
- color: #CCC;
2462
- cursor: url("../../images/openhand.cur") 7 5, default; }
2463
- #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.sort:hover {
2464
- color: #0085ba; }
 
 
 
 
 
2465
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.order {
2466
- font-size: 13px; }
2467
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.answer-text input {
2468
  width: 100%;
2469
  font-size: 14px;
@@ -2473,12 +2754,47 @@
2473
  font-weight: normal;
2474
  color: #777;
2475
  padding: 0; }
2476
- #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.actions .remove-answer {
2477
- visibility: hidden; }
2478
- #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.actions .remove-answer:hover {
2479
- background: transparent; }
2480
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.lp-toolbar-buttons {
2481
  z-index: auto; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2482
  #admin-editor-lp_question .lp-box-data-content .add-answer {
2483
  margin: 15px 0 0 0; }
2484
 
@@ -2548,9 +2864,9 @@
2548
  border-right: 1px solid #ddd;
2549
  position: absolute;
2550
  right: 0;
2551
- height: 20px;
2552
  top: 50%;
2553
- margin-top: -10px; }
2554
  #lp-modal-choose-items .lp-choose-items .header .tabs .tab.active:after {
2555
  border: 1px solid #ddd;
2556
  transform: rotate(45deg);
@@ -2568,10 +2884,12 @@
2568
  #lp-modal-choose-items .lp-choose-items .header .tabs .tab.active a {
2569
  color: #333; }
2570
  #lp-modal-choose-items .lp-choose-items .header .tabs .tab a {
2571
- padding: 15px 20px;
2572
  text-decoration: none;
2573
  display: inline-block;
2574
- font-weight: 600; }
 
 
2575
  #lp-modal-choose-items .lp-choose-items .header .tabs .tab a:focus {
2576
  box-shadow: none; }
2577
  #lp-modal-choose-items .lp-choose-items .header .close {
@@ -2581,12 +2899,13 @@
2581
  right: 0;
2582
  cursor: pointer;
2583
  font-size: 1em;
2584
- padding: 9px;
2585
- z-index: 9; }
2586
  #lp-modal-choose-items .lp-choose-items .main {
2587
  padding: 20px;
2588
  position: relative;
2589
- overflow: hidden; }
 
2590
  #lp-modal-choose-items .lp-choose-items .main .section-item {
2591
  cursor: pointer;
2592
  transition: color 200ms ease-out;
@@ -2602,10 +2921,11 @@
2602
  #lp-modal-choose-items .lp-choose-items .main .search {
2603
  margin-bottom: 20px;
2604
  background: transparent; }
2605
- #lp-modal-choose-items .lp-choose-items .main .search input {
2606
  width: 100%;
2607
  font-size: 1.2em;
2608
- line-height: 1.5; }
 
2609
  #lp-modal-choose-items .lp-choose-items .main .list-items {
2610
  min-height: 260px;
2611
  margin: 0; }
@@ -2625,7 +2945,7 @@
2625
  z-index: 2;
2626
  padding: 20px;
2627
  transform: translate(100%, 0);
2628
- max-height: 400px;
2629
  overflow: auto; }
2630
  #lp-modal-choose-items .lp-choose-items .lp-added-items-preview.show {
2631
  transform: translate(0, 0); }
@@ -2636,6 +2956,11 @@
2636
  #lp-modal-choose-items .lp-choose-items .footer {
2637
  padding: 20px; }
2638
 
 
 
 
 
 
2639
  @media screen and (max-width: 900px) {
2640
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .question-settings.table-row {
2641
  display: block;
@@ -2771,5 +3096,14 @@
2771
  #adminmenu .update-plugins.lp-plugins-count {
2772
  padding: 0 5px; }
2773
 
 
 
 
 
 
 
 
 
 
2774
  .learnpress .actions {
2775
  margin: 0; }
1731
  .post-type-lp_order #order_details .order-items table .remove-order-item {
1732
  text-decoration: none;
1733
  outline: none;
1734
+ color: #CCC; }
1735
+ .post-type-lp_order #order_details .order-items table .remove-order-item .dashicons {
1736
+ font-size: 18px; }
1737
+ .post-type-lp_order #order_details .order-items table .remove-order-item:hover {
1738
+ color: #FF0000; }
1739
  .post-type-lp_order #order_details .order-items table .order-item-row:hover .remove-order-item {
1740
  display: inline-block; }
1741
 
1742
  .color-schemas {
1743
  margin: 0 20px 20px 0;
1744
  float: left; }
1745
+ .color-schemas .wp-color-picker {
1746
+ width: 80px;
1747
+ height: 24px;
1748
+ vertical-align: top;
1749
+ margin: 0; }
1750
+ .color-schemas .wp-picker-holder {
1751
+ position: absolute; }
1752
+ .color-schemas .buttons {
1753
+ display: none; }
1754
  .color-schemas table {
1755
  border-collapse: collapse;
1756
  position: relative; }
1780
  color: #FF0000; }
1781
  .color-schemas .wp-color-result {
1782
  margin: 0; }
 
 
 
1783
  .color-schemas .clone-schema {
1784
  display: none; }
1785
  .color-schemas:first-child .remove-schema,
1801
  /**
1802
  * General style for admin editor.
1803
  */
1804
+ @-webkit-keyframes rotating4 /* Safari and Chrome */ {
1805
+ from {
1806
+ -webkit-transform: rotate(0deg);
1807
+ -o-transform: rotate(0deg);
1808
+ transform: rotate(0deg); }
1809
+ to {
1810
+ -webkit-transform: rotate(360deg);
1811
+ -o-transform: rotate(360deg);
1812
+ transform: rotate(360deg); } }
1813
+
1814
+ @keyframes rotating4 {
1815
+ from {
1816
+ -ms-transform: rotate(0deg);
1817
+ -moz-transform: rotate(0deg);
1818
+ -webkit-transform: rotate(0deg);
1819
+ -o-transform: rotate(0deg);
1820
+ transform: rotate(0deg); }
1821
+ to {
1822
+ -ms-transform: rotate(360deg);
1823
+ -moz-transform: rotate(360deg);
1824
+ -webkit-transform: rotate(360deg);
1825
+ -o-transform: rotate(360deg);
1826
+ transform: rotate(360deg); } }
1827
+
1828
  .lp-admin-editor {
1829
  background-color: #fff;
1830
  border: 1px solid #ddd;
1841
  * Course admin editor.
1842
  */
1843
  #admin-editor-lp_course .lp-course-curriculum .heading {
1844
+ padding: 12px 10px;
1845
  position: relative; }
1846
  #admin-editor-lp_course .lp-course-curriculum .heading h4 {
1847
  margin: 0;
1879
 
1880
  #admin-editor-lp_course .lp-course-curriculum .curriculum-sections {
1881
  margin: 0;
 
1882
  border-top: 1px solid #ddd; }
1883
 
1884
  #admin-editor-lp_course .lp-course-curriculum .section {
1885
  border: 1px solid #e5e5e5;
 
1886
  opacity: 1;
1887
+ background: #FFF;
1888
+ border-left: 0;
1889
+ border-right: 0;
1890
+ margin-bottom: -1px; }
1891
+ #admin-editor-lp_course .lp-course-curriculum .section:first-child {
1892
+ border-top: 0; }
1893
  #admin-editor-lp_course .lp-course-curriculum .section.new-section {
1894
+ margin-top: 1px; }
1895
  #admin-editor-lp_course .lp-course-curriculum .section.new-section form {
1896
  margin: 0; }
1897
  #admin-editor-lp_course .lp-course-curriculum .section.new-section .section-head {
1901
  top: 1px; }
1902
  #admin-editor-lp_course .lp-course-curriculum .section.new-section .section-head .creatable:before {
1903
  content: "\f132"; }
1904
+ #admin-editor-lp_course .lp-course-curriculum .section.empty-section {
1905
+ position: relative; }
1906
+ #admin-editor-lp_course .lp-course-curriculum .section.empty-section:after {
1907
+ position: absolute;
1908
+ top: 0;
1909
+ left: 0;
1910
+ right: 0;
1911
+ bottom: 0;
1912
+ background: #FFF;
1913
+ content: '';
1914
+ opacity: 0.5; }
1915
+ #admin-editor-lp_course .lp-course-curriculum .section.empty-section .section-head .movable:before {
1916
+ content: "\f463";
1917
+ color: #a2a2a2;
1918
+ display: inline-block;
1919
+ -webkit-animation: rotating4 2s linear infinite;
1920
+ -moz-animation: rotating4 2s linear infinite;
1921
+ -ms-animation: rotating4 2s linear infinite;
1922
+ -o-animation: rotating4 2s linear infinite;
1923
+ animation: rotating4 2s linear infinite; }
1924
+ #admin-editor-lp_course .lp-course-curriculum .section.empty-section .section-collapse {
1925
+ display: none; }
1926
  #admin-editor-lp_course .lp-course-curriculum .section:hover .section-actions .remove {
1927
  display: inline-block; }
 
 
 
 
1928
  #admin-editor-lp_course .lp-course-curriculum .section input {
1929
  background-color: transparent;
1930
  box-shadow: none; }
1931
  #admin-editor-lp_course .lp-course-curriculum .section input:focus {
1932
  box-shadow: none; }
1933
  #admin-editor-lp_course .lp-course-curriculum .section .section-head {
1934
+ background-color: #f4fcff;
1935
  padding: 3px;
1936
  position: relative;
1937
  transition: background 500ms ease-out; }
1994
  font-size: 1.2em;
1995
  border: none;
1996
  line-height: 30px;
1997
+ width: calc(100% - 200px);
1998
  padding-left: 0; }
1999
  #admin-editor-lp_course .lp-course-curriculum .section .description-input {
2000
  border: none;
2001
  width: 100%;
2002
  color: #999;
2003
+ font-style: italic;
2004
+ margin: 0;
2005
+ padding: 0; }
2006
  #admin-editor-lp_course .lp-course-curriculum .section .description-input:focus {
2007
  color: #444; }
2008
 
2020
  transition: background 200ms ease-out;
2021
  display: flex;
2022
  justify-content: center;
2023
+ align-items: center;
2024
+ background: #FFF; }
2025
+ #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.ui-sortable-helper {
2026
+ border-bottom: 1px solid #EEE; }
2027
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item:nth-child(2n+1) {
2028
  background-color: #f4fcff; }
2029
+ #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.updating:before {
2030
+ position: absolute;
2031
+ content: '';
2032
+ top: 0;
2033
+ left: 0;
2034
+ right: 0;
2035
+ bottom: 0;
2036
+ z-index: 2; }
 
 
 
 
2037
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.removing {
2038
  background-color: #ffeded; }
2039
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .drag {
 
2040
  height: 20px;
2041
  cursor: url("../../images/openhand.cur") 7 5, default;
 
2042
  visibility: hidden;
2043
  fill: #d5dce0;
2044
+ padding-top: 3px;
2045
+ flex: 0 0 18px; }
2046
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .drag:hover {
2047
  fill: #0085ba; }
2048
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .icon {
2083
  display: flex;
2084
  align-items: center;
2085
  transition: all 200ms ease-out; }
2086
+ #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .drag {
2087
+ cursor: default; }
2088
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .title {
2089
  display: inline-block;
2090
  margin: 0;
2091
  flex: 1; }
2092
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types {
2093
+ display: inline-block; }
 
2094
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types:hover, #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types:focus {
2095
  background-color: #fff; }
2096
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types:hover .type, #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types:focus .type {
2112
  content: '\f469'; }
2113
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types .type.lp_lesson:before {
2114
  content: '\f330'; }
2115
+ #admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item .types .type.empty-item:before {
2116
+ content: "\f463"; }
2117
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions {
2118
  text-align: right; }
2119
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action {
2139
  position: absolute;
2140
  top: 100%;
2141
  width: 165px;
 
2142
  right: 0;
2143
  background: #fdfeff;
2144
  margin: 0;
2148
  text-align: center; }
2149
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action.delete-item ul li {
2150
  margin: 0;
2151
+ border-bottom: 1px solid #eee;
2152
+ text-align: right; }
2153
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action.delete-item ul li a {
2154
  color: #0073aa;
2155
+ text-decoration: none;
2156
+ padding: 8px;
2157
+ display: block; }
2158
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action.delete-item ul li a.delete-permanently {
2159
  color: #d05d5d; }
2160
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .action.delete-item ul li:hover {
2168
  content: '\f469'; }
2169
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.lp_lesson .icon:before {
2170
  content: '\f330'; }
2171
+ #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.empty-item {
2172
+ color: #a2a2a2;
2173
+ position: relative; }
2174
+ #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.empty-item:after {
2175
+ position: absolute;
2176
+ top: 0;
2177
+ left: 0;
2178
+ right: 0;
2179
+ bottom: 0;
2180
+ background: #FFF;
2181
+ content: '';
2182
+ opacity: 0.5; }
2183
+ #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.empty-item .item-actions {
2184
+ display: none; }
2185
+ #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item.empty-item .icon:before {
2186
+ content: "\f463";
2187
+ color: #a2a2a2;
2188
+ -webkit-animation: rotating4 2s linear infinite;
2189
+ -moz-animation: rotating4 2s linear infinite;
2190
+ -ms-animation: rotating4 2s linear infinite;
2191
+ -o-animation: rotating4 2s linear infinite;
2192
+ animation: rotating4 2s linear infinite; }
2193
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .icon {
 
2194
  font-size: 20px;
2195
  color: #0085ba;
2196
+ text-align: center;
2197
+ flex: 0 0 29px; }
2198
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .icon:before {
2199
  font-family: Dashicons; }
2200
  #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item input {
2219
  #admin-editor-lp_course .lp-course-curriculum .section-actions .remove.confirm .icon {
2220
  display: none; }
2221
 
2222
+ #admin-editor-lp_course .lp-course-curriculum .ui-sortable-placeholder {
2223
+ visibility: visible !important;
2224
+ background: #bdf4fe !important;
2225
+ display: block;
2226
+ border-color: #bdf4fe !important; }
 
 
 
 
 
 
 
 
 
 
 
2227
 
2228
+ .section-item-counts {
 
2229
  position: absolute;
2230
  top: 0;
2231
+ right: 41px;
2232
+ white-space: nowrap;
2233
+ line-height: 44px;
2234
+ font-size: 12px; }
2235
+ .section-item-counts span {
2236
+ font-weight: bold;
2237
+ color: #999; }
2238
+
2239
+ /**
2240
+ * Quiz admin editor.
2241
+ */
2242
+ #admin-editor-lp_quiz .lp-box-data-head {
2243
+ padding: 12px 10px; }
2244
+ #admin-editor-lp_quiz .lp-box-data-head h3 {
2245
+ padding: 0; }
2246
+ #admin-editor-lp_quiz .lp-box-data-head .status {
2247
+ font-family: Dashicons;
2248
+ font-size: 20px;
2249
+ position: relative;
2250
+ top: 5px;
2251
+ margin-left: 10px;
2252
+ visibility: hidden; }
2253
+ #admin-editor-lp_quiz .lp-box-data-head .status:before {
2254
+ content: "\f463"; }
2255
+ #admin-editor-lp_quiz .lp-box-data-head .status.loading {
2256
+ visibility: visible;
2257
+ animation: rotation 2s infinite linear;
2258
+ display: inline-block; }
2259
+ #admin-editor-lp_quiz .lp-box-data-head .collapse-list-questions {
2260
+ font-family: Dashicons;
2261
+ position: absolute;
2262
+ top: 0;
2263
+ right: 0;
2264
+ bottom: 0;
2265
+ font-size: 30px;
2266
+ display: flex;
2267
+ justify-content: center;
2268
+ align-items: center;
2269
+ cursor: pointer;
2270
+ width: 40px;
2271
+ height: 46px;
2272
+ color: #999; }
2273
 
2274
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions {
2275
  color: #777;
2280
  text-align: center; }
2281
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > * {
2282
  width: 100%;
2283
+ padding: 12px 10px; }
2284
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .sort {
2285
+ flex: 0 0 15px;
 
2286
  cursor: url("../../images/openhand.cur") 7 5, default;
2287
  visibility: hidden;
2288
+ position: relative;
2289
+ font-size: 18px;
2290
+ color: #d5dce0; }
 
 
 
 
 
 
2291
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .sort:hover {
2292
+ color: #0085ba; }
2293
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .order {
2294
+ flex: 0 0 30px;
2295
+ text-align: right;
2296
+ font-weight: bold;
2297
+ font-size: 15px;
2298
+ padding: 12px 0; }
2299
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .order:after {
2300
+ content: '.'; }
2301
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .type {
2302
  width: 150px; }
2303
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .actions {
2304
  width: 300px; }
2305
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row > .name {
2306
+ padding-left: 5px; }
2307
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row:hover > .sort {
2308
  visibility: visible; }
2309
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .table-row .actions .lp-box-data-actions {
2310
+ text-align: right !important; }
2311
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .header {
2312
+ border-bottom: 1px solid #ddd;
2313
+ display: none; }
2314
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .header .table-row > * {
2315
+ font-weight: bold; }
2316
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .header .table-row > .order:after {
2317
+ content: ''; }
2318
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .header .table-row > .actions {
2319
+ padding: 12px 0; }
2320
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-actions .name input {
2321
  width: 100%;
2322
  font-size: 14px;
2326
  font-weight: normal;
2327
  color: #777;
2328
  padding: 0; }
 
 
2329
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings {
2330
  border: 1px solid #ddd;
2331
  border-left: none;
2334
  padding: 20px; }
2335
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options {
2336
  border: 1px solid #ddd; }
2337
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options .sort {
2338
+ width: 12px;
2339
+ padding: 8px 5px; }
2340
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options .answer-text {
2341
+ padding-left: 5px;
2342
  width: calc(100% - 100px); }
2343
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options .order {
2344
+ width: 30px;
2345
+ text-align: right;
2346
+ padding: 0; }
2347
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options .answer-correct {
2348
+ width: 65px;
2349
+ text-align: center; }
2350
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options .actions {
2351
+ padding: 0;
2352
+ text-align: right; }
2353
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options .actions .lp-toolbar-btn {
2354
+ height: 42px; }
2355
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr {
2356
  background: #fff;
2357
+ border: 1px solid #DDD;
2358
+ position: relative; }
2359
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr:nth-child(2n) {
2360
  background: #f4fcff; }
2361
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr td {
2364
  position: static;
2365
  border: none; }
2366
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr td.sort {
2367
+ cursor: url("../../images/openhand.cur") 7 5, default;
2368
+ width: 12px;
2369
+ position: relative; }
2370
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr td.order {
2371
+ font-weight: bold; }
2372
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr td.answer-text {
2373
+ padding-left: 5px; }
2374
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr td.answer-correct {
2375
  text-align: center; }
2376
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr .svg-icon {
2377
+ height: 18px;
2378
+ vertical-align: middle;
2379
+ visibility: hidden;
2380
+ fill: #d5dce0; }
2381
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr:hover .svg-icon {
2382
+ visibility: visible; }
2383
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr:hover .sort:hover .svg-icon {
2384
+ fill: #0085ba; }
2385
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr.ui-sortable-placeholder {
2386
+ visibility: visible !important; }
2387
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr.ui-sortable-placeholder td {
2388
+ height: 43px;
2389
+ background: #bdf4fe !important; }
2390
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr.ui-sortable-helper {
2391
+ border-left: none;
2392
+ border-right: none; }
2393
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr.ui-sortable-helper td {
2394
+ border-bottom: 1px solid #DDD; }
2395
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr.ui-sortable-helper td.sort {
2396
+ border-left: 0; }
2397
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr.empty-option .sort i {
2398
+ display: none; }
2399
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr.empty-option .sort:before {
2400
+ font-family: Dashicons;
2401
+ content: "\f463";
2402
+ display: inline-block;
2403
+ font-size: 18px;
2404
+ position: absolute;
2405
+ left: 4px;
2406
+ top: 12px;
2407
+ -webkit-animation: rotating4 2s linear infinite;
2408
+ -moz-animation: rotating4 2s linear infinite;
2409
+ -ms-animation: rotating4 2s linear infinite;
2410
+ -o-animation: rotating4 2s linear infinite;
2411
+ animation: rotating4 2s linear infinite; }
2412
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr.empty-option td {
2413
+ position: relative; }
2414
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody tr.empty-option td:after {
2415
+ content: '';
2416
+ top: 0;
2417
+ left: 0;
2418
+ right: 1px;
2419
+ bottom: 0;
2420
+ background: #FFF;
2421
+ position: absolute;
2422
+ opacity: 0.5; }
2423
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-settings .quiz-question-data table.lp-list-options tbody .answer-text input {
2424
  width: 100%;
2425
  font-size: 14px;
2426
  border: none;
2434
  border-bottom: 1px solid #f1f1f1; }
2435
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item:nth-child(2n+1) {
2436
  background: #f4fcff; }
2437
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.ui-sortable-helper {
2438
+ border-top: 1px solid #f1f1f1; }
2439
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.ui-sortable-placeholder {
2440
+ visibility: visible !important;
2441
+ background: #bdf4fe !important;
2442
+ display: block;
2443
+ border-color: #bdf4fe !important; }
2444
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.empty-question, #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.updating {
2445
+ position: relative; }
2446
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.empty-question .question-actions .sort, #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.updating .question-actions .sort {
2447
+ visibility: visible; }
2448
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.empty-question .question-actions .sort .fa, #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.updating .question-actions .sort .fa {
2449
+ display: none; }
2450
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.empty-question .question-actions .sort:after, #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.updating .question-actions .sort:after {
2451
+ font-family: Dashicons;
2452
+ content: "\f463";
2453
+ font-size: 20px;
2454
+ display: inline-block;
2455
+ position: absolute;
2456
+ left: 5px;
2457
+ -webkit-animation: rotating4 2s linear infinite;
2458
+ -moz-animation: rotating4 2s linear infinite;
2459
+ -ms-animation: rotating4 2s linear infinite;
2460
+ -o-animation: rotating4 2s linear infinite;
2461
+ animation: rotating4 2s linear infinite; }
2462
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.empty-question:after, #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.updating:after {
2463
+ content: '';
2464
+ position: absolute;
2465
+ top: 0;
2466
+ left: 0;
2467
+ right: 0;
2468
+ bottom: 0;
2469
+ background: #FFF;
2470
+ opacity: 0.5; }
2471
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item.empty-question .question-settings {
2472
+ display: none; }
2473
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .cell {
2474
  padding: 10px; }
2475
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-actions .name input {
2524
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings {
2525
  background: #fff; }
2526
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings .quiz-question-options {
2527
+ text-align: left;
2528
+ padding-left: 0; }
2529
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings .quiz-question-options .inside {
2530
  margin: 0;
2531
  padding: 0; }
2534
  margin: 0; }
2535
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings .quiz-question-options .inside .rwmb-meta-box .rwmb-field:nth-child(2n+1) {
2536
  background: #f4fcff; }
2537
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings .quiz-question-options .postbox .hndle {
2538
+ cursor: default; }
2539
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings .quiz-question-options .postbox .toggle {
2540
+ float: right;
2541
+ width: 36px;
2542
+ height: 36px;
2543
+ position: absolute;
2544
+ top: 0;
2545
+ right: 0;
2546
+ line-height: 36px;
2547
+ text-align: center; }
2548
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings .quiz-question-options .postbox .toggle:after {
2549
+ font-family: Dashicons;
2550
+ content: "\f460";
2551
+ font-size: 18px; }
2552
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings.closed .quiz-question-options {
2553
+ width: 38px; }
2554
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings.closed .postbox {
2555
+ min-width: 34px;
2556
+ height: 34px;
2557
+ line-height: 42px;
2558
+ text-align: center; }
2559
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings.closed .postbox .hndle {
2560
+ display: none; }
2561
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .main .question-item .question-settings.closed .postbox .toggle:after {
2562
+ content: "\f132"; }
2563
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer {
2564
+ border-top: 1px solid #DDD;
2565
+ margin-top: -1px; }
2566
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .order {
2567
+ line-height: 28px; }
2568
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row {
2569
+ text-align: left; }
2570
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question .title {
2571
  position: relative;
2572
  display: inline-block;
2573
  min-width: 500px; }
2574
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question .title input {
2575
+ border: 0;
2576
  width: 100%;
2577
  margin: 0;
2578
+ padding: 6px 0px;
2579
  -webkit-box-shadow: none;
2580
  -moz-box-shadow: none;
2581
  box-shadow: none;
2588
  box-shadow: none; }
2589
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question .title input:focus {
2590
  border-color: #DDD; }
2591
+ #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question .title input::placeholder {
2592
+ color: #999;
2593
+ font-style: italic;
2594
+ border-bottom: 1px solid #DDD;
2595
+ display: inline-block; }
2596
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .footer .table-row .add-new-question .add-new {
2597
  display: inline;
2598
  position: relative; }
2636
  #admin-editor-lp_question {
2637
  background: #fff; }
2638
  #admin-editor-lp_question .lp-box-data-head {
2639
+ padding: 0 10px; }
2640
  #admin-editor-lp_question .lp-box-data-head .heading {
2641
+ float: left;
2642
+ padding: 12px 10px; }
2643
+ #admin-editor-lp_question .lp-box-data-head .heading .section-item-counts {
2644
+ right: 50px; }
2645
+ #admin-editor-lp_question .lp-box-data-head .heading .section-item-counts span {
2646
+ background: #F5F5F5;
2647
+ padding: 0 9px;
2648
+ color: #00b9ff;
2649
+ margin-top: 8px;
2650
+ display: inline-block;
2651
+ line-height: 30px;
2652
+ height: 30px;
2653
+ -webkit-border-radius: 3px;
2654
+ -moz-border-radius: 3px;
2655
+ border-radius: 3px;
2656
+ border-top-right-radius: 0;
2657
+ border-bottom-right-radius: 0; }
2658
+ #admin-editor-lp_question .lp-box-data-head .lp-toolbar-buttons {
2659
+ height: 46px; }
2660
  #admin-editor-lp_question .lp-box-data-head .question-actions {
2661
+ margin-right: 10px;
2662
+ height: 30px;
2663
+ background: #BBB;
2664
+ margin-top: 8px;
2665
+ -webkit-border-radius: 3px;
2666
+ -moz-border-radius: 3px;
2667
+ border-radius: 3px;
2668
+ border-top-left-radius: 0;
2669
+ border-bottom-left-radius: 0; }
2670
+ #admin-editor-lp_question .lp-box-data-head .question-actions .question-types a {
2671
+ color: #FFF; }
2672
  #admin-editor-lp_question .lp-box-data-head .question-actions .question-types ul {
2673
  position: absolute;
2674
  top: 100%;
2686
  display: block;
2687
  white-space: nowrap;
2688
  text-decoration: none;
2689
+ padding: 5px;
2690
  font-size: 12px;
2691
  text-align: right;
2692
  color: #0073aa;
2693
+ min-width: 100px; }
2694
  #admin-editor-lp_question .lp-box-data-head .question-actions .question-types ul:hover {
2695
  display: block; }
2696
  #admin-editor-lp_question .lp-box-data-head .question-actions:hover .question-types ul {
2708
  padding: 15px;
2709
  background: #F5F5F5;
2710
  border-bottom: 1px solid #DDD; }
2711
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers .sort, #admin-editor-lp_question .lp-box-data-content table.list-question-answers .order, #admin-editor-lp_question .lp-box-data-content table.list-question-answers .actions {
2712
+ width: 10px; }
2713
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers .sort {
2714
+ padding: 0 10px; }
2715
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers .order {
2716
+ text-align: right;
2717
+ padding: 0;
2718
+ width: 30px;
2719
+ font-weight: bold; }
2720
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers .answer-correct {
2721
+ width: 65px;
2722
+ text-align: center; }
2723
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers .answer-text {
2724
+ padding-left: 5px; }
2725
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers .actions {
2726
+ padding-right: 0;
2727
+ text-align: right; }
2728
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr {
2729
  background: #f4fcff;
2730
  color: #777; }
2731
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr:nth-child(2n) {
2732
  background: #fff; }
 
 
2733
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.sort {
2734
  width: 15px;
2735
  text-align: center;
2736
  font-size: 18px;
2737
+ cursor: url("../../images/openhand.cur") 7 5, default;
2738
+ padding: 0; }
2739
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.sort .svg-icon {
2740
+ visibility: hidden;
2741
+ fill: #d5dce0;
2742
+ height: 18px;
2743
+ vertical-align: middle; }
2744
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.sort:hover .svg-icon {
2745
+ fill: #0085ba; }
2746
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.order {
2747
+ font-size: 14px; }
2748
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.answer-text input {
2749
  width: 100%;
2750
  font-size: 14px;
2754
  font-weight: normal;
2755
  color: #777;
2756
  padding: 0; }
 
 
 
 
2757
  #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr td.lp-toolbar-buttons {
2758
  z-index: auto; }
2759
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr:hover td.actions .remove-answer {
2760
+ visibility: visible;
2761
+ height: 42px; }
2762
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr:hover td.sort .svg-icon {
2763
+ visibility: visible; }
2764
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr.ui-sortable-placeholder {
2765
+ visibility: visible !important; }
2766
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr.ui-sortable-placeholder td {
2767
+ background: #bdf4fe !important;
2768
+ height: 43px; }
2769
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr.ui-sortable-helper td {
2770
+ border-bottom: 1px solid #DDD; }
2771
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr.ui-sortable-helper td.sort {
2772
+ border-left: 0; }
2773
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr.new-option .svg-icon {
2774
+ display: none; }
2775
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr.new-option td {
2776
+ position: relative; }
2777
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr.new-option .sort:before {
2778
+ content: "\f463";
2779
+ font-family: Dashicons;
2780
+ position: absolute;
2781
+ left: 10px;
2782
+ top: 12px;
2783
+ display: inline-block;
2784
+ -webkit-animation: rotating4 2s linear infinite;
2785
+ -moz-animation: rotating4 2s linear infinite;
2786
+ -ms-animation: rotating4 2s linear infinite;
2787
+ -o-animation: rotating4 2s linear infinite;
2788
+ animation: rotating4 2s linear infinite; }
2789
+ #admin-editor-lp_question .lp-box-data-content table.list-question-answers tbody tr.new-option td:after {
2790
+ position: absolute;
2791
+ content: '';
2792
+ background: #FFF;
2793
+ top: 0;
2794
+ left: 0;
2795
+ right: 0;
2796
+ bottom: 0;
2797
+ opacity: 0.5; }
2798
  #admin-editor-lp_question .lp-box-data-content .add-answer {
2799
  margin: 15px 0 0 0; }
2800
 
2864
  border-right: 1px solid #ddd;
2865
  position: absolute;
2866
  right: 0;
2867
+ height: 44px;
2868
  top: 50%;
2869
+ margin-top: -22px; }
2870
  #lp-modal-choose-items .lp-choose-items .header .tabs .tab.active:after {
2871
  border: 1px solid #ddd;
2872
  transform: rotate(45deg);
2884
  #lp-modal-choose-items .lp-choose-items .header .tabs .tab.active a {
2885
  color: #333; }
2886
  #lp-modal-choose-items .lp-choose-items .header .tabs .tab a {
2887
+ padding: 0 20px;
2888
  text-decoration: none;
2889
  display: inline-block;
2890
+ font-weight: 600;
2891
+ height: 44px;
2892
+ line-height: 44px; }
2893
  #lp-modal-choose-items .lp-choose-items .header .tabs .tab a:focus {
2894
  box-shadow: none; }
2895
  #lp-modal-choose-items .lp-choose-items .header .close {
2899
  right: 0;
2900
  cursor: pointer;
2901
  font-size: 1em;
2902
+ padding: 12px;
2903
+ z-index: 30; }
2904
  #lp-modal-choose-items .lp-choose-items .main {
2905
  padding: 20px;
2906
  position: relative;
2907
+ overflow: hidden;
2908
+ border-bottom: 1px solid #DDD; }
2909
  #lp-modal-choose-items .lp-choose-items .main .section-item {
2910
  cursor: pointer;
2911
  transition: color 200ms ease-out;
2921
  #lp-modal-choose-items .lp-choose-items .main .search {
2922
  margin-bottom: 20px;
2923
  background: transparent; }
2924
+ #lp-modal-choose-items .lp-choose-items .main .search input.modal-search-input {
2925
  width: 100%;
2926
  font-size: 1.2em;
2927
+ line-height: 1.5;
2928
+ padding: 10px 14px; }
2929
  #lp-modal-choose-items .lp-choose-items .main .list-items {
2930
  min-height: 260px;
2931
  margin: 0; }
2945
  z-index: 2;
2946
  padding: 20px;
2947
  transform: translate(100%, 0);
2948
+ max-height: 420px;
2949
  overflow: auto; }
2950
  #lp-modal-choose-items .lp-choose-items .lp-added-items-preview.show {
2951
  transform: translate(0, 0); }
2956
  #lp-modal-choose-items .lp-choose-items .footer {
2957
  padding: 20px; }
2958
 
2959
+ body.moving {
2960
+ cursor: url("../../images/closedhand.cur") 7 5, default !important; }
2961
+ body.moving .section-item .drag {
2962
+ cursor: url("../../images/closedhand.cur") 7 5, default !important; }
2963
+
2964
  @media screen and (max-width: 900px) {
2965
  #admin-editor-lp_quiz .lp-box-data-content .lp-list-questions .question-settings.table-row {
2966
  display: block;
3096
  #adminmenu .update-plugins.lp-plugins-count {
3097
  padding: 0 5px; }
3098
 
3099
+ .search-box input[name="post-search-author"],
3100
+ .search-box .select2-container {
3101
+ margin: 0;
3102
+ min-width: 200px;
3103
+ vertical-align: top; }
3104
+
3105
+ .learn-press-notice-assigned-item {
3106
+ color: #FF0000; }
3107
+
3108
  .learnpress .actions {
3109
  margin: 0; }
assets/js/admin/admin.js CHANGED
@@ -378,6 +378,8 @@
378
  });
379
  }
380
 
 
 
381
  var $doc = $(document);
382
 
383
  function _ready() {
378
  });
379
  }
380
 
381
+
382
+
383
  var $doc = $(document);
384
 
385
  function _ready() {
assets/js/admin/course-editor.js CHANGED
@@ -15,749 +15,853 @@
15
  };
16
  })(window);
17
 
 
18
 
19
- /**
20
- * I18n Store
21
- *
22
- * @since 3.0.0
23
- */
24
 
25
- var LP_Curriculum_i18n_Store = (function (Vue, helpers, data) {
26
- var state = helpers.cloneObject(data.i18n);
 
 
 
27
 
28
- var getters = {
29
- all: function (state) {
30
- return state;
31
- }
32
- };
33
-
34
- return {
35
- namespaced: true,
36
- state: state,
37
- getters: getters
38
- };
39
 
40
- })(Vue, LP_Helpers, lp_course_editor);
41
-
42
- /**
43
- * Sections Store.
44
- *
45
- * @since 3.0.0
46
- */
47
- var LP_Curriculum_Sections_Store = (function (Vue, helpers, data) {
48
- var state = helpers.cloneObject(data.sections);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
- state.statusUpdateSection = {};
51
- state.statusUpdateSectionItem = {};
52
 
53
- state.sections = state.sections.map(function (section) {
54
- var hiddenSections = state.hidden_sections;
55
- var find = hiddenSections.find(function (sectionId) {
56
- return parseInt(section.id) === parseInt(sectionId);
57
  });
58
 
59
- section.open = !find;
60
-
61
- return section;
62
- });
63
-
64
- var getters = {
65
- sections: function (state) {
66
- return state.sections || [];
67
- },
68
- urlEdit: function (state) {
69
- return state.urlEdit;
70
- },
71
- hiddenSections: function (state) {
72
- return state.sections
73
- .filter(function (section) {
74
- return !section.open;
75
- })
76
- .map(function (section) {
77
- return parseInt(section.id);
78
- });
79
- },
80
- isHiddenAllSections: function (state, getters) {
81
- var sections = getters['sections'];
82
- var hiddenSections = getters['hiddenSections'];
83
-
84
- return hiddenSections.length === sections.length;
85
- },
86
- statusUpdateSection: function (state) {
87
- return state.statusUpdateSection;
88
- },
89
- statusUpdateSectionItem: function (state) {
90
- return state.statusUpdateSectionItem;
91
- }
92
- };
93
-
94
- var mutations = {
95
- 'SORT_SECTION': function (state, orders) {
96
- state.sections = state.sections.map(function (section) {
97
- section.order = orders[section.id];
98
 
99
- return section;
100
- });
101
- },
102
- 'SET_SECTIONS': function (state, sections) {
103
- state.sections = sections;
104
- },
105
- 'ADD_NEW_SECTION': function (state, section) {
106
- section.open = true;
107
- state.sections.push(section);
108
- },
109
- 'REMOVE_SECTION': function (state, index) {
110
- state.sections.splice(index, 1);
111
- },
112
- 'REMOVE_SECTION_ITEM': function (state, payload) {
113
- var section = state.sections.find(function (section) {
114
- return (section.id === payload.section_id);
115
- });
116
 
117
- var items = section.items || [];
118
- var index = -1;
119
- items.forEach(function (item, i) {
120
- if (item.id === payload.item_id) {
121
- index = i;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
123
- });
124
 
125
- if (index !== -1) {
126
- items.splice(index, 1);
127
- }
128
- },
129
- 'UPDATE_SECTION_ITEMS': function (state, payload) {
130
- var section = state.sections.find(function (section) {
131
- return parseInt(section.id) === parseInt(payload.section_id);
132
- });
 
 
 
 
 
 
 
 
 
 
133
 
134
- if (!section) {
135
- return;
136
- }
137
- section.items = payload.items;
138
- },
139
- 'UPDATE_SECTION_ITEM': function (state, payload) {
 
 
140
 
141
- },
 
 
 
 
 
 
 
 
 
 
 
142
 
143
- 'CLOSE_SECTION': function (state, section) {
144
- state.sections.forEach(function (_section, index) {
145
- if (section.id === _section.id) {
146
- state.sections[index].open = false;
147
  }
148
- });
 
 
149
 
150
- },
151
 
152
- 'OPEN_SECTION': function (state, section) {
153
- state.sections.forEach(function (_section, index) {
154
- if (section.id === _section.id) {
155
- state.sections[index].open = true;
156
- }
157
- });
158
- },
159
 
160
- 'OPEN_ALL_SECTIONS': function (state) {
161
- state.sections = state.sections.map(function (_section) {
162
- _section.open = true;
163
 
164
- return _section;
165
- });
166
- },
 
 
 
 
167
 
168
- 'CLOSE_ALL_SECTIONS': function (state) {
169
- state.sections = state.sections.map(function (_section) {
170
- _section.open = false;
171
 
172
- return _section;
173
- });
174
- },
175
 
176
- 'UPDATE_SECTION_REQUEST': function (state, sectionId) {
177
- Vue.set(state.statusUpdateSection, sectionId, 'updating');
178
- },
179
 
180
- 'UPDATE_SECTION_SUCCESS': function (state, sectionId) {
181
- Vue.set(state.statusUpdateSection, sectionId, 'successful');
182
- },
183
 
184
- 'UPDATE_SECTION_FAILURE': function (state, sectionId) {
185
- Vue.set(state.statusUpdateSection, sectionId, 'failed');
186
- },
187
 
188
- 'UPDATE_SECTION_ITEM_REQUEST': function (state, itemId) {
189
- Vue.set(state.statusUpdateSectionItem, itemId, 'updating');
190
- },
191
 
192
- 'UPDATE_SECTION_ITEM_SUCCESS': function (state, itemId) {
193
- Vue.set(state.statusUpdateSectionItem, itemId, 'successful');
194
- },
195
 
196
- 'UPDATE_SECTION_ITEM_FAILURE': function (state, itemId) {
197
- Vue.set(state.statusUpdateSectionItem, itemId, 'failed');
198
- }
199
- };
200
 
201
- var actions = {
 
 
202
 
203
- toggleAllSections: function (context) {
204
- var hidden = context.getters['isHiddenAllSections'];
 
 
205
 
206
- if (hidden) {
207
- context.commit('OPEN_ALL_SECTIONS');
208
- } else {
209
- context.commit('CLOSE_ALL_SECTIONS');
210
- }
211
 
212
- Vue.http.LPRequest({
213
- type: 'hidden-sections',
214
- hidden: context.getters['hiddenSections']
215
- });
216
- },
217
-
218
- updateSectionsOrder: function (context, order) {
219
- Vue.http.LPRequest({
220
- type: 'sort-sections',
221
- order: JSON.stringify(order)
222
- }).then(
223
- function (response) {
224
- var result = response.body;
225
- var order_sections = result.data;
226
- context.commit('SORT_SECTION', order_sections);
227
- },
228
- function (error) {
229
- console.error(error);
230
  }
231
- );
232
- },
233
-
234
- toggleSection: function (context, section) {
235
- if (section.open) {
236
- context.commit('CLOSE_SECTION', section);
237
- } else {
238
- context.commit('OPEN_SECTION', section);
239
- }
240
 
241
- Vue.http.LPRequest({
242
- type: 'hidden-sections',
243
- hidden: context.getters['hiddenSections']
244
- });
245
- },
246
-
247
- updateSection: function (context, section) {
248
- context.commit('UPDATE_SECTION_REQUEST', section.id);
249
-
250
- Vue.http
251
- .LPRequest({
252
- type: 'update-section',
253
- section: JSON.stringify(section)
254
- })
255
- .then(function () {
256
- context.commit('UPDATE_SECTION_SUCCESS', section.id);
257
- })
258
- .catch(function () {
259
- context.commit('UPDATE_SECTION_FAILURE', section.id);
260
- })
261
- },
262
-
263
- removeSection: function (context, payload) {
264
- context.commit('REMOVE_SECTION', payload.index);
265
-
266
- Vue.http.LPRequest({
267
- type: 'remove-section',
268
- section_id: payload.section.id
269
- }).then(
270
- function (response) {
271
- var result = response.body;
272
- },
273
- function (error) {
274
- console.error(error);
275
- }
276
- );
277
- },
278
 
279
- newSection: function (context, name) {
 
 
280
 
281
- Vue.http.LPRequest({
282
- type: 'new-section',
283
- section_name: name
284
- }).then(
285
- function (response) {
286
- var result = response.body;
287
 
288
- if (result.success) {
289
- // update course section
290
- context.commit('ADD_NEW_SECTION', result.data);
 
 
 
 
 
291
  }
292
- },
293
- function (error) {
294
- console.error(error);
295
  }
296
- );
297
- },
298
 
299
- updateSectionItem: function (context, payload) {
300
- context.commit('UPDATE_SECTION_ITEM_REQUEST', payload.item.id);
301
-
302
- Vue.http.LPRequest({
303
- type: 'update-section-item',
304
- section_id: payload.section_id,
305
- item: JSON.stringify(payload.item)
306
 
307
- }).then(
308
- function (response) {
309
- context.commit('UPDATE_SECTION_ITEM_SUCCESS', payload.item.id);
310
 
311
- var result = response.body;
312
- if (result.success) {
313
- var item = result.data;
314
 
315
- context.commit('UPDATE_SECTION_ITEM', {section_id: payload.section_id, item: item});
316
- }
317
- },
318
- function (error) {
319
- context.commit('UPDATE_SECTION_ITEM_FAILURE', payload.item.id);
320
- console.error(error);
321
  }
322
- );
323
- },
324
-
325
- removeSectionItem: function (context, payload) {
326
- context.commit('REMOVE_SECTION_ITEM', payload);
327
 
328
- Vue.http
329
- .LPRequest({
330
- type: 'remove-section-item',
331
- section_id: payload.section_id,
332
- item_id: payload.item_id
333
  });
334
- },
335
 
336
- deleteSectionItem: function (context, payload) {
337
- context.commit('REMOVE_SECTION_ITEM', payload);
338
-
339
- Vue.http
340
- .LPRequest({
341
- type: 'delete-section-item',
342
- section_id: payload.section_id,
343
- item_id: payload.item_id
344
- });
345
- },
346
-
347
- newSectionItem: function (context, payload) {
348
- Vue.http.LPRequest({
349
- type: 'new-section-item',
350
- section_id: payload.section_id,
351
- item: JSON.stringify(payload.item)
352
- }).then(
353
- function (response) {
354
- var result = response.body;
355
-
356
- if (result.success) {
357
- context.commit('UPDATE_SECTION_ITEMS', {section_id: payload.section_id, items: result.data});
358
  }
359
- },
360
- function (error) {
361
- console.error(error);
362
- }
363
- );
364
- },
365
-
366
- updateSectionItems: function (context, payload) {
367
-
368
- Vue.http.LPRequest({
369
- type: 'update-section-items',
370
- section_id: payload.section_id,
371
- items: JSON.stringify(payload.items)
372
- }).then(
373
- function (response) {
374
- var result = response.body;
375
 
376
- if (result.success) {
377
- // console.log(result);
378
- }
379
- },
380
- function (error) {
381
- console.error(error);
382
  }
383
- );
384
- }
385
- };
386
 
387
- return {
388
- namespaced: true,
389
- state: state,
390
- getters: getters,
391
- mutations: mutations,
392
- actions: actions
393
- };
394
- })(Vue, LP_Helpers, lp_course_editor);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
395
 
 
 
 
 
 
 
 
 
 
 
 
 
396
 
397
- /**
398
- * Choose Item Modal Store
399
- *
400
- * @since 3.0.0
401
- *
402
- * @type {{namespaced, state, getters, mutations, actions}}
403
- */
404
- var LP_Choose_Items_Modal_Store = (function (exports, Vue, helpers, data) {
405
- var state = helpers.cloneObject(data.chooseItems);
406
- state.sectionId = false;
407
- state.pagination = '';
408
- state.status = '';
409
-
410
- var getters = {
411
- status: function (state) {
412
- return state.status;
413
- },
414
- pagination: function (state) {
415
- return state.pagination;
416
- },
417
- items: function (state, _getters) {
418
- return state.items.map(function (item) {
419
- var find = _getters.addedItems.find(function (_item) {
420
- return item.id === _item.id;
421
  });
422
 
423
- item.added = !!find;
424
-
425
- return item;
426
- });
427
- },
428
- addedItems: function (state) {
429
- return state.addedItems;
430
- },
431
- isOpen: function (state) {
432
- return state.open;
433
- },
434
- types: function (state) {
435
- return state.types;
436
- },
437
- section: function () {
438
- return state.sectionId;
439
- }
440
- };
441
 
442
- var mutations = {
443
- 'TOGGLE': function (state) {
444
- state.open = !state.open;
445
- },
446
- 'SET_SECTION': function (state, sectionId) {
447
- state.sectionId = sectionId;
448
- },
449
- 'SET_LIST_ITEMS': function (state, items) {
450
- state.items = items;
451
- },
452
- 'ADD_ITEM': function (state, item) {
453
- state.addedItems.push(item);
454
- },
455
- 'REMOVE_ADDED_ITEM': function (state, item) {
456
- state.addedItems.forEach(function (_item, index) {
457
- if (_item.id === item.id) {
458
- state.addedItems.splice(index, 1);
459
- }
460
- });
461
- },
462
- 'RESET': function (state) {
463
- state.addedItems = [];
464
- state.items = [];
465
- },
466
- 'UPDATE_PAGINATION': function (state, pagination) {
467
- state.pagination = pagination;
468
- },
469
- 'SEARCH_ITEMS_REQUEST': function (state) {
470
- state.status = 'loading';
471
- },
472
- 'SEARCH_ITEMS_SUCCESS': function (state) {
473
- state.status = 'successful';
474
- },
475
- 'SEARCH_ITEMS_FAILURE': function (state) {
476
- state.status = 'failed';
477
- }
478
- };
479
 
480
- var actions = {
481
-
482
- toggle: function (context) {
483
- context.commit('TOGGLE');
484
- },
485
-
486
- open: function (context, sectionId) {
487
- context.commit('SET_SECTION', sectionId);
488
- context.commit('RESET');
489
- context.commit('TOGGLE');
490
- },
491
-
492
- searchItems: function (context, payload) {
493
- context.commit('SEARCH_ITEMS_REQUEST');
494
-
495
- Vue.http.LPRequest({
496
- type: 'search-items',
497
- query: payload.query,
498
- item_type: payload.type,
499
- page: payload.page,
500
- exclude: JSON.stringify([])
501
- }).then(
502
- function (response) {
503
- var result = response.body;
504
-
505
- if (!result.success) {
506
- return;
507
  }
 
 
508
 
509
- var data = result.data;
 
510
 
511
- context.commit('SET_LIST_ITEMS', data.items);
512
- context.commit('UPDATE_PAGINATION', data.pagination);
513
- context.commit('SEARCH_ITEMS_SUCCESS');
514
- },
515
- function (error) {
516
- context.commit('SEARCH_ITEMS_FAILURE');
517
 
518
- console.error(error);
519
- }
520
- );
521
- },
522
 
523
- addItem: function (context, item) {
524
- context.commit('ADD_ITEM', item);
525
- },
526
 
527
- removeItem: function (context, index) {
528
- context.commit('REMOVE_ADDED_ITEM', index);
529
- },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
 
531
- addItemsToSection: function (context) {
532
- var items = context.getters.addedItems;
533
 
534
- if (items.length > 0) {
 
535
  Vue.http.LPRequest({
536
- type: 'add-items-to-section',
537
- section_id: context.getters.section,
538
- items: JSON.stringify(items)
539
  }).then(
540
  function (response) {
541
  var result = response.body;
542
 
543
  if (result.success) {
544
- context.commit('TOGGLE');
545
-
546
- var items = result.data;
547
- context.commit('ss/UPDATE_SECTION_ITEMS', {
548
- section_id: context.getters.section,
 
 
549
  items: items
550
- }, {root: true});
551
  }
552
  },
553
  function (error) {
554
  console.error(error);
555
  }
556
  );
557
- }
558
- }
559
- };
560
-
561
- return {
562
- namespaced: true,
563
- state: state,
564
- getters: getters,
565
- mutations: mutations,
566
- actions: actions
567
- }
568
- })(window, Vue, LP_Helpers, lp_course_editor);
569
 
570
- /**
571
- * Root Store
572
- *
573
- * @since 3.0.0
574
- */
575
- (function (exports, Vue, Vuex, helpers, data) {
576
- var state = helpers.cloneObject(data.root);
577
-
578
- state.status = 'success';
579
- state.heartbeat = true;
580
- state.countCurrentRequest = 0;
581
-
582
- var getters = {
583
- heartbeat: function (state) {
584
- return state.heartbeat;
585
- },
586
- action: function (state) {
587
- return state.action;
588
- },
589
- id: function (state) {
590
- return state.course_id;
591
- },
592
- autoDraft: function (state) {
593
- return state.auto_draft;
594
- },
595
- disable_curriculum: function (state) {
596
- return state.disable_curriculum;
597
- },
598
- status: function (state) {
599
- return state.status || 'error';
600
- },
601
- currentRequest: function (state) {
602
- return state.countCurrentRequest || 0;
603
- },
604
- urlAjax: function (state) {
605
- return state.ajax;
606
- },
607
- nonce: function (state) {
608
- return state.nonce;
609
- }
610
- };
611
-
612
- var mutations = {
613
-
614
- 'UPDATE_HEART_BEAT': function (state, status) {
615
- state.heartbeat = !!status;
616
- },
617
-
618
- 'UPDATE_AUTO_DRAFT_STATUS': function (state, status) {
619
- // check auto draft status
620
- state.auto_draft = status;
621
- },
622
 
623
- 'UPDATE_STATUS': function (state, status) {
624
- state.status = status;
625
- },