/examples/src/style.scss

https://github.com/praneshr/react-diff-viewer · Sass · 252 lines · 206 code · 39 blank · 7 comment · 0 complexity · b75a53869018301b61726e190d925851 MD5 · raw file

  1. /**
  2. * GHColors theme by Avi Aryan (http://aviaryan.in)
  3. * Inspired by Github syntax coloring
  4. */
  5. code[class*="language-"],
  6. pre[class*="language-"] {
  7. color: #393A34;
  8. font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
  9. direction: ltr;
  10. text-align: left;
  11. white-space: pre;
  12. word-spacing: normal;
  13. word-break: normal;
  14. font-size: 0.95em;
  15. line-height: 1.2em;
  16. -moz-tab-size: 4;
  17. -o-tab-size: 4;
  18. tab-size: 4;
  19. -webkit-hyphens: none;
  20. -moz-hyphens: none;
  21. -ms-hyphens: none;
  22. hyphens: none;
  23. }
  24. pre[class*="language-"]::-moz-selection,
  25. pre[class*="language-"] ::-moz-selection,
  26. code[class*="language-"]::-moz-selection,
  27. code[class*="language-"] ::-moz-selection {
  28. background: #b3d4fc;
  29. }
  30. pre[class*="language-"]::selection,
  31. pre[class*="language-"] ::selection,
  32. code[class*="language-"]::selection,
  33. code[class*="language-"] ::selection {
  34. background: #b3d4fc;
  35. }
  36. /* Code blocks */
  37. pre[class*="language-"] {
  38. padding: 1em;
  39. margin: .5em 0;
  40. overflow: auto;
  41. border: 1px solid #dddddd;
  42. background-color: white;
  43. }
  44. :not(pre)>code[class*="language-"],
  45. pre[class*="language-"] {}
  46. /* Inline code */
  47. :not(pre)>code[class*="language-"] {
  48. padding: .2em;
  49. padding-top: 1px;
  50. padding-bottom: 1px;
  51. background: #f8f8f8;
  52. border: 1px solid #dddddd;
  53. }
  54. .token.comment,
  55. .token.prolog,
  56. .token.doctype,
  57. .token.cdata {
  58. color: #999988;
  59. font-style: italic;
  60. }
  61. .token.namespace {
  62. opacity: .7;
  63. }
  64. .token.string,
  65. .token.attr-value {
  66. color: #e3116c;
  67. }
  68. .token.punctuation,
  69. .token.operator {
  70. color: #3bf5d4;
  71. /* no highlight */
  72. }
  73. .token.entity,
  74. .token.url,
  75. .token.symbol,
  76. .token.number,
  77. .token.boolean,
  78. .token.variable,
  79. .token.constant,
  80. .token.property,
  81. .token.regex,
  82. .token.inserted {
  83. color: #36acaa;
  84. }
  85. .token.atrule,
  86. .token.keyword,
  87. .token.attr-name,
  88. .language-autohotkey .token.selector {
  89. color: #00a4db;
  90. }
  91. .token.function,
  92. .token.deleted,
  93. .language-autohotkey .token.tag {
  94. color: #069071;
  95. }
  96. .token.tag,
  97. .token.selector,
  98. .language-autohotkey .token.keyword {
  99. color: #ff9292;
  100. }
  101. .token.important,
  102. .token.function,
  103. .token.bold {
  104. font-weight: bold;
  105. }
  106. .token.italic {
  107. font-style: italic;
  108. }
  109. @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800');
  110. body {
  111. font-family: 'Poppins', sans-serif;
  112. background-color: #262831;
  113. }
  114. .react-diff-viewer-example {
  115. a {
  116. color: #125dec;
  117. text-decoration: none;
  118. }
  119. .banner {
  120. padding: 70px 15px;
  121. text-align: center;
  122. .img-container {
  123. text-align: center;
  124. margin: 100px auto 60px;
  125. max-width: 700px;
  126. img {
  127. width: 100%;
  128. &.mobile {
  129. display: none;
  130. }
  131. }
  132. }
  133. .cta {
  134. margin-top: 60px;
  135. a {
  136. &:last-child {
  137. button {
  138. margin-right: 0;
  139. }
  140. }
  141. }
  142. button {
  143. font-size: 14px;
  144. background: #125dec;
  145. border: none;
  146. cursor: pointer;
  147. &:focus {
  148. background: #125dec;
  149. }
  150. }
  151. }
  152. p {
  153. max-width: 700px;
  154. font-size: 18px;
  155. margin: 0 auto;
  156. color: #FFF;
  157. }
  158. }
  159. .controls {
  160. margin: 50px 15px 15px;
  161. display: flex;
  162. align-items: center;
  163. justify-content: space-between;
  164. label {
  165. margin-left: 30px;
  166. }
  167. select {
  168. background-color: transparent;
  169. padding: 5px 15px;
  170. border-radius: 4px;
  171. border: 2px solid #ddd;
  172. }
  173. }
  174. .radial {
  175. background: linear-gradient(180deg, #363946 0%, #262931 100%);
  176. position: absolute;
  177. width: 100%;
  178. height: 600px;
  179. left: 0;
  180. z-index: -1;
  181. }
  182. .diff-viewer {
  183. max-width: 90%;
  184. margin: 0 auto;
  185. border-radius: 8px;
  186. overflow-x: auto;
  187. overflow-y: hidden;
  188. white-space: nowrap;
  189. box-shadow: 0 0 30px #1c1e25;
  190. a {
  191. color: inherit;
  192. }
  193. }
  194. footer {
  195. margin: 40px 0;
  196. color: #FFF;
  197. text-align: center;
  198. }
  199. }
  200. @media (max-width: 1023px) {
  201. .react-diff-viewer-example {
  202. .banner {
  203. .img-container {
  204. img {
  205. width: 80%;
  206. }
  207. }
  208. }
  209. p {
  210. font-size: 16px;
  211. }
  212. }
  213. }