Skip to content

Commit

Permalink
fix: styles, darkmode, descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Oct 31, 2023
1 parent aededdf commit 8acf82e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 154 deletions.
18 changes: 9 additions & 9 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ const (
)

var nip47MethodDescriptions = map[string]string{
NIP_47_GET_BALANCE_METHOD: "Read access to your wallet",
NIP_47_PAY_INVOICE_METHOD: "Send payments",
NIP_47_MAKE_INVOICE_METHOD: "Create invoices",
NIP_47_GET_BALANCE_METHOD: "Read your balance",
NIP_47_PAY_INVOICE_METHOD: "Send payments",
NIP_47_MAKE_INVOICE_METHOD: "Create invoices",
NIP_47_LOOKUP_INVOICE_METHOD: "Lookup statuses of invoices",
}

var nip47MethodIcons = map[string]string{
NIP_47_GET_BALANCE_METHOD: "wallet",
NIP_47_PAY_INVOICE_METHOD: "lightning",
NIP_47_MAKE_INVOICE_METHOD: "invoice",
NIP_47_GET_BALANCE_METHOD: "wallet",
NIP_47_PAY_INVOICE_METHOD: "lightning",
NIP_47_MAKE_INVOICE_METHOD: "invoice",
NIP_47_LOOKUP_INVOICE_METHOD: "search",
}

Expand Down Expand Up @@ -204,6 +204,6 @@ type Nip47LookupInvoiceParams struct {
}

type Nip47LookupInvoiceResponse struct {
Invoice string `json:"invoice"`
Paid bool `json:"paid"`
}
Invoice string `json:"invoice"`
Paid bool `json:"paid"`
}
139 changes: 9 additions & 130 deletions public/css/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,6 @@ select {
pointer-events: none;
}

.fixed {
position: fixed;
}

.absolute {
position: absolute;
}
Expand All @@ -729,13 +725,6 @@ select {
position: relative;
}

.inset-0 {
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}

.left-0 {
left: 0px;
}
Expand All @@ -749,21 +738,11 @@ select {
margin-right: 0.5rem;
}

.mx-4 {
margin-left: 1rem;
margin-right: 1rem;
}

.mx-auto {
margin-left: auto;
margin-right: auto;
}

.my-2 {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}

.my-4 {
margin-top: 1rem;
margin-bottom: 1rem;
Expand Down Expand Up @@ -886,10 +865,6 @@ select {
height: 1.5rem;
}

.max-h-\[90vh\] {
max-height: 90vh;
}

.w-1\/5 {
width: 20%;
}
Expand Down Expand Up @@ -926,10 +901,6 @@ select {
width: 24px;
}

.w-\[500px\] {
width: 500px;
}

.w-\[65px\] {
width: 65px;
}
Expand Down Expand Up @@ -964,10 +935,6 @@ select {
list-style-type: disc;
}

.grid-cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
Expand Down Expand Up @@ -1004,19 +971,6 @@ select {
gap: 0.5rem;
}

.gap-4 {
gap: 1rem;
}

.gap-x-8 {
-moz-column-gap: 2rem;
column-gap: 2rem;
}

.gap-y-4 {
row-gap: 1rem;
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
--tw-divide-y-reverse: 0;
border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
Expand All @@ -1032,10 +986,6 @@ select {
overflow: hidden;
}

.overflow-y-scroll {
overflow-y: scroll;
}

.rounded {
border-radius: 0.25rem;
}
Expand Down Expand Up @@ -1092,41 +1042,26 @@ select {
border-color: rgb(34 197 94 / var(--tw-border-opacity));
}

.border-red-400 {
.border-purple-700 {
--tw-border-opacity: 1;
border-color: rgb(248 113 113 / var(--tw-border-opacity));
border-color: rgb(126 34 206 / var(--tw-border-opacity));
}

.border-purple-700 {
.border-red-400 {
--tw-border-opacity: 1;
border-color: rgb(126 34 206 / var(--tw-border-opacity));
border-color: rgb(248 113 113 / var(--tw-border-opacity));
}

.border-l-gray-200 {
--tw-border-opacity: 1;
border-left-color: rgb(229 231 235 / var(--tw-border-opacity));
}

.bg-blue-50 {
--tw-bg-opacity: 1;
background-color: rgb(239 246 255 / var(--tw-bg-opacity));
}

.bg-gray-100 {
--tw-bg-opacity: 1;
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}

.bg-gray-50 {
--tw-bg-opacity: 1;
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}

.bg-gray-900 {
--tw-bg-opacity: 1;
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}

.bg-green-100 {
--tw-bg-opacity: 1;
background-color: rgb(220 252 231 / var(--tw-bg-opacity));
Expand All @@ -1137,6 +1072,11 @@ select {
background-color: rgb(255 247 237 / var(--tw-bg-opacity));
}

.bg-purple-100 {
--tw-bg-opacity: 1;
background-color: rgb(243 232 255 / var(--tw-bg-opacity));
}

.bg-purple-700 {
--tw-bg-opacity: 1;
background-color: rgb(126 34 206 / var(--tw-bg-opacity));
Expand All @@ -1147,21 +1087,6 @@ select {
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.bg-purple-500 {
--tw-bg-opacity: 1;
background-color: rgb(168 85 247 / var(--tw-bg-opacity));
}

.bg-purple-200 {
--tw-bg-opacity: 1;
background-color: rgb(233 213 255 / var(--tw-bg-opacity));
}

.bg-purple-100 {
--tw-bg-opacity: 1;
background-color: rgb(243 232 255 / var(--tw-bg-opacity));
}

.fill-current {
fill: currentColor;
}
Expand Down Expand Up @@ -1347,11 +1272,6 @@ select {
color: rgb(0 0 0 / var(--tw-text-opacity));
}

.text-blue-700 {
--tw-text-opacity: 1;
color: rgb(29 78 216 / var(--tw-text-opacity));
}

.text-gray-400 {
--tw-text-opacity: 1;
color: rgb(156 163 175 / var(--tw-text-opacity));
Expand Down Expand Up @@ -1397,11 +1317,6 @@ select {
color: rgb(194 65 12 / var(--tw-text-opacity));
}

.text-purple-600 {
--tw-text-opacity: 1;
color: rgb(147 51 234 / var(--tw-text-opacity));
}

.text-purple-700 {
--tw-text-opacity: 1;
color: rgb(126 34 206 / var(--tw-text-opacity));
Expand Down Expand Up @@ -1494,11 +1409,6 @@ select {
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-purple-500:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(168 85 247 / var(--tw-ring-opacity));
}

.focus\:ring-purple-700:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(126 34 206 / var(--tw-ring-opacity));
Expand All @@ -1519,11 +1429,6 @@ select {
border-color: rgb(255 255 255 / 0.1);
}

.dark\:border-gray-500 {
--tw-border-opacity: 1;
border-color: rgb(107 114 128 / var(--tw-border-opacity));
}

.dark\:border-gray-700 {
--tw-border-opacity: 1;
border-color: rgb(55 65 81 / var(--tw-border-opacity));
Expand All @@ -1538,11 +1443,6 @@ select {
border-color: rgb(255 255 255 / 0.1);
}

.dark\:bg-gray-600 {
--tw-bg-opacity: 1;
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
}

.dark\:bg-green-900 {
--tw-bg-opacity: 1;
background-color: rgb(20 83 45 / var(--tw-bg-opacity));
Expand Down Expand Up @@ -1633,18 +1533,10 @@ select {
color: rgb(156 163 175 / var(--tw-placeholder-opacity));
}

.dark\:ring-offset-gray-700 {
--tw-ring-offset-color: #374151;
}

.dark\:ring-offset-gray-800 {
--tw-ring-offset-color: #1f2937;
}

.dark\:\[color-scheme\:dark\] {
color-scheme: dark;
}

.dark\:hover\:bg-surface-16dp:hover {
--tw-bg-opacity: 1;
background-color: rgb(56 56 56 / var(--tw-bg-opacity));
Expand All @@ -1659,10 +1551,6 @@ select {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(147 51 234 / var(--tw-ring-opacity));
}

.dark\:focus\:ring-offset-gray-700:focus {
--tw-ring-offset-color: #374151;
}
}

@media (min-width: 640px) {
Expand Down Expand Up @@ -1718,20 +1606,11 @@ select {
flex: 1 1 0%;
}

.md\:grid-cols-5 {
grid-template-columns: repeat(5, minmax(0, 1fr));
}

.md\:px-0 {
padding-left: 0px;
padding-right: 0px;
}

.md\:px-6 {
padding-left: 1.5rem;
padding-right: 1.5rem;
}

.md\:px-8 {
padding-left: 2rem;
padding-right: 2rem;
Expand Down
File renamed without changes
File renamed without changes
Loading

0 comments on commit 8acf82e

Please sign in to comment.