mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-14 07:26:50 +00:00
- Enabled PostCSS nesting with specific configuration for modern compatibility - Added global CSS reset for consistent tap highlights across browsers - Optimized package configuration for broader browser support - Refactored and streamlined global CSS, removing redundant styles for better maintainability - Integrated additional CSS import in component for modular styling approach
84 lines
1.3 KiB
CSS
84 lines
1.3 KiB
CSS
* {
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.site-title {
|
|
view-transition-name: site-title;
|
|
transition: 0.2s ease;
|
|
}
|
|
|
|
.item {
|
|
transition: 0.2s ease;
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 0px;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 4px;
|
|
appearance: none;
|
|
outline: none;
|
|
|
|
&:after {
|
|
content: '🔍';
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
background-color: var(--background-color);
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
line-height: 24px;
|
|
}
|
|
}
|
|
|
|
.search-icon:checked + .search-form {
|
|
display: block !important;
|
|
}
|
|
|
|
.search-form {
|
|
display: none;
|
|
background: rgba(255, 255, 255, 0.75);
|
|
padding: 8px;
|
|
position: sticky;
|
|
top: 60px;
|
|
border-radius: var(--box-border-radius);
|
|
|
|
> input {
|
|
border: 1px solid var(--background-color);
|
|
border-radius: var(--box-border-radius);
|
|
outline: none;
|
|
font-size: 12px;
|
|
line-height: 2.4;
|
|
padding: 0 0.5em;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.copyright-wrap {
|
|
position: sticky;
|
|
top: 120px;
|
|
color: #666;
|
|
line-height: 1.5;
|
|
font-size: 14px;
|
|
display: none;
|
|
}
|
|
|
|
@media screen and (min-width: 600px) {
|
|
.search-form {
|
|
display: block;
|
|
}
|
|
|
|
.search-icon {
|
|
display: none;
|
|
}
|
|
|
|
.copyright-wrap {
|
|
display: block;
|
|
}
|
|
}
|