-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dark mode, colors, prep for loading spinner
First animations
- Loading branch information
1 parent
2e65b62
commit d97064d
Showing
12 changed files
with
190 additions
and
114 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
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
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
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
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
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,6 +1,17 @@ | ||
.main { | ||
display: flex; | ||
flex-direction: row; | ||
width: 100%; | ||
flex-direction: column; | ||
justify-content: space-around; | ||
margin: 0 calc(var(--size-base) * 4); | ||
} | ||
|
||
.main section { | ||
width: 100%; | ||
} | ||
|
||
@media (min-width: 500px) { | ||
.main { | ||
width: 500px; | ||
margin: 0 auto; | ||
} | ||
} |
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
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,23 +1,41 @@ | ||
.button { | ||
cursor: pointer; | ||
--color-pct: 100%; | ||
--color-button: color-mix( | ||
in lch, | ||
var(--color-contrast) var(--color-pct), | ||
white | ||
); | ||
border-radius: var(--size-base); | ||
padding: var(--size-base) calc(2 * var(--size-base)); | ||
background: var(--color-button); | ||
border: var(--color-button) solid 1.5px; | ||
box-shadow: var(--color-button) 1px 2px 5px 2px; | ||
.response { | ||
min-height: 55px; | ||
max-height: 235px; | ||
overflow-y: scroll; | ||
transition: max-height 1s ease-in, min-height 1s ease-in; | ||
|
||
&.generating { | ||
max-height: 35px; | ||
min-height: 35px; | ||
} | ||
} | ||
|
||
.spinner { | ||
margin: 25px auto; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.button:hover, | ||
.button:focus { | ||
--color-pct: 95%; | ||
.spinner:before { | ||
content: " "; | ||
display: block; | ||
width: 25px; | ||
height: 25px; | ||
padding: 25px; | ||
--border: 5px solid var(--color-base); | ||
border: var(--border); | ||
border-bottom: none; | ||
border-radius: 50%; | ||
rotate: 0deg; | ||
animation: rotation 0.8s infinite; | ||
} | ||
|
||
.button:active { | ||
--color-pct: 90%; | ||
@keyframes rotation { | ||
from { | ||
rotate: 0deg; | ||
} | ||
|
||
to { | ||
rotate: 360deg; | ||
} | ||
} |
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
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
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
Oops, something went wrong.