mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
Fix up layout in preparation for complex nav
This commit is contained in:
parent
e22dba5bed
commit
79913096fb
@ -17,8 +17,12 @@ use sycamore::prelude::*;
|
|||||||
#[component]
|
#[component]
|
||||||
pub fn Header<G: Html>(cx: Scope) -> View<G> {
|
pub fn Header<G: Html>(cx: Scope) -> View<G> {
|
||||||
view! {cx,
|
view! {cx,
|
||||||
div(class="menu no-print") {
|
nav(class="no-print") {
|
||||||
h1 { "Meal Plan" }
|
h1(class="title") { "Meal Plan" }
|
||||||
|
ul {
|
||||||
|
li { a(href="/ui/login") { "Login" } }
|
||||||
|
li { a(href="https://github.com/zaphar/kitchen") { "Github" } }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,10 +52,6 @@ pub fn TabbedView<G: Html>(cx: Scope, state: TabState<G>) -> View<G> {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
ul {
|
|
||||||
li { a(href="/ui/login") { "Login" } " | " }
|
|
||||||
li { a(href="https://github.com/zaphar/kitchen") { "Github" } }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
main(class=".conatiner-fluid") {
|
main(class=".conatiner-fluid") {
|
||||||
(inner)
|
(inner)
|
||||||
|
@ -13,6 +13,13 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
:root {
|
||||||
|
--tab-border-color: black;
|
||||||
|
--tab-border-width: 3px;
|
||||||
|
--tab-border-style: solid;
|
||||||
|
--tab-border-radius: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
|
||||||
.no-print,
|
.no-print,
|
||||||
@ -31,27 +38,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.destructive {
|
|
||||||
background-color: firebrick !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--tab-border-color: black;
|
|
||||||
--tab-border-width: 3px;
|
|
||||||
--tab-border-style: solid;
|
|
||||||
--tab-border-radius: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
--tab-border-color: lightgrey;
|
--tab-border-color: lightgrey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
padding: 10px;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
nav>ul.tabs>li {
|
nav>ul.tabs>li {
|
||||||
border-style: none;
|
border-style: none;
|
||||||
border-bottom-style: var(--tab-border-style);
|
border-bottom-style: var(--tab-border-style);
|
||||||
@ -66,4 +63,17 @@ nav>ul.tabs>li.selected {
|
|||||||
border-top-left-radius: var(--tab-border-radius);
|
border-top-left-radius: var(--tab-border-radius);
|
||||||
border-top-right-radius: var(--tab-border-radius);
|
border-top-right-radius: var(--tab-border-radius);
|
||||||
border-bottom-style: none;
|
border-bottom-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav>h1 {
|
||||||
|
margin: 0px;
|
||||||
|
margin-left: 3px;
|
||||||
|
margin-right: 3px;
|
||||||
|
display: inline;
|
||||||
|
vertical-align: middle;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.destructive {
|
||||||
|
background-color: firebrick !important;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user