My public website https://www.chameth.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_header.sass 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // The site-wide header, with title, recent posts, and identity links
  2. #header
  3. display: flex
  4. flex-direction: column
  5. align-items: flex-end
  6. justify-content: space-between
  7. background-color: #1f1815
  8. background-attachment: scroll, fixed
  9. background-image: url("/res/images/overlay.png"), url("/res/images/background.jpg")
  10. background-position: top left, top left
  11. background-repeat: repeat, no-repeat
  12. background-size: auto, auto 100%
  13. color: rgba(255, 255, 255, 0.4)
  14. width: 20%
  15. height: 100%
  16. left: 0
  17. top: 0
  18. position: fixed
  19. text-align: right
  20. padding: 8em 2em 8em 1em
  21. @media screen and (max-width: 1280px)
  22. padding: 6em 3em 3em 3em
  23. width: 30%
  24. @media screen and (max-width: 980px)
  25. background-attachment: scroll
  26. background-position: top left, center center
  27. background-size: auto, cover
  28. left: auto
  29. padding: 6em 4em
  30. position: relative
  31. text-align: center
  32. top: auto
  33. width: 100%
  34. display: block
  35. @media screen and (max-width: 736px), screen and (max-height: 700px)
  36. padding: 2.25em 1.5em
  37. min-height: 18em
  38. ul
  39. margin-bottom: 0
  40. @media screen and (max-width: 480px), screen and (max-height: 700px)
  41. padding: 2.25em 1.5em 2em
  42. min-height: 18em
  43. ul
  44. margin-bottom: 0
  45. & > *
  46. flex-shrink: 0
  47. width: 100%
  48. & > .inner
  49. flex-grow: 1
  50. margin: 0 0 2em 0
  51. section
  52. padding: 20px 0
  53. @media screen and (max-width: 980px)
  54. padding: 0
  55. a
  56. text-decoration-color: transparent
  57. transition: color 0.2s ease-in-out, text-decoration-color 0.25s linear
  58. &:hover
  59. text-decoration: underline
  60. h1
  61. font-size: 1.35em
  62. line-height: 1.75em
  63. margin: 0
  64. text-transform: uppercase
  65. color: $darkest-gray
  66. @media screen and (max-width: 1280px)
  67. font-size: 1.25em
  68. @media screen and (max-width: 980px)
  69. font-size: 1.75em
  70. p
  71. color: #d2d2d2
  72. position: relative
  73. margin: 0 0 1.5em 0
  74. // Recent posts list
  75. #posts ul
  76. list-style-type: none
  77. @media screen and (max-width: 980px)
  78. position: absolute
  79. bottom: 20px
  80. right: 20px
  81. .recent
  82. display: none
  83. li
  84. margin: 20px 0
  85. font-size: 0.9em
  86. line-height: 1.3em
  87. @media screen and (max-width: 980px)
  88. margin: 0.4em
  89. &.recent a
  90. background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 60%)
  91. display: inline-block
  92. width: 100%
  93. padding: 0.4em 0.5em 0.5em 2em
  94. // Identity links
  95. #identities
  96. position: absolute
  97. bottom: 20px
  98. left: 20px
  99. text-align: left
  100. ul
  101. margin-bottom: 0
  102. li
  103. font-size: 0.8em
  104. line-height: 1.4em
  105. margin: 0.4em 0
  106. &#pgp
  107. font-family: monospace