/*
 * Space before / after, the five steps core offers on every content element's
 * Appearance tab.
 *
 * Only extra-large existed before, written twice in app.css, and the mobile
 * "after" rule set margin-top instead of margin-bottom. The whole scale now
 * lives here, in one place, and keeps the 9vw / 14vw the extra step already
 * had so nothing that uses it moves.
 */

.frame-space-before-extra-small { margin-top: 1.5vw !important; }
.frame-space-before-small       { margin-top: 3vw !important; }
.frame-space-before-medium      { margin-top: 5vw !important; }
.frame-space-before-large       { margin-top: 7vw !important; }
.frame-space-before-extra-large { margin-top: 9vw !important; }

.frame-space-after-extra-small  { margin-bottom: 1.5vw !important; }
.frame-space-after-small        { margin-bottom: 3vw !important; }
.frame-space-after-medium       { margin-bottom: 5vw !important; }
.frame-space-after-large        { margin-bottom: 7vw !important; }
.frame-space-after-extra-large  { margin-bottom: 9vw !important; }

/* On a phone a vw is much smaller, so the steps need more of them to read as
   the same distance. */
@media screen and (max-width: 575.9px) {
    .frame-space-before-extra-small { margin-top: 3vw !important; }
    .frame-space-before-small       { margin-top: 5vw !important; }
    .frame-space-before-medium      { margin-top: 8vw !important; }
    .frame-space-before-large       { margin-top: 11vw !important; }
    .frame-space-before-extra-large { margin-top: 14vw !important; }

    .frame-space-after-extra-small  { margin-bottom: 3vw !important; }
    .frame-space-after-small        { margin-bottom: 5vw !important; }
    .frame-space-after-medium       { margin-bottom: 8vw !important; }
    .frame-space-after-large        { margin-bottom: 11vw !important; }
    .frame-space-after-extra-large  { margin-bottom: 14vw !important; }
}
