Skip to content

Commit 90bbb23

Browse files
committed
chore: polish up modal / tabs UI on small to medium screens; update ish control buttons to overflow-scroll so they can remain accessible on larger screen sizes / when the sidebar layout is toggled
1 parent 2f5a705 commit 90bbb23

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

packages/uikit-workshop/src/sass/scss/04-components/_ish-sizing.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,21 @@
7171
margin: 0;
7272
padding: 0;
7373

74+
@media all and (min-width: $pl-bp-med) {
75+
align-items: center;
76+
justify-content: center;
77+
overflow-x: auto;
78+
-webkit-overflow-scrolling: touch;
79+
80+
.pl-c-body--theme-sidebar & {
81+
display: block;
82+
display: flex;
83+
}
84+
}
85+
7486
@media all and (min-width: $pl-bp-large) {
7587
display: block;
7688
display: flex;
77-
align-items: center;
7889
}
7990
}
8091

packages/uikit-workshop/src/sass/scss/04-components/_pattern-info.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,22 @@
5555
padding: 1rem;
5656

5757
@media all and (min-width: $pl-bp-med) {
58-
padding-right: 3rem;
58+
padding-right: 2.3rem;
5959
}
6060

6161
@media all and (min-width: $pl-bp-large) {
62-
padding-right: 1rem;
6362
flex: auto;
6463
position: absolute;
6564
top: 0;
6665
bottom: 0;
6766
left: 0;
68-
right: 0;
67+
right: 1.3rem;
68+
padding-right: 0;
6969
}
7070

7171
.pl-c-modal & {
7272
@media all and (min-width: $pl-bp-xl) {
73+
right: 0;
7374
padding-left: 2rem;
7475
padding-right: 2.5rem;
7576
}

packages/uikit-workshop/src/sass/scss/05-themes/_sidebar-theme.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@
159159
flex-direction: column;
160160
}
161161

162-
.pl-c-size-list {
163-
display: none;
164-
}
165-
166162
.pl-c-viewport-size {
167163
display: none;
168164
}

0 commit comments

Comments
 (0)