changeset 7007:ddba357cb1e3

less: prevent elements from overflowing panels - add horizontal scrollbar when necessary
author domruf <dominikruf@gmail.com>
date Sat, 28 Oct 2017 18:39:04 +0200
parents c52f18a1c2c7
children a654ce23d552
files kallithea/public/css/style.css kallithea/public/less/style.less
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/public/css/style.css	Sat Oct 28 18:33:56 2017 +0200
+++ b/kallithea/public/css/style.css	Sat Oct 28 18:39:04 2017 +0200
@@ -102,6 +102,12 @@
 #lang_stats td {
   padding: 1px 0 !important;
 }
+/* every direct child of a main panel, that is not .panel-heading, should auto
+ * overflow to prevent overflowing of elements like text boxes and tables */
+#main > .panel > :not(.panel-heading) {
+  overflow-x: auto;
+  min-height: 0.01%;
+}
 .form-group > label {
   float: left;
 }
--- a/kallithea/public/less/style.less	Sat Oct 28 18:33:56 2017 +0200
+++ b/kallithea/public/less/style.less	Sat Oct 28 18:39:04 2017 +0200
@@ -113,6 +113,13 @@
   }
 }
 
+/* every direct child of a main panel, that is not .panel-heading, should auto
+ * overflow to prevent overflowing of elements like text boxes and tables */
+#main > .panel > :not(.panel-heading) {
+  overflow-x: auto;
+  min-height: 0.01%;
+}
+
 .form-group > label {
   float: left;
 }