226 lines
6.0 KiB
CSS
226 lines
6.0 KiB
CSS
/* iT Guys Premium Documentation Style v10 (Text Visibility Nuke) */
|
|
|
|
/* ROOT VARIABLES - iT Guys Official Colors */
|
|
:root {
|
|
--md-primary-fg-color: #1478cf;
|
|
--md-primary-fg-color--light: #4ea5f5;
|
|
--md-primary-fg-color--dark: #0d5ea6;
|
|
--md-accent-fg-color: #00f7ff;
|
|
|
|
--header-height: 48px;
|
|
}
|
|
|
|
/* HEADER LAYOUT - Compact & Absolute Centering */
|
|
@media screen and (min-width: 60em) {
|
|
/* Force Header Height */
|
|
.md-header {
|
|
height: var(--header-height) !important;
|
|
min-height: var(--header-height) !important;
|
|
}
|
|
|
|
.md-header__inner {
|
|
height: var(--header-height) !important;
|
|
padding: 0 1rem !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
position: relative !important;
|
|
justify-content: space-between !important;
|
|
gap: 0 !important;
|
|
}
|
|
|
|
/* 1. LOGO AREA */
|
|
.md-header__title {
|
|
flex-grow: 0;
|
|
width: auto;
|
|
padding: 0 !important;
|
|
margin-right: 0 !important;
|
|
line-height: var(--header-height) !important;
|
|
}
|
|
|
|
.md-header__button.md-logo {
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.md-header__button.md-logo img {
|
|
height: 32px !important;
|
|
width: auto !important;
|
|
display: block;
|
|
}
|
|
|
|
.md-header__title .md-header__topic {
|
|
display: none !important;
|
|
}
|
|
|
|
/* 2. SEARCH BAR */
|
|
.md-search {
|
|
display: block !important;
|
|
position: absolute !important;
|
|
left: 50% !important;
|
|
top: 50% !important;
|
|
transform: translate(-50%, -50%) !important;
|
|
width: clamp(250px, 40vw, 600px) !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
height: 36px !important;
|
|
z-index: 20;
|
|
}
|
|
|
|
/* OVERLAY: Invisible (Click-to-dismiss) */
|
|
.md-search__overlay {
|
|
opacity: 0 !important;
|
|
background-color: transparent !important;
|
|
width: 100% !important;
|
|
height: 100vh !important;
|
|
position: fixed !important;
|
|
top: 0 !important;
|
|
left: 0 !important;
|
|
pointer-events: auto !important;
|
|
z-index: 15 !important;
|
|
cursor: default !important;
|
|
}
|
|
|
|
.md-search__inner {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
background-color: rgba(255, 255, 255, 0.2) !important;
|
|
border-radius: 4px;
|
|
padding: 0 !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
/* Active State (White Background) */
|
|
.md-search__inner.md-search__inner--active {
|
|
background-color: #fff !important;
|
|
box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
|
|
}
|
|
|
|
/*
|
|
CRITICAL FIX: SEARCH TEXT COLOR
|
|
Using high specificity and :focus-within to guarantee Black text
|
|
when the search bar is active/typed in.
|
|
*/
|
|
/* Default state (Inactive) - White text */
|
|
.md-search__input {
|
|
background: transparent !important;
|
|
height: 100% !important;
|
|
padding-left: 40px !important;
|
|
font-size: 0.9rem !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
/* Styling for Placeholder (Inactive) */
|
|
.md-search__input::placeholder {
|
|
color: rgba(255, 255, 255, 0.7) !important;
|
|
}
|
|
|
|
/* ACTIVE STATE - BLACK TEXT */
|
|
.md-search__inner.md-search__inner--active .md-search__input,
|
|
.md-search__form:focus-within .md-search__input,
|
|
.md-search__input:focus,
|
|
.md-search__input:valid {
|
|
color: #000000 !important;
|
|
opacity: 1 !important;
|
|
text-shadow: none !important;
|
|
}
|
|
|
|
/* Active Placeholder */
|
|
.md-search__inner--active .md-search__input::placeholder,
|
|
.md-search__input:focus::placeholder {
|
|
color: #888888 !important;
|
|
}
|
|
|
|
/* Icon Alignment & Colors */
|
|
.md-search__icon {
|
|
height: 36px !important;
|
|
width: 40px !important;
|
|
top: 0 !important;
|
|
left: 0 !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.md-search__icon[for="__search"] svg {
|
|
fill: rgba(255,255,255,0.7) !important;
|
|
}
|
|
/* Dark icon when active */
|
|
.md-search__inner--active .md-search__icon[for="__search"] svg,
|
|
.md-search__form:focus-within .md-search__icon[for="__search"] svg {
|
|
fill: #333333 !important;
|
|
}
|
|
|
|
/* Dropdown */
|
|
.md-search__output {
|
|
position: absolute !important;
|
|
top: 100% !important;
|
|
left: 0 !important;
|
|
width: 100% !important;
|
|
margin-top: 4px !important;
|
|
border-radius: 4px !important;
|
|
overflow: hidden !important;
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
|
|
}
|
|
|
|
.md-search__scrollwrap {
|
|
max-height: 70vh !important;
|
|
}
|
|
|
|
/* 3. TOGGLE / ACTIONS */
|
|
.md-header__option {
|
|
margin-left: 0 !important;
|
|
}
|
|
.md-header__source {
|
|
margin-left: 1rem !important;
|
|
}
|
|
}
|
|
|
|
/* SCROLL UNLOCK */
|
|
body[data-md-scrolllock] {
|
|
overflow: auto !important;
|
|
}
|
|
|
|
/* GENERAL TYPOGRAPHY */
|
|
h1 {
|
|
color: var(--md-primary-fg-color) !important;
|
|
font-weight: 800 !important;
|
|
text-transform: uppercase;
|
|
font-size: clamp(1.5rem, 2.5vw, 2.2rem);
|
|
border-left: 0.3rem solid var(--md-accent-fg-color);
|
|
padding-left: 1rem;
|
|
margin-bottom: 2rem !important;
|
|
}
|
|
|
|
h2 {
|
|
color: var(--md-primary-fg-color--dark);
|
|
font-weight: 700;
|
|
margin-top: 3rem !important;
|
|
border-bottom: 2px solid #e0e0e0;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
/* Dark Mode */
|
|
[data-md-color-scheme="slate"] {
|
|
--md-primary-fg-color: #1478cf;
|
|
--md-primary-fg-color--dark: #62a3ea;
|
|
}
|
|
[data-md-color-scheme="slate"] h1 {
|
|
color: #62a3ea !important;
|
|
}
|
|
[data-md-color-scheme="slate"] .md-header {
|
|
background-color: #0b1a26;
|
|
}
|
|
|
|
/* BUTTONS */
|
|
.md-button {
|
|
border-radius: 4px;
|
|
font-weight: 700;
|
|
}
|
|
.md-button--primary {
|
|
background-color: var(--md-primary-fg-color) !important;
|
|
}
|
|
|
|
/* CLEANUP */
|
|
.md-copyright, .md-footer-meta__text { display: none; }
|