update zutatenliste
This commit is contained in:
115
style.css
Normal file
115
style.css
Normal file
@@ -0,0 +1,115 @@
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
margin: 0;
|
||||
}
|
||||
.window {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 2rem;
|
||||
margin: 1rem;
|
||||
margin-top: 0;
|
||||
@media (max-width: 650px) {
|
||||
flex-direction: column;
|
||||
}
|
||||
.recipe {
|
||||
min-width: 15rem;
|
||||
flex-grow: 1;
|
||||
position: sticky;
|
||||
position: -webkit-sticky;
|
||||
align-self: flex-start;
|
||||
background: white;
|
||||
top: 6rem;
|
||||
.title {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.actionbar {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background: white;
|
||||
padding: 1rem;
|
||||
border-bottom: 1pt lightgray solid;
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.title {
|
||||
margin: 0;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
.grid {
|
||||
width: min(100%, 806px);
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
|
||||
.grid-element {
|
||||
min-height: 1rem;
|
||||
& > .zutat {
|
||||
border-radius: 0.5rem;
|
||||
padding: 1rem 0.5rem;
|
||||
box-shadow: 3px 3px 2px 0px rgba(0, 0, 0, 0.2);
|
||||
border: 1pt solid silver;
|
||||
border-bottom: none;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.flexbox {
|
||||
margin-top: 0.5rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: #666;
|
||||
.bold {
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.grid-element:has(.heading) {
|
||||
grid-column: -1/1;
|
||||
border-bottom: 1pt solid hsl(0, 0%, 80%);
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 0.5rem;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
outline: 2pt solid rgba(0, 0, 0, 0.2);
|
||||
border: 1pt solid silver;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
&.plus,
|
||||
&.minus {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
}
|
||||
&.plus {
|
||||
outline-color: oklch(66.442% 0.22551 142.585 / 0.3);
|
||||
}
|
||||
&.minus {
|
||||
outline-color: oklch(66.442% 0.22551 41.6 / 0.3);
|
||||
}
|
||||
}
|
||||
button:focus,
|
||||
button:hover {
|
||||
transition: 200ms background-color ease;
|
||||
outline-offset: -1pt;
|
||||
background-color: rgba(0, 0, 0, 0.025);
|
||||
}
|
||||
|
||||
.search {
|
||||
border-radius: 0.5rem;
|
||||
max-width: 300px;
|
||||
padding: .2rem;
|
||||
/* border: 1pt solid silver; */
|
||||
}
|
||||
Reference in New Issue
Block a user