@charset "UTF-8"; /* * 默认配色 * primary #4cd964 * accent #5ac8fa * accent #ff2d55 * background #fff * text #222 */ /* reset */ * { border-radius: 0; box-sizing: border-box; font-weight: normal; margin: 0; outline: none; padding: 0; user-select: none; } /* global */ body { background: #F9F9F9; color: #222; cursor: default; display: flex; flex-direction: column; font: normal 14px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; justify-content: center; margin: 4em auto; max-width: calc(100% - 2em); min-height: calc(100vh - 8em); /* text-transform: lowercase; */ width: 30em; overflow-x: hidden; } a { color: #222; text-decoration: none; transition: 200ms; } a:hover { color: #03A9F4; } a:active { color: #00BCD4; } code { font-family: 'Consolas', monospace; } h1, h2, h3 { font-weight: 500; text-align: center; } h2 { color: #222; font-size: 1.5em; margin-bottom: 2em; position: relative; } h2::before { content: ''; height: 1px; position: absolute; width: 100%; } h3 { color: #03A9F4; font-size: 1.25em; margin: 2em 0; } img { border: none; max-width: 100%; vertical-align: top; } p { margin: 2em 0; text-align: center; } pre { background: #f6f7f8; display: block; line-height: 1.4; padding: 1em; user-select: text; width: 100%; } table { background: #f6f7f8; border-collapse: collapse; border-spacing: 0; margin: 2em 0; width: 100%; } thead tr { border-bottom: 1px solid rgba(0, 0, 0, 0.025); } thead th { color: #ff2d55; font-weight: 500; } tbody tr:not(:first-child) { border-top: 1px solid rgba(0, 0, 0, 0.025); } tbody td { line-height: 1.4; } th, td { padding: 1em; text-align: left; vertical-align: top; } /* layout */ header, h1 { align-items: center; align-self: center; display: flex; flex-direction: column; } header h1::before { content: ''; background: url('../favicon.ico') center no-repeat; background-size: 2em; height: 2em; margin-bottom: 1em; width: 2em; } header p { color: gray; margin-top: 1em; } main { margin: 4em 0; opacity: 0; /* background: #fff; */ transition: opacity 1s; } main section:not(:first-child) { margin-top: 4em; } footer { color: #555; font-size: 0.9em; line-height: 1.5em; text-align: center; } footer img { height: 1.5em; } /* components */ .loading { align-items: center; display: flex; justify-content: center; margin: 2em; text-align: center; } .loading::before { animation: spinner 1s infinite linear; content: ''; border: 2px solid transparent; border-top-color: #5ac8fa; border-right-color: #5ac8fa; border-radius: 1em; height: 1.5em; margin-right: 1em; width: 1.5em; } /* 全屏文字 */ .fullscreen-text { position: fixed; top: 50%; left: 50%; font-size: 10vw; transform: translate(-50%, -50%); transition: opacity 1s; } /* 链接的图标 */ /* main section li img { height: 28px; position: absolute; transform: translate(10px, 10px); } main section li a:not(.back) { padding-left: 45px !important; } */ /* 选中 */ ::selection { background:#03A9F4; color:#FFF; } ::-moz-selection { background:#03A9F4; color:#FFF; } ::-webkit-selection { background:#03A9F4; color:#FFF; } /* 动画 */ @keyframes spinner { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }