Skip to content

Commit

Permalink
fix style for PDF printing and bump version to re-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mhfan committed Dec 17, 2024
1 parent 1d718a2 commit 0c352c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[package]
edition = "2021"
name = "inperiod"
version = "0.1.3"
version = "0.1.4"
license = "MIT OR Apache-2.0"
authors = ["MeiHui FAN <mhfan@ustc.edu>"]
homepage = "https://mhfan.github.io/inperiod"
Expand Down
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ fn main() {
fn App() -> Element {
let print_style = r"@media print {
@page { size: A4 landscape; margin: 0; } /* 设置页面的方向为横向并清除默认页边距 */
body { width: 297mm; margin: auto; } /* 设置主体样式以适应横向打印 */
body { width: 297mm; margin: 0; } /* 设置主体样式以适应横向打印 */
.non-printable { display: none; } /* 隐藏非打印元素 */
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
}";

use dioxus::document::{Link, Title, Style/*, Script, Meta*/};
Expand Down Expand Up @@ -313,7 +314,7 @@ static COLORING_ORIGINS: [(&str, &str); CosmicOrigin::MAX as usize] = [ // stric

let metal_bound = match ordinal {
1 => "shadow-black-b", 118 => "shadow-black-l", 4 => "shadow-[0_-2px_black]",
21|39|71 => "shadow-spread-2 shadow-amber-300", // rare earth metals indication
//21|39|71 => "shadow-spread-2 shadow-amber-300", // rare earth metals indication
2 => "shadow-[0_2px_#fca5a5]", // indicate He is of s-block, shadow-red-300
5|14|33|52|85 => "shadow-black-bl", _ => "",
};
Expand Down

0 comments on commit 0c352c4

Please sign in to comment.