snort/src/index.css
2023-02-01 23:42:46 +01:00

542 lines
8.6 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Be+Bietnam+Pro:wght@400;500;600;700&display=swap');
:root {
--bg-color: #000;
--font-color: #FFF;
--font-secondary-color: #555;
--font-tertiary-color: #666;
--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;
--gray-superlight: #EEE;
--gray-light: #999;
--gray-medium: #666;
--gray: #333;
--gray-secondary: #222;
--gray-tertiary: #444;
--gray-dark: #2B2B2B;
--gray-superdark: #171717;
--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%);
--nostrplebs-gradient: linear-gradient(to bottom right, #ff3cac, #2b86c5);
--invoice-gradient: linear-gradient(45deg, var(--note-bg) 50%, rgba(161, 120, 255, 0.2), rgba(255, 107, 175, .2) 108.33%);
--paid-invoice-gradient: linear-gradient(45deg, var(--note-bg) 50%, rgba(161, 120, 255, .6), rgba(255, 107, 175, .6) 108.33%);
--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);
}
html.light {
--bg-color: #F1F1F1;
--font-color: #57534E;
--font-secondary-color: #B9B9B9;
--font-tertiary-color: #F3F3F3;
--highlight-light: #16AAC1;
--highlight: #0284C7;
--highlight-dark: #0A52B5;
--modal-bg-color: rgba(240, 240, 240, 0.8);
--note-bg: white;
--gray: #CCC;
--gray-secondary: #DDD;
--gray-tertiary: #EEE;
--gray-superlight: #333;
--gray-light: #555;
--gray-dark: #2B2B2B;
--gray-superdark: #EEE;
--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));
}
body {
margin: 0;
font-family: 'Be Vietnam Pro', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--bg-color);
color: var(--font-color);
font-size: var(--font-size);
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
.page {
width: 100vw;
margin-left: auto;
margin-right: auto;
}
@media (min-width: 720px) {
.page {
width: 720px;
margin-left: auto;
margin-right: auto;
}
}
.card {
margin-bottom: 12px;
border-radius: 16px;
background-color: var(--note-bg);
padding: 6px 12px;
}
@media (min-width: 720px) {
.card {
margin-bottom: 16px;
padding: 12px 24px;
}
}
html.light .card {
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}
.card .header {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.card>.footer {
display: flex;
flex-direction: row;
}
button {
cursor: pointer;
padding: 6px 12px;
font-weight: 700;
color: white;
font-size: var(--font-size);
background-color: var(--highlight);
border: none;
border-radius: 16px;
outline: none;
}
button:disabled {
cursor: not-allowed;
color: var(--font-color);
background-color: transparent;
border: 1px solid var(--font-secondary-color);
}
button:disabled:hover {
cursor: not-allowed;
color: var(--font-color);
background-color: transparent;
background-color: var(--gray-superdark);
border: 1px solid var(--font-secondary-color);
}
.light button.transparent {
color: var(--font-color);
}
.light button:disabled {
color: var(--font-color);
}
button:hover {
background-color: var(--font-color);
color: var(--bg-color);
}
button.secondary {
color: var(--font-color);
background-color: var(--gray-dark);
}
button.transparent {
background-color: transparent;
border: 1px solid var(--gray-superdark);
}
.light button.secondary {
background-color: var(--gray);
}
button.secondary:hover {
border: none;
color: var(--font-color);
background-color: var(--gray-superdark);
}
button.transparent:hover {
color: var(--bg-color);
background-color: var(--font-color);
}
.light button.secondary:hover {
background-color: var(--gray-secondary);
}
button.icon {
border: none;
background: none;
color: var(--font-color);
min-height: 28px;
}
button.icon .icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
}
button.icon:hover {
color: var(--highlight);
}
.btn {
padding: 10px;
border-radius: 5px;
cursor: pointer;
color: var(--font-color);
user-select: none;
background-color: var(--bg-color);
color: var(--font-color);
border: 1px solid;
display: inline-block;
}
.btn-warn {
border-color: var(--error);
}
.btn-success {
border-color: var(--success);
}
.btn.active {
border: 2px solid;
background-color: var(--gray-secondary);
color: var(--font-color);
font-weight: 700;
}
.btn.disabled {
color: var(--gray-light);
}
.btn:hover {
background-color: var(--gray);
}
.btn-sm {
padding: 5px;
}
.btn-rnd {
border-radius: 100%;
border-color: var(--gray-superdark);
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 16px;
}
.light .btn-rnd {
border-color: var(--gray);
}
textarea {
font: inherit;
}
input[type="text"], input[type="password"], input[type="number"], textarea, select {
padding: 10px;
border-radius: 5px;
border: 0;
background-color: var(--gray);
color: var(--font-color);
}
input[type="checkbox"] {
width: 24px;
height: 24px;
}
input:disabled {
color: var(--gray-medium);
cursor: not-allowed;
}
textarea:placeholder {
color: var(--gray-superlight);
}
.flex {
display: flex;
align-items: center;
min-width: 0;
}
.f-center {
justify-content: center;
}
.f-1 {
flex: 1;
}
.f-2 {
flex: 2;
}
.f-grow {
flex-grow: 1;
min-width: 0;
}
.f-shrink {
flex-shrink: 1;
}
.f-ellipsis {
min-width: 0;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.f-col {
flex-direction: column;
align-items: flex-start !important;
}
.f-end {
justify-content: flex-end;
}
.w-max {
width: 100%;
width: stretch;
}
.w-max-w {
max-width: 100%;
max-width: stretch;
}
a {
color: inherit;
line-height: 1.3em;
}
a.ext {
word-break: break-all;
white-space: initial;
}
div.form {
display: grid;
grid-auto-flow: row;
}
div.form-group {
display: grid;
align-items: center;
grid-template-columns: 1fr 2fr;
}
div.form-group>div {
padding: 3px 5px;
}
div.form-group>div:nth-child(1) {
display: flex;
align-self: center;
}
div.form-group>div:nth-child(2) {
display: flex;
flex-grow: 1;
justify-content: flex-end;
}
div.form-group>div:nth-child(2) input {
flex-grow: 1;
}
div.form-col {
grid-auto-flow: row;
grid-template-columns: auto;
}
.modal {
position: absolute;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.8);
}
.modal .modal-content {
display: flex;
justify-content: center;
}
.modal .modal-content>div {
padding: 10px;
border-radius: 10px;
background-color: var(--gray);
margin-top: 5vh;
}
body.scroll-lock {
overflow: hidden;
height: 100vh;
}
.pointer {
cursor: pointer;
}
.m5 {
margin: 5px;
}
.m10 {
margin: 10px;
}
.mr10 {
margin-right: 10px;
}
.mr5 {
margin-right: 5px;
}
.mt10 {
margin-top: 10px;
}
.ml5 {
margin-left: 5px;
}
.mb10 {
margin-bottom: 10px;
}
.mb20 {
margin-bottom: 20px;
}
.mr-auto {
margin-right: auto;
}
.tabs {
display: flex;
align-content: center;
text-align: center;
margin: 10px 0;
overflow-x: auto;
}
.tabs>div {
cursor: pointer;
margin: 0;
}
.tabs .active {
font-weight: 700;
}
.error {
color: var(--error);
}
.bg-error {
background-color: var(--error);
}
.bg-success {
background-color: var(--success);
}
.tabs {
padding: 0;
align-items: center;
justify-content: flex-start;
margin-bottom: 16px;
}
.tab {
border-bottom: 1px solid var(--gray-secondary);
font-weight: 700;
line-height: 19px;
color: var(--font-secondary-color);
padding: 8px 0;
}
.tab.active {
border-bottom: 1px solid var(--highlight);
color: var(--font-color);
}
.tweet {
display: flex;
align-items: center;
justify-content: center;
}
.tweet div {
width: 100%;
}
.tweet div .twitter-tweet {
margin: 0 auto;
}
.tweet div .twitter-tweet>iframe {
max-height: unset;
}
@media(max-width: 720px) {
div.form {
grid-auto-flow: dense;
}
div.form-group {
flex-direction: column;
align-items: flex-start;
}
}
.highlight {
color: var(--highlight);
}
.main-content {
padding: 0 12px;
}
@media (min-width: 720px) {
.main-content {
padding: 0;
}
}
.bold {
font-weight: 700;
}