File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
packages/uikit-workshop/src/sass/scss Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -53,3 +53,6 @@ $pl-animate-normal: 0.3s;
53
53
// Borders
54
54
$pl-border-radius : 3px ;
55
55
$pl-border-radius-med : 6px ;
56
+
57
+
58
+ $pl-sidebar-width : 14rem ; // Define sidebar width for calculating dimensions
Original file line number Diff line number Diff line change 24
24
pointer-events : none ;
25
25
will-change : height , transform ;
26
26
overflow : hidden ;
27
+ max-width : 100vw ;
28
+
29
+ .pl-c-body--theme-sidebar & {
30
+ @media all and (min-width : $pl-bp-med ) {
31
+ max-width : calc (100vw - #{$pl-sidebar-width } );
32
+ }
33
+ }
27
34
28
35
/* *
29
36
* Active modal
Original file line number Diff line number Diff line change 86
86
left : 0 ;
87
87
right : 0 ;
88
88
background-color : $pl-color-white ;
89
+ max-width : 100vw ; // https://github.com/bolt-design-system/bolt/pull/868
90
+
91
+ .pl-c-body--theme-sidebar & {
92
+ @media all and (min-width : $pl-bp-med ) {
93
+ max-width : calc (100vw - #{$pl-sidebar-width } + 14px );
94
+ }
95
+ }
89
96
90
97
/* *
91
98
* Hay Mode transition
141
148
.vp-animate {
142
149
transition : width 0.8s ease-out ;
143
150
}
151
+
152
+ // wrapper so the iframe + modal can switch flex directions in vertical vs horizontal layouts
153
+ .pl-c-viewport-modal-wrapper {
154
+ display : flex ;
155
+ flex-grow : 1 ;
156
+ flex-direction : column ;
157
+ max-width : calc (100vw );
158
+
159
+ .pl-c-body--theme-sidebar & {
160
+ @media all and (min-width : $pl-bp-med ) {
161
+ max-width : calc (100vw - #{$pl-sidebar-width } );
162
+ }
163
+ }
164
+ }
You can’t perform that action at this time.
0 commit comments