snort/src/index.css

573 lines
8.8 KiB
CSS
Raw Normal View History

:root {
2023-01-20 17:07:14 +00:00
--bg-color: #000;
--font-color: #fff;
--font-secondary-color: #a7a7a7;
--font-tertiary-color: #a3a3a3;
2023-01-20 17:07:14 +00:00
--font-size: 16px;
--font-size-small: 14px;
--font-size-tiny: 12px;
--modal-bg-color: rgba(0, 0, 0, 0.8);
--note-bg: #0c0c0c;
--highlight: #8b5cf6;
--error: #ff6053;
--success: #2ad544;
2023-01-20 17:07:14 +00:00
--gray-superlight: #eee;
2023-01-20 17:07:14 +00:00
--gray-light: #999;
--gray-medium: #7b7b7b;
2023-01-20 17:07:14 +00:00
--gray: #333;
--gray-secondary: #222;
--gray-tertiary: #444;
--gray-dark: #2b2b2b;
--gray-superdark: #1a1a1a;
2023-02-09 12:26:54 +00:00
--gray-gradient: linear-gradient(to bottom right, var(--gray-superlight), var(--gray), var(--gray-light));
--snort-gradient: linear-gradient(90deg, #a178ff 0%, #ff6baf 108.33%);
--invoice-gradient: linear-gradient(
45deg,
var(--note-bg) 50%,
rgba(161, 120, 255, 0.2),
rgba(255, 107, 175, 0.2) 108.33%
);
--paid-invoice-gradient: linear-gradient(
45deg,
var(--note-bg) 50%,
rgba(161, 120, 255, 0.6),
rgba(255, 107, 175, 0.6) 108.33%
);
2023-02-09 12:26:54 +00:00
--expired-invoice-gradient: linear-gradient(45deg, var(--note-bg) 50%, var(--gray), var(--gray-superdark));
--strike-army-gradient: linear-gradient(to bottom right, #ccff00, #a1c900);
2023-01-20 17:07:14 +00:00
}
html.light {
--bg-color: #f1f1f1;
--font-color: #57534e;
--font-secondary-color: #7b7b7b;
--font-tertiary-color: #a7a7a7;
--highlight-light: #16aac1;
--highlight: #0284c7;
--highlight-dark: #0a52b5;
2023-01-20 17:07:14 +00:00
--modal-bg-color: rgba(240, 240, 240, 0.8);
--note-bg: white;
--gray: #ccc;
--gray-secondary: #ddd;
--gray-tertiary: #eee;
2023-01-20 17:07:14 +00:00
--gray-superlight: #333;
--gray-light: #555;
--gray-dark: #2b2b2b;
--gray-superdark: #eee;
2023-02-09 12:26:54 +00:00
--invoice-gradient: linear-gradient(45deg, var(--note-bg) 50%, rgb(247, 183, 51, 0.2), rgb(252, 74, 26, 0.2));
--paid-invoice-gradient: linear-gradient(45deg, var(--note-bg) 50%, rgb(247, 183, 51, 0.6), rgb(252, 74, 26, 0.6));
}
2022-12-18 14:51:47 +00:00
body {
margin: 0;
2023-02-09 22:30:51 +00:00
font-family: "Inter", sans-serif;
2022-12-18 14:51:47 +00:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--bg-color);
color: var(--font-color);
2023-01-18 23:31:34 +00:00
font-size: var(--font-size);
2022-12-18 14:51:47 +00:00
}
code {
2023-02-09 12:26:54 +00:00
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
2022-12-18 14:51:47 +00:00
}
.page {
2023-01-25 18:08:53 +00:00
width: 100vw;
2022-12-18 14:51:47 +00:00
margin-left: auto;
margin-right: auto;
}
2023-01-25 18:08:53 +00:00
@media (min-width: 720px) {
.page {
2023-02-05 22:44:31 +00:00
width: 586px;
2023-01-25 18:08:53 +00:00
margin-left: auto;
margin-right: auto;
}
2022-12-29 15:36:40 +00:00
}
.card {
margin-bottom: 12px;
border-radius: 16px;
background-color: var(--note-bg);
2023-01-20 15:57:45 +00:00
padding: 6px 12px;
}
2023-01-20 17:07:14 +00:00
@media (min-width: 720px) {
2023-01-20 18:59:08 +00:00
.card {
2023-01-26 06:13:25 +00:00
margin-bottom: 16px;
2023-01-20 17:07:14 +00:00
padding: 12px 24px;
}
2023-01-20 15:57:45 +00:00
}
2023-01-20 17:07:14 +00:00
2023-01-20 18:59:08 +00:00
html.light .card {
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}
2023-01-20 17:07:14 +00:00
2023-01-20 18:59:08 +00:00
.card .header {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.card > .footer {
2023-01-20 18:59:08 +00:00
display: flex;
2023-01-26 06:51:03 +00:00
flex-direction: row;
2023-01-20 18:59:08 +00:00
}
2023-01-25 18:08:53 +00:00
button {
cursor: pointer;
padding: 6px 12px;
2023-02-06 21:42:47 +00:00
font-weight: 600;
2023-01-25 18:08:53 +00:00
color: white;
font-size: var(--font-size);
background-color: var(--highlight);
border: none;
border-radius: 16px;
outline: none;
}
2023-01-26 07:25:05 +00:00
2023-01-27 10:22:35 +00:00
button:disabled {
2023-02-07 13:32:32 +00:00
opacity: 0.3;
cursor: not-allowed;
}
button.secondary:disabled {
color: var(--font-secondary-color);
2023-01-27 10:22:35 +00:00
cursor: not-allowed;
2023-02-01 22:42:46 +00:00
}
button:disabled:hover {
cursor: not-allowed;
color: var(--font-color);
2023-02-07 13:32:32 +00:00
border-color: var(--gray-superdark);
2023-01-27 10:22:35 +00:00
}
2023-01-27 13:46:32 +00:00
.light button.transparent {
color: var(--font-color);
}
2023-01-27 10:47:05 +00:00
.light button:disabled {
2023-01-28 21:43:56 +00:00
color: var(--font-color);
2023-01-27 10:47:05 +00:00
}
2023-01-27 10:22:35 +00:00
2023-01-25 18:08:53 +00:00
button:hover {
background-color: var(--font-color);
color: var(--bg-color);
}
button.secondary {
color: var(--font-color);
background-color: var(--gray-dark);
}
2023-01-26 07:25:05 +00:00
button.transparent {
2023-02-09 11:24:15 +00:00
font-weight: 400;
color: var(--font-secondary);
2023-01-26 07:25:05 +00:00
background-color: transparent;
border: 1px solid var(--gray-superdark);
}
2023-01-25 18:08:53 +00:00
.light button.secondary {
background-color: var(--gray);
}
2023-01-26 07:25:05 +00:00
2023-01-25 18:08:53 +00:00
button.secondary:hover {
2023-01-26 07:25:05 +00:00
border: none;
2023-01-25 18:08:53 +00:00
color: var(--font-color);
background-color: var(--gray-superdark);
}
2023-01-26 07:25:05 +00:00
button.transparent:hover {
color: var(--bg-color);
background-color: var(--font-color);
}
2023-01-25 18:08:53 +00:00
.light button.secondary:hover {
background-color: var(--gray-secondary);
}
2023-01-28 21:43:56 +00:00
button.icon {
border: none;
background: none;
color: var(--font-color);
2023-01-29 22:11:04 +00:00
min-height: 28px;
}
button.icon .icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
2023-01-28 21:43:56 +00:00
}
button.icon:hover {
2023-01-29 22:11:04 +00:00
color: var(--highlight);
2023-01-20 18:59:08 +00:00
}
2023-01-20 18:59:08 +00:00
.btn {
padding: 10px;
border-radius: 5px;
cursor: pointer;
2023-01-25 18:08:53 +00:00
color: var(--font-color);
2023-01-20 18:59:08 +00:00
user-select: none;
background-color: var(--bg-color);
color: var(--font-color);
border: 1px solid;
display: inline-block;
}
2022-12-18 14:51:47 +00:00
2023-01-20 18:59:08 +00:00
.btn-warn {
border-color: var(--error);
}
2023-01-20 18:59:08 +00:00
.btn-success {
border-color: var(--success);
}
2023-01-20 18:59:08 +00:00
.btn.active {
border: 2px solid;
background-color: var(--gray-secondary);
color: var(--font-color);
2023-01-26 06:13:09 +00:00
font-weight: 700;
2023-01-20 18:59:08 +00:00
}
2022-12-30 14:01:51 +00:00
2023-01-20 18:59:08 +00:00
.btn.disabled {
color: var(--gray-light);
}
2023-01-12 21:36:31 +00:00
2023-01-20 18:59:08 +00:00
.btn:hover {
background-color: var(--gray);
}
2022-12-18 14:51:47 +00:00
2023-01-20 18:59:08 +00:00
.btn-sm {
padding: 5px;
}
2022-12-29 15:21:03 +00:00
2023-01-20 18:59:08 +00:00
.btn-rnd {
2023-02-07 13:32:32 +00:00
border: none;
2023-02-08 21:10:26 +00:00
border-radius: 100%;
2023-02-05 22:44:31 +00:00
width: 21px;
height: 21px;
2023-01-25 18:08:53 +00:00
display: flex;
align-items: center;
justify-content: center;
}
2023-02-05 22:44:31 +00:00
@media (min-width: 520px) {
.btn-rnd {
width: 32px;
height: 32px;
}
2023-01-20 18:59:08 +00:00
}
2022-12-29 15:36:40 +00:00
2023-01-20 18:59:08 +00:00
textarea {
font: inherit;
}
2023-01-08 17:33:54 +00:00
input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
2023-02-07 13:32:32 +00:00
padding: 12px;
2023-01-20 18:59:08 +00:00
color: var(--font-color);
2023-02-07 13:32:32 +00:00
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
outline: none;
}
.light input[type="text"],
.light input[type="password"],
.light input[type="number"],
.light select,
.light textarea {
2023-02-07 13:32:32 +00:00
border: 1px solid rgba(0, 0, 0, 0.3);
}
input:placeholder,
textarea:placeholder {
2023-02-07 13:32:32 +00:00
color: var(--font-tertiary-color);
2023-01-20 18:59:08 +00:00
}
2023-01-20 18:59:08 +00:00
input[type="checkbox"] {
width: 24px;
height: 24px;
}
2023-01-12 15:35:42 +00:00
2023-01-20 18:59:08 +00:00
input:disabled {
color: var(--gray-medium);
cursor: not-allowed;
}
2022-12-18 14:51:47 +00:00
2023-01-20 18:59:08 +00:00
.flex {
display: flex;
align-items: center;
min-width: 0;
}
2023-01-09 11:00:23 +00:00
2023-01-20 18:59:08 +00:00
.f-center {
justify-content: center;
}
2023-01-05 15:23:55 +00:00
2023-01-20 18:59:08 +00:00
.f-1 {
flex: 1;
}
2023-01-11 13:05:32 +00:00
2023-01-20 18:59:08 +00:00
.f-2 {
flex: 2;
}
2023-01-12 12:00:44 +00:00
2023-01-20 18:59:08 +00:00
.f-grow {
flex-grow: 1;
min-width: 0;
}
2022-12-20 12:08:41 +00:00
2023-01-20 18:59:08 +00:00
.f-shrink {
flex-shrink: 1;
}
2023-01-01 19:57:27 +00:00
2023-01-20 18:59:08 +00:00
.f-ellipsis {
min-width: 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
2023-01-03 12:06:53 +00:00
2023-01-20 18:59:08 +00:00
.f-col {
flex-direction: column;
align-items: flex-start !important;
}
2023-01-03 12:06:53 +00:00
2023-01-25 13:10:31 +00:00
.f-end {
justify-content: flex-end;
}
2023-01-20 18:59:08 +00:00
.w-max {
width: 100%;
2023-01-25 13:54:45 +00:00
width: stretch;
2023-01-20 18:59:08 +00:00
}
2023-01-12 12:00:44 +00:00
2023-01-20 18:59:08 +00:00
.w-max-w {
max-width: 100%;
2023-01-25 13:54:45 +00:00
max-width: stretch;
2023-01-20 18:59:08 +00:00
}
2022-12-20 23:14:13 +00:00
2023-01-20 18:59:08 +00:00
a {
color: inherit;
line-height: 1.3em;
}
2023-01-19 15:37:47 +00:00
2023-01-20 18:59:08 +00:00
a.ext {
word-break: break-all;
white-space: initial;
}
2022-12-27 23:46:13 +00:00
2023-01-31 14:41:21 +00:00
div.form {
display: grid;
grid-auto-flow: row;
}
2023-01-20 18:59:08 +00:00
div.form-group {
2023-01-31 14:41:21 +00:00
display: grid;
2023-01-20 18:59:08 +00:00
align-items: center;
2023-01-31 14:41:21 +00:00
grid-template-columns: 1fr 2fr;
2023-01-20 18:59:08 +00:00
}
2022-12-27 23:46:13 +00:00
div.form-group > div {
2023-01-20 18:59:08 +00:00
padding: 3px 5px;
}
2023-01-09 11:00:23 +00:00
div.form-group > div:nth-child(1) {
2023-01-31 14:41:21 +00:00
display: flex;
align-self: center;
2023-01-20 18:59:08 +00:00
}
2023-01-09 11:00:23 +00:00
div.form-group > div:nth-child(2) {
2023-01-20 18:59:08 +00:00
display: flex;
flex-grow: 1;
2023-01-25 13:54:45 +00:00
justify-content: flex-end;
2023-01-20 18:59:08 +00:00
}
2022-12-29 22:23:41 +00:00
div.form-group > div:nth-child(2) input {
2023-01-20 18:59:08 +00:00
flex-grow: 1;
}
2022-12-29 22:23:41 +00:00
2023-01-31 14:41:21 +00:00
div.form-col {
grid-auto-flow: row;
grid-template-columns: auto;
}
2023-01-20 18:59:08 +00:00
.modal {
position: absolute;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.8);
}
2022-12-29 22:23:41 +00:00
2023-01-20 18:59:08 +00:00
.modal .modal-content {
display: flex;
justify-content: center;
}
2022-12-29 22:23:41 +00:00
.modal .modal-content > div {
2023-01-20 18:59:08 +00:00
padding: 10px;
border-radius: 10px;
background-color: var(--gray);
margin-top: 5vh;
}
2022-12-30 14:01:51 +00:00
2023-01-20 18:59:08 +00:00
body.scroll-lock {
overflow: hidden;
height: 100vh;
}
2023-01-19 00:03:24 +00:00
2023-01-31 14:41:21 +00:00
.pointer {
cursor: pointer;
}
2023-01-20 18:59:08 +00:00
.m5 {
margin: 5px;
}
2023-01-19 00:03:24 +00:00
2023-01-20 18:59:08 +00:00
.m10 {
margin: 10px;
}
2022-12-30 14:01:51 +00:00
2023-01-20 18:59:08 +00:00
.mr10 {
margin-right: 10px;
}
2023-01-14 12:25:08 +00:00
2023-01-20 18:59:08 +00:00
.mr5 {
margin-right: 5px;
}
2023-01-01 19:57:27 +00:00
2023-01-23 10:32:43 +00:00
.mt10 {
margin-top: 10px;
}
2023-01-20 18:59:08 +00:00
.ml5 {
margin-left: 5px;
}
2023-01-07 20:54:12 +00:00
2023-01-20 18:59:08 +00:00
.mb10 {
margin-bottom: 10px;
}
2022-12-30 14:01:51 +00:00
2023-01-28 16:31:03 +00:00
.mb20 {
margin-bottom: 20px;
2023-01-20 22:59:26 +00:00
}
.mr-auto {
margin-right: auto;
}
2023-01-20 18:59:08 +00:00
.error {
color: var(--error);
}
2023-01-11 13:05:32 +00:00
2023-01-20 18:59:08 +00:00
.bg-error {
background-color: var(--error);
}
2023-01-20 17:07:14 +00:00
2023-02-07 13:32:32 +00:00
.success {
color: var(--success);
}
2023-01-20 18:59:08 +00:00
.bg-success {
background-color: var(--success);
}
2023-01-11 13:05:32 +00:00
2023-01-20 18:59:08 +00:00
.tweet {
display: flex;
align-items: center;
justify-content: center;
}
2023-01-11 20:23:19 +00:00
2023-01-20 18:59:08 +00:00
.tweet div {
width: 100%;
}
2023-01-11 20:23:19 +00:00
2023-01-20 18:59:08 +00:00
.tweet div .twitter-tweet {
margin: 0 auto;
}
2023-01-11 20:23:19 +00:00
.tweet div .twitter-tweet > iframe {
2023-01-20 18:59:08 +00:00
max-height: unset;
}
2023-01-20 17:07:14 +00:00
@media (max-width: 720px) {
2023-01-31 14:41:21 +00:00
div.form {
grid-auto-flow: dense;
}
2023-01-20 18:59:08 +00:00
div.form-group {
flex-direction: column;
align-items: flex-start;
2023-01-15 19:40:47 +00:00
}
2023-01-20 18:59:08 +00:00
}
2023-01-19 11:14:41 +00:00
2023-01-20 18:59:08 +00:00
.highlight {
color: var(--highlight);
2023-01-25 18:08:53 +00:00
}
.main-content {
padding: 0 12px;
}
@media (min-width: 720px) {
.main-content {
padding: 0;
}
}
2023-01-26 06:51:38 +00:00
.bold {
font-weight: 700;
2023-02-01 22:42:46 +00:00
}
2023-02-05 11:25:35 +00:00
2023-02-05 22:44:31 +00:00
.main-content h2 {
font-weight: 600;
font-size: 32px;
line-height: 39px;
}
2023-02-05 11:25:35 +00:00
.main-content .h4 {
margin-bottom: 25px;
}
.main-content .profile-preview {
margin-bottom: 16px;
}
2023-02-09 11:24:15 +00:00
button.tall {
height: 40px;
}
2023-02-09 22:22:16 +00:00
.collapsable-section {
position: relative;
}
.collapsable-section h3,
.collapsable-section svg {
cursor: pointer;
}
.collapsable-section .collapse-icon {
position: absolute;
top: 0;
right: 0;
transition: transform 300ms ease-in-out;
}
.collapsable-section .collapse-icon.flip {
transform: rotate(180deg);
transition: transform 300ms ease-in-out;
}