generated from nhcarrigan/template
08795c620c
### Explanation _No response_ ### Issue _No response_ ### Attestations - [ ] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/) - [ ] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/). - [ ] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/). ### Dependencies - [ ] I have pinned the dependencies to a specific patch version. ### Style - [ ] I have run the linter and resolved any errors. - [ ] My pull request uses an appropriate title, matching the conventional commit standards. - [ ] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request. ### Tests - [ ] My contribution adds new code, and I have added tests to cover it. - [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes. - [ ] All new and existing tests pass locally with my changes. - [ ] Code coverage remains at or above the configured threshold. ### Documentation _No response_ ### Versioning _No response_ Co-authored-by: Hikari <hikari@nhcarrigan.com> Reviewed-on: #60
231 lines
4.4 KiB
SCSS
231 lines
4.4 KiB
SCSS
/* You can add global styles to this file, and also import other style files */
|
|
|
|
:root {
|
|
/* Witchy Purple Rose Palette */
|
|
--witch-purple: #2B1B3D;
|
|
--witch-plum: #44275A;
|
|
--witch-rose: #A8577E;
|
|
--witch-mauve: #D4A5C7;
|
|
--witch-lavender: #E8D5E8;
|
|
--witch-black: #0A0009;
|
|
--witch-silver: #C0C0C0;
|
|
--witch-moon: #F5F5F5;
|
|
--witch-shadow: rgba(10, 0, 9, 0.7);
|
|
|
|
/* Theme variables */
|
|
--foreground: var(--witch-purple);
|
|
--background: var(--witch-moon);
|
|
--accent: var(--witch-rose);
|
|
--border: var(--witch-plum);
|
|
--highlight: var(--witch-mauve);
|
|
|
|
/* Additional variables for components */
|
|
--primary-color: var(--witch-rose);
|
|
--border-color: var(--witch-plum);
|
|
--hover-background: var(--witch-lavender);
|
|
--text-color: var(--witch-purple);
|
|
--primary-light-background: rgba(168, 87, 126, 0.1);
|
|
|
|
font-size: 14pt;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
// Reset and base styles
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
font-size: 14pt;
|
|
line-height: 1.6;
|
|
color: var(--foreground);
|
|
background-color: var(--background);
|
|
position: relative;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Witchy mystical background */
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: url(https://cdn.nhcarrigan.com/background.png);
|
|
background-size: cover;
|
|
background-position: center;
|
|
z-index: -2;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Semi-transparent overlay for readability */
|
|
body::after {
|
|
content: "";
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(245, 245, 245, 0.9);
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
margin-top: 0;
|
|
line-height: 1.2;
|
|
color: var(--witch-purple);
|
|
}
|
|
|
|
a {
|
|
color: var(--witch-rose);
|
|
text-decoration: none;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--witch-plum);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
// Utility classes
|
|
.container {
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
// Form styles
|
|
input,
|
|
textarea,
|
|
select {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
background-color: var(--witch-moon);
|
|
border: 2px solid var(--witch-mauve);
|
|
color: var(--witch-purple);
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
outline: none;
|
|
border-color: var(--witch-rose);
|
|
}
|
|
|
|
// Button base styles
|
|
button {
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
// Scrollbar styling
|
|
::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--witch-lavender);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--witch-rose);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--witch-plum);
|
|
}
|
|
|
|
// Skip to main content link - visually hidden but accessible to screen readers
|
|
.skip-link {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.skip-link:focus {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: auto;
|
|
height: auto;
|
|
padding: 0.75rem 1.5rem;
|
|
margin: 0;
|
|
overflow: visible;
|
|
clip: auto;
|
|
white-space: normal;
|
|
background: var(--witch-rose);
|
|
color: var(--witch-moon);
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
border-radius: 0 0 4px 0;
|
|
z-index: 10000;
|
|
}
|
|
|
|
// Enhanced focus styles for keyboard navigation
|
|
*:focus-visible {
|
|
outline: 3px solid var(--witch-rose);
|
|
outline-offset: 2px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
// Remove default focus outline when focus-visible is used
|
|
*:focus:not(:focus-visible) {
|
|
outline: none;
|
|
}
|
|
|
|
// Button focus styles
|
|
button:focus-visible {
|
|
outline: 3px solid var(--witch-rose);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
// Link focus styles
|
|
a:focus-visible {
|
|
outline: 3px solid var(--witch-rose);
|
|
outline-offset: 2px;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
// Form input focus styles
|
|
input:focus-visible,
|
|
textarea:focus-visible,
|
|
select:focus-visible {
|
|
outline: 3px solid var(--witch-rose);
|
|
outline-offset: 2px;
|
|
border-color: var(--witch-rose);
|
|
}
|
|
|
|
// Ensure sufficient contrast for focus indicators
|
|
@media (prefers-contrast: high) {
|
|
*:focus-visible {
|
|
outline-width: 4px;
|
|
outline-offset: 3px;
|
|
}
|
|
}
|
|
|
|
// Reduced motion preferences
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|