From a9521ab38dbc25d55a792d07940e3fc6c674e50a Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Wed, 29 Apr 2020 14:55:45 +0300
Subject: Button style
---
src/main/assets/scripts.js | 8 ++++----
src/main/assets/style.css | 24 ++++++++++++++--------
src/main/resources/templates/views/post.html | 2 +-
.../resources/templates/views/settings_main.html | 18 ++++++++--------
.../templates/views/settings_password.html | 2 +-
5 files changed, 31 insertions(+), 23 deletions(-)
diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js
index 2c56fe7f..69a5814d 100644
--- a/src/main/assets/scripts.js
+++ b/src/main/assets/scripts.js
@@ -284,7 +284,7 @@ function showCommentForm(mid, rid) {
${evilIcon('ei-camera')}
-
+
`;
formTarget.insertAdjacentHTML('afterend', formHtml);
@@ -428,7 +428,7 @@ function openPostDialog() {
${i18n('postForm.or')} ${i18n('postForm.upload')}
-
+
`;
@@ -501,7 +501,7 @@ function openDialogLogin() {
`;
openDialog(html);
@@ -643,7 +643,7 @@ ready(function() {
renderIcons();
var insertPMButtons = function(e) {
e.target.classList.add('narrowpm');
- e.target.parentNode.insertAdjacentHTML('afterend', '');
+ e.target.parentNode.insertAdjacentHTML('afterend', '');
e.target.removeEventListener('click', insertPMButtons);
e.preventDefault();
};
diff --git a/src/main/assets/style.css b/src/main/assets/style.css
index 2ac91e91..96d47930 100644
--- a/src/main/assets/style.css
+++ b/src/main/assets/style.css
@@ -451,6 +451,21 @@ article .tags > a::before,
padding-top: 12px;
}
+.Button {
+ background: #fff;
+ border: 1px solid var(--border-color);
+ color: #888;
+ cursor: pointer;
+ display: inline-block;
+ margin: 5px;
+ padding: 4px 10px;
+}
+.Button:hover {
+ background: #f8f8f8;
+ border-bottom: 1px solid #ff339a;
+}
+
+
.msgthread {
margin-bottom: 0;
}
@@ -526,7 +541,7 @@ article .tags > a::before,
display: flex;
width: 100%;
margin-top: 10px;
- flex-direction: column;
+ flex-direction: row;
}
.msg-comment-hidden {
@@ -980,13 +995,6 @@ article p {
.msg-comment input {
align-self: flex-end;
margin: 6px 0 0 0;
- background: #EEE;
- border: 1px solid #CCC;
- color: #999;
- position: sticky;
- top: 70px;
- vertical-align: top;
- width: 50px;
}
@media (--viewport-mobile) {
diff --git a/src/main/resources/templates/views/post.html b/src/main/resources/templates/views/post.html
index aed4f316..8749d9e2 100644
--- a/src/main/resources/templates/views/post.html
+++ b/src/main/resources/templates/views/post.html
@@ -10,7 +10,7 @@
-
+
diff --git a/src/main/resources/templates/views/settings_main.html b/src/main/resources/templates/views/settings_main.html
index 1179d797..5c809bc1 100644
--- a/src/main/resources/templates/views/settings_main.html
+++ b/src/main/resources/templates/views/settings_main.html
@@ -14,7 +14,7 @@
checked="checked" {% endif %}/> Subscriptions notifications ("@user subscribed...")
Posts recommendations ("Recommended by @user")
-
+