Skip to content

Commit f8a984c

Browse files
committed
fix: minor UIKit prod CSS fixes
1 parent 6e1fd14 commit f8a984c

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

packages/website-ui/uikit-workshop/src/scripts/components/pl-nav/nav-accordion.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
&:not(.pl-c-nav__dropdown) {
2424
overflow: hidden;
25-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
25+
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
2626
}
2727

2828
&.pl-c-nav__dropdown {
@@ -38,10 +38,10 @@
3838
}
3939

4040
> * {
41-
background-color: rgba(255,255,255,.05);
41+
background-color: rgba(255, 255, 255, 0.05);
4242

4343
.pl-c-body--theme-light & {
44-
background-color: rgba(0,0,0,.05);
44+
background-color: rgba(0, 0, 0, 0.05);
4545
}
4646
}
4747
}

packages/website-ui/uikit-workshop/src/scripts/components/pl-nav/nav-link.scss

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Nav link
55
*/
6-
.pl-c-nav__link {
6+
.pl-c-nav__link {
77
@include linkStyle;
88
border: 0;
99
text-align: left;
@@ -35,15 +35,14 @@
3535
display: block;
3636
}
3737

38-
39-
&.is-open[role="tab"].is-active:after,
38+
&.is-open[role='tab'].is-active:after,
4039
&.is-open:not(.is-active):after,
4140
&.is-open + .pl-c-nav__link--icon-only:after {
42-
opacity: .1;
41+
opacity: 0.1;
4342
}
4443

4544
&.is-open.pl-c-nav__link--title:after {
46-
opacity: .05;
45+
opacity: 0.05;
4746
}
4847

4948
&:hover:after {
@@ -119,6 +118,30 @@
119118
}
120119
}
121120

121+
.pl-c-body--theme-light .pl-c-nav__link {
122+
&.is-open[role='tab'].is-active:after,
123+
&.is-open:not(.is-active):after,
124+
&.is-open + .pl-c-nav__link--icon-only:after {
125+
opacity: 0.1;
126+
}
127+
128+
&.is-open.pl-c-nav__link--title:after {
129+
opacity: 0.025;
130+
}
131+
132+
&:hover:after {
133+
opacity: 0.05;
134+
}
135+
136+
&:focus:after {
137+
opacity: 0.1;
138+
}
139+
140+
&:focus:active:after {
141+
opacity: 0.125;
142+
}
143+
}
144+
122145
.pl-c-nav__link-text {
123146
flex-grow: 1;
124147
pointer-events: none;

packages/website-ui/uikit-workshop/src/scripts/lit-components/pl-controls/pl-controls.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pl-controls {
88
display: flex;
99
flex-wrap: nowrap;
1010
align-self: center;
11+
margin-left: auto;
1112

1213
.pl-c-body--theme-sidebar & {
1314
display: block;

0 commit comments

Comments
 (0)