Skip to content

Commit 2f119d3

Browse files
committed
Lexical: Adjusted modals and content area for mobile sizes
1 parent 5f07f31 commit 2f119d3

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

resources/sass/_editor.scss

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ body.editor-is-fullscreen {
4848
.editor-content-wrap {
4949
position: relative;
5050
overflow-y: scroll;
51+
padding-inline: vars.$s;
5152
flex: 1;
5253
}
5354

@@ -275,6 +276,9 @@ body.editor-is-fullscreen {
275276
border-radius: 4px;
276277
overflow: hidden;
277278
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.3);
279+
margin: vars.$xs;
280+
max-height: 100%;
281+
overflow-y: auto;
278282
}
279283
.editor-modal-header {
280284
display: flex;
@@ -490,19 +494,29 @@ body.editor-is-fullscreen {
490494
/**
491495
* Form elements
492496
*/
497+
$inputWidth: 260px;
498+
493499
.editor-form-field-wrapper {
494500
margin-bottom: .5rem;
495501
}
496502
.editor-form-field-input {
497503
display: block;
498-
width: 100%;
499-
min-width: 250px;
504+
width: $inputWidth;
505+
min-width: 100px;
506+
max-width: 100%;
500507
border: 1px solid;
501508
@include mixins.lightDark(border-color, #DDD, #000);
502509
padding: .5rem;
503510
border-radius: 4px;
504511
@include mixins.lightDark(color, #444, #BBB);
505512
}
513+
514+
@include mixins.smaller-than(vars.$bp-xs) {
515+
.editor-form-field-input {
516+
min-width: 160px;
517+
}
518+
}
519+
506520
textarea.editor-form-field-input {
507521
font-family: var(--font-code);
508522
width: 350px;
@@ -575,6 +589,17 @@ textarea.editor-form-field-input {
575589
align-items: stretch;
576590
gap: .25rem;
577591
}
592+
593+
@include mixins.smaller-than(vars.$bp-m) {
594+
.editor-form-tab-container {
595+
flex-direction: column;
596+
gap: .5rem;
597+
}
598+
.editor-form-tab-controls {
599+
flex-direction: row;
600+
}
601+
}
602+
578603
.editor-form-tab-control {
579604
font-weight: bold;
580605
font-size: 14px;
@@ -601,7 +626,8 @@ textarea.editor-form-field-input {
601626
}
602627
}
603628
.editor-form-tab-contents {
604-
width: 360px;
629+
width: $inputWidth;
630+
max-width: 100%;
605631
}
606632
.editor-action-input-container {
607633
display: flex;
@@ -612,6 +638,9 @@ textarea.editor-form-field-input {
612638
.editor-button {
613639
margin-bottom: 12px;
614640
}
641+
input {
642+
width: $inputWidth - 40px;
643+
}
615644
}
616645

617646
// Editor theme styles

0 commit comments

Comments
 (0)