Clean up the outline view #19

Merged
glen merged 23 commits from outline-cleanup_on_main into main 2024-11-15 03:32:48 +00:00
3 changed files with 10 additions and 0 deletions
Showing only changes of commit 4ecb39e73a - Show all commits

View File

@ -4,6 +4,8 @@
<meta charset="utf-8"/>
<title>dyna3</title>
<link data-trunk rel="css" href="main.css"/>
<link href="https://fonts.bunny.net/css?family=lato:ital,wght@0,400;1,400&display=swap" rel="stylesheet">
<link href="https://fonts.bunny.net/css?family=noto-emoji:wght@400&text=%f0%9f%94%97%e2%9a%a0&display=swap" rel="stylesheet">
</head>
<body></body>
</html>

View File

@ -2,6 +2,7 @@ body {
margin: 0px;
color: #fcfcfc;
background-color: #222;
font-family: 'Lato';
}
/* sidebar */
@ -33,6 +34,11 @@ body {
font-size: large;
}
/* KLUDGE */
#add-remove > button.emoji {
font-family: 'Noto Emoji';
}
/* outline */
#outline {
@ -127,6 +133,7 @@ details[open]:has(li) .elt-switch::after {
width: 20px;
padding-left: 4px;
text-align: center;
font-family: 'Noto Emoji';
font-style: normal;
}

View File

@ -202,6 +202,7 @@ pub fn AddRemove() -> View {
}
) { "+" }
button(
class="emoji", /* KLUDGE */
disabled={
let state = use_context::<AppState>();
state.selection.with(|sel| sel.len() != 2)