diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-09-25 14:47:27 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-09-25 14:47:27 +0800 |
| commit | e5e1ca64d04e5077269acb92f0f97f4c3a405a0c (patch) | |
| tree | b736872bc65f6b4b865b9881a2cfa1da01ace5cd /assets | |
| parent | fd0a662000ae32140ad76e14db2de995493c6913 (diff) | |
:lock: Add: 为密码保护文章的表单添加样式
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/matcha/matcha.post.css | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/assets/matcha/matcha.post.css b/assets/matcha/matcha.post.css index 56a063c..9b2e599 100644 --- a/assets/matcha/matcha.post.css +++ b/assets/matcha/matcha.post.css @@ -278,11 +278,6 @@ font-size: 1em; } -/* 密码保护 */ -.protected .text { - width: 50%; -} - /* 文章目录 */ .tocbar { position: fixed; @@ -614,6 +609,41 @@ h3.comment-closed.fade { } } +/* 密码保护 */ + +.protected { + max-width: 400px; + margin: 0 auto; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-around; +} + +.protected .word { + display: none +} + +.protected input { + border: 2px solid var(--light-gray-bg); + box-sizing: border-box; + padding: .4em .8em; + border-radius: 3px +} + +.protected input[type="submit"] { + background: var(--theme-color); + color: #fff; + border: 2px solid var(--theme-color); + cursor: pointer +} + +.post-atmain .protected { + justify-content: flex-start; + width: auto; + margin: 0 +} + /* 其他 */ .external-icon { |
