PageRenderTime 47ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/syntaxhighlighter_3.0.83/tests/brushes/sass.html

#
HTML | 204 lines | 177 code | 27 blank | 0 comment | 0 complexity | 9de6e10b5b1ad8f42373b6e2488c5def MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <script class="brush: sass;" type="syntaxhighlighter">
  2. @mixin round_corners_custom($top, $right, $bottom, $left) {
  3. -moz-border-radius: $top $right $bottom $left !important;
  4. -webkit-border-radius: $top $right $bottom $left !important;
  5. }
  6. @mixin round_corners($radius) {
  7. @include round_corners_custom($radius, $radius, $radius, $radius);
  8. }
  9. .syntaxhighlighter {
  10. a,
  11. div,
  12. code,
  13. table,
  14. table td,
  15. table tr,
  16. table tbody,
  17. table thead,
  18. table caption,
  19. textarea {
  20. @include round_corners(0);
  21. background: none !important;
  22. border: 0 !important;
  23. bottom: auto !important;
  24. float: none !important;
  25. height: auto !important;
  26. left: auto !important;
  27. line-height: 1.1em !important;
  28. margin: 0 !important;
  29. outline: 0 !important;
  30. overflow: visible !important;
  31. padding: 0 !important;
  32. position: static !important;
  33. right: auto !important;
  34. text-align: left !important;
  35. top: auto !important;
  36. vertical-align: baseline !important;
  37. width: auto !important;
  38. font: {
  39. family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
  40. weight: normal !important;
  41. style: normal !important;
  42. size: 1em !important;
  43. }
  44. min: {
  45. // For IE8, FF & WebKit
  46. height: inherit !important;
  47. // For IE7
  48. height: auto !important;
  49. }
  50. }
  51. }
  52. .syntaxhighlighter {
  53. width: 100% !important;
  54. margin: 1em 0 1em 0 !important;
  55. position: relative !important;
  56. overflow: auto !important;
  57. font-size: 1em !important;
  58. &.source { overflow: hidden !important; }
  59. // set up bold and italic
  60. .bold { font-weight: bold !important; }
  61. .italic { font-style: italic !important; }
  62. .line { white-space: pre !important; }
  63. // main table and columns
  64. table {
  65. width: 100% !important;
  66. caption {
  67. text-align: left !important;
  68. padding: .5em 0 0.5em 1em !important;
  69. }
  70. td.code {
  71. width: 100% !important;
  72. .container {
  73. position: relative !important;
  74. textarea {
  75. position: absolute !important;
  76. left: 0 !important;
  77. top: 0 !important;
  78. width: 100% !important;
  79. height: 120% !important;
  80. border: none !important;
  81. background: white !important;
  82. padding-left: 1em !important;
  83. overflow: hidden !important;
  84. white-space: pre !important;
  85. }
  86. }
  87. }
  88. // middle spacing between line numbers and lines
  89. td.gutter .line {
  90. text-align: right !important;
  91. padding: 0 0.5em 0 1em !important;
  92. }
  93. td.code .line {
  94. padding: 0 1em !important;
  95. }
  96. }
  97. &.nogutter {
  98. td.code {
  99. .container textarea, .line { padding-left: 0em !important; }
  100. }
  101. }
  102. &.show { display: block !important; }
  103. // Adjust some properties when collapsed
  104. &.collapsed {
  105. table { display: none !important; }
  106. .toolbar {
  107. padding: 0.1em 0.8em 0em 0.8em !important;
  108. font-size: 1em !important;
  109. position: static !important;
  110. width: auto !important;
  111. height: auto !important;
  112. span {
  113. display: inline !important;
  114. margin-right: 1em !important;
  115. a {
  116. padding: 0 !important;
  117. display: none !important;
  118. &.expandSource, &.help { display: inline !important; }
  119. }
  120. }
  121. }
  122. }
  123. // Styles for the toolbar
  124. .toolbar {
  125. position: absolute !important;
  126. right: 1px !important;
  127. top: 1px !important;
  128. width: 11px !important;
  129. height: 11px !important;
  130. font-size: 10px !important;
  131. z-index: 10 !important;
  132. span.title { display: inline !important; }
  133. a {
  134. display: block !important;
  135. text-align: center !important;
  136. text-decoration: none !important;
  137. padding-top: 1px !important;
  138. &.expandSource { display: none !important; }
  139. }
  140. }
  141. // Print view.
  142. // Colors are based on the default theme without background.
  143. &.printing {
  144. .line.alt1 .content,
  145. .line.alt2 .content,
  146. .line.highlighted .number,
  147. .line.highlighted.alt1 .content,
  148. .line.highlighted.alt2 .content { background: none !important; }
  149. // Gutter line numbers
  150. .line {
  151. .number { color: #bbbbbb !important; }
  152. // Add border to the lines
  153. .content { color: black !important; }
  154. }
  155. // Toolbar when visible
  156. .toolbar { display: none !important; }
  157. a { text-decoration: none !important; }
  158. .plain, .plain a { color: black !important; }
  159. .comments, .comments a { color: #008200 !important; }
  160. .string, .string a { color: blue !important; }
  161. .keyword {
  162. color: #006699 !important;
  163. font-weight: bold !important;
  164. }
  165. .preprocessor { color: gray !important; }
  166. .variable { color: #aa7700 !important; }
  167. .value { color: #009900 !important; }
  168. .functions { color: #ff1493 !important; }
  169. .constants { color: #0066cc !important; }
  170. .script { font-weight: bold !important; }
  171. .color1, .color1 a { color: gray !important; }
  172. .color2, .color2 a { color: #ff1493 !important; }
  173. .color3, .color3 a { color: red !important; }
  174. .break, .break a { color: black !important; }
  175. }
  176. }
  177. </script>