Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

82 righe
2.5 KiB

  1. /*
  2. This is part of jsdifflib v1.0. <http://github.com/cemerick/jsdifflib>
  3. Copyright 2007 - 2011 Chas Emerick <cemerick@snowtide.com>. All rights reserved.
  4. Redistribution and use in source and binary forms, with or without modification, are
  5. permitted provided that the following conditions are met:
  6. 1. Redistributions of source code must retain the above copyright notice, this list of
  7. conditions and the following disclaimer.
  8. 2. Redistributions in binary form must reproduce the above copyright notice, this list
  9. of conditions and the following disclaimer in the documentation and/or other materials
  10. provided with the distribution.
  11. THIS SOFTWARE IS PROVIDED BY Chas Emerick ``AS IS'' AND ANY EXPRESS OR IMPLIED
  12. WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  13. FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Chas Emerick OR
  14. CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  15. CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  16. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  17. ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  18. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  19. ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  20. The views and conclusions contained in the software and documentation are those of the
  21. authors and should not be interpreted as representing official policies, either expressed
  22. or implied, of Chas Emerick.
  23. */
  24. table.diff {
  25. border-collapse:collapse;
  26. border:1px solid darkgray;
  27. white-space:pre-wrap
  28. }
  29. table.diff tbody {
  30. font-family:Courier, monospace
  31. }
  32. table.diff tbody th {
  33. font-family:verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif;
  34. background:#EED;
  35. font-size:11px;
  36. font-weight:normal;
  37. border:1px solid #BBC;
  38. color:#886;
  39. padding:.3em .5em .1em 2em;
  40. text-align:right;
  41. vertical-align:top
  42. }
  43. table.diff thead {
  44. border-bottom:1px solid #BBC;
  45. background:#EFEFEF;
  46. font-family:Verdana
  47. }
  48. table.diff thead th.texttitle {
  49. text-align:left
  50. }
  51. table.diff tbody td {
  52. padding:0px .4em;
  53. padding-top:.4em;
  54. vertical-align:top;
  55. }
  56. table.diff .empty {
  57. background-color:#DDD;
  58. }
  59. table.diff .replace {
  60. background-color:#FD8
  61. }
  62. table.diff .delete {
  63. background-color:#E99;
  64. }
  65. table.diff .skip {
  66. background-color:#EFEFEF;
  67. border:1px solid #AAA;
  68. border-right:1px solid #BBC;
  69. }
  70. table.diff .insert {
  71. background-color:#9E9
  72. }
  73. table.diff th.author {
  74. text-align:right;
  75. border-top:1px solid #BBC;
  76. background:#EFEFEF
  77. }