UNPKG

jsdk-offical

Version:

JSDK is the most comprehensive TypeScript framework, like JDK.

418 lines (354 loc) 6.87 kB
body { background-color: rgb(37, 36, 35); color: greenyellow; } h2 { font-size: 16px; letter-spacing: 1px; font-weight: 200; text-transform: uppercase; } header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 60px; padding-left: 20px; padding-right: 20px; border-bottom: 1px solid rgba(0, 0, 0, .65); } .content { overflow: hidden; display: flex; flex-direction: row; width: 100%; height: 100%; transition: opacity 1s ease; } .text-output { padding-top: 10px; padding-bottom: 10px; font-size: 16px; color: currentColor; text-align: center; background-color: transparent; border: 1px solid currentColor; } .pane { position: relative; height: 100%; } .line { width: 100%; padding: 1px 0px; } .demo-info { flex-direction: column; font-size: 16px; line-height: 22px; } /* Responsive */ .demos { width: 100%; min-width: 380px; height: calc(100% - 60px); -webkit-overflow-scrolling: touch; } @media (min-width: 800px) { .demo-info { display: inherit; width: calc(100% - 380px); } .demos { top: 0; width: 380px; height: 100%; } .demos::-webkit-scrollbar { width: 1px; background-color: transparent; } .demos::-webkit-scrollbar-track { background-color: rgba(0, 0, 0, .65); } .demos::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .3); } .demos::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .6); } } @media (min-width: 1100px) { .demos { width: calc(50% - 240px); } .demo-info { width: 50%; } } .circle { border-radius: 50%; } .square, .circle { pointer-events: none; position: relative; width: 28px; height: 28px; margin: 1px; background-color: currentColor; font-size: 14px; } .small { width: 18px; height: 18px; } .stretched { height: 2px; } .shadow { position: absolute; opacity: .2; } .demo { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 200px; cursor: pointer; } .demo-title { position: absolute; top: 0; left: 20px; width: calc(100% - 40px); font-size: 14px; letter-spacing: 2px; color: currentColor; opacity: .9; } .demo-content { position: relative; display: flex; flex-direction: column; justify-content: center; text-align: center; width: 290px; height: 100%; } .demo-info p.bubble.warning { color: #FBF38C; } .demo-info p.bubble { display: inline-block; position: relative; padding: 8px 12px; } .demo-info p, .demo-info td { color: #F6F4F2; } .demo-info i { font-style: italic; } /*href*/ .demo-info a { text-decoration: none; border-bottom: 1px dotted currentColor; word-wrap: break-word; overflow-wrap: break-word; } .demo-info a:hover { border-bottom: 1px solid currentColor; } .demo-info a[href^="http"], .demo-info a[href^="http"]:visited { color: #F6F4F2; } /*progress*/ input.progress { cursor: ew-resize; } input.progress[value] { position: relative; top: 13px; left: 0; width: 100%; height: 2px; appearance: none; -webkit-appearance: none; background-color: currentColor; color: currentColor; } /*label*/ .label { position: absolute; display: flex; flex-direction: column; justify-content: center; text-align: left; width: 100%; padding-left: 38px; transition: opacity .5s ease; } .demo .label { opacity: .5; height: 28px; } .small.label { height: 18px; padding-left: 28px; } .large.label { height: 48px; padding-left: 58px; } .demo-info p { margin-bottom: 20px; } .demo-info p.bubble:after { content: ""; pointer-events: none; color: currentColor; display: inline-block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: currentColor; border-radius: 3px; opacity: .05; } .info-output { overflow-y: auto; position: relative; top: 0; height: calc(100% - 60px); padding: 20px; overflow-x: auto; width: calc(100% - 60px); } /* table */ .demo-info table { margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, .15); border-spacing: 0; border-radius: 3px; } .demo-info td:first-child { border-left: none; } .demo-info thead td { text-transform: uppercase; font-size: 16px; line-height: 22px; letter-spacing: 1px; color: rgba(255, 255, 255, .4); border-top: none; } .demo-info td { vertical-align: top; padding: 8px 12px; border-left: 1px solid rgba(255, 255, 255, .15); border-top: 1px solid rgba(255, 255, 255, .15); } .demo-info p, .demo-info td { color: #F6F4F2; } .demo-info tbody td { font-family: "Input Mono Reg", monospace; font-size: 14px; line-height: 22px; white-space: pre-wrap; } /* code */ .code-preview { width: 100%; padding-top: 40px; } .demo-info code.hljs { display: inline-block; } .demo-info pre code { position: relative; display: inline-block; width: 100%; padding: 8px 12px; background-color: rgba(0, 0, 0, .2); border: 1px solid rgba(0, 0, 0, .2); border-radius: 3px; } .demo-info code { font-family: "Input Mono Reg", monospace; font-size: 14px; line-height: 22px; white-space: pre-wrap; } .hljs { display: block; color: #F6F4F2; } /* button */ .controls { opacity: .4; display: flex; align-items: center; justify-content: center; padding-top: 20px; padding-bottom: 10px; } .controls button { position: relative; display: block; margin: 0 0 0 -1px; padding: 5px 10px; font-size: 14px; text-transform: uppercase; border: 1px solid currentColor; background-color: transparent; color: currentColor; } .controls button:focus { outline: none; } .active .controls { opacity: 1; } .active .controls button:after { content: ''; opacity: 0; position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; background-color: currentColor; } .active .controls button:hover:after { opacity: .2; } .controls button.is-active:after, .controls button.is-active:hover:after { opacity: .4; } .controls button:first-child { margin-left: 0; } .controls input { margin-left: 10px; } @media (max-width: 800px) {/* for mobile and pad */ .content { flex-direction: column; } }