From 22d4767511fb63e77f8f46e9361a998b7803b7fd Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 10 Oct 2018 19:23:34 +0800 Subject: [PATCH] Fix: margin for deleted sections --- edit/edit.css | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/edit/edit.css b/edit/edit.css index 46716642..ccfa78c8 100644 --- a/edit/edit.css +++ b/edit/edit.css @@ -302,13 +302,10 @@ input:invalid { } /************ content ***********/ #sections > * { - margin: 0.7rem; - padding: 1rem 1rem .3rem; + padding: 1rem 1rem; + margin: 0 0.7rem; } -#sections > *:first-child { - padding: 0 1rem .3rem; -} -#sections > *:not(:first-child) { +#sections > :not(:first-child) { border-top: 2px solid hsl(0, 0%, 80%); } .add-section:after { @@ -325,7 +322,7 @@ input:invalid { flex-wrap: wrap; } .edit-actions button { - margin: 0 .2rem .5rem 0; + margin-right: .2rem; } .dirty > label::before { content: "*"; @@ -350,9 +347,12 @@ input:invalid { display: none; } .section .CodeMirror { - margin: .5rem 0; + margin-bottom: .875rem; } /* deleted section */ +.deleted-section { + margin: 0; +} .section .deleted-section { display: none; }