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")

-

+

@@ -24,7 +24,7 @@
Telegram: {{ telegram_name }} - +
{% else %} @@ -51,7 +51,7 @@ {% endfor %}

{% if jids | length > 1 %} -

+

{% endif %}

To add new jabber account: send any text message to juick@juick.com

@@ -66,7 +66,7 @@

Add account:
- +

@@ -80,7 +80,7 @@ {% else %}

{% if jids | length > 1 %} -

+

{% endif %} {% endif %}
@@ -97,7 +97,7 @@ {% endfor %} -

+

{% endif %} @@ -115,7 +115,7 @@
Facebook: Enabled - +
{% else %} @@ -123,7 +123,7 @@
Facebook: Disabled - +
{% endif %} @@ -138,7 +138,7 @@
Twitter: {{ twitter_name }} - +
{% else %} diff --git a/src/main/resources/templates/views/settings_password.html b/src/main/resources/templates/views/settings_password.html index aba0b139..99c1676e 100644 --- a/src/main/resources/templates/views/settings_password.html +++ b/src/main/resources/templates/views/settings_password.html @@ -5,7 +5,7 @@ Changing your password
-

Change password: Change password:
(max. length - 16 symbols)

-- cgit v1.2.3