浏览代码

Mobile friendly styling of pivot tables

Lukas Angerer 2 年之前
父节点
当前提交
89731bdffd
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      src/RunnersMeet.Client/src/styles.scss

+ 16 - 0
src/RunnersMeet.Client/src/styles.scss

@@ -102,6 +102,22 @@ dl.pivot-table {
 	}
 }
 
+@media only screen and (max-width: 800px) {
+	dl.pivot-table {
+		dt {
+			flex-basis: 100%;
+			text-align: left;
+			padding: 0.2em 0.5em;
+			border: none;
+		}
+
+		dd {
+			flex-basis: 100%;
+			padding: 0.2em 1em;
+		}
+	}
+}
+
 .map-container {
 	width: 100%;
 	aspect-ratio: 4 / 3;