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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. /* Nav */
  7. #nav {
  8. @include vendor('transition', (
  9. 'background-color #{_duration(transition)} ease',
  10. 'border-top-left-radius #{_duration(transition)} ease',
  11. 'border-top-right-radius #{_duration(transition)} ease',
  12. 'padding #{_duration(transition)} ease',
  13. ));
  14. @include color-typography(invert);
  15. position: absolute;
  16. width: _size(inner);
  17. max-width: calc(100% - #{_size(element-margin) * 2});
  18. padding: 1em;
  19. background-color: _palette(invert, bg-alt);
  20. border-top-left-radius: _size(border-radius-main);
  21. border-top-right-radius: _size(border-radius-main);
  22. cursor: default;
  23. text-align: center;
  24. & + #main {
  25. padding-top: 4.25em;
  26. }
  27. ul {
  28. margin: 0;
  29. padding: 0;
  30. list-style: none;
  31. li {
  32. @include vendor('transition', (
  33. 'margin #{_duration(transition)} ease'
  34. ));
  35. display: inline-block;
  36. margin: 0 0.35em;
  37. padding: 0;
  38. vertical-align: middle;
  39. a {
  40. @include vendor('transition', (
  41. 'font-size #{_duration(transition)} ease'
  42. ));
  43. display: inline-block;
  44. height: 2.25em;
  45. line-height: 2.25em;
  46. padding: 0 1.25em;
  47. border: 0;
  48. border-radius: _size(border-radius);
  49. box-shadow: inset 0 0 0 1px transparent;
  50. &:hover {
  51. background-color: _palette(invert, border-bg);
  52. }
  53. &.active {
  54. background-color: _palette(invert, bg);
  55. box-shadow: none;
  56. }
  57. }
  58. }
  59. }
  60. &.alt {
  61. position: fixed;
  62. top: 0;
  63. padding: 0.5em 1em;
  64. background-color: transparentize(_palette(invert, bg-alt), 0.05);
  65. border-top-left-radius: 0;
  66. border-top-right-radius: 0;
  67. z-index: _misc(z-index-base);
  68. ul {
  69. li {
  70. margin: 0 0.175em;
  71. a {
  72. font-size: 0.9em;
  73. }
  74. }
  75. }
  76. }
  77. @include breakpoint('<=small') {
  78. display: none;
  79. & + #main {
  80. padding-top: 0;
  81. }
  82. }
  83. }