UNPKG

apollo-nico

Version:

对 nico 及 apollo-theme 的封装,方便跨平台使用

522 lines (508 loc) 11.5 kB
/*base part*/ @font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; src: local("Marcellus"), local("Marcellus-Regular"), url("marcellus.woff") format("woff"); } /* alipay iconfont */ @font-face { font-family: "rei"; src: url("https://i.alipayobjects.com/common/fonts/rei.eot?20130123"); /* IE9 */ src: url("https://i.alipayobjects.com/common/fonts/rei.eot?20130123#iefix") format("embedded-opentype"), /* IE6-IE8 */ url("https://i.alipayobjects.com/common/fonts/rei.woff?20130123") format("woff"), /* chrome 6+、firefox 3.6+、Safari5.1+、Opera 11+ */ url("https://i.alipayobjects.com/common/fonts/rei.ttf?20130123") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */ url("https://i.alipayobjects.com/common/fonts/rei.svg?20130123#rei") format("svg"); /* iOS 4.1- */ } .iconfont { font-family:"rei"; font-style: normal; font-weight: normal; font-size: 12px; color: #4d4d4d; cursor: default; -webkit-font-smoothing: antialiased; } body { background-color: #F2F0E9; background-image: url(bg.gif); text-rendering: optimizelegibility; font-family: Consolas, 'Liberation Mono', Courier, monospace; } .highlight pre, .highlight code, .highlight tt { font-family: Consolas,"Liberation Mono",Courier,monospace; } #body-wrapper { margin-left: auto; margin-right: auto; max-width: 1040px; *width: 1040px; padding-top: 20px; zoom: 1; } #body-wrapper:after { display: block; clear: both; content: " "; font-size: 0; height: 0; visibility: hidden; } #sidebar-wrapper { float: left; position: fixed; color: #9c9277; text-shadow: 0 1px 0 #fff; font-size: 14px; width: 220px; padding-top: 8px; z-index: 1; } #content-wrapper { float: right; width: 800px; font-size: 14px; } #sidebar-wrapper h1 { margin: 0 0 1em 0; font-family: "Marcellus", sans-serif; } #sidebar-wrapper .version { font-size: 12px; } #sidebar-wrapper .source, .source-button { background-color: #276195; background-image: linear-gradient(#3C88CC, #276195); background-repeat: repeat-x; border: 0 none; border-radius: 0.25em 0.25em 0.25em 0.25em; box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1), 0 -4px 0 0 rgba(0, 0, 0, 0.2) inset; color: #fff; display: inline-block; font-family: "Trebuchet MS",sans-serif; font-size: 16px; height: 40px; line-height: 36px; min-width: 100px; padding: 0 20px; text-align: center; text-decoration: none; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); transition: all 0.25s linear 0s; opacity: 0.92; } #sidebar-wrapper .source:hover { color: #fff; opacity: 1; box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1), 0 -4px 0 0 rgba(0, 0, 0, 0.2) inset, 0 12px 24px 2px #3089D8 inset; } #sidebar-wrapper .source:active { box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1), 0 -4px 0 0 rgba(0, 0, 0, 0.2) inset, 0 12px 24px 2px #3089D8 inset; top: 2px; position: relative; } #sidebar-wrapper .package-root { position: relative; top: -14px; left: 4px; font-size: 12px; } #sidebar-wrapper .package-root a { color: rgba(0, 0, 0, 0.2); } #sidebar-wrapper .package-root a:hover { color: rgba(0, 0, 0, 0.33); } #sidebar-wrapper .author { margin-bottom: 0; } #navigation { list-style-type: none; font-size: 14px; border-top: 1px dashed #D6D4CD; border-bottom: 1px dashed #D6D4CD; margin: 20px 0 0 0; padding: 10px 0; zoom: 1; } #navigation:after { display: block; clear: both; content: " "; font-size: 0; } #navigation li { float: left; margin-left: 8px; } #navigation li:first-of-type { margin-left: 0; } #navigation a:hover, #sidenav a:hover { border-bottom: 1px dotted #769FD0; } #sidebar-wrapper a { color: #6c97c2; text-decoration: none; } #sidebar-wrapper a:hover { color: #48b; } #navigation .active a { color: #48d; font-weight: bold; } #content-wrapper { border: 1px solid #D6D4CE; border-radius: 4px; background-color: #FFF; } #content { position: relative; padding: 10px 30px 30px; line-height: 1.5; } #content .entry-title { margin:1em 0; font-family: "Marcellus", sans-serif; } #content .meta { color: #BCBCBD; font-size: 12px; margin: 12px 0; } .entry-content h1{ margin:1em 0; } p, h1, h2, h3, h4 { font-family: Arial; color: #555; } h3{ font-size: 1.2em; } h4{ font-size:1em; } #content p, #content ul, #content ol { color: #666; } #content li { line-height: 1.6; } .hentry a { color: #55A4F2; text-decoration: none; } .entry-content > h2 { margin-top: 40px; padding-bottom: 4px; border-bottom: 1px solid #ccc; font-family: "Marcellus", sans-serif; } #content hr { display: block; border: 0; height: 4px; background-color: #ddd; margin-top: 20px; } #content pre { /*margin: 0;*/ border: 1px solid #ccc; padding: 6px 10px; /*overflow: auto;*/ border-radius: 3px; background-color: #F8F8F8; line-height: 19px; font-size: 13px; white-space: pre; } #content code { font-size: 13px; color: rgba(0, 0, 0, 0.75); background-color: #fee9cc; padding: 1px 3px; border-radius: 3px; margin-left: 3px; margin-right: 3px; } #content pre code, #content .highlight code { color: #5D6A6A; background-color: transparent; margin: auto; padding: 0; } #content blockquote { border-left: 0.4em solid #ddd; color: #777; margin: 15px 0; padding: 0 15px; } #content blockquote p { color: #777; } #footer-wrapper { clear: both; color: #9C9C9C; text-shadow: 0 1px 0 #FFF; font-family: Georgia,'Xin Gothic','PT Sans','Hiragino Sans GB','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 12px; margin-left: auto; margin-right: auto; max-width: 1040px; *width: 1040px; padding: 10px 0; text-align: right; } #footer-wrapper a { color: #9C9C9C; text-decoration: none; } #footer-wrapper iframe { position: relative; top: 3px; } /* other */ #content .doc-api { color: #784942; } #content .doc-api em, #content .doc-api code { font-family: Georgia, serif; font-weight: normal; font-size: 14px; margin-left: 4px; color: #999; background: transparent; font-style: italic; } #content .nico-iframe { position: relative; } #content .nico-iframe iframe { width: 100%; } #content .nico-iframe .new-window { position: absolute; top: 30px; right: -40px; font-size: 12px; transform: rotate(90deg); -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); } #content .highlight { background-color: transparent; padding-top: 1px; position: relative; } #content .collapse pre { overflow: hidden; height: 60px; } #content .highlight .code-toggle { position: absolute; top: -10px; right: 2px; font-size: 12px; padding: 3px 5px; background: rgba(0, 0, 0, 0.16); border-radius: 4px 4px 0 0; text-decoration: none; color: #fff; line-height: 1; } #sidenav { padding-top: 10px; margin-top: 0; font-size: 14px; line-height: 22px; padding-left: 20px; } #module-output { margin: 10px 0 0; padding: 0; overflow: hidden; } #module-output li { list-style: none; float: left; margin: 0 1px 0 0; line-height: 1; } #module-output a { font-size: 14px; line-height: 1; color: rgba(0, 0, 0, 0.2); } #module-output a:hover { color: rgba(0, 0, 0, 0.35); } #output-card { background: #fff; border: 1px solid #ccc; padding: 6px; color: #888; position: absolute; display: none; width: 200px; } #output-card h3, #output-card p { margin: 0; font-size: 12px; } #output-card h3 { margin-bottom: 3px; } #module-output li.module-multiable { font-size: 10px; padding: 2px; background: #81A6EA; text-shadow: none; color: #fff; margin-right: 5px; border-radius: 1px; } /* responsive */ @media (max-width: 980px) { #body-wrapper, #sidebar-wrapper, #content-wrapper { float: none; position: static; width: auto; } #navigation { border: none; } #sidebar-wrapper { padding: 0 40px; } } /* history history-tag */ .history-tag { background: url("history-tags.png") no-repeat scroll 0 50% #fff; border-bottom-left-radius: 2px; border-top-left-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 -1px 0 rgba(0, 0, 0, 0.2) inset; color: #383838; display: inline-block; font-family: "Open Sans",sans-serif; font-size: 11px; font-style: normal; line-height: 20px; min-width: 85px; padding: 0 15px 0 20px; margin-right: 20px; text-align: right; text-shadow: 1px 1px 0 #FFFFFF; text-transform: uppercase; width: 85px; } .history-tag-new { background-color: #FFEDCF; } .history-tag-changed { background-color: #E9CFFF; background-position: -150px 50%; } .history-tag-fixed { background-color: #F0FFE1; background-position: -300px 50%; } .history-tag-html5 { background-color: #F8DFD8; background-position: -450px 50%; } .history-tag-improved { background-color: #DCF6FF; background-position: -600px 50%; } .history-tag-unresolved { background-color: #FFC8C8; background-position: -750px 50%; } .history-tag-developer { background-color: #E7E7E7; background-position: -900px 50%; } .popup-install { background: #fefefe; font-size: 12px; font-family: monospace,serif; padding: 6px; border: 1px solid #ddd; color: #777; box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2) inset; } /** * apollo theme begin */ .apollo-demo{ position: relative; padding:5px 0 20px 0; margin-bottom: 10px; border-bottom: 1px solid #F0F0F0; } .apollo-demo p{ /*margin: 0;*/ } .demo-option{ position: absolute; bottom:0; left:0; height:25px; border: 1px solid rgba(0, 0, 0, 0.2); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); background-color: #fff; } .demo-option:before{ content: ''; display: inline-block; border-left: 7px solid rgba(0, 0, 0, 0); border-right: 7px solid rgba(0, 0, 0, 0); border-top: 7px solid #CCC; border-top-color: rgba(0, 0, 0, 0.2); position: absolute; bottom: -7px; left: 9px; } .demo-option:after { content: ''; display: inline-block; border-left: 6px solid rgba(0, 0, 0, 0); border-right: 6px solid rgba(0, 0, 0, 0); border-top: 6px solid #FFF; position: absolute; bottom: -6px; left: 10px; } .demo-show-code, .demo-copy-code{ display: inline-block; font-size: 12px; padding: 5px 10px; background: #EFFFE4; border-radius: 3px; z-index: 99; opacity: 0.8; } .demo-copy-code{ right: 0; } .demo-code{ display: none; /*position: absolute;*/ /*z-index: 99;*/ margin-top: 3px; border-radius: 4px; box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2); background: #FFF; }