Skip to content

Commit

Permalink
feat(panel): sticky header! pure css!
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed May 28, 2018
1 parent c359b70 commit e9490ac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/content/components/DictItem/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,22 @@
.panel-DictItem_Header {
display: flex;
align-items: flex-start;
position: sticky;
top: 0;
z-index: 100;
height: 20px;
border-top: 1px #ddd solid;
background: #fff;

&::after {
content: '';
position: absolute;
top: 20px - 1px;
left: 0;
width: 100%;
height: 10px;
background: linear-gradient(#fff 5%, rgba(255, 255, 255, 0.3) 60%, transparent 100%);
}
}

.panel-DictItem_Logo {
Expand Down

0 comments on commit e9490ac

Please sign in to comment.