diff options
author | Vitaly Takmazov | 2022-11-06 04:30:51 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | 8c2b2cee1f8701479bafbd69069847e50e8f0d67 (patch) | |
tree | da01fcbc17b705a74cb4b37b1b06d4b30dbaab29 /vnext/src/ui | |
parent | 7b14a8f3faf7672f0aefbf93d5c37f62a169b535 (diff) |
webpack -> postcss+esbuild
Diffstat (limited to 'vnext/src/ui')
-rw-r--r-- | vnext/src/ui/Avatar.css | 20 | ||||
-rw-r--r-- | vnext/src/ui/Avatar.js | 2 | ||||
-rw-r--r-- | vnext/src/ui/Button.css | 13 | ||||
-rw-r--r-- | vnext/src/ui/Button.js | 2 | ||||
-rw-r--r-- | vnext/src/ui/Chat.css | 9 | ||||
-rw-r--r-- | vnext/src/ui/Chat.js | 1 | ||||
-rw-r--r-- | vnext/src/ui/Login.css | 103 | ||||
-rw-r--r-- | vnext/src/ui/Login.js | 1 | ||||
-rw-r--r-- | vnext/src/ui/UserInfo.css | 11 | ||||
-rw-r--r-- | vnext/src/ui/UserInfo.js | 2 |
10 files changed, 0 insertions, 164 deletions
diff --git a/vnext/src/ui/Avatar.css b/vnext/src/ui/Avatar.css deleted file mode 100644 index 9f7d22e3..00000000 --- a/vnext/src/ui/Avatar.css +++ /dev/null @@ -1,20 +0,0 @@ -.Avatar { - display: flex; -} -.msg-avatar { - max-height: 48px; - margin-right: 10px; - max-width: 48px; -} -.msg-avatar img { - max-height: 48px; - vertical-align: top; - max-width: 48px; -} - -.info-avatar img { - max-height: 48px; - max-width: 48px; - padding: 6px; - vertical-align: middle; -} diff --git a/vnext/src/ui/Avatar.js b/vnext/src/ui/Avatar.js index 04ec5910..0de225b2 100644 --- a/vnext/src/ui/Avatar.js +++ b/vnext/src/ui/Avatar.js @@ -3,8 +3,6 @@ import { Link } from 'react-router-dom'; import Icon from './Icon'; -import './Avatar.css'; - /** * @typedef {object} AvatarProps * @property {import('../api').User} user diff --git a/vnext/src/ui/Button.css b/vnext/src/ui/Button.css deleted file mode 100644 index 539e6d36..00000000 --- a/vnext/src/ui/Button.css +++ /dev/null @@ -1,13 +0,0 @@ -.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; -} diff --git a/vnext/src/ui/Button.js b/vnext/src/ui/Button.js index 3e49224d..2c315e46 100644 --- a/vnext/src/ui/Button.js +++ b/vnext/src/ui/Button.js @@ -1,7 +1,5 @@ import { memo } from 'react'; -import './Button.css'; - /** * @param {import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement>} props */ diff --git a/vnext/src/ui/Chat.css b/vnext/src/ui/Chat.css deleted file mode 100644 index 1ea35840..00000000 --- a/vnext/src/ui/Chat.css +++ /dev/null @@ -1,9 +0,0 @@ -.Chat_messages { - box-sizing: border-box; - padding: 0 20px; - overflow-y: auto; - height: 100%; - display: flex; - flex-direction: column-reverse; - width: 100%; -} diff --git a/vnext/src/ui/Chat.js b/vnext/src/ui/Chat.js index 93ed347e..0f8f53ba 100644 --- a/vnext/src/ui/Chat.js +++ b/vnext/src/ui/Chat.js @@ -8,7 +8,6 @@ import UserInfo from './UserInfo'; import { getChat, pm } from '../api'; -import './Chat.css'; import { useVisitor } from './VisitorContext'; import { Helmet } from 'react-helmet'; diff --git a/vnext/src/ui/Login.css b/vnext/src/ui/Login.css deleted file mode 100644 index 46d16878..00000000 --- a/vnext/src/ui/Login.css +++ /dev/null @@ -1,103 +0,0 @@ -@custom-media --viewport-desktop (width >=62.5rem); - -#dialogt { - height: 100%; - left: 0; - position: fixed; - top: 0; - width: 100%; - z-index: 10; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(0, 0, 0, 30%); -} -#dialogw { - z-index: 11; - max-width: 96%; - max-height: calc(100% - 100px); - background-color: #fff; -} -#dialogw a { - display: block; -} -#dialogw img { - max-height: 100%; - max-height: 90vh; - max-width: 100%; -} -#dialog_header { - width: 100%; - height: 44px; - display: flex; - flex-direction: row-reverse; - align-items: center; -} -.header_image { - background: rgba(0, 0, 0, 28%); -} -#dialogc { - cursor: pointer; - color: #ccc; - padding-right: 6px; -} -.dialoglogin { - background: #fff; - padding: 25px; - margin: 0 auto; -} -@media (--viewport-desktop) { - .dialoglogin { - width: 300px; - } -} -.dialog-opened { - overflow: hidden; -} -#signemail, -#signfb, -#signvk { - display: block; - line-height: 32px; - margin: 10px 0; - text-decoration: none; - width: 100%; -} -#signvk { - margin-bottom: 30px; -} -.dialoglogin form { - margin-top: 7px; -} -.signinput, -.signsubmit { - border: 1px solid #CCC; - margin: 3px 0; - padding: 3px; -} -.signsubmit { - width: 70px; -} -.dialogshare { - background: #fff; - min-width: 300px; - overflow: auto; - padding: 20px; -} -.dialogl { - background: #fff; - border: 1px solid #DDD; - margin: 3px 0 20px; - padding: 5px; -} -.dialogshare li { - float: left; - margin: 5px 10px 0 0; -} -.dialogshare a { - display: block; -} -.dialogtxt { - background: #fff; - padding: 20px; -} diff --git a/vnext/src/ui/Login.js b/vnext/src/ui/Login.js index 07b0a2a3..58d1a16b 100644 --- a/vnext/src/ui/Login.js +++ b/vnext/src/ui/Login.js @@ -7,7 +7,6 @@ import { useForm } from 'react-hook-form'; import { me, facebookLink, vkLink, appleLink } from '../api'; -import './Login.css'; import { useVisitor } from './VisitorContext'; /** diff --git a/vnext/src/ui/UserInfo.css b/vnext/src/ui/UserInfo.css deleted file mode 100644 index 3e692a86..00000000 --- a/vnext/src/ui/UserInfo.css +++ /dev/null @@ -1,11 +0,0 @@ -.userinfo { - padding: 40px; - background-color: #fdfdfe; - margin: 12px; -} -.info-avatar img { - max-height: 36px; - max-width: 36px; - padding: 6px; - vertical-align: middle; -} diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js index 91e3b5cf..6a394b86 100644 --- a/vnext/src/ui/UserInfo.js +++ b/vnext/src/ui/UserInfo.js @@ -7,8 +7,6 @@ import Avatar from './Avatar'; import Icon from './Icon'; import defaultAvatar from '../assets/av-96.png'; -import './UserInfo.css'; - let isMounted; /** |