mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-07-08 21:20:04 +08:00
863 lines
17 KiB
CSS
863 lines
17 KiB
CSS
* {
|
|
-webkit-font-smoothing: antialiased;
|
|
-webkit-overflow-scrolling: touch;
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
-webkit-text-size-adjust: none;
|
|
-webkit-touch-callout: none;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
body:not(.ready) {
|
|
overflow: hidden;
|
|
}
|
|
body:not(.ready) [data-cloak],
|
|
body:not(.ready) .app-nav,
|
|
body:not(.ready) > nav {
|
|
display: none;
|
|
}
|
|
div#app {
|
|
font-size: 30px;
|
|
font-weight: lighter;
|
|
margin: 40vh auto;
|
|
text-align: center;
|
|
}
|
|
div#app:empty::before {
|
|
content: 'Loading...';
|
|
}
|
|
.emoji {
|
|
height: 1.2rem;
|
|
vertical-align: middle;
|
|
}
|
|
.progress {
|
|
background-color: var(--theme-color, #ea6f5a);
|
|
height: 2px;
|
|
left: 0px;
|
|
position: fixed;
|
|
right: 0px;
|
|
top: 0px;
|
|
-webkit-transition: width 0.2s, opacity 0.4s;
|
|
transition: width 0.2s, opacity 0.4s;
|
|
width: 0%;
|
|
z-index: 999999;
|
|
}
|
|
.search a:hover {
|
|
color: var(--theme-color, #ea6f5a);
|
|
}
|
|
.search .search-keyword {
|
|
color: var(--theme-color, #ea6f5a);
|
|
font-style: normal;
|
|
font-weight: bold;
|
|
}
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
body {
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-font-smoothing: antialiased;
|
|
color: #efefef;
|
|
font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
|
|
font-size: 15px;
|
|
letter-spacing: 0;
|
|
margin: 0;
|
|
overflow-x: hidden;
|
|
}
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
a[disabled] {
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
}
|
|
kbd {
|
|
border: solid 1px #ccc;
|
|
border-radius: 3px;
|
|
display: inline-block;
|
|
font-size: 12px !important;
|
|
line-height: 12px;
|
|
margin-bottom: 3px;
|
|
padding: 3px 5px;
|
|
vertical-align: middle;
|
|
}
|
|
.task-list-item {
|
|
list-style-type: none;
|
|
}
|
|
li input[type='checkbox'] {
|
|
margin: 0 0.2em 0.25em -1.6em;
|
|
vertical-align: middle;
|
|
}
|
|
.app-nav {
|
|
margin: 25px 60px 0 0;
|
|
position: absolute;
|
|
right: 0;
|
|
text-align: right;
|
|
z-index: 10;
|
|
/* navbar dropdown */
|
|
}
|
|
.app-nav.no-badge {
|
|
margin-right: 25px;
|
|
}
|
|
.app-nav p {
|
|
margin: 0;
|
|
}
|
|
.app-nav > a {
|
|
margin: 0 1rem;
|
|
padding: 5px 0;
|
|
}
|
|
.app-nav ul,
|
|
.app-nav li {
|
|
display: inline-block;
|
|
list-style: none;
|
|
margin: 0;
|
|
}
|
|
.app-nav a {
|
|
color: inherit;
|
|
font-size: 16px;
|
|
text-decoration: none;
|
|
-webkit-transition: color 0.3s;
|
|
transition: color 0.3s;
|
|
}
|
|
.app-nav a:hover {
|
|
color: var(--theme-color, #ea6f5a);
|
|
}
|
|
.app-nav a.active {
|
|
border-bottom: 2px solid var(--theme-color, #ea6f5a);
|
|
color: var(--theme-color, #ea6f5a);
|
|
}
|
|
.app-nav li {
|
|
display: inline-block;
|
|
margin: 0 1rem;
|
|
padding: 5px 0;
|
|
position: relative;
|
|
}
|
|
.app-nav li ul {
|
|
background-color: #fff;
|
|
border: 1px solid #ddd;
|
|
border-bottom-color: #ccc;
|
|
border-radius: 4px;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
display: none;
|
|
max-height: calc(100vh - 61px);
|
|
overflow-y: auto;
|
|
padding: 10px 0;
|
|
position: absolute;
|
|
right: -15px;
|
|
text-align: left;
|
|
top: 100%;
|
|
white-space: nowrap;
|
|
}
|
|
.app-nav li ul li {
|
|
display: block;
|
|
font-size: 14px;
|
|
line-height: 1rem;
|
|
margin: 0;
|
|
margin: 8px 14px;
|
|
white-space: nowrap;
|
|
}
|
|
.app-nav li ul a {
|
|
display: block;
|
|
font-size: inherit;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.app-nav li ul a.active {
|
|
border-bottom: 0;
|
|
}
|
|
.app-nav li:hover ul {
|
|
display: block;
|
|
}
|
|
.github-corner {
|
|
border-bottom: 0;
|
|
position: fixed;
|
|
right: 0;
|
|
text-decoration: none;
|
|
top: 0;
|
|
z-index: 1;
|
|
}
|
|
.github-corner:hover .octo-arm {
|
|
-webkit-animation: octocat-wave 560ms ease-in-out;
|
|
animation: octocat-wave 560ms ease-in-out;
|
|
}
|
|
.github-corner svg {
|
|
color: #3f3f3f;
|
|
fill: var(--theme-color, #ea6f5a);
|
|
height: 80px;
|
|
width: 80px;
|
|
}
|
|
main {
|
|
display: block;
|
|
position: relative;
|
|
width: 100vw;
|
|
height: 100%;
|
|
z-index: 0;
|
|
}
|
|
main.hidden {
|
|
display: none;
|
|
}
|
|
.anchor {
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
-webkit-transition: all 0.3s;
|
|
transition: all 0.3s;
|
|
}
|
|
.anchor span {
|
|
color: #c8c8c8;
|
|
}
|
|
.anchor:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.sidebar {
|
|
border-right: 1px solid rgba(0,0,0,0.07);
|
|
overflow-y: auto;
|
|
padding: 40px 0 0;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
-webkit-transition: -webkit-transform 250ms ease-out;
|
|
transition: -webkit-transform 250ms ease-out;
|
|
transition: transform 250ms ease-out;
|
|
transition: transform 250ms ease-out, -webkit-transform 250ms ease-out;
|
|
width: 300px;
|
|
z-index: 20;
|
|
}
|
|
.sidebar > h1 {
|
|
margin: 0 auto 1rem;
|
|
font-size: 1.5rem;
|
|
font-weight: 300;
|
|
text-align: center;
|
|
}
|
|
.sidebar > h1 a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
.sidebar > h1 .app-nav {
|
|
display: block;
|
|
position: static;
|
|
}
|
|
.sidebar .sidebar-nav {
|
|
line-height: 2em;
|
|
padding-bottom: 40px;
|
|
}
|
|
.sidebar li.collapse .app-sub-sidebar {
|
|
display: none;
|
|