Fix: margin for deleted sections

This commit is contained in:
eight 2018-10-10 19:23:34 +08:00
parent 00687983f0
commit 22d4767511

View File

@ -302,13 +302,10 @@ input:invalid {
} }
/************ content ***********/ /************ content ***********/
#sections > * { #sections > * {
margin: 0.7rem; padding: 1rem 1rem;
padding: 1rem 1rem .3rem; margin: 0 0.7rem;
} }
#sections > *:first-child { #sections > :not(:first-child) {
padding: 0 1rem .3rem;
}
#sections > *:not(:first-child) {
border-top: 2px solid hsl(0, 0%, 80%); border-top: 2px solid hsl(0, 0%, 80%);
} }
.add-section:after { .add-section:after {
@ -325,7 +322,7 @@ input:invalid {
flex-wrap: wrap; flex-wrap: wrap;
} }
.edit-actions button { .edit-actions button {
margin: 0 .2rem .5rem 0; margin-right: .2rem;
} }
.dirty > label::before { .dirty > label::before {
content: "*"; content: "*";
@ -350,9 +347,12 @@ input:invalid {
display: none; display: none;
} }
.section .CodeMirror { .section .CodeMirror {
margin: .5rem 0; margin-bottom: .875rem;
} }
/* deleted section */ /* deleted section */
.deleted-section {
margin: 0;
}
.section .deleted-section { .section .deleted-section {
display: none; display: none;
} }