@@ -28,6 +28,7 @@ styleSheet.replaceSync(`
2828 --_sheet-backdrop-color: var(--sheet-backdrop-color, #88888880);
2929
3030 --_sheet-header-padding: var(--sheet-header-padding, 0 0 0 1rem);
31+ --_sheet-title-margin: var(--sheet-title-margin, 0.5rem 0);
3132 --_sheet-body-padding: var(--sheet-body-padding, 1rem);
3233
3334 --_sheet-handle-width: var(--sheet-handle-width, 3rem);
@@ -55,19 +56,8 @@ styleSheet.replaceSync(`
5556 @media (min-width: 48rem) {
5657 :host {
5758 --_sheet-width: var(--sheet-width, auto);
58- --_sheet-max-width: 48rem;
59- --_sheet-max-height: 32rem;
60-
61- border-radius: var(--_sheet-border-radius);
62- justify-content: center;
63- }
64-
65- .sheet-handle-container {
66- display: none;
67- }
68-
69- .sheet-controls {
70- grid-template-columns: 1fr auto auto;
59+ --_sheet-max-width: var(--sheet-max-width, 48rem);
60+ --_sheet-max-height: var(--sheet-max-height, 32rem);
7161 }
7262 }
7363
@@ -152,6 +142,10 @@ styleSheet.replaceSync(`
152142 justify-content: flex-start;
153143 }
154144
145+ .sheet-title-area:not(:empty) {
146+ padding: var(--_sheet-title-margin);
147+ }
148+
155149 .sheet-handle-container {
156150 display: flex;
157151 flex-direction: column;
@@ -200,4 +194,23 @@ styleSheet.replaceSync(`
200194 padding: var(--_sheet-body-padding);
201195 box-sizing: border-box;
202196 }
197+
198+ /* tablet */
199+ @media (min-width: 48rem) {
200+ :host {
201+ justify-content: center;
202+ }
203+
204+ .sheet-contents {
205+ border-radius: var(--_sheet-border-radius);
206+ }
207+
208+ .sheet-handle-container {
209+ display: none;
210+ }
211+
212+ .sheet-controls {
213+ grid-template-columns: 1fr auto auto;
214+ }
215+ }
203216` )
0 commit comments