diff --git a/src/css/reset-basic.css b/src/css/reset-basic.css index e1d5869..2f7883b 100644 --- a/src/css/reset-basic.css +++ b/src/css/reset-basic.css @@ -75,8 +75,8 @@ code, pre, samp {font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; --color-grey-2: rgb(164, 176, 190); --color-grey-3: rgb(134, 144, 155); /* inverse */ - --color-dark-a: rgba(65, 91, 118, 0.5); - --color-dark-1: rgb(65, 91, 118); + --color-dark-a: rgba(87, 96, 111, 0.5); + --color-dark-1: rgb(87, 96, 111); --color-dark-2: rgb(52, 73, 94); --color-dark-3: rgb(44, 62, 80); } diff --git a/src/form/button.wc b/src/form/button.wc index 621a65c..827e3ae 100644 --- a/src/form/button.wc +++ b/src/form/button.wc @@ -16,7 +16,6 @@ -moz-user-select: none; color: var(--color-dark-1); font-size: 14px; - vertical-align: middle; cursor: pointer; transition: box-shadow 0.15s linear; @@ -27,7 +26,6 @@ width: 100%; height: inherit; padding: var(--padding, 0 14px); - margin: auto; line-height: 1; border: 2px solid var(--color-plain-2); border-radius: inherit; @@ -282,7 +280,7 @@ export default class Button { // 圆形按钮不允许文字 if (this.hasAttribute('circle')) { - // this.textContent = '' + this.textContent = '' } this.__BTN__ = this.root.children[1] diff --git a/src/form/index.js b/src/form/index.js new file mode 100644 index 0000000..92449e1 --- /dev/null +++ b/src/form/index.js @@ -0,0 +1,10 @@ +import './button' +import './link' +import './input' +import './textarea' +import './number' +import './radio' +import './checkbox' +import './switch' +import './select' +import './star' diff --git a/src/form/link.wc b/src/form/link.wc new file mode 100644 index 0000000..5b9cd53 --- /dev/null +++ b/src/form/link.wc @@ -0,0 +1,267 @@ + + + + + diff --git a/src/markd/core.js b/src/markd/core.js index 4d5f129..7ddcded 100644 --- a/src/markd/core.js +++ b/src/markd/core.js @@ -294,7 +294,10 @@ class Tool { continue } html += `${tmp - .map((_, i) => `${_}`) + .map( + (_, i) => + `${Decoder.inline.call(this, _)}` + ) .join('')}` continue }