From 1ebfc82f78b82b6bcc2d769ae1049579b9ccaef2 Mon Sep 17 00:00:00 2001 From: Satsuki Akiba Date: Wed, 25 Oct 2023 16:40:04 +0900 Subject: [PATCH] Update --- src/_styles/base.css | 62 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/src/_styles/base.css b/src/_styles/base.css index db2c0cf..9a9dcb8 100644 --- a/src/_styles/base.css +++ b/src/_styles/base.css @@ -39,3 +39,65 @@ .hints-alert { word-break: break-word; } + +/* UnderLines */ + +.markdown-section h1, +.markdown-section h2, +.markdown-section h3, +.markdown-section h4, +.markdown-section h5, +.markdown-section h6 { + border-bottom: dotted; +} + +/* Table responsive */ + +table { + width: 100%; + border-top: 1px solid #ccc; + border-left: 1px solid #ccc; + border-collapse: collapse; + border-spacing: 0; +} + +th, +td { + width: 16.6%; + padding: 0.6em 1em; + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; +} + +@media screen and (max-width: 640px) { + body { + overflow: hidden; + } + + table { + display: flex; + } + + thead { + white-space: nowrap; + } + + tbody { + overflow-x: scroll; + white-space: nowrap; + } + + tbody tr { + display: inline-block; + } + + tbody tr:last-child { + margin-left: -5px; + } + + th, + td { + display: block; + width: auto; + } +}