extra.less 9.2 KB

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