123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- /**
- Theme Name: SRH
- Text Domain: srh
- Description: Self Regional Healthcare
- Requires at least: 6.7
- Tested up to: 6.8
- Requires PHP: 7.2
- Version: 1.0
- Author: windhamdavid
- Author URI: https://davidwindham.com
- */
- .logo-letter {
- font-size: 115%;
- }
- main {
- margin-top: 180px !important;
- }
- a {
- text-decoration-thickness: 1px !important;
- text-underline-offset: .1em;
- }
- /* Focus styles */
- :where(.wp-site-blocks *:focus) {
- outline-width: 2px;
- outline-style: solid;
- }
- /* Increase the bottom margin on submenus, so that the outline is visible. */
- .wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
- margin-bottom: 3px;
- }
- /* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
- .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
- outline-offset: 4px;
- }
- /* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
- .wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
- outline-offset: 0;
- }
- /*
- * Progressive enhancement to reduce widows and orphans
- * https://github.com/WordPress/gutenberg/issues/55190
- */
- h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
- text-wrap: pretty;
- }
- /*
- * Change the position of the more block on the front, by making it a block level element.
- * https://github.com/WordPress/gutenberg/issues/65934
- */
- .more-link {
- display: block;
- }
- /* Auto-hide Navigation Styles */
- header,
- .srh-auto-hide-header,
- .wp-site-header,
- .wp-block-template-part[data-area="header"] {
- position: fixed !important;
- top: 0;
- left: 0;
- width: 100%;
- z-index: 9999;
- background: rgba(255, 255, 255, 0.95);
- backdrop-filter: blur(10px);
- -webkit-backdrop-filter: blur(10px);
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
- transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
- opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
- background-color 0.3s ease;
- transform: translateY(0);
- opacity: 1;
- }
- /* Hidden state when scrolling down */
- header.header-hidden,
- .srh-auto-hide-header.header-hidden,
- .wp-site-header.header-hidden,
- .wp-block-template-part[data-area="header"].header-hidden {
- transform: translateY(-100%);
- opacity: 0;
- }
- /* Visible state when scrolling up */
- header.header-visible,
- .srh-auto-hide-header.header-visible,
- .wp-site-header.header-visible,
- .wp-block-template-part[data-area="header"].header-visible {
- transform: translateY(0);
- opacity: 1;
- }
- /* Enhanced background when scrolled */
- header.header-scrolled,
- .srh-auto-hide-header.header-scrolled,
- .wp-site-header.header-scrolled,
- .wp-block-template-part[data-area="header"].header-scrolled {
- background: rgba(255, 255, 255, 0.98);
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
- }
- /* Ensure content doesn't jump when header becomes fixed */
- body {
- padding-top: 0;
- transition: padding-top 0.3s ease;
- }
- body.header-offset {
- padding-top: var(--header-height, 80px);
- }
- /* Navigation links hover effects */
- header a,
- .srh-auto-hide-header a,
- .wp-site-header a,
- .wp-block-template-part[data-area="header"] a {
- transition: color 0.2s ease, transform 0.2s ease;
- }
- header a:hover,
- .srh-auto-hide-header a:hover,
- .wp-site-header a:hover,
- .wp-block-template-part[data-area="header"] a:hover {
- transform: translateY(-1px);
- }
- /* Mobile menu adjustments */
- @media (max-width: 768px) {
- header,
- .srh-auto-hide-header,
- .wp-site-header,
- .wp-block-template-part[data-area="header"] {
- background: rgba(255, 255, 255, 0.98);
- }
-
- body.header-offset {
- padding-top: var(--header-height, 60px);
- }
- }
- /* Smooth scroll behavior for the whole page */
- html {
- scroll-behavior: smooth;
- }
- /* Optional: Add a subtle animation when page loads */
- header,
- .srh-auto-hide-header,
- .wp-site-header,
- .wp-block-template-part[data-area="header"] {
- animation: slideDown 0.5s ease-out;
- }
- @keyframes slideDown {
- from {
- transform: translateY(-100%);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- }
|