Skip to content

Commit dee9d70

Browse files
committed
refactor: tightening up tabs UI
1 parent 95cd1cf commit dee9d70

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,13 @@
2020
* Pattern info inside the "view all" template
2121
*/
2222
.pl-c-pattern & {
23-
max-height: 20rem;
24-
min-height: 18rem;
2523
overflow: scroll;
2624
@include hideScrollBar();
2725
display: flex;
2826
-webkit-overflow-scrolling: touch;
2927

3028
@media all and (min-width: $pl-bp-large) {
3129
max-height: none;
32-
height: 18rem;
3330
overflow: visible;
3431
}
3532
}
@@ -49,6 +46,7 @@
4946
margin-bottom: 1rem;
5047
flex-grow: 1;
5148
max-width: 100%;
49+
max-height: 30rem;
5250
min-width: 300px; // so panels stack automatically
5351
display: inline-flex;
5452
flex-direction: column;

packages/uikit-workshop/src/sass/scss/04-components/_tabs.scss

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
list-style: none;
3131
margin: 0;
3232
padding: 0.5rem 0;
33+
padding-bottom: 0;
3334
background-color: $pl-color-white;
35+
border-bottom: 1px solid rgba(0, 0, 0, .1);
3436
}
3537

3638
/**
@@ -39,15 +41,15 @@
3941
.pl-c-tabs__link {
4042
display: block;
4143
line-height: 1;
42-
padding: 0.2rem 0.4rem;
43-
border: 1px solid transparent;
44-
border-radius: $pl-border-radius-med;
44+
border-bottom: 4px solid transparent;
4545
color: $pl-color-gray-50;
4646
background-color: $pl-color-white;
4747
cursor: pointer;
4848
text-decoration: none;
49-
text-transform: lowercase;
49+
text-transform: uppercase;
5050
transition: all $pl-animate-quick ease-out;
51+
padding: 8px;
52+
font-size: 13px;
5153

5254
&:hover {
5355
color: $pl-color-gray-87;
@@ -60,8 +62,7 @@
6062
*/
6163
&.pl-is-active-tab {
6264
color: $pl-color-gray-87;
63-
background-color: $pl-color-gray-07;
64-
border: 1px solid $pl-color-gray-13;
65+
border-bottom-color: #bf6500;
6566
}
6667
}
6768

@@ -72,7 +73,6 @@
7273
.pl-c-tabs__content {
7374
overflow: auto;
7475
-webkit-overflow-scrolling: touch;
75-
padding-top: 0.5rem;
7676
flex-grow: 1;
7777
display: flex;
7878
flex-direction: column;
@@ -85,7 +85,6 @@
8585
*/
8686
.pl-c-tabs__panel {
8787
display: none;
88-
min-height: 12rem;
8988

9089
&.pl-is-active-tab {
9190
display: flex;
@@ -102,7 +101,10 @@
102101
pre[class*='language-'] {
103102
background-color: transparent;
104103
margin: 0;
105-
padding: 0;
104+
padding-top: 1rem;
105+
padding-right: 0.5rem;
106+
padding-bottom: 0.5rem;
107+
padding-left: 0.5rem;
106108
border: 0;
107109
display: block;
108110
width: 100%; // fill parent container

0 commit comments

Comments
 (0)