-
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; | ||
} | ||
|
||
#view-recipe-image { | ||
flex: 1 1 420rem; | ||
max-height: 400rem; | ||
margin: 0; | ||
} | ||
|
||
#view-recipe-header { | ||
width: fit-content; | ||
margin: 1rem auto; | ||
text-align: center; | ||
} | ||
|
||
#view-recipe-header h4 { | ||
display: block; | ||
} | ||
|
||
#view-recipe-attributes { | ||
display: flex; | ||
width: fit-content; | ||
max-width: 41rem; | ||
margin: 1rem auto; | ||
gap: 2rem; | ||
justify-content: space-evenly; | ||
} | ||
|
||
#view-recipe-attr { | ||
gap: 0.5rem; | ||
white-space: nowrap; | ||
} | ||
|
||
#view-recipe-summary { | ||
text-align: center; | ||
width: fit-content; | ||
max-width: 41rem; | ||
margin: 1rem auto; | ||
} | ||
|
||
#view-recipe-content { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
gap: 1rem; | ||
width: fit-content; | ||
max-width: 41rem; | ||
margin: 1rem auto; | ||
} | ||
|
||
#view-recipe-nutrition { | ||
margin-top: 56rem; | ||
} | ||
|
||
#view-recipe-nutrition-table { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
} | ||
|
||
/* Ugly CSS, but does the job. */ | ||
#view-recipe-nutrition-header { | ||
position: absolute; | ||
top: -32rem; | ||
left: 0rem; | ||
} | ||
|
||
#view-recipe-nutrition table { | ||
width: 320rem; | ||
table-layout: fixed; | ||
} | ||
@media only screen and (min-width: 704px) { | ||
#view-recipe-nutrition table { | ||
width: 328rem; | ||
table-layout: fixed; | ||
} | ||
} | ||
|
||
#view-recipe-servings { | ||
margin: 16rem 0; | ||
max-widtH: 120rem; | ||
} | ||
|
||
#view-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