LunaTranslator/docs/style.css

133 lines
2.7 KiB
CSS
Raw Normal View History

2024-07-18 22:44:18 +08:00
:root {
/* Change link's style */
--link-color: var(--theme-color);
--link-text-decoration: none;
/* Change navbar's style*/
--sidebar-nav-pagelink-background-image: none;
--sidebar-nav-link-before-content-l3: none;
2024-07-18 23:37:37 +08:00
--content-max-width: calc(max(60%, 1000px));
2024-07-18 22:44:18 +08:00
}
/* Fix sidebar fold arrow */
.sidebar-nav li>a[href^='#/']:not([href*='?id=']):not(:only-child) {
background-image: var(--sidebar-nav-pagelink-background-image--collapse,
var(--sidebar-nav-pagelink-background-image--loaded,
var(--sidebar-nav-pagelink-background-image)));
background-position: var(--sidebar-nav-pagelink-background-position--collapse,
var(--sidebar-nav-pagelink-background-position--loaded,
var(--sidebar-nav-pagelink-background-image)));
}
.sidebar-nav li.open>a[href^='#/']:not([href*='?id=']):not(:only-child) {
background-image: var(--sidebar-nav-pagelink-background-image--active,
var(--sidebar-nav-pagelink-background-image--loaded,
var(--sidebar-nav-pagelink-background-image)));
background-position: var(--sidebar-nav-pagelink-background-position--active,
var(--sidebar-nav-pagelink-background-position--loaded,
var(--sidebar-nav-pagelink-background-image)));
}
.markdown-section {
border: 1px solid deepskyblue;
margin-top: 60px;
margin-bottom: 10px;
border-radius: 5px;
}
.app-nav {
font-size: 21px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
2024-07-19 00:08:52 +08:00
background-color: white;
2024-07-18 22:44:18 +08:00
}
2024-07-19 00:28:56 +08:00
.goodlink,
.goodlinknormal {
2024-07-18 22:44:18 +08:00
text-decoration: none;
color: black;
line-height: 50px;
display: block;
}
2024-07-19 00:28:56 +08:00
.goodlink:hover,
.goodlinkhover {
2024-07-18 22:44:18 +08:00
color: deepskyblue;
2024-07-19 00:08:52 +08:00
background-color: rgba(255, 192, 203, 0.3);
2024-07-18 22:44:18 +08:00
}
.buttonsize {
width: 180px;
line-height: 50px;
}
.buttonitem {
display: inline-block;
text-align: center;
}
.header {
2024-07-19 00:28:56 +08:00
width: 100%;
2024-07-18 22:44:18 +08:00
font-size: 21px;
position: fixed;
2024-07-19 00:28:56 +08:00
top: 0px;
2024-07-18 22:44:18 +08:00
height: 50px;
box-shadow: 0 0 4px 1px gray;
z-index: 100;
background-color: #ffffff80;
backdrop-filter: blur(4px);
}
.backgroud {
/* background-image: url("./luna.jpg"); */
background-size: 100% auto;
content: '';
opacity: 0.33;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -2;
}
2024-07-19 00:28:56 +08:00
.sidebar,
.sidebar-toggle {
2024-07-18 22:44:18 +08:00
position: fixed;
2024-07-19 00:28:56 +08:00
top: 50px;
}
.github-corner {
position: fixed;
top: 50px;
2024-07-18 22:44:18 +08:00
}
.buttons {
align-items: center;
display: flex;
justify-content: center;
white-space: nowrap;
2024-07-18 23:25:50 +08:00
}
2024-07-19 00:45:26 +08:00
/*
2024-07-18 23:37:37 +08:00
main {
min-height: 0vh;
2024-07-18 23:25:50 +08:00
}
2024-07-18 23:37:37 +08:00
main .markdown-section {
2024-07-18 23:25:50 +08:00
display: none;
2024-07-19 00:45:26 +08:00
}
*/