extra.less 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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. .sm-dox,.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted,.sm-dox ul a:hover {
  59. background:none;
  60. text-shadow:none;
  61. }
  62. .sm-dox ul a:hover {
  63. background:@header-footer-link-color;
  64. text-shadow:none;
  65. }
  66. #main-nav,#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 {
  67. background:none;
  68. }
  69. #titlearea,.footer,.contents,div.header,.memdoc,table.doxtable td,table.doxtable th,hr,.memSeparator {
  70. border:none;
  71. }
  72. .tablist a,.tablist a:visited,.tablist a:hover,.tablist li,.tablist li.current a,.reflist dt a.el,.levels span,.directory .levels span {
  73. text-shadow:none;
  74. }
  75. .memdoc,dl.reflist dd {
  76. box-shadow:none;
  77. }
  78. 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 {
  79. padding:0;
  80. }
  81. #nav-path,.directory .levels,span.lineno {
  82. display:none;
  83. }
  84. html,#titlearea,.footer,tr.even,.directory tr.even,.doxtable tr:nth-child(even),.mdescLeft,.mdescRight,.memItemLeft,.memItemRight,code {
  85. background:@header-footer-background-color;
  86. }
  87. body {
  88. color:@default-text-color;
  89. }
  90. h1,h2,h2.groupheader,h3,div.toc h3,h4,h5,h6,strong,em {
  91. color:@heading-color;
  92. border-bottom:none;
  93. }
  94. h1 {
  95. padding-top:0.5em;
  96. font-size:180%;
  97. }
  98. h2 {
  99. padding-top:0.5em;
  100. margin-bottom:0;
  101. font-size:140%;
  102. }
  103. h3 {
  104. padding-top:0.5em;
  105. margin-bottom:0;
  106. font-size:110%;
  107. }
  108. .glfwheader {
  109. font-size:16px;
  110. height:64px;
  111. max-width:920px;
  112. min-width:800px;
  113. padding:0 32px;
  114. margin:0 auto;
  115. }
  116. #glfwhome {
  117. line-height:64px;
  118. padding-right:48px;
  119. color:@header-footer-link-color;
  120. font-size:2.5em;
  121. background:url("http://www.glfw.org/css/arrow.png") no-repeat right;
  122. }
  123. .glfwnavbar {
  124. list-style-type:none;
  125. margin:0 auto;
  126. float:right;
  127. }
  128. #glfwhome,.glfwnavbar li {
  129. float:left;
  130. }
  131. .glfwnavbar a,.glfwnavbar a:visited {
  132. line-height:64px;
  133. margin-left:2em;
  134. display:block;
  135. color:@header-footer-link-color;
  136. }
  137. #glfwhome,.glfwnavbar a,.glfwnavbar a:visited {
  138. transition:.35s ease;
  139. }
  140. #titlearea,.footer {
  141. color:@header-footer-link-color;
  142. }
  143. address.footer {
  144. text-align:center;
  145. padding:2em;
  146. margin-top:3em;
  147. }
  148. #top {
  149. background:@header-footer-link-color;
  150. }
  151. #main-nav {
  152. max-width:960px;
  153. min-width:800px;
  154. margin:0 auto;
  155. font-size:13px;
  156. }
  157. #navrow1,#navrow2,#navrow3,#navrow4 {
  158. max-width:920px;
  159. min-width:800px;
  160. margin:0 auto;
  161. font-size:13px;
  162. }
  163. .memtitle {
  164. display:none;
  165. }
  166. .memproto,.memname {
  167. font-weight:bold;
  168. text-shadow:none;
  169. }
  170. .tablist {
  171. height:36px;
  172. display:block;
  173. position:relative;
  174. }
  175. .tablist a,.tablist a:visited,.tablist a:hover,.tablist li,.tablist li.current a {
  176. color:@navbar-link-color;
  177. }
  178. .tablist li.current a {
  179. background:linear-gradient(to bottom,@tab-background-color2 0%,@tab-background-color1 100%);
  180. box-shadow:inset 0 0 32px @tab-background-color1;
  181. text-shadow:0 -1px 1px darken(@tab-background-color1, 15%);
  182. color:@tab-text-color;
  183. }
  184. .contents {
  185. min-height:590px;
  186. }
  187. div.contents,div.header {
  188. max-width:920px;
  189. margin:0 auto;
  190. padding:0 32px;
  191. background:@content-background-color none;
  192. }
  193. table.doxtable th,dl.reflist dt {
  194. background:linear-gradient(to bottom,@table-background-color2 0%,@table-background-color1 100%);
  195. box-shadow:inset 0 0 32px @table-background-color1;
  196. text-shadow:0 -1px 1px darken(@table-background-color1, 15%);
  197. text-align:left;
  198. color:@table-text-color;
  199. }
  200. dl.reflist dt a.el {
  201. color:@default-link-color;
  202. padding:.2em;
  203. border-radius:4px;
  204. background-color:lighten(@default-link-color, 40%);
  205. }
  206. div.toc {
  207. float:none;
  208. width:auto;
  209. }
  210. div.toc h3 {
  211. font-size:1.17em;
  212. }
  213. div.toc ul {
  214. padding-left:1.5em;
  215. }
  216. div.toc li {
  217. font-size:1em;
  218. padding-left:0;
  219. list-style-type:disc;
  220. }
  221. div.toc,.memproto,div.qindex,div.ah {
  222. background:linear-gradient(to bottom,@toc-background-color2 0%,@toc-background-color1 100%);
  223. box-shadow:inset 0 0 32px @toc-background-color1;
  224. text-shadow:0 1px 1px lighten(@toc-background-color2, 10%);
  225. color:@heading-color;
  226. border:2px solid @toc-background-color1;
  227. border-radius:4px;
  228. }
  229. .paramname {
  230. color:@prototype-param-color;
  231. }
  232. dl.reflist dt {
  233. border:2px solid @default-border-color;
  234. border-top-left-radius:4px;
  235. border-top-right-radius:4px;
  236. border-bottom:none;
  237. }
  238. dl.reflist dd {
  239. border:2px solid @default-border-color;
  240. border-bottom-right-radius:4px;
  241. border-bottom-left-radius:4px;
  242. border-top:none;
  243. }
  244. table.doxtable {
  245. border-collapse:inherit;
  246. border-spacing:0;
  247. border:2px solid @default-border-color;
  248. border-radius:4px;
  249. }
  250. a,a:hover,a:visited,a:visited:hover,.contents a:visited,.el,a.el:visited,#glfwhome:hover,.tablist a:hover,span.lineno a:hover {
  251. color:@default-link-color;
  252. text-decoration:none;
  253. }
  254. div.directory {
  255. border-collapse:inherit;
  256. border-spacing:0;
  257. border:2px solid @default-border-color;
  258. border-radius:4px;
  259. }
  260. hr,.memSeparator {
  261. height:2px;
  262. background:linear-gradient(to right,@def-separator-color 0%,darken(@def-separator-color, 10%) 50%,@def-separator-color 100%);
  263. }
  264. dl.note,dl.pre,dl.post,dl.invariant {
  265. .message-box(@box-note-color);
  266. }
  267. dl.warning,dl.attention {
  268. .message-box(@box-warning-color);
  269. }
  270. dl.deprecated,dl.bug {
  271. .message-box(@box-bug-color);
  272. }
  273. dl.todo,dl.test {
  274. .message-box(@box-todo-color);
  275. }
  276. dl.note,dl.pre,dl.post,dl.invariant,dl.warning,dl.attention,dl.deprecated,dl.bug,dl.todo,dl.test {
  277. border-radius:4px;
  278. padding:1em;
  279. text-shadow:0 1px 1px hsl(0,0%,100%);
  280. margin:1em 0;
  281. }
  282. .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 {
  283. color:inherit;
  284. }
  285. div.line {
  286. line-height:inherit;
  287. }
  288. div.fragment,pre.fragment {
  289. background:hsl(0,0%,95%);
  290. border-radius:4px;
  291. border:none;
  292. padding:1em;
  293. overflow:auto;
  294. border-left:4px solid hsl(0,0%,80%);
  295. margin:1em 0;
  296. }
  297. .lineno a,.lineno a:visited,.line,pre.fragment {
  298. color:@default-text-color;
  299. }
  300. span.preprocessor,span.comment {
  301. color:hsl(193,100%,30%);
  302. }
  303. a.code,a.code:visited {
  304. color:hsl(18,100%,45%);
  305. }
  306. span.keyword,span.keywordtype,span.keywordflow {
  307. color:darken(@default-text-color, 5%);
  308. font-weight:bold;
  309. }
  310. span.stringliteral {
  311. color:hsl(261,100%,30%);
  312. }
  313. code {
  314. padding:.1em;
  315. border-radius:4px;
  316. }