Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #489 from creative-commoners/pulls/4.0/space-out
FIX Adjusting styles to fix some minor issues
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,39 @@ | ||
.element-editor-editform { | ||
margin-top: $spacer-xs; | ||
@include make-row(); | ||
cursor: auto; | ||
|
||
// For some reason the form is not considered a "row" when above a certain media breakpoint | ||
// We need this for the "stacked" form style | ||
@include media-breakpoint-up(lg) { | ||
@include make-row() | ||
} | ||
|
||
// Counteract the margin that is added to the bottom of each form group | ||
margin-bottom: -1rem; | ||
|
||
// Force tinymce to have proper box-sizing | ||
.mce-tinymce { | ||
box-sizing: border-box; | ||
} | ||
|
||
// The form div itself receives some width styling that we prefer to be handled by | ||
// field holder styling as below | ||
&__form { | ||
width: 100%; | ||
} | ||
|
||
.form-group { | ||
margin-left: 0; | ||
margin-right: 0; | ||
} | ||
|
||
// Specificity overrides for styles provided by admin. | ||
// Designs mandate that we're going with a "stacked" style here which doesn't currently | ||
// translate very well to higher width | ||
& &__form { | ||
& .form-group .form__field-holder { | ||
flex: 1 0 100%; | ||
max-width: 900px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters