diff --git a/web/static/css/style.css b/web/static/css/style.css index 4aa822c..3a92efd 100644 --- a/web/static/css/style.css +++ b/web/static/css/style.css @@ -358,3 +358,142 @@ tr.kb-focus { outline: 2px solid var(--primary-color); outline-offset: -2px; } + +@media (max-width: 575.98px) { + .custom-table thead { + display: none; + } + .custom-table tbody tr { + display: block; + position: relative; + padding: 0.75rem; + border-bottom: 1px solid #dee2e6; + } + .custom-table tbody td { + display: inline-block; + border: none; + padding: 0; + } + + tr.assignment-row td:nth-child(1) { + position: absolute; + top: 0.75rem; + left: 0.75rem; + } + tr.assignment-row td:nth-child(2) { + position: absolute; + top: 0.75rem; + left: 2.25rem; + } + tr.assignment-row td:nth-child(5) { + display: block; + margin-left: 3.5rem; + margin-right: 4rem; + margin-bottom: 0.5rem; + } + tr.assignment-row td:nth-child(8) { + position: absolute; + top: 0.75rem; + right: 0.75rem; + } + tr.assignment-row td:nth-child(3) { + display: inline-block; + margin-right: 0.5rem; + } + tr.assignment-row td:nth-child(4) { + display: inline-block; + margin-right: 0.5rem; + } + tr.assignment-row td:nth-child(6) { + display: inline-block; + margin-right: 0.5rem; + } + tr.assignment-row td:nth-child(7) { + display: inline-block; + } + .countdown-col { + white-space: nowrap; + font-size: 0.75rem; + } + + tr.recurring-row td:nth-child(1) { + display: block; + margin-bottom: 0.5rem; + margin-right: 3rem; + } + tr.recurring-row td:nth-child(5) { + position: absolute; + top: 0.75rem; + right: 0.75rem; + } + tr.recurring-row td:nth-child(2), + tr.recurring-row td:nth-child(3), + tr.recurring-row td:nth-child(4) { + display: inline-block; + margin-right: 0.5rem; + } + + tr.user-row td:nth-child(1), + tr.user-row td:nth-child(5) { + display: none !important; + } + tr.user-row td:nth-child(2) { + display: block; + font-weight: bold; + margin-bottom: 0.25rem; + } + tr.user-row td:nth-child(3) { + display: block; + font-size: 0.85rem; + color: #6c757d; + margin-bottom: 0.5rem; + } + tr.user-row td:nth-child(6) { + position: absolute; + top: 0.75rem; + right: 0.75rem; + } + tr.user-row td:nth-child(4) { + display: inline-block; + } + + .stats-table { + min-width: auto !important; + } + tr.subject-row td:nth-child(3), + tr.subject-row td:nth-child(4), + tr.subject-row td:nth-child(5) { + display: none !important; + } + .stats-table thead th:nth-child(3), + .stats-table thead th:nth-child(4), + .stats-table thead th:nth-child(5) { + display: none !important; + } + + .dashboard-stat-card .display-4 { + font-size: 1.5rem !important; + } + .dashboard-stat-card h2 { + font-size: 1.4rem; + } + .dashboard-stat-card h6 { + font-size: 0.7rem; + } + .urgent-countdown { + font-size: 1.05rem !important; + padding-left: 0.75rem !important; + padding-right: 0.75rem !important; + } +} + +@media (max-width: 767.98px) { + .nav-tabs#assignmentTabs { + flex-wrap: nowrap; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + } + .nav-tabs#assignmentTabs .ms-auto { + margin-left: 0 !important; + } +} diff --git a/web/templates/admin/users.html b/web/templates/admin/users.html index 1b89c9c..047807d 100644 --- a/web/templates/admin/users.html +++ b/web/templates/admin/users.html @@ -7,7 +7,7 @@ {{if .users}}
- +
@@ -20,7 +20,7 @@ {{range .users}} - + diff --git a/web/templates/assignments/index.html b/web/templates/assignments/index.html index e537b27..60aad15 100644 --- a/web/templates/assignments/index.html +++ b/web/templates/assignments/index.html @@ -3,9 +3,9 @@ {{define "content"}} -
+

課題一覧

-
+
- - - + 新規登録
@@ -57,14 +57,14 @@ -
+
-
+
-
+
-
+
-
+ diff --git a/web/templates/assignments/new.html b/web/templates/assignments/new.html index 1183545..d9f0a2d 100644 --- a/web/templates/assignments/new.html +++ b/web/templates/assignments/new.html @@ -72,7 +72,7 @@
-
+
- diff --git a/web/templates/assignments/statistics.html b/web/templates/assignments/statistics.html index 1d97acd..7077dcb 100644 --- a/web/templates/assignments/statistics.html +++ b/web/templates/assignments/statistics.html @@ -62,7 +62,7 @@
-
+
diff --git a/web/templates/layouts/base.html b/web/templates/layouts/base.html index 8ff87fc..df077d7 100644 --- a/web/templates/layouts/base.html +++ b/web/templates/layouts/base.html @@ -87,7 +87,7 @@
Super Homework Manager
- Licensed under Licensed under AGPLv3 | Time: {{.processing_time}}
diff --git a/web/templates/recurring/index.html b/web/templates/recurring/index.html index 4529464..8e7b8bf 100644 --- a/web/templates/recurring/index.html +++ b/web/templates/recurring/index.html @@ -10,7 +10,7 @@
-
ID
{{.ID}} {{.Name}}{{if eq .ID $.currentUserID}}自分{{end}} {{.Email}}
+
@@ -22,7 +22,7 @@ {{range .recurrings}} - +
タイトル
{{.Title}}
{{if .Description}}