owncast/web/styles/globals.scss
Gabe Kangas b10ba1dcc2 Admin support for managing users (#245)
* First pass at displaying user data in admin

* Hide chat blurb on home page if chat is disabled

* Hide sidebar chat section if chat is disabled

* Block/unblock user interface for https://github.com/owncast/owncast/issues/1096

* Simplify past display name handling

* Updates to reflect the api access token change

* Update paths

* Clean up the new access token page

* Fix linter

* Update linter workflow action

* Cleanup

* Fix exception rendering table row

* Commit next-env file that seems to be required with next 11

* chat refactor - admin adjustments (#250)

* add useragent parser; clean up some html;

* some ui changes
- use modal instead of popover to confirm block/unblock user
- update styles, table styles for consistency
- rename some user/chat labels in nav and content

* format user info modal a bit

* add some sort of mild treatment and delay while processing ban of users

* rename button to 'ban'

* add some notes

* Prettified Code!

* fix disableChat toggle for nav bar

* Support sorting the disabled user list

* Fix linter error around table sorting

* No longer restoring messages on unban so change message prompt

* Standardize on forbiddenUsername terminology

* The linter broke the webhooks page. Fixed it. Linter is probably pissed.

* Move chat welcome message to chat config

* Other submenus don't have icons so remove these ones

Co-authored-by: gingervitis <omqmail@gmail.com>
Co-authored-by: gabek <gabek@users.noreply.github.com>
2021-07-19 22:02:02 -07:00

145 lines
2.3 KiB
SCSS

// @import "~antd/dist/antd.dark";
html,
body {
padding: 0;
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
font-size: 16px;
background-color: var(--default-bg-color);
color: var(--default-text-color);
}
a {
color: inherit;
text-decoration: none;
color: var(--default-link-color);
&:hover {
color: var(--default-text-color);
}
}
* {
box-sizing: border-box;
}
p,
p.description,
.description,
.ant-typography {
font-weight: 300;
margin: 1em 0;
color: var(--white-75);
}
pre {
display: block;
padding: 1rem;
margin: 0.5rem 0;
background-color: var(--code-bg-color);
color: var(--white-50);
}
code {
color: var(--code-color);
background-color: var(--white-15);
display: inline-block;
padding: 2px 4px;
border-radius: 4px;
font-size: 0.88em;
}
strong {
font-weight: 600;
}
.logo-svg {
height: 2rem;
width: 2rem;
}
.line-chart-container {
margin: 2em auto;
padding: 1em;
border: 1px solid var(--gray-dark);
canvas {
max-width: 100%;
}
}
.form-module {
margin: 1em 0;
background-color: var(--container-bg-color);
padding: 2em;
border-radius: var(--container-border-radius);
h3 {
&:first-of-type {
margin-top: 0;
}
}
}
.row {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
@media (max-width: 980px) {
flex-direction: column;
.form-module {
width: 100%;
}
}
}
input {
&:not(:focus) {
&:invalid {
color: var(--ant-error);
}
}
}
.table-container {
.ant-table-tbody > tr > td {
transition: background-color 0.15s;
}
.ant-table-tbody > tr.ant-table-row:hover > td {
background-color: var(--gray);
}
.ant-table-small {
.ant-table-cell {
font-size: 12px;
}
.ant-table-selection-column {
width: 20px;
min-width: 20px;
}
}
.ant-table-row.hidden {
.ant-table-cell {
color: var(--black-35);
}
@media (prefers-color-scheme: dark) {
.ant-table-cell {
color: var(--white-25);
}
}
}
.ant-table-cell {
&.actions-col {
text-align: right;
}
}
td.number-col {
text-align: right;
}
}