Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. #logoBlock .pageContent {
  2. {xen:property uix_logoBlock_style}
  3. }
  4.  
  5. <xen:comment> FLEX LAYOUT APPLIED TO LOGOBLOCK CONTENTS </xen:comment>
  6.  
  7. .hasFlexbox #logoBlock {xen:if '{xen:property uix_pageStyle} == 1', '.pageWidth', '.pageContent'} {
  8. display: -ms-flexbox;
  9. display: -webkit-flex;
  10. display: flex;
  11.  
  12. -ms-flex-pack: justify;
  13. -webkit-justify-content: space-between;
  14. justify-content: space-between;
  15.  
  16. -ms-flex-align: center;
  17. -webkit-align-items: center;
  18. align-items: center;
  19. }
  20.  
  21.  
  22. <xen:comment> CLEARFIX SET BY XENFORO INTERFERES WITH FLEX LAYOUT </xen:comment>
  23.  
  24. .hasFlexbox #logoBlock {xen:if '{xen:property uix_pageStyle} == 1', '.pageWidth', '.pageContent'}:after { display: none; }
  25.  
  26.  
  27. .hasFlexbox #logoBlock .pageContent span.helper { display: none; }
  28.  
  29.  
  30. #logo a { text-decoration: none; }
  31.  
  32. #logo_small a { text-decoration: none; }
  33.  
  34. <xen:if is="{xen:property uix_logoWidth}">
  35. #logo img {
  36. max-width: {xen:property uix_logoWidth};
  37. <xen:comment>tbro this needed? -mike ===></xen:comment> width: 100%;
  38. }
  39. </xen:if>
  40.  
  41. <xen:if is="({xen:property uix_navigationStickyLogo} && {xen:property uix_stickyNavigation}) || {xen:property uix_navStyle} == 2">
  42. #logo_small {
  43. float: left;
  44. display: none;
  45. }
  46.  
  47. .activeSmallLogo #logo_small {
  48. display: block;
  49. }
  50.  
  51. <xen:if is="{xen:property uix_navStyle} == 2">
  52. #logo_small { display: block; }
  53. </xen:if>
  54.  
  55. #logo_small a {
  56. display: block;
  57. height: {xen:property headerTabHeight};
  58. line-height: {xen:property headerTabHeight};
  59. padding: 0 {xen:property uix_gutterWidthSmall};
  60.  
  61. -webkit-transform-style: preserve-3d;
  62. transform-style: preserve-3d;
  63. }
  64.  
  65. .activeSticky #logo_small a {
  66. height: {xen:property uix_fixedNavigationHeight};
  67. line-height: {xen:property uix_fixedNavigationHeight};
  68. }
  69.  
  70. #logo_small a:hover {
  71. color: {xen:property uix_navLinkHover.color};
  72. }
  73.  
  74. #logo_small img {
  75. <xen:if is="{xen:property uix_navigationLogoWidth}">width: {xen:property uix_navigationLogoWidth};</xen:if>
  76. display: inline-block;
  77. vertical-align: top;
  78. position: relative;
  79. top: 50%;
  80. transform: translateY(-50%);
  81. }
  82. </xen:if>
  83.  
  84.  
  85. /* Styling text based logo */
  86.  
  87. .uix_logoText {
  88. {xen:property uix_textLogo}
  89.  
  90. white-space: nowrap;
  91. }
  92.  
  93. <xen:if is="{xen:property uix_logoTextBreakpoint}">
  94. @media (max-width: {xen:property uix_logoTextBreakpoint}) {
  95. .Responsive .uix_logoText { font-size: {xen:property uix_responsiveLogoFontSize}; }
  96. }
  97. </xen:if>
  98.  
  99. .uix_logoText .uix_icon { margin-right: .5em; }
  100.  
  101. .uix_navigationLogoText {
  102. {xen:property uix_navigationLogoText}
  103. }
  104.  
  105. <xen:if is="{xen:property uix_navigationLogoTextBreakpoint}">
  106. @media (max-width: {xen:property uix_navigationLogoTextBreakpoint}) {
  107. .Responsive .uix_navigationLogoText { font-size: {xen:property uix_responsiveNavigationLogoFontSize}; }
  108. }
  109. </xen:if>
  110.  
  111. .uix_navigationLogoText .uix_icon { margin-right: .5em; }
  112.  
  113.  
  114. <xen:comment> /********* SLOGAN **********/ </xen:comment>
  115.  
  116. <xen:if is="{xen:property uix_sloganText}">
  117. #logoBlock .pageWidth
  118. {
  119. position: relative;
  120. }
  121. .uix_slogan
  122. {
  123. {xen:property uix_slogan}
  124. }
  125. .uix_slogan:hover
  126. {
  127. {xen:property uix_sloganHover}
  128. }
  129.  
  130. @media (max-width:{xen:property maxResponsiveWideWidth})
  131. {
  132. .Responsive .uix_slogan {display: none;}
  133. }
  134.  
  135. </xen:if>
  136.  
  137. <xen:comment> CENTERED LOGO </xen:comment>
  138. <xen:if is="{xen:property uix_widthToCenterLogo} != '100%'">
  139. @media (max-width: {xen:property uix_widthToCenterLogo})
  140. {
  141. .Responsive.hasFlexbox #logoBlock {xen:if '{xen:property uix_pageStyle} == 1', '.pageWidth', '.pageContent'} {
  142. -ms-flex-wrap: wrap;
  143. -webkit-flex-wrap: wrap;
  144. flex-wrap: wrap;
  145. }
  146.  
  147. .Responsive.hasFlexbox #logoBlock {xen:if '{xen:property uix_pageStyle} == 1', '.pageWidth', '.pageContent'} > * {
  148. -ms-flex: 0 1 100%;
  149. -webkit-flex: 0 1 100%;
  150. flex: 0 1 100%;
  151. }
  152.  
  153. .Responsive #logo {
  154. float: none;
  155. text-align: center;
  156. }
  157.  
  158. .Responsive .uix_slogan {
  159. display: none;
  160. }
  161. }
  162.  
  163. <xen:else />
  164.  
  165. .hasFlexbox #logoBlock {xen:if '{xen:property uix_pageStyle} == 1', '.pageWidth', '.pageContent'} {
  166. -ms-flex-wrap: wrap;
  167. -webkit-flex-wrap: wrap;
  168. flex-wrap: wrap;
  169. }
  170.  
  171. .hasFlexbox #logoBlock {xen:if '{xen:property uix_pageStyle} == 1', '.pageWidth', '.pageContent'} > * {
  172. -ms-flex: 0 1 100%;
  173. -webkit-flex: 0 1 100%;
  174. flex: 0 1 100%;
  175. }
  176.  
  177. #logo {
  178. float: none;
  179. text-align: center;
  180. }
  181. .uix_slogan {
  182. display: none;
  183. }
  184. </xen:if>
  185.  
  186. <xen:comment> IF COVERED PAGE STYLE IS ENABLED </xen:comment>
  187. <xen:if is="{xen:property uix_pageStyle} == 1">
  188.  
  189. {xen:helper clearfix, '#logoBlock .pageWidth'}
  190.  
  191. #logoBlock .pageContent {
  192. border-left: none;
  193. border-right: none;
  194. }
  195.  
  196. #logoBlock .funbox { margin-top: 0; }
  197.  
  198. </xen:if>
  199.  
  200. <xen:comment> IF NAVIGATION STYLE 3 </xen:comment>
  201. <xen:if is="{xen:property uix_navStyle} == 3 && {xen:property uix_pageStyle} != 1">
  202.  
  203. @media (min-width: {xen:calc '{xen:property maxResponsiveWideWidth} + 1'}px) {
  204. /*----Unecessary code after Page style fix for 1.5.7---Ian--*/
  205. <xen:comment>
  206. #header > div#logoBlock {
  207. margin-bottom: 0;
  208. margin-top: 0;
  209. }
  210. </xen:comment>
  211.  
  212. <xen:comment> #navigation WITH .withSearch HAS A Z-INDEX OF 52 </xen:comment>
  213.  
  214. #logoBlock .pageContent {
  215. position: relative;
  216. z-index: 53;
  217. }
  218.  
  219. .hasFlexbox #logo {
  220. -ms-flex: 1 1 0%;
  221. -webkit-flex: 1 1 0%;
  222. flex: 1 1 0%;
  223. }
  224.  
  225. <xen:comment> WIDTH OF FLOATED LOGOBLOCK </xen:comment>
  226. <xen:if is="{xen:property uix_logoBlockWidth}">
  227. #navigation .pageContent {
  228. margin-left: {xen:calc '{xen:property uix_logoBlockWidth} + {xen:property uix_gutterWidth}'}px;
  229. }
  230.  
  231. #logoBlock .pageContent {
  232. width: {xen:property uix_logoBlockWidth};
  233. float: left;
  234. }
  235. <xen:else />
  236.  
  237. #navigation .pageContent {
  238. margin-left: {xen:calc '{xen:property sidebar.width} + {xen:property uix_gutterWidth}'}px;
  239. }
  240. #logoBlock .pageContent {
  241. width: {xen:property sidebar.width};
  242. float: left;
  243. }
  244.  
  245. </xen:if>
  246.  
  247. <xen:comment> HEIGHT DEPENDING ON TABLINKS </xen:comment>
  248. <xen:if is="{$uix_tabLinksDropdown}">
  249. #logo {
  250. line-height: {xen:calc '{$headerTabHeight_outer} - 4'}px;
  251. *line-height: {$headerTabHeight_outer}px;
  252. height: {$headerTabHeight_outer}px;
  253. }
  254.  
  255. #logo img {
  256. max-height: {$headerTabHeight_outer}px;
  257. }
  258. </xen:if>
  259. <xen:if is="{$uix_tabLinksBar}">
  260. #logo {
  261. line-height: {xen:calc '{$headerTabHeight_outer} + {xen:property uix_tabLinksHeight} - 4'}px;
  262. *line-height: {xen:calc '{$headerTabHeight_outer} + {xen:property uix_tabLinksHeight}'}px;
  263. height: {xen:calc '{$headerTabHeight_outer} + {xen:property uix_tabLinksHeight}'}px;
  264. }
  265.  
  266. #logo img {
  267. max-height: {xen:calc '{$headerTabHeight_outer} + {xen:property uix_tabLinksHeight}'}px;
  268. }
  269.  
  270. </xen:if>
  271.  
  272. }
  273.  
  274. </xen:if>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement