ccj_admin.css 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. /**
  2. * Add Custom Code buttons
  3. */
  4. .updated.buttons {
  5. border: none;
  6. background-color: transparent;
  7. box-shadow: none;
  8. padding: 0;
  9. margin: 15px 0 15px !important;
  10. }
  11. .custom-btn {
  12. background: #0c73b8;
  13. border-radius: 2px;
  14. color: #ffffff;
  15. font-size: 17px;
  16. padding: 10px 20px 10px 20px !important;
  17. text-decoration: none;
  18. }
  19. .custom-btn:hover {
  20. color: #fff;
  21. background: #2eaadd;
  22. text-decoration: none;
  23. }
  24. .custom-js-btn { background: #e4a228; }
  25. .custom-js-btn:hover { background: #eebf31; }
  26. .custom-php-btn { background: #e45126; }
  27. .custom-php-btn:hover { background: #f6652c; }
  28. .update.notice a { display: none; }
  29. /**
  30. * Change the `edit` screen
  31. */
  32. .inline.hide-if-no-js{ display: none; }
  33. .view-switch { display: none; }
  34. #type.manage-column { width: 50px; }
  35. .language {
  36. background: #0c73b8;
  37. border-radius: 2px;
  38. color: #ffffff;
  39. font-size: 12px;
  40. padding: 5px 10px !important;
  41. text-decoration: none;
  42. word-wrap: normal !important;
  43. }
  44. .language-js { background: #e4a228; }
  45. .language-php { background: #e45126; }
  46. .language-html { background: #e45126; }
  47. .widefat td, .widefat th, .type.column-type, .check-column, .column-active { vertical-align: middle !important; }
  48. .type.column-type {
  49. text-align: center;
  50. }
  51. .column-options span { margin-left: 7px; }
  52. .column-active .dashicons { font-size: 17px; }
  53. .column-active a, .column-active a:active, .column-active a:hover, .column-active a:focus { display: block; outline: 0; border: 0; text-decoration: none; }
  54. #active.manage-column { width: 30px; }
  55. th.column-published, th.column-modified {
  56. width: 15%;
  57. }
  58. @media screen and (max-width:782px){
  59. .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) { display: table-cell !important; }
  60. .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column)::before { display: none !important; }
  61. .wp-list-table .toggle-row { display: none !important; }
  62. }
  63. /**
  64. * Code Mirror editor
  65. */
  66. #content {
  67. width: 100%;
  68. padding-left: 36px;
  69. border-top: 0;
  70. border-bottom: 0;
  71. }
  72. #minor-publishing { display: none; }
  73. #post-body #normal-sortables { min-height: 0px; }
  74. .CodeMirror {
  75. margin-top: 0px;
  76. border: 1px solid #ddd;
  77. border-bottom: none;
  78. border-top: none;
  79. }
  80. .CodeMirror pre { padding-left: 7px; line-height: 1.25; }
  81. .code-mirror-buttons {
  82. margin-top: 15px;
  83. width: calc(100% - 2px);
  84. background: #f7f7f7;
  85. border: 1px solid #ddd;
  86. border-bottom: none;
  87. height: 36px;
  88. }
  89. .code-mirror-buttons .button-right {
  90. display: block;
  91. float: right;
  92. }
  93. .code-mirror-buttons button {
  94. padding: 2px 3px;
  95. line-height: normal;
  96. font-size: 14px;
  97. cursor: pointer;
  98. color: #333;
  99. text-align: center;
  100. overflow: visible;
  101. margin: 6px 4px;
  102. border: none;
  103. background-color: transparent;
  104. border: 1px solid transparent;
  105. }
  106. .code-mirror-buttons button:hover, .code-mirror-buttons button:focus {
  107. color: #333;
  108. background-color: #e3e3e3;
  109. border: 1px solid #ccc;
  110. border-radius: 1px;
  111. }
  112. .code-mirror-buttons button i {
  113. font: 400 20px/1 dashicons;
  114. vertical-align: middle;
  115. speak: none;
  116. color: #777;
  117. line-height: 20px;
  118. width: 20px;
  119. height: 20px;
  120. }
  121. i.ccj-i-fullscreen:before {
  122. content: "\f211";
  123. }
  124. .code-mirror-before {
  125. border: 1px solid #ddd;
  126. border-bottom: none;
  127. background-color: #f7f7f7;
  128. margin-top: 24px;
  129. }
  130. .code-mirror-before div {
  131. color: #8F8F8F;
  132. margin-left: 29px;
  133. border-left: 1px solid #ddd;
  134. padding: 3px 8px;
  135. background-color: #fff;
  136. }
  137. .code-mirror-after {
  138. border: 1px solid #ddd;
  139. border-top: none;
  140. background-color: #f7f7f7;
  141. }
  142. .code-mirror-after div {
  143. color: #8F8F8F;
  144. margin-left: 29px;
  145. border-left: 1px solid #ddd;
  146. padding: 3px 8px;
  147. background-color: #fff;
  148. }
  149. /*
  150. .cm-s-default .cm-atom { color: #549d18; }
  151. .cm-s-default .cm-property { color: #b62625; }
  152. .cm-s-default .cm-qualifier, .cm-s-default .cm-tag { color: #4731E4; }
  153. */
  154. /**
  155. * Options meta box
  156. */
  157. .radio-group input { margin-top: 1px; }
  158. .radio-group label { padding: 2px 0; }
  159. .options_meta_box h3 { margin-top: 10px !important; }
  160. .radio-group { line-height: 30px; padding-left: 10px; }
  161. .radio-group .dashicons-before:before { margin: 7px 3px 0 3px; }
  162. .options_meta_box select { margin-left: 10px; }
  163. #custom-code-options .options_meta_box select {
  164. margin-left: 0px;
  165. width: 100%;
  166. }
  167. /**
  168. * Revisions
  169. */
  170. table.revisions {
  171. width: 100%;
  172. max-width: 100%;
  173. background-color: transparent;
  174. border-spacing: 0;
  175. border-collapse: collapse;
  176. border-color: gray;
  177. }
  178. table.revisions thead, table.revisions tbody {
  179. vertical-align: middle;
  180. }
  181. table.revisions tbody tr:hover {
  182. background-color: #f7f7f9;
  183. }
  184. table.revisions thead th {
  185. white-space: nowrap;
  186. text-align: left;
  187. padding: 8px;
  188. line-height: 1.42857143;
  189. vertical-align: bottom;
  190. border-bottom: 2px solid #ddd;
  191. }
  192. table.revisions tbody td {
  193. padding: 8px;
  194. line-height: 1.42857143;
  195. vertical-align: top;
  196. border-top: 1px solid #ddd;
  197. }
  198. tr.current-revision {
  199. background-color: #00ff00;
  200. }
  201. td.revisions-compare, td.revisions-restore, td.revisions-delete {
  202. width: 36px;
  203. }
  204. td.revisions-compare, th.revisions-compare {
  205. text-align: center !important;
  206. }
  207. table.revisions a {
  208. text-decoration: none;
  209. }
  210. table.revisions a:hover {
  211. text-decoration: underline;
  212. }
  213. table.revisions .hidden {
  214. visibility: hidden;
  215. }
  216. div#TB_window {
  217. width: 90% !important;
  218. margin-left: -45% !important;
  219. height: 90% !important;
  220. margin-top: -22% !important;
  221. }
  222. div#TB_window .error {
  223. padding: 15px;
  224. margin-bottom: 20px;
  225. border: 1px solid transparent;
  226. border-radius: 4px;
  227. color: #a94442;
  228. background-color: #f2dede;
  229. border-color: #ebccd1;
  230. }
  231. iframe#TB_iframeContent {
  232. width: 100% !important;
  233. height: 100% !important;
  234. }
  235. #url-rules textarea {
  236. width: 100%;
  237. height: 200px;
  238. }
  239. /* URL Rules */
  240. .wplnst-elist-visible { display: block; }
  241. .wplnst-elist-readonly { margin: 0; }
  242. .wplnst-elist tr {
  243. margin-bottom: 10px;
  244. }
  245. .wplnst-elist tr td {
  246. margin: 0; padding: 4px 5px;
  247. }
  248. .wplnst-elist tr td.wplnst-elist-val {
  249. color: #5c5a5a;
  250. background: rgba(0,115,170,0.6);
  251. }
  252. #wplnst-af-new { width: 361px; }
  253. #wplnst-ius-new { width: 425px; }
  254. #wplnst-eus-new { width: 425px; }
  255. .wplnst-elist tr td.wplnst-cfs-val { width: 205px; }
  256. .wplnst-elist tr td.wplnst-afs-val { width: 350px; }
  257. .wplnst-elist tr td.wplnst-ius-val { width: 415px; }
  258. .wplnst-elist tr td.wplnst-eus-val { width: 415px; }
  259. .wplnst-elist tr td.wplnst-elist-type {
  260. color: #6f6f6f;
  261. }
  262. .wplnst-elist tr td.wplnst-cfs-type { width: 53px; padding-left: 12px; }
  263. .wplnst-elist tr td.wplnst-afs-type { width: 200px; padding-left: 0; }
  264. .wplnst-elist tr td.wplnst-ius-type { width: 121px; padding-left: 14px; }
  265. .wplnst-elist tr td.wplnst-eus-type { width: 121px; padding-left: 14px; }
  266. .wplnst-elist tr td.wplnst-hes-ele { width: 55px; font-weight: bold; }
  267. .wplnst-elist tr td.wplnst-hes-have { width: 87px; font-weight: bold; }
  268. .wplnst-elist tr td.wplnst-hes-att { width: 125px; }
  269. .wplnst-elist tr td.wplnst-hes-op { width: 112px; padding-left: 15px; font-weight: bold; }
  270. .wplnst-elist tr td.wplnst-hes-val { width: 126px; }
  271. .wplnst-elist tr td.wplnst-elist-close {
  272. padding-left: 21px;
  273. }
  274. .wplnst-elist tr td.wplnst-elist-close .wplnst-elist-close-link {
  275. display: block;
  276. width: 16px; height: 16px;
  277. outline: none; border: 0;
  278. text-indent: -9999px;
  279. background: url(images/button-close.png) left top no-repeat;
  280. }
  281. .wplnst-elist tr td.wplnst-elist-close .wplnst-elist-close-link:hover {
  282. background: url(images/button-close-hover.png) left top no-repeat;
  283. }
  284. .wplnst-elist tr td.wplnst-elist-split {
  285. height: 3px;
  286. }
  287. #ccj-preview_url {
  288. width: 78%;
  289. }
  290. #ccj-preview {
  291. width: 20%;
  292. text-align: center;
  293. }
  294. /**
  295. * Settings page
  296. */
  297. #ccj_duration_preview, #ccj_editor_theme {
  298. width: 220px;
  299. }
  300. .custom-css-js_page_custom-css-js-config .CodeMirror {
  301. height: 200px;
  302. }
  303. .role-permissions, .role-permissions2 {
  304. width: 100%;
  305. }
  306. .role-permissions td, .role-permissions th, .role-permissions2 td {
  307. padding: 6px;
  308. text-align: center;
  309. }
  310. .role-permissions td.desc, .role-permissions2 td.desc {
  311. width: 35%;
  312. text-align: right;
  313. padding-right: 20px;
  314. }
  315. .role-permissions2 td {
  316. text-align: left;
  317. }
  318. .custom-css-js_page_custom-css-js-config .dashicons-editor-help {
  319. color: #999;
  320. }
  321. /**
  322. * Overlay
  323. */
  324. #normal-sortables, .ccj_opaque {
  325. opacity: 0.4;
  326. }
  327. .ccj_only_premium {
  328. z-index:9999;
  329. width: 160px;
  330. height: 60px;
  331. position: absolute;
  332. margin-left: 254px;
  333. color: white;
  334. }
  335. .ccj_only_premium>div {
  336. font-family:sans-serif;font-size:13px;text-align: center; border-radius: 5px; float: left; background-color: rgb(51, 51, 51); color: white; width: 207px; padding: 20px 20px;
  337. }
  338. .ccj_only_premium a {
  339. color: white; text-decoration: none;
  340. transition: color 0.3s;
  341. }
  342. .ccj_only_premium a:hover {
  343. color: #0073aa; text-decoration: none;
  344. }
  345. .ccj_only_premium-right {
  346. width: 80px;
  347. margin-left: 130px;
  348. margin-top: -120px;
  349. }
  350. .ccj_only_premium-right>div {
  351. width: 200px;
  352. padding: 10px;
  353. margin-left: -110px;
  354. }
  355. pre.CodeMirror-line {
  356. direction: ltr;
  357. }