stacker.news/styles/globals.scss

921 lines
20 KiB
SCSS
Raw Normal View History

2023-07-24 18:35:05 +00:00
$primary: #FADA5E;
$secondary: #F6911D;
$danger: #c03221;
$warning: $secondary;
2023-07-24 18:35:05 +00:00
$info: #007cbe;
$success: #5c8001;
$twitter: #1da1f2;
$boost: #8c25f4;
$light: #f8f9fa;
$dark: #212529;
$nostr: #8d45dd;
2023-07-24 18:35:05 +00:00
2021-04-14 00:57:32 +00:00
$theme-colors: (
2022-07-18 21:24:28 +00:00
"primary" : #FADA5E,
2021-04-14 00:57:32 +00:00
"secondary" : #F6911D,
"danger" : #c03221,
"warning" : $secondary,
2021-04-14 00:57:32 +00:00
"info" : #007cbe,
2021-04-24 21:05:07 +00:00
"success" : #5c8001,
"twitter" : #1da1f2,
2021-10-28 19:59:53 +00:00
"boost" : #8c25f4,
2023-07-24 18:35:05 +00:00
"light": #f8f9fa,
"dark": #212529,
"grey" : #e9ecef,
2023-01-10 18:55:17 +00:00
"grey-medium" : #d2d2d2,
2023-07-24 18:35:05 +00:00
"grey-darkmode": #8c8c8c,
2023-08-15 17:41:51 +00:00
"nostr": #8d45dd
2021-04-14 00:57:32 +00:00
);
2023-08-05 00:21:51 +00:00
$body-bg: #fcfcff;
$body-bg-dark: #121214;
$body-color: #212529;
$body-color-dark: #f0f0f0;
2021-04-14 00:57:32 +00:00
$border-radius: .4rem;
$enable-transitions: false;
$enable-gradients: false;
$enable-shadows: false;
2022-07-18 21:24:28 +00:00
$btn-transition: none;
2021-05-21 22:32:21 +00:00
$form-feedback-icon-valid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M2 9h3v12H2a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1zm5.293-1.293l6.4-6.4a.5.5 0 0 1 .654-.047l.853.64a1.5 1.5 0 0 1 .553 1.57L14.6 8H21a2 2 0 0 1 2 2v2.104a2 2 0 0 1-.15.762l-3.095 7.515a1 1 0 0 1-.925.619H8a1 1 0 0 1-1-1V8.414a1 1 0 0 1 .293-.707z' fill='rgba(92, 128, 1, 1)'/%3E%3C/svg%3E");
2021-04-14 00:57:32 +00:00
$form-feedback-icon-invalid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M22 15h-3V3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1zm-5.293 1.293l-6.4 6.4a.5.5 0 0 1-.654.047L8.8 22.1a1.5 1.5 0 0 1-.553-1.57L9.4 16H3a2 2 0 0 1-2-2v-2.104a2 2 0 0 1 .15-.762L4.246 3.62A1 1 0 0 1 5.17 3H16a1 1 0 0 1 1 1v11.586a1 1 0 0 1-.293.707z' fill='rgba(192,50,33,1)'/%3E%3C/svg%3E");
$line-height-base: 1.75;
2023-07-24 18:35:05 +00:00
$input-placeholder-color: #6c757d;
2021-04-14 00:57:32 +00:00
$input-btn-padding-y: .42rem;
$input-btn-padding-x: .84rem;
2021-04-22 22:14:32 +00:00
$btn-padding-y: .42rem;
2022-07-18 21:24:28 +00:00
$btn-padding-x: 1.1rem;
2021-04-14 00:57:32 +00:00
$btn-font-weight: bold;
$btn-focus-width: 0;
2022-07-18 21:24:28 +00:00
$btn-border-width: 0;
2021-04-14 00:57:32 +00:00
$btn-focus-box-shadow: none;
2023-08-05 00:21:51 +00:00
$form-invalid-border-color: #c03221;
$form-invalid-border-color-dark: #c03221;
$form-invalid-color: #c03221;
$form-invalid-color-dark: #c03221;
2021-04-14 00:57:32 +00:00
$alert-border-width: 0;
$close-text-shadow: none;
$close-color: inherit;
$alert-border-radius: #{33% 2%} / #{11% 74%};
$link-color: #007cbe;
2023-07-24 18:35:05 +00:00
$link-decoration: none;
2023-11-21 23:32:22 +00:00
$font-size-base: .93rem;
2021-04-14 00:57:32 +00:00
$enable-responsive-font-sizes: true;
$link-hover-decoration: none;
2021-04-28 21:30:32 +00:00
$dropdown-border-color: #ced4da;
$dropdown-link-active-color: inherit;
$dropdown-link-hover-bg: transparent;
$dropdown-link-active-bg: transparent;
2022-07-18 21:24:28 +00:00
$dropdown-link-color: rgba(0, 0, 0, 0.7);
2021-04-28 21:30:32 +00:00
$dropdown-link-hover-color: rgba(0, 0, 0, 0.9);
2023-07-24 18:35:05 +00:00
$dropdown-item-padding-x: 1.5rem;
$modal-inner-padding: 2rem;
2021-04-14 00:57:32 +00:00
$container-max-widths: (
sm: 540px,
md: 720px,
lg: 900px,
2022-07-18 21:24:28 +00:00
) !default;
2021-07-01 23:51:58 +00:00
$nav-link-padding-y: .1rem;
$nav-tabs-link-active-bg: #fff;
$nav-tabs-link-hover-border-color: transparent;
$nav-tabs-link-active-border-color: #ced4da #ced4da $nav-tabs-link-active-bg;
2023-07-24 18:35:05 +00:00
$form-check-input-checked-color: var(--bs-primary);
$form-check-input-checked-bg-color: var(--bs-primary);
2023-08-05 00:21:51 +00:00
$popover-bg: var(--bs-body-bg);
2023-07-24 18:35:05 +00:00
$form-check-input-checked-color: #000;
2021-07-08 18:42:57 +00:00
$tooltip-bg: #5c8001;
2023-07-24 18:35:05 +00:00
$form-select-indicator-color: #808080;
$form-select-indicator: url("data:image/svg+xml, %3Csvg fill='#{$form-select-indicator-color}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.0006L7.75732 10.758L9.17154 9.34375L12 12.1722L14.8284 9.34375L16.2426 10.758L12 15.0006Z'%3E%3C/path%3E%3C/svg%3E%0A");
2023-08-05 00:21:51 +00:00
$form-select-indicator-dark: url("data:image/svg+xml, %3Csvg fill='#{$form-select-indicator-color}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.0006L7.75732 10.758L9.17154 9.34375L12 12.1722L14.8284 9.34375L16.2426 10.758L12 15.0006Z'%3E%3C/path%3E%3C/svg%3E%0A");
2023-07-24 18:35:05 +00:00
$form-select-bg-position: right .25rem center;
$form-select-bg-size: 1.5rem;
$popover-body-padding-y: .5rem;
$popover-max-width: 320px !default;
$popover-border-color: var(--theme-borderColor);
2023-07-25 18:32:48 +00:00
$grid-gutter-width: 2rem;
$toast-spacing: .5rem;
$btn-close-bg: none;
2021-04-14 00:57:32 +00:00
2023-11-21 23:32:22 +00:00
$accordion-padding-y: 0rem;
$accordion-padding-x: .75rem;
// $accordion-color: var(--#{$prefix}body-color) !default;
// $accordion-bg: var(--#{$prefix}body-bg) !default;
// $accordion-border-width: var(--#{$prefix}border-width) !default;
// $accordion-border-color: var(--#{$prefix}border-color) !default;
// $accordion-border-radius: var(--#{$prefix}border-radius) !default;
// $accordion-inner-border-radius: subtract($accordion-border-radius, $accordion-border-width) !default;
// $accordion-body-padding-y: $accordion-padding-y !default;
// $accordion-body-padding-x: $accordion-padding-x !default;
// $accordion-button-padding-y: $accordion-padding-y !default;
// $accordion-button-padding-x: $accordion-padding-x !default;
// $accordion-button-color: var(--#{$prefix}body-color) !default;
// $accordion-button-bg: var(--#{$prefix}accordion-bg) !default;
// $accordion-transition: $btn-transition, border-radius .15s ease !default;
// $accordion-button-focus-border-color: $input-focus-border-color !default;
// $accordion-button-focus-box-shadow: $btn-focus-box-shadow !default;
$accordion-icon-width: 2rem;
$accordion-icon-color: $form-select-indicator-color;
$accordion-icon-active-color: $form-select-indicator-color;
$accordion-icon-color-dark: $form-select-indicator-color;
$accordion-icon-active-color-dark: $form-select-indicator-color;
$accordion-button-active-bg: var(--theme-clickToContextColor);
$accordion-button-active-color: var(--bs-body-color);
$accordion-button-icon: url("data:image/svg+xml, %3Csvg fill='#{$form-select-indicator-color}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.0006L7.75732 10.758L9.17154 9.34375L12 12.1722L14.8284 9.34375L16.2426 10.758L12 15.0006Z'%3E%3C/path%3E%3C/svg%3E%0A");
$accordion-button-active-icon: $accordion-button-icon;
$accordion-button-icon-dark: $accordion-button-icon;
$accordion-button-active-icon-dark: $accordion-button-icon;
2023-08-05 00:21:51 +00:00
:root, [data-bs-theme=light] {
--theme-navLink: rgba(0, 0, 0, 0.55);
--theme-navLinkFocus: rgba(0, 0, 0, 0.7);
--theme-navLinkActive: rgba(0, 0, 0, 0.9);
--theme-borderColor: #ced4da;
--theme-inputBg: #ffffff;
--theme-inputDisabledBg: #e9ecef;
--theme-dropdownItemColor: rgba(0, 0, 0, 0.7);
--theme-dropdownItemColorHover: rgba(0, 0, 0, 0.9);
--theme-commentBg: rgba(0, 0, 0, 0.03);
--theme-clickToContextColor: rgba(0, 0, 0, 0.07);
--theme-brandColor: rgba(0, 0, 0, 0.9);
--theme-grey: #707070;
--theme-link: #007cbe;
--theme-quoteBar: rgb(206, 208, 212);
--theme-linkHover: #004a72;
--theme-linkVisited: #53758;
}
[data-bs-theme=dark] {
color-scheme: dark;
--theme-inputBg: #121211;
2023-11-21 23:32:22 +00:00
--theme-inputDisabledBg: #2d2d2d;
2023-08-05 00:21:51 +00:00
--theme-navLink: rgba(255, 255, 255, 0.55);
--theme-navLinkFocus: rgba(255, 255, 255, 0.75);
--theme-navLinkActive: rgba(255, 255, 255, 0.9);
--theme-borderColor: rgba(255, 255, 255, 0.5);
--theme-dropdownItemColor: rgba(255, 255, 255, 0.7);
--theme-dropdownItemColorHover: rgba(255, 255, 255, 0.9);
--theme-commentBg: rgba(255, 255, 255, 0.025);
--theme-clickToContextColor: rgba(255, 255, 255, 0.1);
--theme-brandColor: var(--bs-primary);
--theme-grey: #969696;
--theme-link: #2e99d1;
--theme-toolbarActive: rgba(255, 255, 255, 0.10);
--theme-toolbarHover: rgba(255, 255, 255, 0.20);
--theme-toolbar: #3e3f3f;
--theme-quoteBar: rgb(158, 159, 163);
--theme-quoteColor: rgb(141, 144, 150);
--theme-linkHover: #007cbe;
--theme-linkVisited: #56798E;
}
2023-07-24 18:35:05 +00:00
@import '../node_modules/bootstrap/scss/bootstrap.scss';
2021-04-14 00:57:32 +00:00
2023-06-02 00:34:26 +00:00
@media screen and (min-width: 899px) {
2022-07-18 21:24:28 +00:00
.table-sm th,
.table-sm td {
2021-12-16 20:02:17 +00:00
padding: .3rem .75rem;
}
.standalone {
// undo the container padding
margin-left: -16px;
}
}
2023-12-15 18:10:29 +00:00
.btn-outline-grey {
--bs-btn-color: var(--theme-grey);
--bs-btn-border-color: var(--theme-grey);
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: var(--theme-grey);
--bs-btn-hover-border-color: var(--theme-grey);
--bs-btn-focus-shadow-rgb: 233, 236, 239;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: var(--theme-grey);
--bs-btn-active-border-color: var(--theme-grey);
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
--bs-btn-disabled-color: var(--theme-grey);
--bs-btn-disabled-bg: transparent;
--bs-btn-disabled-border-color: var(--theme-grey);
--bs-gradient: none;
}
2023-09-13 01:21:59 +00:00
.text-monospace {
font-family: monospace;
}
2023-08-02 02:06:15 +00:00
#nprogress .bar {
background: var(--bs-primary) !important;
height: 2px !important;
}
.toast-body {
padding: 0.75rem 1.25rem !important;
}
2023-08-02 02:06:15 +00:00
#nprogress .peg {
box-shadow: 0 0 10px var(--bs-primary), 0 0 5px var(--bs-primary) !important;
}
.standalone {
display: none;
}
@media (display-mode: standalone) {
.standalone {
display: flex
}
2021-12-16 20:02:17 +00:00
}
2023-08-30 00:13:21 +00:00
.justify-self-center {
justify-self: center;
}
2023-08-15 17:41:51 +00:00
.text-primary svg {
fill: var(--bs-primary);
}
2023-01-10 00:33:44 +00:00
.line-height-1 {
line-height: 1;
}
2023-01-06 01:06:31 +00:00
.lexical blockquote>* {
margin-bottom: 0 !important;
}
2023-10-01 23:03:52 +00:00
.modal.fullscreen {
padding-right: 0;
background-color: color-mix(in srgb, var(--theme-inputBg) 66%, transparent);
}
.modal-dialog.fullscreen {
margin: 0;
max-width: 100vw;
max-height: 100vh;
max-height: 100svh;
background-color: transparent;
}
.modal-content.fullscreen {
border: none;
background-color: transparent;
}
.modal-body.fullscreen {
2023-10-02 00:29:07 +00:00
width: 100vw;
height: calc(100svh - 6.8rem);
2023-10-01 23:03:52 +00:00
padding: 0;
background-color: transparent;
}
.modal-close.fullscreen {
padding: 1.25rem;
}
.modal-overflow.fullscreen {
padding: 1.25rem;
margin-top: -10px;
}
Allow zapping, posting and commenting without funds or an account (#336) * Add anon zaps * Add anon comments and posts (link, discussion, poll) * Use payment hash instead of invoice id as proof of payment Our invoice IDs can be enumerated. So there is a - even though very rare - chance that an attacker could find a paid invoice which is not used yet and use it for himself. Random payment hashes prevent this. Also, since we delete invoices after use, using database IDs as proof of payments are not suitable. If a user tells us an invoice ID after we deleted it, we can no longer tell if the invoice was paid or not since the LN node only knows about payment hashes but nothing about the database IDs. * Allow pay per invoice for stackers The modal which pops up if the stacker does not have enough sats now has two options: "fund wallet" and "pay invoice" * Fix onSuccess called twice For some reason, when calling `showModal`, `useMemo` in modal.js and the code for the modal component (here: <Invoice>) is called twice. This leads to the `onSuccess` callback being called twice and one failing since the first one deletes the invoice. * Keep invoice modal open if focus is lost * Skip anon user during trust calculation * Add error handling * Skip 'invoice not found' errors * Remove duplicate insufficient funds handling * Fix insufficient funds error detection * Fix invoice amount for comments * Allow pay per invoice for bounty and job posts * Also strike on payment after short press * Fix unexpected token 'export' * Fix eslint * Remove unused id param * Fix comment copy-paste error * Rename to useInvoiceable * Fix unexpected token 'export' * Fix onConfirmation called at every render * Add invoice HMAC This prevents entities which know the invoice hash (like all LN nodes on the payment path) from using the invoice hash on SN. Only the user which created the invoice knows the HMAC and thus can use the invoice hash. * make anon posting less hidden, add anon info button explainer * Fix anon users can't zap other anon users * Always show repeat and contacts on action error * Keep track of modal stack * give anon an icon * add generic date pivot helper * make anon user's invoices expire in 5 minutes * fix forgotten find and replace * use datePivot more places * add sat amounts to invoices * reduce anon invoice expiration to 3 minutes * don't abbreviate * Fix [object Object] as error message Any errors thrown here are already objects of shape { message: string } * Fix empty invoice creation attempts I stumbled across this while checking if anons can edit their items. I monkey patched the code to make it possible (so they can see the 'edit' button) and tried to edit an item but I got this error: Variable "$amount" of required type "Int!" was not provided. I fixed this even though this function should never be called without an amount anyway. It will return a sane error in that case now. * anon func mods, e.g. inv limits * anon tips should be denormalized * remove redundant meTotalSats * correct overlay zap text for anon * exclude anon from trust graph before algo runs * remove balance limit on anon * give anon a bio and remove cowboy hat/top stackers; * make anon hat appear on profile * concat hash and hmac and call it a token * Fix localStorage cleared because error were swallowed * fix qr layout shift * restyle fund error modal * Catch invoice errors in fund error modal * invoice check backoff * anon info typo * make invoice expiration times have saner defaults * add comma to anon info * use builtin copy input label --------- Co-authored-by: ekzyis <ek@stacker.news> Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-08-11 23:50:57 +00:00
.modal-btn {
2022-03-10 19:51:26 +00:00
cursor: pointer;
display: flex;
padding-top: 1rem;
Allow zapping, posting and commenting without funds or an account (#336) * Add anon zaps * Add anon comments and posts (link, discussion, poll) * Use payment hash instead of invoice id as proof of payment Our invoice IDs can be enumerated. So there is a - even though very rare - chance that an attacker could find a paid invoice which is not used yet and use it for himself. Random payment hashes prevent this. Also, since we delete invoices after use, using database IDs as proof of payments are not suitable. If a user tells us an invoice ID after we deleted it, we can no longer tell if the invoice was paid or not since the LN node only knows about payment hashes but nothing about the database IDs. * Allow pay per invoice for stackers The modal which pops up if the stacker does not have enough sats now has two options: "fund wallet" and "pay invoice" * Fix onSuccess called twice For some reason, when calling `showModal`, `useMemo` in modal.js and the code for the modal component (here: <Invoice>) is called twice. This leads to the `onSuccess` callback being called twice and one failing since the first one deletes the invoice. * Keep invoice modal open if focus is lost * Skip anon user during trust calculation * Add error handling * Skip 'invoice not found' errors * Remove duplicate insufficient funds handling * Fix insufficient funds error detection * Fix invoice amount for comments * Allow pay per invoice for bounty and job posts * Also strike on payment after short press * Fix unexpected token 'export' * Fix eslint * Remove unused id param * Fix comment copy-paste error * Rename to useInvoiceable * Fix unexpected token 'export' * Fix onConfirmation called at every render * Add invoice HMAC This prevents entities which know the invoice hash (like all LN nodes on the payment path) from using the invoice hash on SN. Only the user which created the invoice knows the HMAC and thus can use the invoice hash. * make anon posting less hidden, add anon info button explainer * Fix anon users can't zap other anon users * Always show repeat and contacts on action error * Keep track of modal stack * give anon an icon * add generic date pivot helper * make anon user's invoices expire in 5 minutes * fix forgotten find and replace * use datePivot more places * add sat amounts to invoices * reduce anon invoice expiration to 3 minutes * don't abbreviate * Fix [object Object] as error message Any errors thrown here are already objects of shape { message: string } * Fix empty invoice creation attempts I stumbled across this while checking if anons can edit their items. I monkey patched the code to make it possible (so they can see the 'edit' button) and tried to edit an item but I got this error: Variable "$amount" of required type "Int!" was not provided. I fixed this even though this function should never be called without an amount anyway. It will return a sane error in that case now. * anon func mods, e.g. inv limits * anon tips should be denormalized * remove redundant meTotalSats * correct overlay zap text for anon * exclude anon from trust graph before algo runs * remove balance limit on anon * give anon a bio and remove cowboy hat/top stackers; * make anon hat appear on profile * concat hash and hmac and call it a token * Fix localStorage cleared because error were swallowed * fix qr layout shift * restyle fund error modal * Catch invoice errors in fund error modal * invoice check backoff * anon info typo * make invoice expiration times have saner defaults * add comma to anon info * use builtin copy input label --------- Co-authored-by: ekzyis <ek@stacker.news> Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-08-11 23:50:57 +00:00
align-items: center;
}
.modal-back {
margin-right: auto;
padding-left: 1.5rem;
}
.modal-close {
margin-left: auto;
2022-03-10 19:51:26 +00:00
padding-right: 1.5rem;
font-family: "lightning";
font-size: 160%;
2022-03-10 19:51:26 +00:00
line-height: 1rem;
}
.modal-close:hover {
opacity: 0.7;
}
2022-07-18 21:24:28 +00:00
.modal-close+.modal-body {
2022-03-10 19:51:26 +00:00
padding-top: 0.5rem;
}
.text-muted {
color: var(--theme-grey) !important;
}
2022-07-18 21:24:28 +00:00
ol,
ul,
dl {
2022-02-17 17:23:43 +00:00
padding-inline-start: 2rem;
}
2022-02-03 22:01:42 +00:00
mark {
background-color: #fada5e5e;
padding: 0 0.2rem;
2023-08-05 00:21:51 +00:00
color: var(--bs-body-color);
2022-02-03 22:01:42 +00:00
}
2022-07-18 21:24:28 +00:00
.table-sm th,
.table-sm td {
2021-12-15 16:50:11 +00:00
line-height: 1.2rem;
}
2022-01-20 20:22:10 +00:00
.twitter-tweet {
margin-top: 0 !important;
margin-bottom: 0 !important;
padding-right: 12px;
}
.twitter-tweet iframe {
width: 100% !important;
}
2023-07-24 18:35:05 +00:00
.btn-twitter, .btn-twitter:hover, .btn-twitter:active {
color: #ffffff !important;
2021-12-16 17:27:12 +00:00
}
.btn-nostr, .btn-nostr:hover, .btn-nostr:active {
fill: #ffffff !important;
stroke: #ffffff !important;
stroke-miterlimit: 10;
stroke-width: 6px;
}
.btn-outline-grey-darkmode:hover, .btn-outline-grey-darkmode:active {
color: #ffffff !important;
}
2021-12-15 16:50:11 +00:00
.table {
2023-08-05 00:21:51 +00:00
color: var(--bs-body-color);
background-color: var(--bs-body-bg);
2021-12-15 16:50:11 +00:00
}
2022-07-18 21:24:28 +00:00
.table th,
.table td,
.table thead th {
2021-12-15 16:50:11 +00:00
border-color: var(--theme-borderColor);
}
2021-12-16 20:02:17 +00:00
.table-hover tbody tr:hover {
2023-08-05 00:21:51 +00:00
color: var(--bs-body-color);
2021-12-16 20:02:17 +00:00
background-color: var(--theme-clickToContextColor);
}
2023-07-06 21:53:48 +00:00
html, body {
2023-08-05 00:21:51 +00:00
background: var(--bs-body-bg) !important;
color: var(--bs-body-color) !important;
2021-05-05 18:13:14 +00:00
min-height: 100vh;
2023-05-01 20:58:30 +00:00
min-height: 100svh;
2021-05-05 18:13:14 +00:00
}
a {
color: var(--theme-link);
}
a:hover {
color: var(--theme-linkHover);
}
2022-07-18 21:24:28 +00:00
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
2021-11-09 22:43:56 +00:00
color: inherit;
background-color: var(--theme-inputBg);
border-color: var(--theme-borderColor);
border-bottom-color: var(--theme-inputBg);
}
2023-07-24 18:35:05 +00:00
select,
2023-01-05 19:24:09 +00:00
div[contenteditable],
2021-11-09 22:43:56 +00:00
.form-control {
background-color: var(--theme-inputBg);
2023-08-05 00:21:51 +00:00
color: var(--bs-body-color);
2021-11-09 22:43:56 +00:00
border-color: var(--theme-borderColor);
}
2023-07-24 18:35:05 +00:00
.form-group {
margin-bottom: 1rem;
}
2023-05-01 20:58:30 +00:00
2023-07-24 18:35:05 +00:00
select.form-select {
2023-05-01 20:58:30 +00:00
background-color: var(--theme-clickToContextColor);
color: var(--theme-dropdownItemColor);
font-weight: bold;
border: none;
2023-07-24 18:35:05 +00:00
display: inline-block;
width: 100%;
height: calc(1.5em + 0.5rem + 2px);
padding: 0.25rem 1.84rem 0.25rem 0.5rem;
font-size: .7875rem;
vertical-align: middle;
border-radius: 0.4rem;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
select.form-select option {
// fix dropdown items not visible in darkmode on some browsers
color: rgba(0, 0, 0, 0.9);
}
2023-07-24 18:35:05 +00:00
select:focus {
2023-05-01 20:58:30 +00:00
border-color: none !important;
box-shadow: none !important;
2023-07-24 18:35:05 +00:00
outline: none !important;
2023-05-01 20:58:30 +00:00
}
2023-01-05 19:24:09 +00:00
div[contenteditable]:focus,
2021-11-09 22:43:56 +00:00
.form-control:focus {
2022-07-18 21:24:28 +00:00
background-color: var(--theme-inputBg);
2023-08-05 00:21:51 +00:00
color: var(--bs-body-color);
2023-01-05 19:24:09 +00:00
outline: 0;
box-shadow: 0 0 0 0.2rem rgb(250 218 94 / 25%);
2021-11-09 22:43:56 +00:00
}
2023-01-05 19:24:09 +00:00
div[contenteditable]:disabled,
2022-07-18 21:24:28 +00:00
.form-control:disabled,
.form-control[readonly] {
2021-11-09 23:13:34 +00:00
background-color: var(--theme-inputDisabledBg);
2021-11-09 22:43:56 +00:00
border-color: var(--theme-borderColor);
2023-07-27 00:18:42 +00:00
color: var(--theme-borderColor);
2021-11-09 22:43:56 +00:00
opacity: 1;
}
.clickToContext {
border-radius: .4rem;
2021-11-12 22:39:52 +00:00
padding: 0;
2021-11-09 22:43:56 +00:00
cursor: pointer;
}
2023-05-01 20:58:30 +00:00
.py-half {
padding-top: .125rem;
padding-bottom: .125rem;
}
2021-11-09 22:43:56 +00:00
.clickToContext:hover {
background-color: var(--theme-clickToContextColor);
}
2021-12-06 16:32:06 +00:00
.btn-primary svg {
fill: #212529;
}
2023-01-10 00:33:44 +00:00
.btn-grey svg {
fill: #212529;
}
2023-01-18 18:49:20 +00:00
.btn-grey-medium svg {
fill: #212529;
}
2021-11-09 22:43:56 +00:00
.modal-content {
2021-11-09 23:13:34 +00:00
background-color: var(--theme-inputBg);
2021-11-09 22:43:56 +00:00
border-color: var(--theme-borderColor);
}
.nav-link:not(.text-success, .text-warning) {
2021-11-09 22:43:56 +00:00
color: var(--theme-navLink) !important;
}
.nav-link:not(.text-success, .text-warning):hover,
.nav-link:not(.text-success, .text-warning):focus {
2021-11-09 22:43:56 +00:00
color: var(--theme-navLinkFocus) !important;
}
.nav-dropdown-toggle .btn-link {
color: var(--theme-navLink) !important;
}
.nav-dropdown-toggle .btn-link[aria-expanded="true"] {
color: var(--theme-navLinkFocus) !important;
}
.dropdown-menu {
2021-11-09 23:13:34 +00:00
background-color: var(--theme-inputBg);
2021-11-09 22:43:56 +00:00
border: 1px solid var(--theme-borderColor);
2022-07-18 21:24:28 +00:00
max-width: 90vw;
2022-09-29 20:20:38 +00:00
overflow: auto;
2021-11-09 22:43:56 +00:00
}
.dropdown-item {
2023-01-05 19:24:09 +00:00
color: var(--theme-dropdownItemColor) !important;
2021-11-09 22:43:56 +00:00
}
.dropdown-item:hover {
2023-01-05 19:24:09 +00:00
color: var(--theme-dropdownItemColorHover) !important;
2021-11-09 22:43:56 +00:00
}
.dropdown-item.active {
2023-01-05 19:24:09 +00:00
color: var(--theme-brandColor) !important;
2023-07-24 18:35:05 +00:00
text-shadow: 0 0 10px var(--bs-primary);
2021-11-09 22:43:56 +00:00
}
.dropdown-divider {
2021-11-09 22:43:56 +00:00
border-top: 1px solid var(--theme-borderColor);
}
.theme {
cursor: pointer;
fill: var(--theme-dropdownItemColor);
}
.theme:hover {
fill: var(--theme-dropdownItemColorHover);
}
2021-06-02 23:15:28 +00:00
#__next {
display: flex;
flex-direction: column;
min-height: 100vh;
2023-05-01 20:58:30 +00:00
min-height: 100svh;
2021-06-02 23:15:28 +00:00
}
footer {
margin-top: auto;
display: flex;
width: 100%;
align-items: center;
justify-content: center;
2021-06-30 23:01:28 +00:00
text-align: center;
}
2021-10-29 16:02:26 +00:00
.text-boost-glow {
color: #8c25f4;
filter: drop-shadow(0 0 7px #8c25f4);
}
2021-06-30 23:01:28 +00:00
.text-twitter svg {
fill: #1da1f2 !important;
}
.text-muted svg {
fill: var(--theme-grey);
2021-06-02 23:15:28 +00:00
}
2021-11-04 23:07:41 +00:00
.pointer {
cursor: pointer;
}
2021-05-06 22:01:48 +00:00
@media screen and (max-width: 767px) {
2022-07-18 21:24:28 +00:00
input,
textarea,
.form-control,
.form-control:focus,
2023-01-05 19:24:09 +00:00
div[contenteditable],
div[contenteditable]:focus,
2022-07-18 21:24:28 +00:00
.input-group-text {
2021-05-06 22:01:48 +00:00
font-size: 1rem !important;
}
}
2023-07-24 18:35:05 +00:00
.input-group-text {
background-color: var(--theme-clickToContextColor);
border-color: var(--theme-borderColor);
2023-08-05 00:21:51 +00:00
color: var(--bs-body-color);
2023-07-24 18:35:05 +00:00
}
2023-01-05 19:24:09 +00:00
textarea.form-control,
div[contenteditable] {
2021-11-12 22:39:52 +00:00
line-height: 1rem;
}
2021-07-01 23:51:58 +00:00
.nav-tabs {
border-bottom: 0;
}
.nav-tabs .nav-link {
font-size: 80%;
color: #6c757d;
z-index: 100;
position: relative;
2021-07-02 00:05:35 +00:00
border-bottom: 0;
2021-07-01 23:51:58 +00:00
}
.nav-tabs .nav-link.active {
height: 100%;
}
2021-04-14 00:57:32 +00:00
.form-label {
font-size: 92%;
font-weight: bold;
}
.form-label .text-muted {
font-weight: normal;
}
.alert-dismissible .btn-close {
font-weight: 300;
font-family: "lightning";
font-size: 150%;
line-height: 1;
2021-10-08 14:35:57 +00:00
}
.popover-header.alert-dismissible .btn-close {
2021-12-09 20:40:40 +00:00
padding: .5rem !important;
}
.popover {
2023-08-05 00:21:51 +00:00
color: var(--bs-body-color);
background-color: var(--bs-body-bg);
border-color: var(--theme-borderColor);
}
.popover .arrow::before {
border-top-color: var(--theme-borderColor);
}
.popover .arrow::after {
2023-08-05 00:21:51 +00:00
border-top-color: var(--bs-body-bg);
}
.alert-dismissible .btn-close::after {
2021-10-08 14:35:57 +00:00
content: 'X';
}
.nav-item {
font-weight: 500;
}
2021-10-21 22:05:06 +00:00
.nav-dropdown-toggle .dropdown-toggle::after {
display: inline-block;
}
.nav-dropdown-toggle .dropdown .btn {
padding: 0;
}
.nav-dropdown-toggle .dropdown .dropdown-toggle {
padding-left: .75rem;
padding-right: .5rem;
}
.nav-dropdown-toggle .nav-link {
padding-right: 0 !important;
font-weight: 500;
}
2021-04-28 21:30:32 +00:00
.dropdown-toggle::after {
display: none;
}
.dropdown-item {
font-weight: 500;
}
.dropdown-item.active {
2023-07-24 18:35:05 +00:00
text-shadow: 0 0 10px var(--bs-primary);
2021-04-28 21:30:32 +00:00
}
2023-01-05 19:24:09 +00:00
div[contenteditable]:focus,
2021-04-14 00:57:32 +00:00
.form-control:focus {
2023-07-24 18:35:05 +00:00
border-color: var(--bs-primary);
2021-04-14 00:57:32 +00:00
}
.btn-secondary,
.btn-secondary:hover,
2023-07-26 16:04:19 +00:00
.btn-secondary:active,
2021-04-14 00:57:32 +00:00
.btn-secondary:disabled {
2023-07-26 16:04:19 +00:00
color: #ffffff !important;
2021-04-14 00:57:32 +00:00
}
2021-04-24 21:05:07 +00:00
.btn-twitter svg {
fill: #ffffff;
}
.btn-nostr svg {
fill: #fff;
stroke: #fff;
stroke-miterlimit: 10;
stroke-width: 6px;
}
2021-04-24 21:05:07 +00:00
.btn-dark svg {
fill: #ffffff;
}
2021-04-22 22:14:32 +00:00
.nav-link.active {
font-weight: bold;
2021-04-14 00:57:32 +00:00
}
.nav-link.active:not(.text-success, .text-warning) {
2021-11-09 22:43:56 +00:00
color: var(--theme-navLinkActive) !important;
}
2022-04-21 17:48:27 +00:00
.nav-link svg {
fill: var(--theme-navLink);
}
.nav-link.active svg {
fill: var(--theme-navLinkActive);
}
.fill-grey, .fill-muted {
fill: var(--theme-grey);
2021-05-06 21:15:22 +00:00
}
.fill-nostr {
fill: var(--bs-nostr);
}
2022-04-19 21:37:05 +00:00
.fill-lgrey {
fill: #a5a5a5;
}
2022-03-23 21:45:36 +00:00
.fill-secondary {
2023-07-24 18:35:05 +00:00
fill: var(--bs-secondary);
2022-03-23 21:45:36 +00:00
}
.fill-boost {
2023-07-24 18:35:05 +00:00
fill: var(--bs-boost);
2022-03-23 21:45:36 +00:00
}
2022-01-23 17:21:55 +00:00
.fill-white {
fill: white;
}
2021-05-11 15:52:50 +00:00
.fill-success {
2023-07-24 18:35:05 +00:00
fill: var(--bs-success);
2022-03-23 18:54:39 +00:00
}
.fill-info {
2023-07-24 18:35:05 +00:00
fill: var(--bs-info);
2021-05-11 15:52:50 +00:00
}
.fill-danger {
2023-07-24 18:35:05 +00:00
fill: var(--bs-danger);
2021-05-11 15:52:50 +00:00
}
2022-02-17 17:23:43 +00:00
.fill-theme-color {
2023-08-05 00:21:51 +00:00
fill: var(--bs-body-color);
2022-02-17 17:23:43 +00:00
}
.fill-warning {
2023-07-26 01:02:43 +00:00
fill: var(--bs-warning-text-emphasis);
}
2021-09-10 18:55:36 +00:00
.text-underline {
text-decoration: underline;
}
2021-04-14 00:57:32 +00:00
@keyframes flash {
2022-07-18 21:24:28 +00:00
from {
filter: brightness(1);
}
2% {
filter: brightness(2.3);
}
4% {
filter: brightness(1.4);
}
8% {
filter: brightness(3);
}
16% {
filter: brightness(1);
}
to {
filter: brightness(1);
}
2021-04-20 00:47:40 +00:00
}
2021-04-22 22:14:32 +00:00
.clouds {
2021-11-04 18:22:03 +00:00
background-image: url('/clouds.jpeg') !important;
2022-07-18 21:24:28 +00:00
background-color: var(--theme-grey);
2021-04-22 22:14:32 +00:00
background-repeat: repeat;
background-origin: content-box;
background-size: cover;
background-attachment: fixed;
opacity: .2;
2021-05-06 21:15:22 +00:00
}
2021-06-24 23:56:01 +00:00
.flash-it {
2021-08-17 23:59:22 +00:00
animation: flash 2s linear 1;
}
@keyframes outline {
from {
box-shadow: inset 0 0 1px 1px var(--bs-info);
}
90% {
box-shadow: inset 0 0 1px 1px var(--bs-info);
}
to {
box-shadow: inset 0 0 0px 0px var(--bs-info);
}
}
.outline-it {
animation: outline 3s linear 1;
2021-06-24 23:56:01 +00:00
}
2023-08-06 19:18:40 +00:00
.outline-new-comment {
box-shadow: inset 0 0 1px 1px rgba(0, 123, 190, 0.25);
}
.outline-new-comment.outline-new-comment-unset {
box-shadow: none;
}
.outline-new-comment .outline-new-comment {
box-shadow: none;
2023-08-06 19:18:40 +00:00
}
2021-05-06 21:15:22 +00:00
@keyframes spin {
2022-07-18 21:24:28 +00:00
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
2021-05-06 21:15:22 +00:00
}
.spin {
animation: spin 2s linear infinite;
}
.static {
background: url('/giphy.gif');
2022-07-18 21:24:28 +00:00
background-color: var(--theme-grey);
2021-05-06 21:15:22 +00:00
background-repeat: repeat;
background-origin: content-box;
background-size: cover;
background-attachment: fixed;
opacity: .1;
2021-05-11 15:52:50 +00:00
}
2022-07-18 21:24:28 +00:00
@keyframes flipX {
2021-05-11 15:52:50 +00:00
from {
2022-07-18 21:24:28 +00:00
transform: rotateX(180deg);
2021-05-11 15:52:50 +00:00
}
2022-07-18 21:24:28 +00:00
2021-05-11 15:52:50 +00:00
to {
2022-07-18 21:24:28 +00:00
transform: rotateX(-180deg);
2021-05-11 15:52:50 +00:00
}
}
.flipX {
animation: flipX 2s linear infinite;
}
2022-07-18 21:24:28 +00:00
@keyframes flipY {
2021-05-11 15:52:50 +00:00
from {
2022-07-18 21:24:28 +00:00
transform: rotateY(0deg);
2021-05-11 15:52:50 +00:00
}
2022-07-18 21:24:28 +00:00
2021-05-11 15:52:50 +00:00
to {
2022-07-18 21:24:28 +00:00
transform: rotateY(360deg);
2021-05-11 15:52:50 +00:00
}
}
.flipY {
animation: flipY 4s linear infinite;
}
2022-07-18 21:24:28 +00:00
@media (hover:none),
(hover:on-demand) {
.tooltip {
visibility: hidden;
pointer-events: none;
}
2021-12-05 17:37:55 +00:00
}
.tooltip-inner {
padding: 0.1rem 0.3rem;
2023-08-05 00:21:51 +00:00
color: #fff;
2021-12-06 15:32:33 +00:00
}
.popover {
.popover-header {
2023-08-05 00:21:51 +00:00
background-color: var(--bs-body-bg);
color: var(--bs-body-color);
}
.popover-body {
2023-08-05 00:21:51 +00:00
color: var(--bs-body-color);
2021-12-06 15:32:33 +00:00
}
}
// To satisfy assumptions of the date picker component.
.react-datepicker__navigation-icon {
line-height: normal;
}
.react-datepicker__navigation-icon::before, .react-datepicker__navigation-icon::after {
box-sizing: content-box;
}