Add inter font to project
This commit is contained in:
@@ -4,185 +4,182 @@ 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-family: var(--font-family);
|
||||
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);
|
||||
// a {
|
||||
// color: inherit;
|
||||
// text-decoration: none;
|
||||
// color: var(--default-link-color);
|
||||
|
||||
&:hover {
|
||||
color: var(--default-text-color);
|
||||
}
|
||||
}
|
||||
// &:hover {
|
||||
// color: var(--default-text-color);
|
||||
// }
|
||||
// }
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
// * {
|
||||
// box-sizing: border-box;
|
||||
// }
|
||||
|
||||
p,
|
||||
p.description,
|
||||
.description,
|
||||
.ant-typography {
|
||||
font-weight: 500;
|
||||
margin: 1em 0;
|
||||
color: var(--white-75);
|
||||
}
|
||||
// p,
|
||||
// p.description,
|
||||
// .description,
|
||||
// .ant-typography {
|
||||
// font-weight: 500;
|
||||
// margin: 1em 0;
|
||||
// color: var(--white-75);
|
||||
// }
|
||||
|
||||
.description.reduced-margins {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
// .description.reduced-margins {
|
||||
// margin-top: 5px;
|
||||
// margin-bottom: 5px;
|
||||
// }
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
padding: 1rem;
|
||||
margin: 0.5rem 0;
|
||||
background-color: var(--code-bg-color);
|
||||
color: var(--white-50);
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
// strong {
|
||||
// font-weight: 600;
|
||||
// }
|
||||
|
||||
.logo-svg {
|
||||
height: 2rem;
|
||||
width: 2rem;
|
||||
}
|
||||
// .logo-svg {
|
||||
// height: 2rem;
|
||||
// width: 2rem;
|
||||
// }
|
||||
|
||||
.line-chart-container {
|
||||
margin: 2em auto;
|
||||
margin-bottom: 0px;
|
||||
padding: 1em;
|
||||
border: 1px solid var(--gray-dark);
|
||||
// .line-chart-container {
|
||||
// margin: 2em auto;
|
||||
// margin-bottom: 0px;
|
||||
// padding: 1em;
|
||||
// border: 1px solid var(--gray-dark);
|
||||
|
||||
canvas {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
// canvas {
|
||||
// max-width: 100%;
|
||||
// }
|
||||
// }
|
||||
|
||||
.form-module {
|
||||
margin: 1em 0;
|
||||
background-color: var(--container-bg-color);
|
||||
padding: 2em;
|
||||
border-radius: var(--container-border-radius);
|
||||
// .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;
|
||||
}
|
||||
}
|
||||
}
|
||||
// h3 {
|
||||
// &:first-of-type {
|
||||
// margin-top: 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
.form-module.disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
// .form-module.disabled {
|
||||
// opacity: 0.4;
|
||||
// cursor: not-allowed;
|
||||
// }
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
// .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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
// @media (max-width: 980px) {
|
||||
// flex-direction: column;
|
||||
// .form-module {
|
||||
// width: 100%;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
input {
|
||||
&:not(:focus) {
|
||||
&:invalid {
|
||||
color: var(--ant-error);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
// .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;
|
||||
// }
|
||||
// }
|
||||
|
||||
.ant-tabs-tab {
|
||||
color: var(--owncast-purple);
|
||||
// .ant-tabs-tab {
|
||||
// color: var(--owncast-purple);
|
||||
|
||||
.ant-tabs-tab-active {
|
||||
border-color: var(--nav-selected-text);
|
||||
}
|
||||
}
|
||||
// .ant-tabs-tab-active {
|
||||
// border-color: var(--nav-selected-text);
|
||||
// }
|
||||
// }
|
||||
|
||||
.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
||||
color: var(--nav-selected-text);
|
||||
}
|
||||
// .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
||||
// color: var(--nav-selected-text);
|
||||
// }
|
||||
|
||||
.ant-tabs-ink-bar {
|
||||
background: var(--nav-selected-text);
|
||||
}
|
||||
// .ant-tabs-ink-bar {
|
||||
// background: var(--nav-selected-text);
|
||||
// }
|
||||
|
||||
#fediverse-post-container {
|
||||
max-width: 50vw;
|
||||
width: 100%;
|
||||
// #fediverse-post-container {
|
||||
// max-width: 50vw;
|
||||
// width: 100%;
|
||||
|
||||
#fediverse-post-input {
|
||||
color: var(--white-75);
|
||||
border-color: var(--owncast-purple);
|
||||
background-color: var(--default-bg-color);
|
||||
height: 250px;
|
||||
}
|
||||
// #fediverse-post-input {
|
||||
// color: var(--white-75);
|
||||
// border-color: var(--owncast-purple);
|
||||
// background-color: var(--default-bg-color);
|
||||
// height: 250px;
|
||||
// }
|
||||
|
||||
.ant-input-textarea-show-count::after {
|
||||
color: var(--owncast-purple);
|
||||
}
|
||||
}
|
||||
// .ant-input-textarea-show-count::after {
|
||||
// color: var(--owncast-purple);
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -36,4 +36,5 @@
|
||||
@border-radius-base: 2px; // major border radius
|
||||
@border-color-base: #d9d9d9; // major border color
|
||||
@box-shadow-base: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||||
0 9px 28px 8px rgba(0, 0, 0, 0.05); // major shadow for layers
|
||||
0 9px 28px 8px rgba(0, 0, 0, 0.05); // major shadow for layers
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@import url('../public/fonts/inter/inter.css');
|
||||
|
||||
// See theme.less for specific Ant Design overrides.
|
||||
:root {
|
||||
// old colors
|
||||
@@ -87,4 +89,8 @@
|
||||
//
|
||||
--popover-base-color: var(--gray);
|
||||
--tooltip-base-color: var(--gray-medium);
|
||||
|
||||
--font-family: "Inter", 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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user