_header-branding.scss 2.9 KB

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