revisions-rtl.css 9.8 KB

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