style.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /**
  2. Theme Name: SRH
  3. Text Domain: srh
  4. Description: Self Regional Healthcare
  5. Requires at least: 6.7
  6. Tested up to: 6.8
  7. Requires PHP: 7.2
  8. Version: 1.0
  9. Author: windhamdavid
  10. Author URI: https://davidwindham.com
  11. */
  12. .logo-letter {
  13. font-size: 115%;
  14. }
  15. main {
  16. margin-top: 180px !important;
  17. }
  18. a {
  19. text-decoration-thickness: 1px !important;
  20. text-underline-offset: .1em;
  21. }
  22. /* Focus styles */
  23. :where(.wp-site-blocks *:focus) {
  24. outline-width: 2px;
  25. outline-style: solid;
  26. }
  27. /* Increase the bottom margin on submenus, so that the outline is visible. */
  28. .wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
  29. margin-bottom: 3px;
  30. }
  31. /* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
  32. .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
  33. outline-offset: 4px;
  34. }
  35. /* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
  36. .wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  37. outline-offset: 0;
  38. }
  39. /*
  40. * Progressive enhancement to reduce widows and orphans
  41. * https://github.com/WordPress/gutenberg/issues/55190
  42. */
  43. h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
  44. text-wrap: pretty;
  45. }
  46. /*
  47. * Change the position of the more block on the front, by making it a block level element.
  48. * https://github.com/WordPress/gutenberg/issues/65934
  49. */
  50. .more-link {
  51. display: block;
  52. }
  53. /* Auto-hide Navigation Styles */
  54. header,
  55. .srh-auto-hide-header,
  56. .wp-site-header,
  57. .wp-block-template-part[data-area="header"] {
  58. position: fixed !important;
  59. top: 0;
  60. left: 0;
  61. width: 100%;
  62. z-index: 9999;
  63. background: rgba(255, 255, 255, 0.95);
  64. backdrop-filter: blur(10px);
  65. -webkit-backdrop-filter: blur(10px);
  66. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  67. transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
  68. opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
  69. background-color 0.3s ease;
  70. transform: translateY(0);
  71. opacity: 1;
  72. }
  73. /* Hidden state when scrolling down */
  74. header.header-hidden,
  75. .srh-auto-hide-header.header-hidden,
  76. .wp-site-header.header-hidden,
  77. .wp-block-template-part[data-area="header"].header-hidden {
  78. transform: translateY(-100%);
  79. opacity: 0;
  80. }
  81. /* Visible state when scrolling up */
  82. header.header-visible,
  83. .srh-auto-hide-header.header-visible,
  84. .wp-site-header.header-visible,
  85. .wp-block-template-part[data-area="header"].header-visible {
  86. transform: translateY(0);
  87. opacity: 1;
  88. }
  89. /* Enhanced background when scrolled */
  90. header.header-scrolled,
  91. .srh-auto-hide-header.header-scrolled,
  92. .wp-site-header.header-scrolled,
  93. .wp-block-template-part[data-area="header"].header-scrolled {
  94. background: rgba(255, 255, 255, 0.98);
  95. box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  96. }
  97. /* Ensure content doesn't jump when header becomes fixed */
  98. body {
  99. padding-top: 0;
  100. transition: padding-top 0.3s ease;
  101. }
  102. body.header-offset {
  103. padding-top: var(--header-height, 80px);
  104. }
  105. /* Navigation links hover effects */
  106. header a,
  107. .srh-auto-hide-header a,
  108. .wp-site-header a,
  109. .wp-block-template-part[data-area="header"] a {
  110. transition: color 0.2s ease, transform 0.2s ease;
  111. }
  112. header a:hover,
  113. .srh-auto-hide-header a:hover,
  114. .wp-site-header a:hover,
  115. .wp-block-template-part[data-area="header"] a:hover {
  116. transform: translateY(-1px);
  117. }
  118. /* Mobile menu adjustments */
  119. @media (max-width: 768px) {
  120. header,
  121. .srh-auto-hide-header,
  122. .wp-site-header,
  123. .wp-block-template-part[data-area="header"] {
  124. background: rgba(255, 255, 255, 0.98);
  125. }
  126. body.header-offset {
  127. padding-top: var(--header-height, 60px);
  128. }
  129. }
  130. /* Smooth scroll behavior for the whole page */
  131. html {
  132. scroll-behavior: smooth;
  133. }
  134. /* Optional: Add a subtle animation when page loads */
  135. header,
  136. .srh-auto-hide-header,
  137. .wp-site-header,
  138. .wp-block-template-part[data-area="header"] {
  139. animation: slideDown 0.5s ease-out;
  140. }
  141. @keyframes slideDown {
  142. from {
  143. transform: translateY(-100%);
  144. opacity: 0;
  145. }
  146. to {
  147. transform: translateY(0);
  148. opacity: 1;
  149. }
  150. }