-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* improve the Date Range Picker aesthetics/UX
- Loading branch information
Showing
7 changed files
with
141 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
|
||
// https://www.svgrepo.com/vectors/check/ | ||
export default function CheckIcon() { | ||
return ( | ||
<svg | ||
version="1.1" | ||
id="Capa_1" | ||
xmlns="http://www.w3.org/2000/svg" | ||
x="0px" | ||
y="0px" | ||
width="12px" | ||
height="12px" | ||
viewBox="0 0 405.272 405.272" | ||
> | ||
<g> | ||
<path | ||
d="M393.401,124.425L179.603,338.208c-15.832,15.835-41.514,15.835-57.361,0L11.878,227.836 | ||
c-15.838-15.835-15.838-41.52,0-57.358c15.841-15.841,41.521-15.841,57.355-0.006l81.698,81.699L336.037,67.064 | ||
c15.841-15.841,41.523-15.829,57.358,0C409.23,82.902,409.23,108.578,393.401,124.425z" | ||
/> | ||
</g> | ||
</svg> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@use "../variables"as *; | ||
@use "../mixins/outline"as *; | ||
|
||
.btn { | ||
@include outline; | ||
|
||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
|
||
cursor: pointer; | ||
|
||
border: 1px solid $btn-border-color; | ||
border-radius: 4px; | ||
background: $btn-color; | ||
|
||
&:hover { | ||
background: $btn-hover-color; | ||
} | ||
} | ||
|
||
// inspired by .viz-switch .btn | ||
.btn.primary { | ||
$active-color: #269f34; | ||
|
||
background-color: $active-color; | ||
border-left-color: $active-color; | ||
border-right-color: $active-color; | ||
border-top-color: $active-color; | ||
border-bottom-color: $active-color; | ||
transition: 0.3s cubic-bezier(.17,.67,.83,.67); | ||
font-weight: 600; | ||
|
||
&:hover { | ||
background-color: #2ecc40; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters