diff --git a/app/static/css/button.css b/app/static/css/button.css new file mode 100644 index 0000000..9953857 --- /dev/null +++ b/app/static/css/button.css @@ -0,0 +1,37 @@ +/* 按钮(上一篇,下一篇)样式 */ +.pagination { + padding: 20px; + max-width: 600px; +} + +.arrow { + margin-right: 15px; + display: flex; + align-items: center; + background: #007BFF; /* 按钮背景颜色 */ + border: none; + color: #FFF; /* 按钮文字颜色 */ + padding: 5px 12px; + font-size: 20px; + border-radius: 5px; + transition: background-color 0.3s ease; +} + +.arrow i { + margin: 0 5px; +} + +.arrow:hover { + background-color: #0056b3; /* 按钮悬停时的背景颜色 */ + cursor: pointer; +} + +.arrow:focus { + outline: none; + box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5); +} + +/* 为首页时按钮(Pre Article)的背景颜色 */ +.gray-background { + background-color: #6c757d !important; +} diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index 9a9f640..6f08ab7 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -6,6 +6,8 @@ content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, user-scalable=yes"/> + + {{ yml['header'] | safe }} @@ -41,17 +43,6 @@ white-space: pre-wrap; } - .arrow { - padding: 0; - font-size: 20px; - line-height: 21px; - display: inline-block; - } - - .arrow:hover { - cursor: pointer; - } -
@@ -71,9 +62,14 @@ {% endfor %} - - - +阅读文章并回答问题