Skip to content

Commit

Permalink
ulをdivで囲む
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Jul 18, 2024
1 parent 6d9b8d0 commit f98a3f7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,21 @@ body p{
100% {left: -100%;}
}

.main-ul {
width: 100%;
}

@media screen and (max-width: 999px) {
html {
font-size: 0.9rem;
}

.alldiv {
width: 98%;
width: 100%;
}

.main-ul {
width: 96%;
}

p {
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
write_lines.append('<meta charset="utf-8">\n')
write_lines.append('<meta name="viewport" content="width=device-width, initial-scale=1.0">\n')
write_lines.append('<link rel="icon" href="https://yusukekato.jp/images/favicon.png">\n')
write_lines.append('<link rel="stylesheet" href="https://yusukekato.jp/css/style.css?version=47">\n')
write_lines.append('<link rel="stylesheet" href="https://yusukekato.jp/css/style.css?version=48">\n')
write_lines.append('<link rel="preconnect" href="https://fonts.googleapis.com">\n')
write_lines.append('<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n')
write_lines.append('<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:[email protected]&display=swap" rel="stylesheet">\n')
Expand Down
4 changes: 3 additions & 1 deletion scripts/md2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
write_lines.append('<meta charset="utf-8">\n')
write_lines.append('<meta name="viewport" content="width=device-width, initial-scale=1.0">\n')
write_lines.append('<link rel="icon" href="https://yusukekato.jp/images/favicon.png">\n')
write_lines.append('<link rel="stylesheet" href="https://yusukekato.jp/css/style.css?version=47">\n')
write_lines.append('<link rel="stylesheet" href="https://yusukekato.jp/css/style.css?version=48">\n')
write_lines.append('<link rel="preconnect" href="https://fonts.googleapis.com">\n')
write_lines.append('<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n')
write_lines.append('<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:[email protected]&display=swap" rel="stylesheet">\n')
Expand Down Expand Up @@ -130,6 +130,7 @@
i -= 1
heading_loop_flag = False
elif re.match('^-.+', read_lines[i]): # 箇条書きを変換
write_lines.append('<div class="main-ul">\n')
write_lines.append('<ul>\n')
write_lines.append('<li>' + read_lines[i][2:] + '</li>\n')
ul_loop_flag = True
Expand All @@ -143,6 +144,7 @@
elif re.match('^-.+', read_lines[i]):
write_lines.append('<li>' + read_lines[i][2:] + '</li>\n')
write_lines.append('</ul>\n')
write_lines.append('</div>\n')
elif re.match('^```.*', read_lines[i]): # ソースコードを変換
write_lines.append('<div class="codeClass"><pre><code>' + read_lines[i+1].replace('<', '&lt;').replace('>', '&gt;') + '\n')
i += 1
Expand Down

0 comments on commit f98a3f7

Please sign in to comment.