Platformer in OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

370 regels
8.4 KiB

5 jaren geleden
  1. // NOTE: Please use this file to perform modifications on default style sheets.
  2. //
  3. // You need to install a few Ruby gems to generate extra.css from this file:
  4. // gem install less therubyracer
  5. //
  6. // Run this command to regenerate extra.css after you're finished with changes:
  7. // lessc --compress extra.less > extra.css
  8. //
  9. // Alternatively you can use online services to regenerate extra.css.
  10. // Default text color for page contents
  11. @default-text-color: hsl(0,0%,30%);
  12. // Page header, footer, table rows, inline codes and definition lists
  13. @header-footer-background-color: hsl(0,0%,95%);
  14. // Page header, footer links and navigation bar background
  15. @header-footer-link-color: hsl(0,0%,40%);
  16. // Doxygen navigation bar links
  17. @navbar-link-color: @header-footer-background-color;
  18. // Page content background color
  19. @content-background-color: hsl(0,0%,100%);
  20. // Bold, italic, h1, h2, ... and table of contents
  21. @heading-color: hsl(0,0%,10%);
  22. // Function, enum and macro definition separator
  23. @def-separator-color: @header-footer-background-color;
  24. // Base color hue
  25. @base-hue: 24;
  26. // Default color used for links
  27. @default-link-color: hsl(@base-hue,100%,50%);
  28. // Doxygen navigation bar active tab
  29. @tab-text-color: hsl(0,0%,100%);
  30. @tab-background-color1: @default-link-color;
  31. @tab-background-color2: lighten(spin(@tab-background-color1, 10), 10%);
  32. // Table borders
  33. @default-border-color: @default-link-color;
  34. // Table header
  35. @table-text-color: @tab-text-color;
  36. @table-background-color1: @tab-background-color1;
  37. @table-background-color2: @tab-background-color2;
  38. // Table of contents, data structure index and prototypes
  39. @toc-background-color1: hsl(0,0%,90%);
  40. @toc-background-color2: lighten(@toc-background-color1, 5%);
  41. // Function prototype parameters color
  42. @prototype-param-color: darken(@default-link-color, 25%);
  43. // Message box color: note, pre, post and invariant
  44. @box-note-color: hsl(103,80%,85%);
  45. // Message box color: warning and attention
  46. @box-warning-color: hsl(34,80%,85%);
  47. // Message box color: deprecated and bug
  48. @box-bug-color: hsl(333,80%,85%);
  49. // Message box color: todo and test
  50. @box-todo-color: hsl(200,80%,85%);
  51. // Message box helper function
  52. .message-box(@base-color) {
  53. background:linear-gradient(to bottom,lighten(@base-color, 5%) 0%,@base-color 100%);
  54. box-shadow:inset 0 0 32px darken(@base-color, 5%);
  55. color:darken(@base-color, 67%);
  56. border:2px solid desaturate(darken(@base-color, 10%), 20%);
  57. }
  58. #navrow1,#navrow2,#navrow3,#navrow4,.tablist a,.tablist a:visited,.tablist a:hover,.tablist li,.tablist li.current a,.memdoc,dl.reflist dd,div.toc li,.ah,span.lineno,span.lineno a,span.lineno a:hover,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,.doxtable code {
  59. background:none;
  60. }
  61. #titlearea,.footer,.contents,div.header,.memdoc,table.doxtable td,table.doxtable th,hr,.memSeparator {
  62. border:none;
  63. }
  64. .tablist a,.tablist a:visited,.tablist a:hover,.tablist li,.tablist li.current a,.reflist dt a.el,.levels span,.directory .levels span {
  65. text-shadow:none;
  66. }
  67. .memdoc,dl.reflist dd {
  68. box-shadow:none;
  69. }
  70. div.headertitle,.note code,.pre code,.post code,.invariant code,.warning code,.attention code,.deprecated code,.bug code,.todo code,.test code,table.doxtable code {
  71. padding:0;
  72. }
  73. #nav-path,.directory .levels,span.lineno {
  74. display:none;
  75. }
  76. html,#titlearea,.footer,tr.even,.directory tr.even,.doxtable tr:nth-child(even),.mdescLeft,.mdescRight,.memItemLeft,.memItemRight,code {
  77. background:@header-footer-background-color;
  78. }
  79. body {
  80. color:@default-text-color;
  81. }
  82. h1,h2,h2.groupheader,h3,div.toc h3,h4,h5,h6,strong,em {
  83. color:@heading-color;
  84. border-bottom:none;
  85. }
  86. h1 {
  87. padding-top:0.5em;
  88. font-size:180%;
  89. }
  90. h2 {
  91. padding-top:0.5em;
  92. margin-bottom:0;
  93. font-size:140%;
  94. }
  95. h3 {
  96. padding-top:0.5em;
  97. margin-bottom:0;
  98. font-size:110%;
  99. }
  100. .glfwheader {
  101. font-size:16px;
  102. height:64px;
  103. max-width:920px;
  104. min-width:800px;
  105. padding:0 32px;
  106. margin:0 auto;
  107. }
  108. #glfwhome {
  109. line-height:64px;
  110. padding-right:48px;
  111. color:@header-footer-link-color;
  112. font-size:2.5em;
  113. background:url("http://www.glfw.org/css/arrow.png") no-repeat right;
  114. }
  115. .glfwnavbar {
  116. list-style-type:none;
  117. margin:0 auto;
  118. float:right;
  119. }
  120. #glfwhome,.glfwnavbar li {
  121. float:left;
  122. }
  123. .glfwnavbar a,.glfwnavbar a:visited {
  124. line-height:64px;
  125. margin-left:2em;
  126. display:block;
  127. color:@header-footer-link-color;
  128. }
  129. #glfwhome,.glfwnavbar a,.glfwnavbar a:visited {
  130. transition:.35s ease;
  131. }
  132. #titlearea,.footer {
  133. color:@header-footer-link-color;
  134. }
  135. address.footer {
  136. text-align:center;
  137. padding:2em;
  138. margin-top:3em;
  139. }
  140. #top {
  141. background:@header-footer-link-color;
  142. }
  143. #navrow1,#navrow2,#navrow3,#navrow4 {
  144. max-width:920px;
  145. min-width:800px;
  146. margin:0 auto;
  147. font-size:13px;
  148. }
  149. .tablist {
  150. height:36px;
  151. display:block;
  152. position:relative;
  153. }
  154. .tablist a,.tablist a:visited,.tablist a:hover,.tablist li,.tablist li.current a {
  155. color:@navbar-link-color;
  156. }
  157. .tablist li.current a {
  158. background:linear-gradient(to bottom,@tab-background-color2 0%,@tab-background-color1 100%);
  159. box-shadow:inset 0 0 32px @tab-background-color1;
  160. text-shadow:0 -1px 1px darken(@tab-background-color1, 15%);
  161. color:@tab-text-color;
  162. }
  163. .contents {
  164. min-height:590px;
  165. }
  166. div.contents,div.header {
  167. max-width:920px;
  168. margin:0 auto;
  169. padding:0 32px;
  170. background:@content-background-color none;
  171. }
  172. table.doxtable th,dl.reflist dt {
  173. background:linear-gradient(to bottom,@table-background-color2 0%,@table-background-color1 100%);
  174. box-shadow:inset 0 0 32px @table-background-color1;
  175. text-shadow:0 -1px 1px darken(@table-background-color1, 15%);
  176. color:@table-text-color;
  177. }
  178. dl.reflist dt a.el {
  179. color:@default-link-color;
  180. padding:.2em;
  181. border-radius:4px;
  182. background-color:lighten(@default-link-color, 40%);
  183. }
  184. div.toc {
  185. float:none;
  186. width:auto;
  187. }
  188. div.toc h3 {
  189. font-size:1.17em;
  190. }
  191. div.toc ul {
  192. padding-left:1.5em;
  193. }
  194. div.toc li {
  195. font-size:1em;
  196. padding-left:0;
  197. list-style-type:disc;
  198. }
  199. div.toc,.memproto,div.qindex,div.ah {
  200. background:linear-gradient(to bottom,@toc-background-color2 0%,@toc-background-color1 100%);
  201. box-shadow:inset 0 0 32px @toc-background-color1;
  202. text-shadow:0 1px 1px lighten(@toc-background-color2, 10%);
  203. color:@heading-color;
  204. border:2px solid @toc-background-color1;
  205. border-radius:4px;
  206. }
  207. .paramname {
  208. color:@prototype-param-color;
  209. }
  210. dl.reflist dt {
  211. border:2px solid @default-border-color;
  212. border-top-left-radius:4px;
  213. border-top-right-radius:4px;
  214. border-bottom:none;
  215. }
  216. dl.reflist dd {
  217. border:2px solid @default-border-color;
  218. border-bottom-right-radius:4px;
  219. border-bottom-left-radius:4px;
  220. border-top:none;
  221. }
  222. table.doxtable {
  223. border-collapse:inherit;
  224. border-spacing:0;
  225. border:2px solid @default-border-color;
  226. border-radius:4px;
  227. }
  228. a,a:hover,a:visited,a:visited:hover,.contents a:visited,.el,a.el:visited,#glfwhome:hover,.tablist a:hover,span.lineno a:hover {
  229. color:@default-link-color;
  230. text-decoration:none;
  231. }
  232. div.directory {
  233. border-collapse:inherit;
  234. border-spacing:0;
  235. border:2px solid @default-border-color;
  236. border-radius:4px;
  237. }
  238. hr,.memSeparator {
  239. height:2px;
  240. background:linear-gradient(to right,@def-separator-color 0%,darken(@def-separator-color, 10%) 50%,@def-separator-color 100%);
  241. }
  242. dl.note,dl.pre,dl.post,dl.invariant {
  243. .message-box(@box-note-color);
  244. }
  245. dl.warning,dl.attention {
  246. .message-box(@box-warning-color);
  247. }
  248. dl.deprecated,dl.bug {
  249. .message-box(@box-bug-color);
  250. }
  251. dl.todo,dl.test {
  252. .message-box(@box-todo-color);
  253. }
  254. dl.note,dl.pre,dl.post,dl.invariant,dl.warning,dl.attention,dl.deprecated,dl.bug,dl.todo,dl.test {
  255. border-radius:4px;
  256. padding:1em;
  257. text-shadow:0 1px 1px hsl(0,0%,100%);
  258. margin:1em 0;
  259. }
  260. .note a,.pre a,.post a,.invariant a,.warning a,.attention a,.deprecated a,.bug a,.todo a,.test a,.note a:visited,.pre a:visited,.post a:visited,.invariant a:visited,.warning a:visited,.attention a:visited,.deprecated a:visited,.bug a:visited,.todo a:visited,.test a:visited {
  261. color:inherit;
  262. }
  263. div.line {
  264. line-height:inherit;
  265. }
  266. div.fragment,pre.fragment {
  267. background:hsl(0,0%,95%);
  268. border-radius:4px;
  269. border:none;
  270. padding:1em;
  271. overflow:auto;
  272. border-left:4px solid hsl(0,0%,80%);
  273. margin:1em 0;
  274. }
  275. .lineno a,.lineno a:visited,.line,pre.fragment {
  276. color:@default-text-color;
  277. }
  278. span.preprocessor,span.comment {
  279. color:hsl(193,100%,30%);
  280. }
  281. a.code,a.code:visited {
  282. color:hsl(18,100%,45%);
  283. }
  284. span.keyword,span.keywordtype,span.keywordflow {
  285. color:darken(@default-text-color, 5%);
  286. font-weight:bold;
  287. }
  288. span.stringliteral {
  289. color:hsl(261,100%,30%);
  290. }
  291. code {
  292. padding:.1em;
  293. border-radius:4px;
  294. }