diff --git a/admin/css/install.css b/admin/css/install.css new file mode 100644 index 00000000..9d6e1f39 --- /dev/null +++ b/admin/css/install.css @@ -0,0 +1,24 @@ +h1 { text-align: center; } + +details summary { cursor: pointer; } + +@keyframes fadein { from { opacity: 0; } + to { opacity: 1; } } + +.fresh .keep-word { display: none; } + +.keep .fresh-word { display: none; } + +form > .message { display: none; padding: 20px; border-radius: 5px; } + +.message textarea { width: 100%; height: 200px; resize: none; margin: 10px 0; } + +.message.fade { display: block; animation: fadein .5s linear; } + +.message *:last-child { margin-bottom: 0; } + +.message p { margin-top: 10px; } + +.message p button { margin-left: 5px; } + +.message p button:first-child { margin-left: 0; } diff --git a/admin/css/style.css b/admin/css/style.css index da83697c..1d309464 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -237,27 +237,6 @@ select { border: 1px solid #CCC; height: 28px; } .profile-avatar { width: 220px; height: 220px; border-radius: 10px; } /** 增加配置面板内部的错误样式 by 70 */ -/** 安装样式 @author mingcheng @date 2008-09-06 */ -/** 安装向导 */ -.typecho-install { padding-bottom: 2em; } - -.typecho-install-patch { margin-bottom: 2em; padding: 2em 0; background-color: #292D33; color: #FFF; text-align: center; } - -.typecho-install-patch ol { list-style: none; margin: 3em 0 1em; padding: 0; color: #999; } - -.typecho-install-patch li { display: inline-block; margin: 0 .8em; } - -.typecho-install-patch span { display: inline-block; margin-right: 5px; width: 20px; height: 20px; line-height: 20px; border: 2px solid #999; text-align: center; border-radius: 2em; } - -.typecho-install-patch li.current { color: #FFF; font-weight: bold; } - -.typecho-install-patch li.current span { border-color: #FFF; } - -/** 安装主体内容 */ -.typecho-install .typecho-install-body input { width: 100%; } - -.typecho-install-body .typecho-option li { margin: 1em 0; } - /** 欢迎界面 */ #typecho-welcome { margin: 1em 0; padding: 1em 2em; background-color: #E9E9E6; } diff --git a/admin/header.php b/admin/header.php index 1b5062ca..6450dcac 100644 --- a/admin/header.php +++ b/admin/header.php @@ -5,20 +5,15 @@ if (!defined('__TYPECHO_ADMIN__')) { $header = ' - -'; +'; /** 注册一个初始化插件 */ $header = Typecho_Plugin::factory('admin/header.php')->header($header); ?> - + - <?php _e('%s - %s - Powered by Typecho', $menu->title, $options->title); ?> diff --git a/admin/js/html5shiv.js b/admin/js/html5shiv.js deleted file mode 100644 index b48370a8..00000000 --- a/admin/js/html5shiv.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,i){var l,m,t=e.html5||{},a=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,n="_html5shiv",c=0,o={};function s(){var e=f.elements;return"string"==typeof e?e.split(" "):e}function h(e){var t=o[e[n]];return t||(t={},c++,e[n]=c,o[c]=t),t}function u(e,t,n){return t=t||i,m?t.createElement(e):(t=(n=n||h(t)).cache[e]?n.cache[e].cloneNode():r.test(e)?(n.cache[e]=n.createElem(e)).cloneNode():n.createElem(e)).canHaveChildren&&!a.test(e)?n.frag.appendChild(t):t}function d(e){var t,n,a,r,c,o=h(e=e||i);return!f.shivCSS||l||o.hasCSS||(o.hasCSS=(n="article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}",a=(t=e).createElement("p"),t=t.getElementsByTagName("head")[0]||t.documentElement,a.innerHTML="x",!!t.insertBefore(a.lastChild,t.firstChild))),m||(r=e,(c=o).cache||(c.cache={},c.createElem=r.createElement,c.createFrag=r.createDocumentFragment,c.frag=c.createFrag()),r.createElement=function(e){return f.shivMethods?u(e,r,c):c.createElem(e)},r.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/[\w\-]+/g,function(e){return c.createElem(e),c.frag.createElement(e),'c("'+e+'")'})+");return n}")(f,c.frag)),e}!function(){try{var e=i.createElement("a");e.innerHTML="",l="hidden"in e,m=1==e.childNodes.length||function(){i.createElement("a");var e=i.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){m=l=!0}}();var f={elements:t.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==t.shivCSS,supportsUnknownElements:m,shivMethods:!1!==t.shivMethods,type:"default",shivDocument:d,createElement:u,createDocumentFragment:function(e,t){if(e=e||i,m)return e.createDocumentFragment();for(var n=(t=t||h(e)).frag.cloneNode(),a=0,r=s(),c=r.length;a #mq-test-1 { width: 42px; }',n.insertBefore(a,s),t=42===i.offsetWidth,n.removeChild(a),{matches:t,media:e}})}(this),function(g){"use strict";var c={};(g.respond=c).update=function(){};var y,x,E,v,w,i,S,T,r,C,b,$,z,M,R,o,l,e,m=[],s=function(){var t=!1;try{t=new g.XMLHttpRequest}catch(e){t=new g.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),n=function(e,t){var n=s();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||t(n.responseText)},4!==n.readyState&&n.send(null))},p=function(e){return e.replace(c.regex.minmaxwh,"").match(c.regex.other)};function t(){R(!0)}c.ajax=n,c.queue=m,c.unsupportedmq=p,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=g.matchMedia&&null!==g.matchMedia("only all")&&g.matchMedia("only all").matches,c.mediaQueriesSupported||(y=g.document,x=y.documentElement,E=[],v=[],w=[],i={},S=30,T=y.getElementsByTagName("head")[0]||x,r=y.getElementsByTagName("base")[0],C=T.getElementsByTagName("link"),M=function(){var e,t=y.createElement("div"),n=y.body,s=x.style.fontSize,a=n&&n.style.fontSize,i=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||((n=i=y.createElement("body")).style.background="none"),x.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),i&&x.insertBefore(n,x.firstChild),e=t.offsetWidth,i?x.removeChild(n):n.removeChild(t),x.style.fontSize=s,a&&(n.style.fontSize=a),z=parseFloat(e),z},R=function(e){var t,n,s,a,i,r,o,l,m,d,h="clientWidth",u=x[h],c="CSS1Compat"===y.compatMode&&u||y.body[h]||u,p={},f=C[C.length-1],u=(new Date).getTime();if(e&&b&&u-b