You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

599 lines
10 KiB

  1. /*------------------------------------------------------------------------------
  2. 11.2 - Post Revisions
  3. ------------------------------------------------------------------------------*/
  4. .revisions-control-frame,
  5. .revisions-diff-frame {
  6. position: relative;
  7. }
  8. .revisions-controls {
  9. padding-top: 40px;
  10. height: 100px;
  11. z-index: 1;
  12. }
  13. .revisions-controls input[type="checkbox"] {
  14. position: relative;
  15. top: -1px;
  16. vertical-align: text-bottom;
  17. }
  18. .revisions.pinned .revisions-controls {
  19. position: fixed;
  20. top: 0;
  21. height: 82px;
  22. background: #fff;
  23. -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  24. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  25. }
  26. .revisions-tickmarks {
  27. position: relative;
  28. margin: 0 auto;
  29. height: 0.7em;
  30. top: 7px;
  31. max-width: 70%;
  32. -webkit-box-sizing: border-box;
  33. -moz-box-sizing: border-box;
  34. box-sizing: border-box;
  35. background-color: #fff;
  36. }
  37. .revisions-tickmarks > div {
  38. position: absolute;
  39. height: 100%;
  40. border-left: 1px solid #a0a5aa;
  41. -webkit-box-sizing: border-box;
  42. -moz-box-sizing: border-box;
  43. box-sizing: border-box;
  44. }
  45. .revisions-tickmarks > div:first-child {
  46. border-width: 0;
  47. }
  48. .comparing-two-revisions .revisions-controls {
  49. height: 140px;
  50. }
  51. .comparing-two-revisions.pinned .revisions-controls {
  52. height: 124px;
  53. }
  54. .revisions .diff-error {
  55. position: absolute;
  56. text-align: center;
  57. margin: 0 auto;
  58. width: 100%;
  59. display: none;
  60. }
  61. .revisions.diff-error .diff-error {
  62. display: block;
  63. }
  64. .revisions .loading-indicator {
  65. position: absolute;
  66. vertical-align: middle;
  67. opacity: 0;
  68. width: 100%;
  69. width: -webkit-calc( 100% - 30px );
  70. width: calc( 100% - 30px );
  71. top: 50%;
  72. top: -webkit-calc( 50% - 10px );
  73. top: calc( 50% - 10px );
  74. -webkit-transition: opacity 0.5s;
  75. transition: opacity 0.5s;
  76. filter: alpha(opacity=0); /* ie8 and earlier */
  77. }
  78. body.folded .revisions .loading-indicator {
  79. margin-left: -32px;
  80. }
  81. .revisions .loading-indicator span.spinner {
  82. display: block;
  83. margin: 0 auto;
  84. float: none;
  85. }
  86. .revisions.loading .loading-indicator {
  87. opacity: 1;
  88. filter: alpha(opacity=100); /* ie8 and earlier */
  89. }
  90. .revisions .diff {
  91. -webkit-transition: opacity 0.5s;
  92. transition: opacity 0.5s;
  93. }
  94. .revisions.loading .diff {
  95. opacity: 0.5;
  96. filter: alpha(opacity=50); /* ie8 and earlier */
  97. }
  98. .revisions.diff-error .diff {
  99. visibility: hidden;
  100. }
  101. .revisions-meta {
  102. margin-top: 20px;
  103. background-color: #fff;
  104. -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  105. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  106. }
  107. .revisions.pinned .revisions-meta {
  108. -webkit-box-shadow: none;
  109. box-shadow: none;
  110. }
  111. .revision-toggle-compare-mode {
  112. position: absolute;
  113. top: 0;
  114. right: 0;
  115. }
  116. .comparing-two-revisions .revisions-previous,
  117. .comparing-two-revisions .revisions-next,
  118. .revisions-meta .diff-meta-to strong {
  119. display: none;
  120. }
  121. .revisions-controls .author-card .date {
  122. color: #72777c;
  123. }
  124. .revisions-controls .author-card.autosave {
  125. color: #d54e21;
  126. }
  127. .revisions-controls .author-card .author-name {
  128. font-weight: 600;
  129. }
  130. .comparing-two-revisions .diff-meta-to strong {
  131. display: block;
  132. }
  133. .revisions.pinned .revisions-buttons {
  134. padding: 0 11px;
  135. }
  136. .revisions-previous,
  137. .revisions-next {
  138. position: relative;
  139. z-index: 1;
  140. }
  141. .revisions-previous {
  142. float: left;
  143. }
  144. .revisions-next {
  145. float: right;
  146. }
  147. .revisions-controls .wp-slider {
  148. max-width: 70%;
  149. margin: 0 auto;
  150. top: -3px;
  151. }
  152. .revisions-diff {
  153. padding: 15px;
  154. background-color: #fff;
  155. -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  156. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  157. }
  158. .revisions-diff h3:first-child {
  159. margin-top: 0;
  160. }
  161. /* Revision meta box */
  162. .post-revisions li img,
  163. #revisions-meta-restored img {
  164. vertical-align: middle;
  165. }
  166. table.diff tbody tr td:nth-child(2) {
  167. width: 4%;
  168. }
  169. table.diff {
  170. table-layout: fixed;
  171. width: 100%;
  172. white-space: pre-wrap;
  173. }
  174. table.diff col.content {
  175. width: auto;
  176. }
  177. table.diff col.content.diffsplit {
  178. width: 48%;
  179. }
  180. table.diff col.diffsplit.middle {
  181. width: auto;
  182. }
  183. table.diff col.ltype {
  184. width: 30px;
  185. }
  186. table.diff tr {
  187. background-color: transparent;
  188. }
  189. table.diff td,
  190. table.diff th {
  191. font-family: Consolas, Monaco, monospace;
  192. font-size: 14px;
  193. line-height: 1.618;
  194. padding: .5em;
  195. vertical-align: top;
  196. word-wrap: break-word;
  197. }
  198. table.diff td h1,
  199. table.diff td h2,
  200. table.diff td h3,
  201. table.diff td h4,
  202. table.diff td h5,
  203. table.diff td h6 {
  204. margin: 0;
  205. }
  206. table.diff .diff-deletedline del,
  207. table.diff .diff-addedline ins {
  208. text-decoration: none;
  209. }
  210. table.diff .diff-deletedline {
  211. background-color: #ffe9e9;
  212. }
  213. table.diff .diff-deletedline del {
  214. background-color: #faa;
  215. }
  216. table.diff .diff-addedline {
  217. background-color: #e9ffe9;
  218. }
  219. table.diff .diff-addedline ins {
  220. background-color: #afa;
  221. }
  222. .diff-meta {
  223. padding: 5px;
  224. clear: both;
  225. min-height: 32px;
  226. }
  227. .diff-title strong {
  228. line-height: 32px;
  229. min-width: 60px;
  230. text-align: right;
  231. float: left;
  232. margin-right: 5px;
  233. }
  234. .revisions-controls .author-card .author-info {
  235. font-size: 12px;
  236. line-height: 16px;
  237. }
  238. .revisions-controls .author-card .avatar,
  239. .revisions-controls .author-card .author-info {
  240. float: left;
  241. margin-left: 6px;
  242. margin-right: 6px;
  243. }
  244. .revisions-controls .author-card .byline {
  245. display: block;
  246. font-size: 12px;
  247. }
  248. .revisions-controls .author-card .avatar {
  249. vertical-align: middle;
  250. }
  251. .diff-meta input.restore-revision {
  252. float: right;
  253. margin-left: 6px;
  254. margin-right: 6px;
  255. margin-top: 4px;
  256. }
  257. .diff-meta-from {
  258. display: none;
  259. }
  260. .comparing-two-revisions .diff-meta-from {
  261. display: block;
  262. }
  263. .revisions-tooltip {
  264. position: absolute;
  265. bottom: 105px;
  266. margin-right: 0;
  267. margin-left: -69px;
  268. z-index: 0;
  269. max-width: 350px;
  270. min-width: 130px;
  271. padding: 8px 4px;
  272. display: none;
  273. opacity: 0;
  274. }
  275. .revisions-tooltip.flipped {
  276. margin-left: 0;
  277. margin-right: -70px;
  278. }
  279. .revisions.pinned .revisions-tooltip {
  280. display: none !important;
  281. }
  282. .comparing-two-revisions .revisions-tooltip {
  283. bottom: 145px;
  284. }
  285. .revisions-tooltip-arrow {
  286. width: 70px;
  287. height: 15px;
  288. overflow: hidden;
  289. position: absolute;
  290. left: 0;
  291. margin-left: 35px;
  292. bottom: -15px;
  293. }
  294. .revisions-tooltip.flipped .revisions-tooltip-arrow {
  295. margin-left: 0;
  296. margin-right: 35px;
  297. left: auto;
  298. right: 0;
  299. }
  300. .revisions-tooltip-arrow > span {
  301. content: "";
  302. position: absolute;
  303. left: 20px;
  304. top: -20px;
  305. width: 25px;
  306. height: 25px;
  307. -webkit-transform: rotate(45deg);
  308. -ms-transform: rotate(45deg);
  309. transform: rotate(45deg);
  310. }
  311. .revisions-tooltip.flipped .revisions-tooltip-arrow > span {
  312. left: auto;
  313. right: 20px;
  314. }
  315. .ie8 .revisions-tooltip-arrow > span {
  316. left: 15px;
  317. top: -25px;
  318. -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)";
  319. }
  320. .ie8 .revisions-tooltip.flipped .revisions-tooltip-arrow > span {
  321. right: 25px;
  322. }
  323. .revisions-tooltip,
  324. .revisions-tooltip-arrow > span {
  325. border: 1px solid #ddd;
  326. background-color: #fff;
  327. }
  328. .revisions-tooltip {
  329. display: none;
  330. }
  331. .arrow {
  332. width: 70px;
  333. height: 16px;
  334. overflow: hidden;
  335. position: absolute;
  336. left: 0;
  337. margin-left: -35px;
  338. bottom: 90px;
  339. z-index: 10000;
  340. }
  341. .arrow:after {
  342. z-index: 9999;
  343. background-color: #fff;
  344. -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  345. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  346. }
  347. .arrow.top {
  348. top: -16px;
  349. bottom: auto;
  350. }
  351. .arrow.left {
  352. left: 20%;
  353. }
  354. .arrow:after {
  355. content: "";
  356. position: absolute;
  357. left: 20px;
  358. top: -20px;
  359. width: 25px;
  360. height: 25px;
  361. -webkit-transform: rotate(45deg);
  362. -ms-transform: rotate(45deg);
  363. transform: rotate(45deg);
  364. }
  365. .revisions-tooltip,
  366. .revisions-tooltip-arrow:after {
  367. border-width: 1px;
  368. border-style: solid;
  369. }
  370. div.revisions-controls > .wp-slider > .ui-slider-handle {
  371. margin-left: -10px;
  372. }
  373. .rtl div.revisions-controls > .wp-slider > .ui-slider-handle {
  374. margin-right: -10px;
  375. }
  376. /* jQuery UI Slider */
  377. .wp-slider.ui-slider {
  378. position: relative;
  379. border: 1px solid #ddd;
  380. text-align: left;
  381. cursor: pointer;
  382. }
  383. .wp-slider .ui-slider-handle {
  384. -webkit-border-radius: 50%;
  385. border-radius: 50%;
  386. height: 18px;
  387. margin-top: -5px;
  388. outline: none;
  389. padding: 2px;
  390. position: absolute;
  391. width: 18px;
  392. z-index: 2;
  393. -ms-touch-action: none;
  394. touch-action: none;
  395. }
  396. .wp-slider .ui-slider-handle,
  397. .wp-slider .ui-slider-handle.focus {
  398. background: #f7f7f7;
  399. border: 1px solid #ccc;
  400. -webkit-box-shadow: 0 1px 0 #cccccc;
  401. box-shadow: 0 1px 0 #cccccc;
  402. }
  403. .wp-slider .ui-slider-handle:hover,
  404. .wp-slider .ui-slider-handle.ui-state-hover {
  405. background: #fafafa;
  406. border-color: #999;
  407. }
  408. .wp-slider .ui-slider-handle:active,
  409. .wp-slider .ui-slider-handle.ui-state-active {
  410. background: #eee;
  411. border-color: #999;
  412. -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
  413. box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
  414. -webkit-transform: translateY(1px);
  415. -ms-transform: translateY(1px);
  416. transform: translateY(1px);
  417. }
  418. .wp-slider .ui-slider-handle:before {
  419. background: none;
  420. position: absolute;
  421. top: 2px;
  422. left: 2px;
  423. color: #555;
  424. content: "\f229";
  425. font: normal 18px/1 dashicons;
  426. speak: none;
  427. -webkit-font-smoothing: antialiased;
  428. -moz-osx-font-smoothing: grayscale;
  429. }
  430. .wp-slider .ui-slider-handle:hover:before,
  431. .wp-slider .ui-slider-handle.ui-state-hover:before {
  432. color: #23282d;
  433. }
  434. .wp-slider .ui-slider-handle.from-handle:before,
  435. .wp-slider .ui-slider-handle.to-handle:before {
  436. font-size: 20px !important;
  437. margin: -1px 0 0 -1px;
  438. }
  439. .wp-slider .ui-slider-handle.from-handle:before {
  440. content: "\f139";
  441. }
  442. .wp-slider .ui-slider-handle.to-handle:before {
  443. content: "\f141";
  444. }
  445. .rtl .wp-slider .ui-slider-handle.from-handle:before {
  446. content: "\f141";
  447. }
  448. .rtl .wp-slider .ui-slider-handle.to-handle:before {
  449. content: "\f139";
  450. right: -1px;
  451. }
  452. .wp-slider .ui-slider-range {
  453. position: absolute;
  454. font-size: .7em;
  455. display: block;
  456. border: 0;
  457. background-color: transparent;
  458. background-image: none;
  459. }
  460. .wp-slider.ui-slider-horizontal {
  461. height: .7em;
  462. }
  463. .wp-slider.ui-slider-horizontal .ui-slider-handle {
  464. top: -.25em;
  465. margin-left: -.6em;
  466. }
  467. .wp-slider.ui-slider-horizontal .ui-slider-range {
  468. top: 0;
  469. height: 100%;
  470. }
  471. .wp-slider.ui-slider-horizontal .ui-slider-range-min {
  472. left: 0;
  473. }
  474. .wp-slider.ui-slider-horizontal .ui-slider-range-max {
  475. right: 0;
  476. }
  477. /* =Media Queries
  478. -------------------------------------------------------------- */
  479. /**
  480. * HiDPI Displays
  481. */
  482. @media print,
  483. (-webkit-min-device-pixel-ratio: 1.25),
  484. (min-resolution: 120dpi) {
  485. .revision-tick.completed-false {
  486. background-image: url(../images/spinner-2x.gif);
  487. }
  488. }
  489. @media screen and ( max-width: 782px ) {
  490. #diff-next-revision,
  491. #diff-previous-revision {
  492. margin-top: -1em;
  493. }
  494. table.diff {
  495. -ms-word-break: break-all;
  496. word-break: break-all;
  497. word-wrap: break-word;
  498. }
  499. }