James Peret's blog. Built with Jekyll and the Mikey theme.

_global.scss 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // Global
  3. // --------------------------------------------------
  4. html,
  5. body {
  6. overflow-x: hidden;
  7. @media (max-width: $screen-xs-max) {
  8. padding-right: 0;
  9. }
  10. }
  11. .brandLogo {
  12. background-image: url(../images/logo-white.svg);
  13. background-size: contain;
  14. background-repeat: no-repeat;
  15. background-position: 0 0;
  16. padding: 0;
  17. text-indent: -100em;
  18. overflow: hidden;
  19. }
  20. .brandLogo--small {
  21. width: 44px;
  22. height: 44px;
  23. }
  24. .brandLogo--black {
  25. background-image: url(../images/logo-black.svg);
  26. }
  27. .textLogo {
  28. display: block;
  29. background-image: url(../images/logo-text-black.svg);
  30. background-size: contain;
  31. background-repeat: no-repeat;
  32. background-position: 0 0;
  33. padding: 0;
  34. text-indent: -100em;
  35. overflow: hidden;
  36. }
  37. .textLogo--white {
  38. background-image: url(../images/logo-text-white.svg);
  39. }
  40. .textLogo--sidebar {
  41. width: 100%;
  42. height: auto;
  43. background-size: contain;
  44. background-position: center;
  45. opacity: 0.8;
  46. &:hover {
  47. opacity: 1;
  48. }
  49. }
  50. .textLogo--frontpage {
  51. position: absolute;
  52. top: 132px;
  53. left: 50%;
  54. transform: translateX(-50%);
  55. z-index: $zIndex-5--textlogo-frontpage;
  56. margin: 0;
  57. width: 300px;
  58. height: 50px;
  59. background-size: 100%;
  60. background-position: 0;
  61. opacity: 0.9;
  62. @media (max-width: $screen-xs-max) {
  63. width: 300px;
  64. height: 34px;
  65. top: 148px;
  66. }
  67. }