Skip to content

Commit

Permalink
修訂樣式
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJui committed Sep 29, 2024
1 parent 2ce5fd2 commit 5766a83
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 6 deletions.
68 changes: 64 additions & 4 deletions docs/assets/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

body {
/* width: 100%; */
margin: 10px auto;
margin: 0 auto;
width: 100%;
color: #333;
line-height: 2.0;
Expand All @@ -25,7 +25,7 @@ main {
padding: 40px 20px 20px;
color: #333;
line-height: 1.8;
width: 90%;
width: 95%;
margin: 0 auto;
}

Expand Down Expand Up @@ -54,10 +54,33 @@ h1 {

#articles {
font-weight: bold;
width: 95%;
margin: 0 auto;
}

p {
margin-bottom: 50px;
line-height: 2em;
}

header {
/* display: block; */
border-top: #00c4ab 5px solid;
text-align: center;
background: url(../picts/bg_header.png) #e6e6e6;
}

header h1 {
padding: 0 10px 25px;
font-family: 'Noto Serif TC', serif;
font-size: 32pt;
font-weight: bold;
}

.title {
font-size: 1.2em;
font-family: 'Noto Sans TC', serif;
color: #0066cc;
font-size: 1.0em;
letter-spacing: 2px;
text-align: center;
}
Expand Down Expand Up @@ -139,6 +162,42 @@ rtc {
.zhu_yin {
font-family: "Noto Serif TC";
letter-spacing: 0.2em;
/* 控制漢字之間的間距 */
display: inline-flex;
/* 保證所有標注都在同一行 */
white-space: nowrap;
/* 防止元素換行 */
}

.zhu_yin ruby {
writing-mode: vertical-lr;
/* 垂直排列方音符號 */
text-orientation: upright;
/* 直立顯示符號 */
display: inline-flex;
/* 保持元素內部的靈活布局 */
white-space: nowrap;
/* 防止 Ruby 標籤換行 */
vertical-align: middle;
/* 保持漢字與符號的垂直對齊 */
}

.zhu_yin rt {
font-family: BopomofoRuby;
color: #B94B6A;
font-size: 35%;
/* 適當調整符號字體大小,避免過大導致布局錯亂 */
letter-spacing: 0.1em;
/* 調整符號之間的間距,讓排列更清晰 */
vertical-align: middle;
/* 保證符號與漢字的對齊 */
display: inline-block;
/* 防止行內元素換行 */
}

/* .zhu_yin {
font-family: "Noto Serif TC";
letter-spacing: 0.2em;
}
.zhu_yin ruby {
Expand All @@ -151,8 +210,9 @@ rtc {
color: #B94B6A;
font-size: 40%;
letter-spacing: 0;
}
} */

/* 標音 */
.Piau_Im {
font-family: "Noto Serif TC";
}
Expand Down
5 changes: 3 additions & 2 deletions docs/上有力量的每日祈禱文_方音符號注音.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
</head>

<body>
<div class='separator' style='clear: both'>
<div class='separator' style='clear: both; margin:0 auto; '>
<a href='圖片' style='display: block; padding: 1em 0; text-align: center'>
<img alt='上有力量的每日祈禱文' border='0' width='400' src='https://i.ytimg.com/vi/-3UiTDXJjd4/maxresdefault.jpg' />
<img alt='上有力量的每日祈禱文' border='0' width='350' src='https://i.ytimg.com/vi/-3UiTDXJjd4/maxresdefault.jpg' />
</a>
</div>
<div class='Piau_Im'>
Expand Down Expand Up @@ -45,6 +45,7 @@
<rt>ㆤˊ</rt>
<rp>)</rp>
</ruby>
<br />
<ruby>
<rb></rb>
<rp>(</rp>
Expand Down

0 comments on commit 5766a83

Please sign in to comment.