snort/src/index.css

495 lines
7.4 KiB
CSS
Raw Normal View History

2023-01-26 06:13:09 +00:00
@import url('https://fonts.googleapis.com/css2?family=Be+Bietnam+Pro:wght@400;500;600;700&display=swap');
2022-12-18 14:51:47 +00:00
:root {
2023-01-20 17:07:14 +00:00
--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);
2023-01-25 18:08:53 +00:00
--note-bg: #0C0C0C;
--highlight: #8B5CF6;
2023-01-20 17:07:14 +00:00
--error: #FF6053;
--success: #2AD544;
--gray-superlight: #EEE;
--gray-light: #999;
--gray-medium: #666;
--gray: #333;
--gray-secondary: #222;
--gray-tertiary: #444;
2023-01-25 18:08:53 +00:00
--gray-dark: #2B2B2B;
--gray-superdark: #171717;
2023-01-20 17:07:14 +00:00
--gray-gradient: linear-gradient(to bottom right, var(--gray-superlight), var(--gray), var(--gray-light));
2023-01-25 18:08:53 +00:00
--snort-gradient: linear-gradient(180deg, #FFC7B7 0%, #4F1B73 100%);
2023-01-20 17:07:14 +00:00
--nostrplebs-gradient: linear-gradient(to bottom right, #ff3cac, #2b86c5);
--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;
2023-01-25 18:08:53 +00:00
--gray-dark: #2B2B2B;
--gray-superdark: #171717;
}
2022-12-18 14:51:47 +00:00
body {
margin: 0;
2023-01-25 18:08:53 +00:00
font-family: 'Be Vietnam Pro', 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-01-18 23:31:34 +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 {
width: 720px;
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;
}
2023-01-20 18:59:08 +00:00
.card>.footer {
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-01-26 06:13:09 +00:00
font-weight: 700;
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 {
cursor: not-allowed;
color: var(--gray);
}
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 {
color: var(--font-secondary-color);
border-color: var(--font-secondary-color);
}
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 {
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-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 {
border-radius: 100%;
2023-01-25 18:08:53 +00:00
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);
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
2023-01-20 18:59:08 +00:00
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);
}
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
textarea:placeholder {
color: var(--gray-superlight);
}
2022-12-29 22:23:41 +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-20 18:59:08 +00:00
div.form-group {
display: flex;
align-items: center;
}
2022-12-27 23:46:13 +00:00
2023-01-20 18:59:08 +00:00
div.form-group>div {
padding: 3px 5px;
word-break: break-word;
}
2023-01-09 11:00:23 +00:00
2023-01-20 18:59:08 +00:00
div.form-group>div:nth-child(1) {
min-width: 100px;
}
2023-01-09 11:00:23 +00:00
2023-01-20 18:59:08 +00:00
div.form-group>div:nth-child(2) {
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
2023-01-20 18:59:08 +00:00
div.form-group>div:nth-child(2) input {
flex-grow: 1;
}
2022-12-29 22:23:41 +00:00
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
2023-01-20 18:59:08 +00:00
.modal .modal-content>div {
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
.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-20 22:59:26 +00:00
.mr-auto {
margin-right: auto;
}
2023-01-20 18:59:08 +00:00
.tabs {
display: flex;
align-content: center;
text-align: center;
margin: 10px 0;
overflow-x: auto;
}
2023-01-05 15:23:55 +00:00
2023-01-20 18:59:08 +00:00
.tabs>div {
margin-right: 10px;
cursor: pointer;
}
2023-01-05 15:23:55 +00:00
2023-01-20 18:59:08 +00:00
.tabs>div:last-child {
margin: 0;
}
2023-01-11 12:26:36 +00:00
2023-01-20 18:59:08 +00:00
.tabs .active {
2023-01-26 06:13:09 +00:00
font-weight: 700;
2023-01-20 18:59:08 +00:00
}
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-01-20 18:59:08 +00:00
.bg-success {
background-color: var(--success);
}
2023-01-11 13:05:32 +00:00
2023-01-25 18:08:53 +00:00
.tabs {
2023-01-20 18:59:08 +00:00
padding: 0;
align-items: center;
justify-content: flex-start;
2023-01-25 18:08:53 +00:00
margin-bottom: 16px;
2023-01-20 18:59:08 +00:00
}
2023-01-25 18:08:53 +00:00
.tab {
border-bottom: 1px solid var(--gray-secondary);
2023-01-26 06:13:09 +00:00
font-weight: 700;
line-height: 19px;
2023-01-25 18:08:53 +00:00
color: var(--font-secondary-color);
padding: 8px 0;
2023-01-20 18:59:08 +00:00
}
2023-01-20 17:07:14 +00:00
2023-01-25 18:08:53 +00:00
.tab.active {
border-bottom: 1px solid var(--highlight);
color: var(--font-color);
2023-01-20 18:59:08 +00:00
}
2023-01-11 20:23:19 +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
2023-01-20 18:59:08 +00:00
.tweet div .twitter-tweet>iframe {
max-height: unset;
}
2023-01-20 17:07:14 +00:00
2023-01-20 18:59:08 +00:00
@media(max-width: 720px) {
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;
}