1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- .logo-box {position: absolute;left: 30px;top: 10px;cursor: pointer;color: #000;}
- .logo-box img {width: 50px;height: 50px;vertical-align: middle;}
- .logo-box .logo-text {display: inline-block;vertical-align: middle;font-size: 24px;font-weight: 400;}
- #main {padding-bottom: 300px;}
- #main h2 {font-size: 1.6rem;}
- #main h3 {font-size: 1.25rem;}
- @media screen and (max-width: 800px) {
- .logo-box {display: none;}
- }
- /* ============== 样式优化 ================ */
- /* .main-box [class="lang-api"]{color: red;} */
- #main table{margin-left: 25px;}
- @media screen and (min-width: 800px) {
- #main table tr th{min-width: 150px;}
- }
- /* 测试接口的按钮 */
- .test-api-btn{
- margin-left: 30px;
- cursor: pointer;
- border-radius: 2px;
- border-width: 0px;
- padding: 7px 15px;
- background-color: green;
- color: #FFF;
- }
- .layui-layer-iframe{box-shadow: 0 0 100px #000 !important;}
- #main [data-lang=js]{margin-bottom: 80px;}
- /* ============== code代码样式优化 ================ */
- /* 背景变黑 */
- .main-box [data-lang]{padding: 0px !important; border-radius: 2px;overflow-x: auto; overflow-y: hidden;}
- .main-box [v-pre] code{border: 0px red solid; border-radius: 1px; /* background-color: #282828; */ background-color: #111; color: #FFF;}
- .main-box [v-pre] code{padding: 1.5em 1.3em; margin-left: 40px !important;}
- /* .main-box h2{margin-top: 70px;} */
- /* 代码行号盒子样式 */
- .code-line-box {list-style-type: none; border-right: 1px solid #000; position: absolute; top: 0; left: 0; width: 40px; user-select: none;}
- .code-line-box {padding: calc(1.5em + 1px) 0px !important; padding-bottom: calc(1.5em + 20px) !important; margin: 0px !important;}
- .code-line-box {line-height: inherit !important; background-color: #111; color: #aaa;font-weight: 400;font-size: 0.85em;text-align: center;}
- /* xml语言样式优化 */
- .lang-xml .token.comment{color: #CDAB53;}
- .lang-xml .token.tag *{color: #db2d20;}
- .lang-xml .token.attr-value{color: #A6E22E;}
- /* html语言样式优化 */
- .lang-html .token.comment{color: #CDAB53;}
- .lang-html .token.tag *{color: #db2d20;}
- .lang-html .token.tag .attr-name,
- .lang-html .token.tag .attr-name *{color: #A6E22E; opacity: 0.9;}
- .lang-html .token.tag .attr-value,
- .lang-html .token.tag .attr-value *{color: #E6DB74; opacity: 0.9;}
- /* java语言样式优化 */
- .main-box .lang-java{color: #01a252 !important;; opacity: 1;}
- .lang-java .token.keyword{color: #db2d20;}
- .lang-java .token.namespace,.lang-java .token.namespace *{color: #01A252; opacity: 1;}
- .lang-java .token.class-name,.lang-java .cm-variable{color: #55b5db; opacity: 1;}
- .lang-java .token.comment{color: #CDAB53;}
- .lang-java .token.annotation.punctuation{color: #ddd;}
- .lang-java .token.punctuation{color: #ddd;}
- /* yml语言样式优化 */
- .main-box .lang-yml{color: #01A252 !important; opacity: 1;}
- /* url语言样式优化 */
- .main-box .lang-api{color: #E96917 !important; opacity: 1;}
- /* js语言样式优化 */
- .main-box .lang-js{color: #01a252 !important;}
- .lang-js .token.comment{color: #ddd;}
- /* .lang-js .token.string{color: #fded02;} */
- .lang-js .token.string{color: #75C052;}
- .lang-js .token.punctuation{color: #eee;}
- /* .gt-container{padding: 1.5em; padding-bottom: 100px;} */
|