-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43e8b6d
commit ab83fe3
Showing
5 changed files
with
337 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
177 changes: 102 additions & 75 deletions
177
packages/@justweb3/ui/src/lib/ui/Dialog/Dialog.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,120 +1,147 @@ | ||
/* Overlay styles */ | ||
.overlay { | ||
position: fixed; | ||
inset: 0; | ||
transition: backdrop-filter 100ms ease; | ||
backdrop-filter: blur(4px); | ||
-webkit-backdrop-filter: blur(4px); | ||
animation: overlayShow 700ms cubic-bezier(0.16, 1, 0.3, 1); | ||
position: fixed; | ||
inset: 0; | ||
transition: backdrop-filter 100ms ease; | ||
backdrop-filter: blur(4px); | ||
-webkit-backdrop-filter: blur(4px); | ||
animation: overlayShow 700ms cubic-bezier(0.16, 1, 0.3, 1); | ||
} | ||
|
||
@keyframes overlayShow { | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
/* Content styles */ | ||
.content { | ||
background-color: var(--justweb3-background-color); | ||
box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.33); | ||
position: fixed; | ||
z-index: 9999; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
padding: 40px; | ||
transition: all 0.4s ease-in-out; | ||
animation: contentShow 700ms cubic-bezier(0.16, 1, 0.3, 1); | ||
border-radius: 24px; | ||
width: fit-content; | ||
max-width: min(1200px, 90vw); | ||
min-width: 390px; | ||
min-height: 200px; | ||
max-height: 80vh; | ||
background-color: var(--justweb3-background-color); | ||
box-shadow: 2px 4px 20px 0px rgba(0, 0, 0, 0.33); | ||
position: fixed; | ||
z-index: 9999; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
padding: 40px; | ||
transition: all 0.4s ease-in-out; | ||
animation: contentShow 700ms cubic-bezier(0.16, 1, 0.3, 1); | ||
border-radius: 24px; | ||
width: fit-content; | ||
max-width: min(1200px, 90vw); | ||
min-width: 390px; | ||
min-height: 200px; | ||
max-height: 80vh; | ||
} | ||
|
||
.content:focus { | ||
outline: none; | ||
outline: none; | ||
} | ||
|
||
@keyframes contentShow { | ||
from { | ||
opacity: 0; | ||
transform: translate(-50%, -50%) scale(0.6); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translate(-50%, -50%) scale(1); | ||
} | ||
from { | ||
opacity: 0; | ||
transform: translate(-50%, -50%) scale(0.6); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translate(-50%, -50%) scale(1); | ||
} | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.content { | ||
width: 100vw; | ||
max-width: 100vw; | ||
min-width: 100vw; | ||
max-height: 100vh; | ||
border-radius: 0; | ||
} | ||
@keyframes slideUp { | ||
from { | ||
transform: translateY(100%); | ||
} | ||
to { | ||
transform: translateY(0); | ||
} | ||
} | ||
|
||
/* Fullscreen modifier */ | ||
.fullScreen { | ||
border-radius: 0; | ||
@keyframes slideDown { | ||
from { | ||
transform: translateY(0); | ||
} | ||
to { | ||
transform: translateY(100%); | ||
} | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.content { | ||
width: 100vw; | ||
max-width: 100vw; | ||
max-width: 100vw !important; | ||
min-width: 100vw; | ||
min-height: 100vh; | ||
max-height: 100vh; | ||
border-radius: 24px 24px 0 0; | ||
bottom: 0; | ||
left: 0; | ||
top: auto; | ||
transform: translateY(0); | ||
animation: slideUp 550ms cubic-bezier(0.16, 1, 0.3, 1); | ||
} | ||
|
||
.content[data-state='closed'] { | ||
animation: slideDown 550ms cubic-bezier(0.16, 1, 0.3, 1); | ||
} | ||
} | ||
|
||
/* Fullscreen modifier */ | ||
.fullScreen { | ||
border-radius: 0; | ||
width: 100vw; | ||
max-width: 100vw; | ||
min-width: 100vw; | ||
min-height: 100vh; | ||
max-height: 100vh; | ||
} | ||
|
||
/* Title styles */ | ||
.title { | ||
margin: 0; | ||
font-weight: 500; | ||
font-family: var(--justweb3-font-family), serif; | ||
color: black; | ||
font-size: 17px; | ||
margin: 0; | ||
font-weight: 500; | ||
font-family: var(--justweb3-font-family), serif; | ||
color: black; | ||
font-size: 17px; | ||
} | ||
|
||
/* Description styles */ | ||
.description { | ||
margin: 10px 0 20px; | ||
font-family: var(--justweb3-font-family), serif; | ||
color: #6b7280; | ||
font-size: 15px; | ||
line-height: 1.5; | ||
margin: 10px 0 20px; | ||
font-family: var(--justweb3-font-family), serif; | ||
color: #6b7280; | ||
font-size: 15px; | ||
line-height: 1.5; | ||
} | ||
|
||
/* DialogHeader styles */ | ||
.dialogHeader { | ||
display: flex; | ||
flex-direction: column; | ||
text-align: center; | ||
display: flex; | ||
flex-direction: column; | ||
text-align: center; | ||
} | ||
|
||
.dialogHeader > * + * { | ||
margin-top: 0.375rem; /* Equivalent to space-y-1.5 in Tailwind CSS */ | ||
margin-top: 0.375rem; /* Equivalent to space-y-1.5 in Tailwind CSS */ | ||
} | ||
|
||
/* DialogFooter styles */ | ||
.dialogFooter { | ||
display: flex; | ||
flex-direction: column-reverse; | ||
padding-top: 20px; | ||
display: flex; | ||
flex-direction: column-reverse; | ||
padding-top: 20px; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.dialogFooter { | ||
flex-direction: row; | ||
justify-content: flex-end; | ||
} | ||
|
||
.dialogFooter > * + * { | ||
margin-left: 8px; /* Equivalent to space-x-2 in Tailwind CSS */ | ||
} | ||
.dialogFooter { | ||
flex-direction: row; | ||
justify-content: flex-end; | ||
} | ||
|
||
.dialogFooter > * + * { | ||
margin-left: 8px; /* Equivalent to space-x-2 in Tailwind CSS */ | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/@justweb3/widget/src/lib/components/JustWeb3Button/JustWeb3Button.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.desktopSection { | ||
display: none; | ||
} | ||
|
||
.mobileSection { | ||
display: block; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.desktopSection { | ||
display: block; | ||
} | ||
|
||
.mobileSection { | ||
display: none; | ||
} | ||
} |
Oops, something went wrong.