-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port recipe and login pages; improve css.
- Loading branch information
Showing
6 changed files
with
239 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import 'beercss'; | ||
import { createSignal } from 'solid-js'; | ||
|
||
import TopBar from './components/TopBar'; | ||
|
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 |
---|---|---|
@@ -0,0 +1,107 @@ | ||
section { | ||
width: 20rem; | ||
overflow: hidden; | ||
border-radius: 0; | ||
} | ||
|
||
#recipe-image { | ||
flex: 1 1 420rem; | ||
max-height: 400rem; | ||
margin: 0; | ||
} | ||
|
||
#recipe-header { | ||
width: fit-content; | ||
margin: 1rem auto; | ||
text-align: center; | ||
} | ||
|
||
#recipe-header h4 { | ||
display: block; | ||
} | ||
|
||
#recipe-attributes { | ||
display: flex; | ||
width: fit-content; | ||
max-width: 41rem; | ||
margin: 1rem auto; | ||
gap: 2rem; | ||
justify-content: space-evenly; | ||
} | ||
|
||
#recipe-attr { | ||
gap: 0.5rem; | ||
white-space: nowrap; | ||
} | ||
|
||
#recipe-summary { | ||
text-align: center; | ||
width: fit-content; | ||
max-width: 41rem; | ||
margin: 1rem auto; | ||
} | ||
|
||
#recipe-content { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
gap: 1rem; | ||
width: fit-content; | ||
max-width: 41rem; | ||
margin: 1rem auto; | ||
} | ||
|
||
#recipe-nutrition { | ||
margin-top: 56rem; | ||
} | ||
|
||
#recipe-nutrition-table { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
} | ||
|
||
/* Ugly CSS, but does the job. */ | ||
#recipe-nutrition-header { | ||
position: absolute; | ||
top: -32rem; | ||
left: 0rem; | ||
} | ||
|
||
#recipe-nutrition table { | ||
width: 320rem; | ||
table-layout: fixed; | ||
} | ||
@media only screen and (min-width: 704px) { | ||
#recipe-nutrition table { | ||
width: 328rem; | ||
table-layout: fixed; | ||
} | ||
} | ||
|
||
#recipe-servings { | ||
margin: 16rem 0; | ||
max-widtH: 120rem; | ||
} | ||
|
||
#recipe-servings-tooltip { | ||
right: -8rem; | ||
} | ||
|
||
#modal-image-zoom-close-button { | ||
float: right; | ||
} | ||
|
||
#modal-image-zoom-container { | ||
display: flex; | ||
justify-content: center; | ||
align-content: center; | ||
flex-direction: column; | ||
} | ||
|
||
#zoomed-image { | ||
width: fit-content; | ||
max-width: 100%; | ||
max-height: calc(100vh - 102rem); | ||
margin: 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