Guest User

Untitled

a guest
Oct 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.93 KB | None | 0 0
  1. <header<% if ( current.source === 'features' || current.path[0] === 'index' || current.source !== 'customers' ) { %> class="header-white"<% } %>>
  2. <div class="row">
  3. <div class="small-3 columns">
  4. <div class="logo">
  5. <a href="/">
  6. <svg class="handsontable-logo">
  7. <use xlink:href="#handsontable-logo"></use>
  8. </svg>
  9. </a>
  10. <a href="//github.com/handsontable/handsontable" id="github-star" class="star-counter" target="_blank">
  11. <svg>
  12. <use xlink:href="#github-squid"></use>
  13. </svg>
  14. <div class="github-star">
  15. <div class="triangle"></div>
  16. <div data-bind="starsCount">-</div>
  17. </div>
  18. </a>
  19. </div>
  20. </div>
  21.  
  22. <div class="small-9 columns text-right">
  23. <nav class="mobile-inactive">
  24. <a href="#" id="mobile-nav-menu">
  25. <svg>
  26. <use xlink:href="#open-mobile-nav"></use>
  27. </svg>
  28. </a>
  29. <ul>
  30. <li class="mobile-only"><a href="/">Home</a></li>
  31. <li><a href="/features.html">Features</a></li>
  32. <li><a
  33. href="/examples.html?manual-resize&manual-move&conditional-formatting&context-menu&filters&dropdown-menu&headers">
  34. Examples
  35. </a></li>
  36. <li><a href="/download.html">Download</a></li>
  37. <li><a href="/pricing.html">Pricing</a></li>
  38. <li><a href="/customers">Case studies</a></li>
  39. <li><a href="/developers.html">Developers</a></li>
  40. <li class="mobile-only"><a href="/resellers.html">Resellers</a></li>
  41. <li class="mobile-only"><a href="/blog/">Blog</a></li>
  42. <li class="mobile-only"><a href="/contact.html">Contact</a></li>
  43. <li class="news">
  44. <svg>
  45. <use xlink:href="#bell"></use>
  46. </svg>
  47. </li>
  48. <li><a href="//my.handsontable.com/sign-in.html"
  49. class="btn size-small bg-green-light bg-lighten text-white">
  50. Sign in
  51. </a>
  52. </li>
  53. </ul>
  54. </nav>
  55. </div>
  56. </div>
  57.  
  58. header {
  59. @include absolute-top-left (0, 0);
  60. width: 100%;
  61. padding: 34px 0 0;
  62. z-index: 1;
  63.  
  64. .logo {
  65. @include relative-top-left (-3px, 0);
  66.  
  67. @media only screen and (min-width: $largeWidth) {
  68. @include relative-top-left (10px, 0);
  69. }
  70.  
  71. svg {
  72.  
  73. &.handsontable-logo {
  74. @include rectangle (130px, 25px);
  75. fill: $baseGray;
  76. }
  77. }
  78. }
  79.  
  80. /* Begin: This allows to stretch the mobile menu to 100% of width of the viewport */
  81. & > .row > .columns:last-child {
  82. position: static;
  83. }
  84. /* End */
  85.  
  86. nav {
  87.  
  88. & > a {
  89. @include absolute-top-right (4px, 5px);
  90. padding: 20px;
  91. display: block;
  92. z-index: 11;
  93.  
  94. @media only screen and (min-width: $largeWidth) {
  95. display: none;
  96. }
  97.  
  98. svg {
  99. @include square (28px);
  100. fill: $baseGray;
  101. }
  102. }
  103.  
  104. ul {
  105. display: none;
  106.  
  107. @media only screen and (min-width: $largeWidth) {
  108. display: block;
  109. }
  110.  
  111. li {
  112. padding: 0 19px;
  113. display: inline-block;
  114.  
  115. &:last-child {
  116. padding-right: 0;
  117. }
  118.  
  119. &.mobile-only {
  120. display: none;
  121. }
  122.  
  123. &.news {
  124. padding-right: 32px;
  125. position: relative;
  126.  
  127. svg {
  128. @include square (18px);
  129. @include relative-top-left (4px, 0);
  130. fill: $baseGray;
  131. }
  132.  
  133. #HW_badge_cont {
  134. @include absolute-top-left (0, 13px);
  135.  
  136. #HW_badge {
  137. @include square (12px);
  138. @include relative-top-left (0, 0);
  139. line-height: 13px;
  140. background-color: $brandRedActive;
  141.  
  142. &.HW_softHidden {
  143. opacity: .4;
  144. background-color: $brandVibrantGreenActive;
  145. }
  146. }
  147. }
  148. }
  149.  
  150. a, a:hover, a:active, a:visited {
  151. font-size: 13px;
  152. color: $baseGray;
  153. }
  154.  
  155. a:hover {
  156. color: $darkGray;
  157. }
  158.  
  159. }
  160. }
  161. }
  162.  
  163. /* Menu visible only on mobile devices */
  164. nav.mobile-active {
  165.  
  166. @media only screen and (min-width: $largeWidth) {
  167. display: none;
  168. }
  169.  
  170. & > a {
  171.  
  172. svg {
  173. fill: $darkGray;
  174. }
  175. }
  176.  
  177. ul {
  178. @include absolute-top-left (12px, 2%);
  179. width: 96%;
  180. padding: 66px 0 8px;
  181. display: block;
  182. text-align: center;
  183. border-radius: 4px;
  184. z-index: 10;
  185. box-shadow: 0 3px 18px rgba(0, 0, 0, 0.15), 0 3px 18px rgba(0, 0, 0, 0.15);
  186. background: #fff;
  187.  
  188. li {
  189. width: 49%;
  190. padding: 10px 0;
  191.  
  192. &.mobile-only {
  193. display: inline-block;
  194. }
  195.  
  196. a, a:hover, a:active, a:visited {
  197. font-size: 18px;
  198. color: $brandBlue;
  199.  
  200. &.btn {
  201. width: 100%;
  202. color: #fff;
  203. font-size: 18px;
  204. }
  205. }
  206.  
  207. &:last-child {
  208. width: 90%;
  209. padding-top: 40px;
  210. }
  211.  
  212. &.news {
  213. display: none;
  214. }
  215. }
  216. }
  217. }
  218.  
  219. &.header-white {
  220.  
  221. .logo {
  222.  
  223. .github-star {
  224. border: 1px solid $darkWhite;
  225. color: $darkWhite;
  226. font-weight: 600;
  227.  
  228. .triangle {
  229. border-right-color: $darkWhite;
  230. }
  231. }
  232.  
  233. svg {
  234. fill: $darkWhite;
  235. }
  236. }
  237.  
  238. a, a:hover, a:active, a:visited {
  239. color: #fff;
  240. }
  241.  
  242. a:hover:not(.btn) {
  243. color: $brandFeatherBlue;
  244. }
  245.  
  246. svg, .news svg {
  247. fill: #fff;
  248. }
  249. }
  250. }
  251.  
  252. customers === white
  253. | subfolder === white
  254. | subfolder === white
  255. | subfolder === white
  256.  
  257. header {
  258. &.header-white {
  259. a, a:hover, a:active, a:visited {
  260. color: #fff;
  261. }
  262. }
  263. }
  264.  
  265. <li><a href="/customers">Case studies</a></li>
  266.  
  267. <li><a class="customers" href="/customers">Case studies</a></li>
  268.  
  269. header {
  270. &.header-white {
  271. a.customers {
  272. &, &:hover, &:active, &:visited {
  273. color: #fff;
  274. }
  275. }
  276. }
  277. }
  278.  
  279. <header<% if ( current.source === 'features' || current.path[0] === 'index' || current.source !== 'customers' ) { %> class="header-white"<% } %>>
  280.  
  281. <header<% if ( current.source === 'features' || current.path[0] === 'index' || current.path[1] === 'index' ) { %> class="header-white"<% } %>>
Add Comment
Please, Sign In to add comment