extra.scss 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. // NOTE: Please use this file to perform modifications on default style sheets.
  2. //
  3. // You need to install the official Sass CLI tool:
  4. // npm install -g sass
  5. //
  6. // Run this command to regenerate extra.css after you're finished with changes:
  7. // sass --style=compressed extra.scss 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(adjust-hue($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. @mixin 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,.markdownTable code {
  80. background:none;
  81. }
  82. #titlearea,.footer,.contents,div.header,.memdoc,table.doxtable td,table.doxtable th,table.markdownTable td,table.markdownTable 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,table.markdownTable 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),tr.markdownTableBody:nth-child(even),.mdescLeft,.mdescRight,.memItemLeft,.memItemRight,code,.markdownTableRowEven {
  98. background:$header-footer-background-color;
  99. }
  100. body {
  101. color:$default-text-color;
  102. }
  103. div.title {
  104. font-size: 170%;
  105. margin: 1em 0 0.5em 0;
  106. }
  107. h1,h2,h2.groupheader,h3,div.toc h3,h4,h5,h6,strong,em {
  108. color:$heading-color;
  109. border-bottom:none;
  110. }
  111. h1 {
  112. padding-top:0.5em;
  113. font-size:150%;
  114. }
  115. h2 {
  116. padding-top:0.5em;
  117. margin-bottom:0;
  118. font-size:130%;
  119. }
  120. h3 {
  121. padding-top:0.5em;
  122. margin-bottom:0;
  123. font-size:110%;
  124. }
  125. .glfwheader {
  126. font-size:16px;
  127. min-height:64px;
  128. max-width:920px;
  129. padding:0 32px;
  130. margin:0 auto;
  131. display: flex;
  132. flex-direction: row;
  133. flex-wrap: wrap;
  134. justify-content: flex-start;
  135. align-items: center;
  136. align-content: stretch;
  137. }
  138. #glfwhome {
  139. line-height:64px;
  140. padding-right:48px;
  141. color:$header-footer-link-color;
  142. font-size:2.5em;
  143. background:url("https://www.glfw.org/css/arrow.png") no-repeat right;
  144. }
  145. .glfwnavbar {
  146. list-style-type:none;
  147. margin:0 0 0 auto;
  148. float:right;
  149. }
  150. #glfwhome,.glfwnavbar li {
  151. float:left;
  152. }
  153. .glfwnavbar a,.glfwnavbar a:visited {
  154. line-height:64px;
  155. margin-left:2em;
  156. display:block;
  157. color:$header-footer-link-color;
  158. }
  159. .glfwnavbar {
  160. padding-left: 0;
  161. }
  162. #glfwhome,.glfwnavbar a,.glfwnavbar a:visited {
  163. transition:.35s ease;
  164. }
  165. #titlearea,.footer {
  166. color:$header-footer-link-color;
  167. }
  168. address.footer {
  169. text-align:center;
  170. padding:2em;
  171. margin-top:3em;
  172. }
  173. #top {
  174. background:$header-footer-link-color;
  175. }
  176. #main-nav {
  177. max-width:960px;
  178. margin:0 auto;
  179. font-size:13px;
  180. }
  181. #main-menu {
  182. max-width:920px;
  183. margin:0 auto;
  184. font-size:13px;
  185. }
  186. .memtitle {
  187. display:none;
  188. }
  189. .memproto,.memname {
  190. font-weight:bold;
  191. text-shadow:none;
  192. }
  193. #main-menu {
  194. min-height:36px;
  195. display: flex;
  196. flex-direction: row;
  197. flex-wrap: wrap;
  198. justify-content: flex-start;
  199. align-items: center;
  200. align-content: stretch;
  201. }
  202. #main-menu a:focus {
  203. outline-style: none;
  204. }
  205. #main-menu a,#main-menu a:visited,#main-menu a:hover,#main-menu li {
  206. color:$navbar-link-color;
  207. }
  208. #main-menu li ul.sm-nowrap li a {
  209. color:$default-text-color;
  210. }
  211. #main-menu li ul.sm-nowrap li a:hover {
  212. color:$default-link-color;
  213. }
  214. #main-menu > li:last-child {
  215. margin: 0 0 0 auto;
  216. }
  217. .contents {
  218. min-height:590px;
  219. }
  220. div.contents,div.header {
  221. max-width:920px;
  222. margin:0 auto;
  223. padding:0 32px;
  224. background:$content-background-color none;
  225. }
  226. table.doxtable th,table.markdownTable th,dl.reflist dt {
  227. background:linear-gradient(to bottom,$table-background-color2 0%,$table-background-color1 100%);
  228. box-shadow:inset 0 0 32px $table-background-color1;
  229. text-shadow:0 -1px 1px darken($table-background-color1, 15%);
  230. text-align:left;
  231. color:$table-text-color;
  232. }
  233. dl.reflist dt a.el {
  234. color:$default-link-color;
  235. padding:.2em;
  236. border-radius:4px;
  237. background-color:lighten($default-link-color, 40%);
  238. }
  239. div.toc {
  240. float:right;
  241. width:35%;
  242. }
  243. @media screen and (max-width:600px) {
  244. div.toc {
  245. float:none;
  246. width:inherit;
  247. margin:0;
  248. }
  249. }
  250. div.toc h3 {
  251. font-size:1.17em;
  252. }
  253. div.toc ul {
  254. padding-left:1.5em;
  255. }
  256. div.toc li {
  257. font-size:1em;
  258. padding-left:0;
  259. list-style-type:disc;
  260. }
  261. div.toc {
  262. li.level2, li.level3 {
  263. margin-left:0.5em;
  264. }
  265. }
  266. div.toc,.memproto,div.qindex,div.ah {
  267. background:linear-gradient(to bottom,$toc-background-color2 0%,$toc-background-color1 100%);
  268. box-shadow:inset 0 0 32px $toc-background-color1;
  269. text-shadow:0 1px 1px lighten($toc-background-color2, 10%);
  270. color:$heading-color;
  271. border:2px solid $toc-background-color1;
  272. border-radius:4px;
  273. }
  274. .paramname {
  275. color:$prototype-param-color;
  276. }
  277. dl.reflist dt {
  278. border:2px solid $default-border-color;
  279. border-top-left-radius:4px;
  280. border-top-right-radius:4px;
  281. border-bottom:none;
  282. }
  283. dl.reflist dd {
  284. border:2px solid $default-border-color;
  285. border-bottom-right-radius:4px;
  286. border-bottom-left-radius:4px;
  287. border-top:none;
  288. }
  289. table.doxtable,table.markdownTable {
  290. border-collapse:inherit;
  291. border-spacing:0;
  292. border:2px solid $default-border-color;
  293. border-radius:4px;
  294. }
  295. 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 {
  296. color:$default-link-color;
  297. text-decoration:none;
  298. }
  299. div.directory {
  300. border-collapse:inherit;
  301. border-spacing:0;
  302. border:2px solid $default-border-color;
  303. border-radius:4px;
  304. }
  305. hr,.memSeparator {
  306. height:2px;
  307. background:linear-gradient(to right,$def-separator-color 0%,darken($def-separator-color, 10%) 50%,$def-separator-color 100%);
  308. }
  309. dl.note,dl.pre,dl.post,dl.invariant {
  310. @include message-box($box-note-color);
  311. }
  312. dl.warning,dl.attention {
  313. @include message-box($box-warning-color);
  314. }
  315. dl.deprecated,dl.bug {
  316. @include message-box($box-bug-color);
  317. }
  318. dl.todo,dl.test {
  319. @include message-box($box-todo-color);
  320. }
  321. dl.note,dl.pre,dl.post,dl.invariant,dl.warning,dl.attention,dl.deprecated,dl.bug,dl.todo,dl.test {
  322. border-radius:4px;
  323. padding:1em;
  324. text-shadow:0 1px 1px hsl(0,0%,100%);
  325. margin:1em 0;
  326. }
  327. .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 {
  328. color:inherit;
  329. }
  330. div.line {
  331. line-height:inherit;
  332. }
  333. div.fragment,pre.fragment {
  334. background:hsl(0,0%,95%);
  335. border-radius:4px;
  336. border:none;
  337. padding:1em;
  338. overflow:auto;
  339. border-left:4px solid hsl(0,0%,80%);
  340. margin:1em 0;
  341. }
  342. .lineno a,.lineno a:visited,.line,pre.fragment {
  343. color:$default-text-color;
  344. }
  345. span.preprocessor,span.comment {
  346. color:hsl(193,100%,30%);
  347. }
  348. a.code,a.code:visited {
  349. color:hsl(18,100%,45%);
  350. }
  351. span.keyword,span.keywordtype,span.keywordflow {
  352. color:darken($default-text-color, 5%);
  353. font-weight:bold;
  354. }
  355. span.stringliteral {
  356. color:hsl(261,100%,30%);
  357. }
  358. code {
  359. padding:.1em;
  360. border-radius:4px;
  361. }