Skip to content

Commit 9ef80f8

Browse files
committed
Hide background / shadow when toolbar is collapsed
1 parent 3520247 commit 9ef80f8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Toolbar/Toolbar.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
display: flex;
55
align-items: center;
66
justify-content: space-between;
7-
background-color: #FFF;
8-
box-shadow: 0px 2px 8px rgba(41, 49, 58, 0.15);
7+
background-color: rgba(255,255,255,0);
98
box-sizing: border-box;
10-
9+
box-shadow: none;
1110
width: 100%;
1211
height: 40px;
1312
padding: 24px 0;
1413

15-
transition-property: height;
14+
transition-property: height background-color box-shadow;
1615
transition-duration: 500ms;
1716
transition-timing-function: ease;
1817
}
@@ -25,4 +24,6 @@
2524

2625
.toolbar.expanded {
2726
height: 120px;
27+
background-color: #FFF;
28+
box-shadow: 0px 2px 8px rgba(41, 49, 58, 0.15);
2829
}

0 commit comments

Comments
 (0)