_header-branding.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // Site branding
  2. .site-branding {
  3. color: var(--branding--color-text);
  4. text-align: center;
  5. }
  6. // Site title
  7. .site-title {
  8. color: var(--branding--color-link);
  9. font-family: var(--branding--title--font-family);
  10. font-size: var(--branding--title--font-size-mobile);
  11. letter-spacing: normal;
  12. line-height: var(--global--line-height-heading);
  13. margin-bottom: calc( var(--global--spacing-vertical) / 2 );
  14. a {
  15. background-image: linear-gradient(to right, var(--global--color-secondary) 100%, transparent 100%);
  16. background-position: 0 1.22em;
  17. background-repeat: repeat-x;
  18. background-size: 8px 1.5px;
  19. border-bottom: none;
  20. color: currentColor;
  21. font-weight: var(--branding--title--font-weight);
  22. text-decoration: none;
  23. text-shadow:
  24. 1px 0px var(--global--color-background),
  25. -1px 0px var(--global--color-background),
  26. -2px 0px var(--global--color-background),
  27. 2px 0px var(--global--color-background),
  28. -3px 0px var(--global--color-background),
  29. 3px 0px var(--global--color-background),
  30. -4px 0px var(--global--color-background),
  31. 4px 0px var(--global--color-background),
  32. -5px 0px var(--global--color-background),
  33. 5px 0px var(--global--color-background);
  34. transition: background-size 0.1s ease-out;
  35. &:link,
  36. &:visited,
  37. &:active {
  38. color: currentColor;
  39. }
  40. &:hover,
  41. &:focus {
  42. color: var(--global--color-secondary);
  43. background-size: 8px 0px;
  44. }
  45. &::selection {
  46. text-shadow:
  47. 1px 0px var(--global--color-text-selection),
  48. -1px 0px var(--global--color-text-selection),
  49. -2px 0px var(--global--color-text-selection),
  50. 2px 0px var(--global--color-text-selection),
  51. -3px 0px var(--global--color-text-selection),
  52. 3px 0px var(--global--color-text-selection),
  53. -4px 0px var(--global--color-text-selection),
  54. 4px 0px var(--global--color-text-selection),
  55. -5px 0px var(--global--color-text-selection),
  56. 5px 0px var(--global--color-text-selection);
  57. }
  58. }
  59. @include media(mobile) {
  60. font-size: var(--branding--title--font-size);
  61. a {
  62. background-size: 8px 2px;
  63. }
  64. }
  65. }
  66. // Site description
  67. .site-description {
  68. color: currentColor;
  69. font-family: var(--branding--description--font-family);
  70. font-size: var(--branding--description--font-size);
  71. }
  72. a.custom-logo-link,
  73. nav a {
  74. border-bottom: 1px solid transparent;
  75. text-decoration: none;
  76. }
  77. .site-title > a {
  78. text-underline-width: .125em;
  79. text-decoration-color: var(--global--color-secondary);
  80. }
  81. // Site logo
  82. .site-logo {
  83. margin: calc( var(--global--spacing-vertical) / 2 ) var(--global--spacing-horizontal);
  84. text-align: center;
  85. .custom-logo {
  86. max-width: var(--branding--logo--max-width);
  87. max-height: var(--branding--logo--max-height);
  88. height: auto;
  89. }
  90. }
  91. // TODO - this should probably go in the variables declartion but we need the mixin...
  92. @include media(mobile-only) {
  93. :root {
  94. --branding--logo--max-width: var(--branding--logo--max-width-mobile);
  95. --branding--logo--max-height: var(--branding--logo--max-height-mobile);
  96. }
  97. }