Blog-style website for karathan using the self-made Stellar Theme powered by HTML5Up http://blog.karathan.at

_header.scss 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ///
  2. /// Stellar by HTML5 UP
  3. /// html5up.net | @ajlkn
  4. /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
  5. ///
  6. /* Header */
  7. #header {
  8. @include padding(5em, 5em, (0, 0, -2em, 0));
  9. text-align: center;
  10. h1 {
  11. margin: 0 0 (_size(element-margin) * 0.125) 0;
  12. }
  13. p {
  14. font-size: 1.25em;
  15. letter-spacing: _font(letter-spacing);
  16. }
  17. &.alt {
  18. @include padding(6em, 5em, (1em, 0, 0, 0));
  19. h1 {
  20. font-size: 3.25em;
  21. }
  22. > * {
  23. @include vendor('transition', 'opacity 3s ease');
  24. @include vendor('transition-delay', '0.5s');
  25. opacity: 1;
  26. }
  27. .logo {
  28. @include vendor('transition', (
  29. 'opacity 1.25s ease',
  30. 'transform 0.5s ease'
  31. ));
  32. @include vendor('transition-delay', '0s');
  33. display: block;
  34. margin: 0 0 (_size(element-margin) * 0.75) 0;
  35. img {
  36. display: block;
  37. margin: 0 auto;
  38. max-width: 75%;
  39. }
  40. }
  41. }
  42. @include breakpoint('<=large') {
  43. @include padding(4em, 4em, (0, 0, -2em, 0));
  44. &.alt {
  45. @include padding(5em, 4em, (1em, 0, 0, 0));
  46. }
  47. }
  48. @include breakpoint('<=medium') {
  49. @include padding(4em, 3em, (0, 0, -2em, 0));
  50. &.alt {
  51. @include padding(4em, 3em, (1em, 0, 0, 0));
  52. }
  53. }
  54. @include breakpoint('<=small') {
  55. @include padding(3em, 2em, (0, 0, -1em, 0));
  56. p {
  57. font-size: 1em;
  58. letter-spacing: 0;
  59. br {
  60. display: none;
  61. }
  62. }
  63. &.alt {
  64. @include padding(3em, 2em, (1em, 0, 0, 0));
  65. h1 {
  66. font-size: 2.5em;
  67. }
  68. }
  69. }
  70. @include breakpoint('<=xsmall') {
  71. @include padding(3em, 1.5em, (0, 0, -1em, 0));
  72. &.alt {
  73. @include padding(3em, 1.5em, (1em, 0, 0, 0));
  74. }
  75. }
  76. @include breakpoint('<=xxsmall') {
  77. @include padding(2.5em, 1em, (0, 0, -1em, 0));
  78. &.alt {
  79. @include padding(2.5em, 1em, (1em, 0, 0, 0));
  80. }
  81. }
  82. body.is-preload & {
  83. &.alt {
  84. > * {
  85. opacity: 0;
  86. }
  87. .logo {
  88. @include vendor('transform', 'scale(0.8) rotate(-30deg)');
  89. }
  90. }
  91. }
  92. }