Dinkin Posted November 30, 2023 Share Posted November 30, 2023 Добрый день. Делаю простенький чат на основе компонента TUniDBGrid. Нашел Тему Не подскажете куда в Uni добавлять верстку SCC @use postcss-nested; :root { --send-bg: #0B93F6; --send-color: white; --receive-bg: #E5E5EA; --receive-text: black; --page-background: white; } body { font-family: "Helvetica Neue", Helvetica, sans-serif; font-size: 20px; font-weight: normal; max-width: 450px; margin: 50px auto; display: flex; flex-direction: column; background-color: var(--page-background); } p { max-width: 255px; word-wrap: break-word; margin-bottom: 12px; line-height: 24px; position: relative; padding: 10px 20px; border-radius: 25px; &:before, &:after { content: ""; position: absolute; bottom: 0; height: 25px; } } .send { color: var(--send-color); background: var(--send-bg); align-self: flex-end; &:before { right: -7px; width: 20px; background-color: var(--send-bg); border-bottom-left-radius: 16px 14px; } &:after { right: -26px; width: 26px; background-color: var(--page-background); border-bottom-left-radius: 10px; } } .receive { background: var(--receive-bg); color: black; align-self: flex-start; &:before { left: -7px; width: 20px; background-color: var(--receive-bg); border-bottom-right-radius: 16px 14px; } &:after { left: -26px; width: 26px; background-color: var(--page-background); border-bottom-right-radius: 10px; } } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2023 Share Posted November 30, 2023 25 minutes ago, Dinkin said: SCC Добрый день, PostCSS хотели сказать !? Quote Link to comment Share on other sites More sharing options...
Dinkin Posted November 30, 2023 Author Share Posted November 30, 2023 Sherzod. Да!) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2023 Share Posted November 30, 2023 Ну, надо проанализировать. Я не смотрел решение выше еще... Quote Link to comment Share on other sites More sharing options...
Dinkin Posted November 30, 2023 Author Share Posted November 30, 2023 Спасибо, буду ждать. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 30, 2023 Share Posted November 30, 2023 4 hours ago, Dinkin said: Спасибо, буду ждать. Также: 1 Quote Link to comment Share on other sites More sharing options...
Dinkin Posted December 1, 2023 Author Share Posted December 1, 2023 Понял, спасибо....это надо будет осваивать верстку🥺 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.