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.
 
 
 
 
 

278 lines
6.3 KiB

  1. /**
  2. * This file provides the design styles for the page header.
  3. */
  4. #dokuwiki__header {
  5. @header-font-opacity: 1;
  6. @media @screen_max-xs {
  7. min-height: 120px;
  8. }
  9. /* + + + wiki logo + + + */
  10. @media @screen_min-md {
  11. .logo {
  12. padding: 1rem 0 .3rem;
  13. img {
  14. height: 4.6rem;
  15. width: auto;
  16. border-style: solid;
  17. border-color: transparent;
  18. border-width: 2px 0;
  19. }
  20. a:hover,
  21. a:focus,
  22. a:active {
  23. img {
  24. border-width: 0;
  25. }
  26. }
  27. }
  28. }
  29. @media @screen_max-md {
  30. .logo {
  31. display: table-cell;
  32. .mobile-only {
  33. margin: .8rem 1rem .6rem 0;
  34. }
  35. }
  36. }
  37. /* + + + + + DESKTOP - wiki title + claim + + + + + */
  38. .main-title.desktop-only {
  39. @media @screen_min-md {
  40. display: table-cell;
  41. vertical-align: middle;
  42. }
  43. @media @screen_max-md {
  44. display: block;
  45. }
  46. p.title {
  47. @media @screen_max-md {
  48. display: none;
  49. }
  50. }
  51. p.claim {
  52. @media @screen_max-md {
  53. display: block;
  54. padding-bottom: 1rem;
  55. }
  56. @media @screen_max-xs {
  57. padding-right: (@toggle-size + @headericons-margin-xxs);
  58. }
  59. }
  60. }
  61. /* + + + + + MOBILE - wiki title wrapper + + + + + */
  62. .main-title:not([class*="desktop-only"]) {
  63. @media @screen_max-md {
  64. display: table-cell;
  65. vertical-align: middle;
  66. }
  67. @media @screen_max-xs {
  68. padding-right: (@toggle-size + @headericons-margin-xxs);
  69. }
  70. }
  71. /* + + + wiki title + + + */
  72. p.title {
  73. background-color: @ini_background_site;
  74. opacity: @header-font-opacity;
  75. color: @ini_text_webframe;
  76. line-height: @line-height-default;
  77. margin-bottom: .5rem;
  78. @media @screen_min-md {
  79. font-size: @font-size-big;
  80. }
  81. @media @screen_max-md {
  82. font-size: (@font-size-default + .25);
  83. padding-top: .5rem;
  84. padding-left: 1rem;
  85. }
  86. }
  87. /* + + + + + DESKTOP - wiki claim, logo, title wrapper + + + + + */
  88. @media @screen_min-md {
  89. div.claim {
  90. display: table-cell;
  91. height: 100%;
  92. vertical-align: middle;
  93. }
  94. }
  95. /* + + + wiki claim + + + */
  96. p.claim {
  97. opacity: @header-font-opacity;
  98. color: @ini_text_webframe;
  99. font-size: @font-size-default;
  100. margin-bottom: 0;
  101. @media @screen_max-md {
  102. padding-top: .5rem;
  103. }
  104. }
  105. /* + + + mobile nav togglelink + + + */
  106. .menu-togglelink {
  107. position: relative;
  108. margin: @headericons-margin-xxs -(@very-small-spacing) 0 0;
  109. a {
  110. .fontello();
  111. .icon-menu();
  112. .btn-hover();
  113. display: block;
  114. min-height: @toggle-size;
  115. min-width: @toggle-size;
  116. box-sizing: border-box;
  117. border: 1px solid @ini_border;
  118. border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius
  119. font-size: 1rem;
  120. text-align: center;
  121. text-decoration: none;
  122. line-height: 1;
  123. &::before {
  124. font-size: 1.5rem;
  125. margin: .1rem 0 0;
  126. }
  127. }
  128. }
  129. /* + + + mobile select for doku wiki tools + + + */
  130. .menu-tool-select {
  131. position: relative;
  132. z-index: 1000;
  133. display: none;
  134. @media @screen_max-xxs {
  135. display: block;
  136. }
  137. select {
  138. display: block;
  139. width:100%;
  140. }
  141. }
  142. /* + + + + + with magic matcher + + + + + */
  143. &.has-magicmatcher {
  144. .logo {
  145. @media @screen_min-md {
  146. padding-top: 3rem;
  147. }
  148. }
  149. .main-title.desktop-only {
  150. @media @screen_min-md {
  151. vertical-align: bottom;
  152. padding-top: @height-context-bar;
  153. padding-bottom: 1rem;
  154. }
  155. p.title {
  156. @media @screen_min-md {
  157. margin-right: 16rem;
  158. }
  159. }
  160. p.claim {
  161. @media @screen_max-md {
  162. display: block;
  163. padding-bottom: 1rem;
  164. }
  165. }
  166. }
  167. }
  168. }
  169. /* + + + + + layout option compact + + + + + */
  170. .header-compact {
  171. #dokuwiki__header {
  172. min-height: 2.7rem;
  173. margin-bottom: 0.5rem;
  174. .main-title.desktop-only p.claim,
  175. p.claim {
  176. white-space: nowrap;
  177. text-overflow: ellipsis;
  178. overflow: hidden;
  179. max-width: 35em;
  180. }
  181. // desktop
  182. @media @screen_min-md {
  183. div.claim {
  184. vertical-align: top;
  185. }
  186. .main-title.desktop-only {
  187. vertical-align: top;
  188. }
  189. .main-title.desktop-only,
  190. .logo {
  191. padding-top: 0.4rem;
  192. }
  193. .logo img {
  194. height: 3.6rem;
  195. }
  196. }
  197. // mobile middle
  198. @media @screen_max-md {
  199. .main-title.desktop-only p.claim,
  200. p.claim {
  201. display: none;
  202. }
  203. .logo {
  204. display: block;
  205. position: absolute;
  206. top: 0;
  207. left: 3rem;
  208. .mobile-only {
  209. margin: .4rem;
  210. height: 1.75rem;
  211. }
  212. }
  213. .main-title:not([class*="desktop-only"]) {
  214. display: inline-block;
  215. vertical-align: top;
  216. padding-left: 1.75rem;
  217. }
  218. p.title {
  219. font-size: 1rem;
  220. }
  221. }
  222. @media @screen_max-xxs {
  223. min-height: 70px; // needed for menu select toolbar
  224. .logo {
  225. left: 2rem;
  226. }
  227. .menu-tool-select {
  228. padding-top: .3rem;
  229. }
  230. }
  231. }
  232. }