Rock Css Blur
/* src/styles/childlinks.css */
#childLinks,
#childLinks ul,
#childLinks li {
list-style: none;
display: flex;
align-items: center;
}
#childLinks {
padding-top: 10px;
flex-direction: column;
gap: 0px;
justify-content: center;
border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.no-content + #childLinks {
border: 0;
}
#childLinks ul {
padding: 0;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
}
#childLinks li {
padding: 0;
background: rgba(255, 255, 255, 0.2);
border-radius: 12px;
backdrop-filter: blur(10px);
}
#childLinks li a {
padding: 2px 12px;
background: rgba(255, 255, 255, 0.2);
border-radius: 12px;
transform: translateY(0);
transition:
transform 200ms ease,
background-color 200ms ease,
color 200ms ease;
backdrop-filter: blur(10px);
}
#childLinks li a:hover {
background: rgba(255, 255, 255, 0.4);
color: #000;
text-decoration: none;
transform: translateY(-2px);
}
#childLinks.grid li a {
padding: 50px;
color: var(--text-primary);
}
#childLinks.grid li a:hover {
transform: translateY(-5px);
}
/* src/styles/externallinks.css */
a[href^="https://"] {
display: inline-flex;
align-items: center;
gap: 6px;
}
#content a[href^="https://"] {
padding-right: 6px;
}
a[href^="https://"]::after {
content: "";
background-color: currentcolor;
mask: url('data:image/svg+xml;utf8,');
-webkit-mask: url('data:image/svg+xml;utf8,');
width: 13.5px;
height: 13.5px;
display: inline-flex;
}
/* src/styles/swagger.css */
#main .swagger-ui .scheme-container {
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
}
#main .swagger-ui .opblock .opblock-section-header {
background: rgba(255, 255, 255, 0.3);
}
#main .swagger-ui section.models {
border: 1px solid rgba(255, 255, 255, 0.2);
}
#main .swagger-ui section.models .model-container,
#main .swagger-ui .opblock-body pre.microlight {
background: rgba(255, 255, 255, 0.8) !important;
backdrop-filter: blur(10px);
}
#main .swagger-ui,
#main .swagger-ui .info li,
#main .swagger-ui .info p,
#main .swagger-ui .info table,
#main .swagger-ui .opblock-description-wrapper p,
#main .swagger-ui .opblock-external-docs-wrapper p,
#main .swagger-ui .opblock-title_normal p,
#main .swagger-ui .response-col_status,
#main .swagger-ui .response-col_links {
color: #000;
}
#main .swagger-ui .opblock .opblock-summary-operation-id,
#main .swagger-ui .opblock .opblock-summary-path,
#main .swagger-ui .opblock .opblock-summary-path__deprecated,
#main .swagger-ui .btn,
#main .swagger-ui .model,
#main .swagger-ui .tab li,
#main .swagger-ui table thead tr td,
#main .swagger-ui table thead tr th,
#main .swagger-ui .parameter__type,
#main .swagger-ui .parameter__name,
#main .swagger-ui thead tr td.col_header,
#main .swagger-ui .model-title {
color: #000;
}
#main .swagger-ui .model .property.primitive {
color: #333;
}
#main .swagger-ui .prop-type {
color: darkred;
}
#main .swagger-ui svg {
fill: #000;
}
#main .swagger-ui .model-toggle::after {
filter: invert(0%);
}
#main .swagger-ui .btn {
border: 2px solid #000;
transition: transform 200ms ease;
background: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(10px);
}
#main .swagger-ui .btn:hover {
transform: translateY(-5px);
}
#main .swagger-ui input[disabled],
#main .swagger-ui select[disabled],
#main .swagger-ui textarea[disabled],
#main .swagger-ui select {
background: rgba(255, 255, 255, 0.3);
color: #000;
border: 2px solid rgba(255, 255, 255, 0.3);
appearance: auto;
}
#main .models > h4 {
margin: 5px 10px;
}
#main .swagger-ui .opblock-summary-control {
margin-right: 10px;
}
#main .swagger-ui .authorization__btn {
padding-left: 0;
}
.swagger-ui .info .title small {
top: 0;
padding: 4px 8px;
background: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(10px);
}
#main .swagger-ui .info .title {
display: flex;
align-items: center;
gap: 10px;
}
#main .swagger-ui .info .title small pre {
color: #000;
min-width: 0;
border: 0;
background: none;
}
#main .swagger-ui .info .title > span {
display: flex;
align-items: center;
}
.swagger-ui .info .title small.version-stamp {
background: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(10px);
}
#main .swagger-ui h1,
#main .swagger-ui h2,
#main .swagger-ui h3,
#main .swagger-ui h4,
#main .swagger-ui h5,
#main .swagger-ui h6 {
border: 0;
}
#main .swagger-ui input[type=email],
#main .swagger-ui input[type=file],
#main .swagger-ui input[type=password],
#main .swagger-ui input[type=search],
#main .swagger-ui input[type=text],
#main .swagger-ui textarea {
background-color: rgba(255, 255, 255, 0.3);
border: 0;
backdrop-filter: blur(10px);
}
/* src/styles/toc.css */
#toc-pane {
display: flex;
flex-direction: column;
height: fit-content;
position: sticky;
top: 0;
order: 3;
}
#toc-pane h3 {
text-transform: uppercase;
}
#toc {
position: relative;
height: fit-content;
margin: 0;
border-radius: 6px;
padding: 0 0 0 16px;
max-width: 250px;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
}
#toc,
#toc ul {
list-style: none;
}
#toc ul {
padding-left: 16px;
}
#toc span {
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
}
#toc li a {
display: flex;
align-items: center;
color: #000;
transition: color 200ms ease;
white-space: nowrap;
}
#toc li a:hover,
#toc li a.active {
color: darkred;
text-decoration: none;
}
#toc li a::before {
content: "";
display: flex;
position: absolute;
width: 2px;
height: 16px;
background: transparent;
left: 0;
transition: background-color 200ms ease;
}
#toc li a.active::before {
background: darkred;
}
#toc::before {
content: "";
display: block;
position: absolute;
left: 0px;
top: 4px;
width: 2px;
height: calc(100% - 8px);
background: rgba(255, 255, 255, 0.3);
}
#content h1 a.toc-anchor,
#content h2 a.toc-anchor,
#content h3 a.toc-anchor,
#content h4 a.toc-anchor,
#content h5 a.toc-anchor,
#content h6 a.toc-anchor {
margin-left: 10px;
}
@media (max-width: 1200px) {
#toc-pane {
display: none;
}
}
/* src/styles/navbar/header.css */
#site-header {
display: flex;
flex-direction: column;
gap: 20px;
}
#site-header > a {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 27px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #000;
transition: 0.4s;
border-radius: 34px;
}
.slider::before {
position: absolute;
content: "";
height: 19px;
width: 19px;
left: 4px;
bottom: 4px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
z-index: 2;
}
input:checked + .slider {
background-color: rgba(255, 255, 255, 0.3);
}
input:focus + .slider {
box-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
}
input:checked + .slider:before {
transform: translateX(33px);
}
.theme-selection {
display: flex;
align-items: center;
justify-content: space-between;
}
.theme-selection.no-transition .slider,
.theme-selection.no-transition .slider::before,
.theme-selection.no-transition .dark-icon,
.theme-selection.no-transition .light-icon {
transition: none !important;
}
.theme-selection label {
position: relative;
}
.dark-icon,
.light-icon {
display: flex;
opacity: 0;
transition: opacity 400ms ease, color 400ms ease;
pointer-events: none;
position: absolute;
top: 0;
height: 100%;
width: 24px;
}
input:not(:checked) ~ .light-icon {
opacity: 1;
}
input:checked ~ .dark-icon {
opacity: 1;
}
.dark-icon {
left: 5px;
color: #000;
}
.light-icon {
right: 5px;
color: rgba(255, 255, 255, 0.3);
}
.search-item {
display: flex;
align-items: center;
position: relative;
}
.search-input {
color: #000;
background: rgba(255, 255, 255, 0.3);
outline: 0;
border: 0;
flex: 1;
padding: 5px 5px 5px 32px;
width: 200px;
border-radius: 6px;
backdrop-filter: blur(10px);
}
.search-icon {
display: flex;
color: #000;
position: absolute;
width: 20px;
left: 5px;
}
/* src/styles/navbar/navbar.css */
#navigation {
display: flex;
flex-direction: column;
padding: 25px;
gap: 10px;
background-color: rgba(255, 255, 255, 0);
margin: 0 auto;
}
#menu {
order: 1;
white-space: nowrap;
flex: 0;
user-select: none;
}
#menu > ul {
overflow-y: auto;
list-style: none;
padding-left: 0 !important;
margin: 0;
}
#menu ul {
overflow-y: hidden;
position: relative;
display: flex;
flex-direction: column;
list-style: none;
padding-left: 20px;
}
#menu li {
position: relative;
display: flex;
flex-direction: column;
list-style: none;
cursor: pointer;
max-width: 350px;
margin: 2px 0;
}
#menu li span {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
}
#menu li .collapsible-label {
display: flex;
flex: 1;
align-items: center;
position: relative;
}
#menu li > ul {
transition: height 200ms ease;
overflow: hidden;
}
#menu li:not(.expanded) > ul {
height: 0 !important;
}
#menu li.expanded > ul {
height: auto !important;
}
#menu p {
display: flex;
margin: 0;
}
#menu li.item > a {
padding-left: 24px;
position: relative;
z-index: 1;
}
#menu a {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 5px;
color: var(--text-menu);
text-decoration: none;
border-radius: 6px;
border: 1px solid transparent;
flex: 1;
padding: 6px 8px;
font-weight: 400;
transition: all 200ms ease;
}
#menu a:hover {
border-color: var(--text-menu);
background: rgba(255,255,255,0.1);
}
#menu a.active {
background: var(--background-active);
color: var(--background-secondary);
font-weight: 700;
}
#menu li ul {
position: relative;
z-index: 1;
}
#menu li ul::before {
content: "";
display: flex;
position: absolute;
top: 5px;
bottom: 5px;
left: 10px;
width: 2px;
background: var(--background-highlight);
}
/* 折叠按钮样式 */
.collapse-button {
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
background: transparent;
border: 0;
color: var(--text-menu);
transform: rotate(-90deg);
transition: transform 200ms ease, color 200ms ease;
margin-left: auto;
min-width: 24px;
order: 2;
}
.collapse-button:hover {
color: var(--text-primary);
}
.expanded > .collapsible-label > .collapse-button,
.expanded > a > .collapse-button {
transform: rotate(0deg);
}
.collapse-button svg {
width: 14px;
height: 14px;
}
/* 菜单链接文本 */
.menu-link-text {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
order: 1;
}
/* 新增:定位按钮样式 */
.menu-anchor-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
margin-right: 6px;
color: transparent;
background-color: var(--background-highlight);
border-radius: 50%;
transition: all 200ms ease;
cursor: pointer;
font-size: 12px;
position: relative;
order: 0;
}
.menu-anchor-button::before {
content: "#";
position: absolute;
opacity: 0;
transition: opacity 200ms ease;
color: var(--text-primary);
}
#menu li:hover .menu-anchor-button {
background-color: var(--background-active);
}
#menu li:hover .menu-anchor-button::before {
opacity: 1;
}
.menu-anchor-button:active {
transform: scale(0.9);
}
/* 移动端适配 */
@media (max-width: 768px) {
.menu-anchor-button {
opacity: 1;
color: var(--text-menu);
background: transparent;
}
.menu-anchor-button::before {
opacity: 1;
}
}
/* src/styles/popouts/index.css */
/* src/styles/layout.css */
html, body {
background: url(http://trilium.dftserver.top/share/api/images/xDSPFMrTsVvl/Copilot_20250715_211644.png);
background-position: center;
background-repeat: repeat;
background-size: 50% auto;
}
#split-pane {
display: flex;
flex-direction: row;
gap: 50px;
}
#left-pane {
display: flex;
width: calc((100vw - 900px) / 2);
min-width: fit-content;
height: calc(100vh);
background: rgba(255, 255, 255, 0.8);
border-right: 5px solid rgba(255, 255, 255, 0.3);
justify-content: flex-end;
position: sticky;
top: 0;
overflow-y: auto;
backdrop-filter: blur(10px);
}
#right-pane {
display: flex;
margin: 0 auto;
gap: 40px;
flex: 1;
padding-bottom: 500px;
padding-right: 50px;
}
#main {
order: 2;
max-width: 900px;
flex: 1;
background: rgba(255, 255, 255, 0.8);
border-radius: 20px;
box-shadow: 0 0 10px 5px rgba(165, 170, 168, 0.253);
backdrop-filter: blur(20px) brightness(150%) saturate(160%);
margin: 25px 10px;
}
/* src/styles/content.css */
.ck-content code,
.ck-content pre {
color: #000;
background: linear-gradient(135deg, #000000, #434343);
border: 1px solid rgba(255, 255, 255, 0.4);
border-radius: 6px;
white-space: pre;
}
.ck-content code {
padding: 2px 5px;
}
.ck-content pre code {
border: 0;
}
.ck-content pre {
overflow: auto;
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
color: #000;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
padding-bottom: 5px;
}
#content img {
max-width: 100%;
}
#content h1::before {
content: "#️⃣";
margin-right: 8px;
font-size: 24px;
vertical-align: middle;
}
#content h2::before {
content: "#️⃣2️⃣";
margin-right: 8px;
font-size: 24px;
vertical-align: middle;
}
#content h3::before {
content: "#️⃣#️⃣3️⃣";
margin-right: 8px;
font-size: 24px;
vertical-align: middle;
}
#content h4::before {
content: "#️⃣#️⃣#️⃣4️⃣";
margin-right: 8px;
font-size: 24px;
vertical-align: middle;
}
#content ul li::before {
content: "🔼";
}
/* src/styles/mobile.css */
#mobile-header {
display: none;
background: rgba(255, 255, 255, 0.8);
justify-content: space-between;
align-items: center;
padding: 6px 12px;
backdrop-filter: blur(10px);
}
#mobile-header a {
display: flex;
align-items: center;
gap: 5px;
}
#mobile-header a img {
max-width: 32px;
}
#mobile-header button {
color: #333;
background: transparent;
margin: 0;
padding: 0;
border: 0;
outline: 0;
display: flex;
align-items: center;
cursor: pointer;
border-radius: 6px;
transform: rotate(0);
transition: background-color 200ms ease, transform 200ms ease;
}
@media (max-width: 48em) {
#right-pane,
#main {
width: 100%;
overflow: hidden;
padding: 0;
}
#main {
padding: 1rem;
}
#mobile-header {
display: flex;
}
#mobile-header button svg {
width: 32px;
height: 32px;
}
#left-pane {
position: fixed;
top: 0;
left: 0;
width: auto;
transform: translateX(-100%);
transition: transform 200ms ease;
z-index: 2;
}
.menu-open #left-pane {
transform: translateX(0);
}
body::before {
content: "";
display: block;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0);
pointer-events: none;
transition: background-color 200ms ease;
z-index: 1;
}
body.menu-open::before {
background: rgba(0, 0, 0, 0.6);
}
body.menu-open #show-menu-button {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}
}
/* src/styles/index.css */
* {
box-sizing: border-box;
}
:root {
--background-primary: rgba(255, 255, 255, 0.8);
--background-secondary: rgba(255, 255, 255, 0.6);
--background-highlight: rgba(255, 255, 255, 0.3);
--background-active: rgba(255, 255, 255, 0.4);
--text-primary: #000000;
--text-heading: #000000;
--text-menu: #333333;
--text-link: darkred;
--text-menu-active: #000000;
color-scheme: light;
}
body.theme-light {
--background-primary: rgba(255, 255, 255, 0.8);
--background-secondary: rgba(255, 255, 255, 0.6);
--background-highlight: rgba(255, 255, 255, 0.3);
--background-active: rgba(255, 255, 255, 0.4);
--text-primary: #000000;
--text-heading: #000000;
--text-menu: #333333;
--text-link: darkred;
color-scheme: light;
}
body {
background: url(http://trilium.dftserver.top/share/api/images/xDSPFMrTsVvl/Copilot_20250715_211644.png);
background-position: center;
background-repeat: repeat;
background-size: 50% auto;
font-family:
"Montserrat",
"Lucida Grande",
"Lucida Sans Unicode",
arial,
sans-serif;
line-height: 1.5;
color: var(--text-primary);
}
a {
color: var(--text-link);
text-decoration: none;
transition: color 0.3s, border-bottom 0.3s, border-top 0.3s;
}
a:hover {
color: black;
border-top: 3px solid black;
border-bottom: 3px solid black;
cursor: pointer;
}
#title {
text-align: center;
padding: 5px 20px;
background: linear-gradient(135deg, rgba(23, 234, 217, 0.8) 0%, rgba(23, 234, 217, 0.5) 50%, rgba(96, 120, 234, 0.8) 100%);
border-radius: 10px;
}
#title::before {
content: "🚀";
margin-right: 8px;
font-size: 24px;
vertical-align: middle;
}
#parentLink {
font-weight: bold;
margin-right: 20px;
}
#parentLink a {
padding-left: 10px;
color: #ffffff;
}
#childLinks ul li {
margin: 5px 10px;
padding: 0px 8px;
border-radius: 10px;
background: linear-gradient(135deg, #fad7a1, #e96d71);
}
#childLinks.grid ul li a {
border: none;
}
#childLinks.grid ul li a:hover {
color: white;
background-color: rgba(255, 255, 255, 0.2);
backdrop-filter: saturate(200%) blur(20px);
border-top: 3px solid rgba(255, 255, 255, 0.6);
border-bottom: 3px solid rgba(255, 255, 255, 0.6);
}
nav.grid ul {
display: flex;
flex-flow: row wrap;
gap: 1rem;
}
nav.list {
line-height: 1.5;
}
nav ul {
list-style-type: none;
padding: 0 1rem;
}
ul li {
list-style-type: none;
padding-left: 0;
margin-left: 0;
}