codewalk.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. /*
  2. Copyright 2010 The Go Authors. All rights reserved.
  3. Use of this source code is governed by a BSD-style
  4. license that can be found in the LICENSE file.
  5. */
  6. #codewalk-main {
  7. text-align: left;
  8. width: 100%;
  9. overflow: auto;
  10. }
  11. #code-display {
  12. border: 0;
  13. width: 100%;
  14. }
  15. .setting {
  16. font-size: 8pt;
  17. color: #888888;
  18. padding: 5px;
  19. }
  20. .hotkey {
  21. text-decoration: underline;
  22. }
  23. /* Style for Comments (the left-hand column) */
  24. #comment-column {
  25. margin: 0pt;
  26. width: 30%;
  27. }
  28. #comment-column.right {
  29. float: right;
  30. }
  31. #comment-column.left {
  32. float: left;
  33. }
  34. #comment-area {
  35. overflow-x: hidden;
  36. overflow-y: auto;
  37. }
  38. .comment {
  39. cursor: pointer;
  40. font-size: 16px;
  41. border: 2px solid #ba9836;
  42. margin-bottom: 10px;
  43. margin-right: 10px; /* yes, for both .left and .right */
  44. }
  45. .comment:last-child {
  46. margin-bottom: 0px;
  47. }
  48. .right .comment {
  49. margin-left: 10px;
  50. }
  51. .right .comment.first {
  52. }
  53. .right .comment.last {
  54. }
  55. .left .comment.first {
  56. }
  57. .left .comment.last {
  58. }
  59. .comment.selected {
  60. border-color: #99b2cb;
  61. }
  62. .right .comment.selected {
  63. border-left-width: 12px;
  64. margin-left: 0px;
  65. }
  66. .left .comment.selected {
  67. border-right-width: 12px;
  68. margin-right: 0px;
  69. }
  70. .comment-link {
  71. display: none;
  72. }
  73. .comment-title {
  74. font-size: small;
  75. font-weight: bold;
  76. background-color: #fffff0;
  77. padding-right: 10px;
  78. padding-left: 10px;
  79. padding-top: 5px;
  80. padding-bottom: 5px;
  81. }
  82. .right .comment-title {
  83. }
  84. .left .comment-title {
  85. }
  86. .comment.selected .comment-title {
  87. background-color: #f8f8ff;
  88. }
  89. .comment-text {
  90. overflow: auto;
  91. padding-left: 10px;
  92. padding-right: 10px;
  93. padding-top: 10px;
  94. padding-bottom: 5px;
  95. font-size: small;
  96. line-height: 1.3em;
  97. }
  98. .comment-text p {
  99. margin-top: 0em;
  100. margin-bottom: 0.5em;
  101. }
  102. .comment-text p:last-child {
  103. margin-bottom: 0em;
  104. }
  105. .file-name {
  106. font-size: x-small;
  107. padding-top: 0px;
  108. padding-bottom: 5px;
  109. }
  110. .hidden-filepaths .file-name {
  111. display: none;
  112. }
  113. .path-dir {
  114. color: #555;
  115. }
  116. .path-file {
  117. color: #555;
  118. }
  119. /* Style for Code (the right-hand column) */
  120. /* Wrapper for the code column to make widths get calculated correctly */
  121. #code-column {
  122. display: block;
  123. position: relative;
  124. margin: 0pt;
  125. width: 70%;
  126. }
  127. #code-column.left {
  128. float: left;
  129. }
  130. #code-column.right {
  131. float: right;
  132. }
  133. #code-area {
  134. background-color: #f8f8ff;
  135. border: 2px solid #99b2cb;
  136. padding: 5px;
  137. }
  138. .left #code-area {
  139. margin-right: -1px;
  140. }
  141. .right #code-area {
  142. margin-left: -1px;
  143. }
  144. #code-header {
  145. margin-bottom: 5px;
  146. }
  147. #code {
  148. background-color: white;
  149. }
  150. code {
  151. font-size: 100%;
  152. }
  153. .codewalkhighlight {
  154. font-weight: bold;
  155. background-color: #f8f8ff;
  156. }
  157. #code-display {
  158. margin-top: 0px;
  159. margin-bottom: 0px;
  160. }
  161. #sizer {
  162. position: absolute;
  163. cursor: col-resize;
  164. left: 0px;
  165. top: 0px;
  166. width: 8px;
  167. }
  168. /* Style for options (bottom strip) */
  169. #code-options {
  170. display: none;
  171. }
  172. #code-options > span {
  173. padding-right: 20px;
  174. }
  175. #code-options .selected {
  176. border-bottom: 1px dotted;
  177. }
  178. #comment-options {
  179. text-align: center;
  180. }
  181. div#content {
  182. padding-bottom: 0em;
  183. }