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