Skip to content

Commit

Permalink
Vertically center the 'close icon' again. (#1775)
Browse files Browse the repository at this point in the history
* Vertically center 'close icon' again.

It became wrongly vertically aligned in PR #1437.

* Epibrate css rules for close icon

Just clean up a bit, make the ordering somewhat intuitive.
  • Loading branch information
Treora authored and martijnrusschen committed Jun 25, 2019
1 parent ac85286 commit 3c75be6
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/stylesheets/datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -539,35 +539,33 @@
}

.react-datepicker__close-icon {
cursor: pointer;
background-color: transparent;
border: 0;
cursor: pointer;
outline: 0;
padding: 0;
vertical-align: middle;
position: absolute;
top: 50%;
right: 7px;
height: 16px;
width: 16px;
top: 25%;
right: 7px;
margin: -8px auto 0;

&::after {
cursor: pointer;
background-color: $datepicker__selected-color;
border-radius: 50%;
bottom: 0;
box-sizing: border-box;
color: #fff;
content: "\00d7";
cursor: pointer;
font-size: 12px;
border-radius: 50%;
position: absolute;
top: 0;
right: 0;
height: 16px;
width: 16px;
line-height: 1;
margin: -8px auto 0;
padding: 2px;
position: absolute;
right: 0px;
font-size: 12px;
line-height: 1;
text-align: center;
content: "\00d7";
}
}

Expand Down

0 comments on commit 3c75be6

Please sign in to comment.