Skip to content

Commit 2fc0aed

Browse files
author
sw-yx
committed
tweak styles
1 parent 67980b3 commit 2fc0aed

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

example/src/App.tsx

+10-7
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ function App() {
2020
LOG OUT
2121
</button>
2222

23-
<h3>
24-
Or{" "}
25-
<a href="https://github.com/sw-yx/react-netlify-identity-widget" target="_blank">
26-
view the source
27-
</a>
28-
</h3>
29-
3023
<IdentityModal showDialog={dialog} onCloseDialog={() => setDialog(false)} />
3124
</header>
3225
) : (
@@ -38,6 +31,16 @@ function App() {
3831
<IdentityModal showDialog={dialog} onCloseDialog={() => setDialog(false)} />
3932
</header>
4033
)}
34+
<h3>
35+
Or{" "}
36+
<a
37+
href="https://github.com/sw-yx/react-netlify-identity-widget"
38+
target="_blank"
39+
style={{ color: "powderblue" }}
40+
>
41+
view the source
42+
</a>
43+
</h3>
4144
</div>
4245
</IdentityContextProvider>
4346
)

styles.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
[data-reach-dialog-content] {
19-
width: 50vw;
19+
/* width: 90vw; */ /* disabled for mobile */
2020
margin: 10vh auto;
2121
background: white;
2222
padding: 2rem;
@@ -145,6 +145,9 @@
145145
}
146146

147147
@media (min-width: 480px) {
148+
[data-reach-dialog-content] {
149+
width: 50vw;
150+
}
148151
.modalContainer::before {
149152
background-color: rgb(14, 30, 37);
150153
-webkit-animation: fadeIn 0.1s ease-in;

0 commit comments

Comments
 (0)