]> cat aescling's git repositories - mastodon.git/commitdiff
Fix multiple-column padding
authorThibaut Girka <thib@sitedethib.com>
Wed, 12 Jun 2019 18:49:56 +0000 (20:49 +0200)
committerThibG <thib@sitedethib.com>
Thu, 13 Jun 2019 20:15:31 +0000 (22:15 +0200)
app/javascript/flavours/glitch/styles/components/index.scss

index 0f187d9e962052c4cf37fad8cb8162ca4e0e7e08..4da61399ecfbd20dfe4ee26eef507b8247841c93 100644 (file)
   }
 }
 
+.column,
+.drawer {
+  flex: 1 1 100%;
+  overflow: hidden;
+}
+
+@media screen and (min-width: 631px) {
+  .columns-area {
+    padding: 0;
+  }
+
+  .column,
+  .drawer {
+    flex: 0 0 auto;
+    padding: 10px;
+    padding-left: 5px;
+    padding-right: 5px;
+
+    &:first-child {
+      padding-left: 10px;
+    }
+
+    &:last-child {
+      padding-right: 10px;
+    }
+  }
+
+  .columns-area > div {
+    .column,
+    .drawer {
+      padding-left: 5px;
+      padding-right: 5px;
+    }
+  }
+}
+
 .tabs-bar {
   box-sizing: border-box;
   display: flex;