fix: fix button sizes
This commit is contained in:
parent
68aa84283f
commit
c6ff7668c5
3 changed files with 14 additions and 16 deletions
|
|
@ -12,6 +12,8 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
line-height: 147%;
|
||||||
|
//box-sizing: content-box;
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,11 +38,9 @@ export const PopupButton = ({size = "md", schema, text, links, title}: PopupButt
|
||||||
return (
|
return (
|
||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
|
|
||||||
<div className={styles.button}>
|
<Button size={size} schema={schema} onClick={() => setIsPopupOpen(true)}>
|
||||||
<Button size={size} schema={schema} onClick={() => setIsPopupOpen(true)}>
|
{text}
|
||||||
{text}
|
</Button>
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{isPopupOpen && (
|
{isPopupOpen && (
|
||||||
<div className={styles.popup}>
|
<div className={styles.popup}>
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,26 @@
|
||||||
@import 'template.scss';
|
@import 'template.scss';
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
display: inline-grid;
|
position: relative;
|
||||||
place-items: center;
|
display: inline-block;
|
||||||
grid-template-areas: "a";
|
|
||||||
grid-template-rows: fit-content(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.button {
|
|
||||||
grid-area: a;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup {
|
.popup {
|
||||||
grid-area: a;
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
z-index: 1;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
box-shadow: 0 0 21px 0 rgba(0,0,0,0.4);
|
box-shadow: 0 0 21px 0 rgba(0,0,0,0.4);
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
position: relative;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popupTitle {
|
.popupTitle {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
font-size: 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
border-bottom: 1px solid $border-color-light;
|
border-bottom: 1px solid $border-color-light;
|
||||||
|
|
@ -33,7 +31,7 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding: 5px 15px;
|
padding: 5px 15px;
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 17px;
|
font-size: 16px;
|
||||||
transition: background-color 0.2s ease-in;
|
transition: background-color 0.2s ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue