style.sass 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. $bg: #000000
  2. $fg: #ffffaa //#e6e6e6
  3. //$muted: #ff7f00 // #9aa9aa // #86b1c3 // #aca59a
  4. $accent: #ffbf00 // #98cacd // #b9d0d0 // #c8dbe3 // #86b1c3 // #dbb7a2 // #c8ac9b // #ea9619 // #7ea9d5 //#5eead4
  5. $card: rgba(12,12,12,0.8)
  6. $border: #7f0000 // #2a0055 // #6b7c7d // #556f79 // #83756c
  7. *
  8. margin: 0
  9. padding: 0
  10. // HACK: hide marquee on browsers which didn't support it (mostly css1 ones)
  11. #silly-animated-text
  12. display: none
  13. @-moz-document url-prefix()
  14. #silly-animated-text
  15. display: block
  16. // anything new
  17. html:first-child
  18. #silly-animated-text
  19. display: block
  20. @media (-webkit-min-device-pixel-ratio: 0)
  21. #silly-animated-text
  22. display: block
  23. @media print
  24. #silly-animated-text
  25. display: none
  26. // END OF HACK
  27. body
  28. background-image: url("assets/bg.gif")
  29. background-repeat: repeat
  30. background-color: $bg
  31. font-family: ui-monospace, Consolas, monospace
  32. line-height: 1.6
  33. font-size: 12px
  34. padding: 0
  35. .header
  36. margin-bottom: 32px
  37. text-align: center
  38. h1
  39. font-size: 24px
  40. color: $fg
  41. .spoiler-content
  42. display: none
  43. .spoiler-link
  44. &:focus, &:target
  45. & + .spoiler-content
  46. display: block
  47. &:before
  48. content: "[-] "
  49. &:before
  50. content: "[+] "
  51. color: $accent
  52. .spoiler:hover > .spoiler-link
  53. &:before
  54. content: "[-] "
  55. & + .spoiler-content
  56. display: block
  57. .section
  58. background-image: url("/assets/chesstransparent.png")
  59. background-repeat: repeat
  60. border: 1px solid $border
  61. padding: 16px
  62. margin-bottom: 16px
  63. width: 688px
  64. text-align: left
  65. color: $fg
  66. h2, h2 a
  67. font-size: 14px
  68. font-weight: 500
  69. margin-bottom: 8px
  70. .spoiler-section > .spoiler > .spoiler-link
  71. font-size: 14px
  72. ul
  73. margin-top: 8px
  74. margin-left: 12px
  75. ul
  76. margin-top: 0
  77. li
  78. margin-bottom: 4px
  79. list-style-type: circle
  80. a
  81. color: $accent
  82. text-decoration: none
  83. a:hover
  84. text-decoration: underline
  85. .userbar
  86. width: 720px
  87. border: $border 1px solid
  88. border-bottom-width: 0px
  89. .navbar
  90. table
  91. width: 100%
  92. padding: 8px
  93. width: 720px
  94. height: 38px
  95. margin: 0 0 24px 0
  96. white-space: nowrap
  97. border: 1px solid $border
  98. background-image: url("assets/userbar.png")
  99. .navbar, .basement
  100. font-size: 12px
  101. //background-image: url("/assets/chesstransparent.png")
  102. background-repeat: repeat
  103. .container
  104. padding-top: 0
  105. padding-bottom: 0
  106. .container
  107. margin: auto
  108. width: 720px
  109. .basement
  110. background-image: url("/assets/chesstransparent.png")
  111. border-top: 1px solid $border
  112. color: $fg
  113. padding: 8px
  114. text-align: center
  115. .navbar-right
  116. text-align: right
  117. .codeblock
  118. background-color: #000000
  119. border: 1px solid $border
  120. padding: 3px
  121. margin-top: 12px
  122. p
  123. color: #cc0000
  124. pre
  125. border-top: 1px solid $border
  126. padding: 3px
  127. marquee span
  128. margin-left: 360px
  129. margin-right: 360px
  130. font-size: 14px
  131. &:first-child
  132. margin-left: 0
  133. &:last-child
  134. margin-right: 0