mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added actions indicator notch
This commit is contained in:
parent
b52dd47375
commit
6a3e0658e5
@ -169,8 +169,10 @@ export default class PostCard extends React.Component {
|
|||||||
message={this.props.data.message}
|
message={this.props.data.message}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="actionsIndicator">
|
<div className="actionsIndicatorWrapper">
|
||||||
<Icons.MoreHorizontal />
|
<div className="actionsIndicator">
|
||||||
|
<Icons.MoreHorizontal />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="actionsWrapper">
|
<div className="actionsWrapper">
|
||||||
<PostActions
|
<PostActions
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
outline-color: transparent;
|
outline-color: transparent;
|
||||||
|
|
||||||
&.liked {
|
&.liked {
|
||||||
filter: drop-shadow(0px 0px 2px var(--primaryColor));
|
filter : drop-shadow(0px 0px 2px var(--primaryColor));
|
||||||
outline-color: var(--primaryColor);
|
outline-color: var(--primaryColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,16 +77,16 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-size : 16px;
|
font-size : 16px;
|
||||||
|
|
||||||
color: var(--background-color-contrast);
|
color : var(--background-color-contrast);
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
display: inline-flex;
|
display : inline-flex;
|
||||||
align-items: center;
|
align-items : center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
height: fit-content;
|
height : fit-content;
|
||||||
|
|
||||||
margin-left: 20px;
|
margin-left : 20px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
@ -98,7 +98,7 @@
|
|||||||
|
|
||||||
.value {
|
.value {
|
||||||
font-family: "DM Mono", monospace;
|
font-family: "DM Mono", monospace;
|
||||||
font-size: 14px;
|
font-size : 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -129,19 +129,35 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.actionsIndicatorWrapper {
|
||||||
|
display : flex;
|
||||||
|
flex-direction : row;
|
||||||
|
align-items : center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
transition: all 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
.actionsIndicator {
|
.actionsIndicator {
|
||||||
display : flex;
|
display : flex;
|
||||||
flex-direction : row;
|
flex-direction : row;
|
||||||
align-items : center;
|
align-items : center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
width : 100%;
|
width : 10vw;
|
||||||
margin-bottom: 5px;
|
padding: 2px;
|
||||||
|
|
||||||
|
border-radius : 8px 8px 0 0;
|
||||||
|
background-color: var(--background-color-primary);
|
||||||
|
color : var(--background-color-contrast);
|
||||||
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color : var(--background-color-contrast);
|
|
||||||
|
transition: all 0.2s ease-in-out;
|
||||||
transition : all 0.2s ease-in-out;
|
|
||||||
|
svg {
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.actionsWrapper {
|
.actionsWrapper {
|
||||||
@ -245,12 +261,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.actionsWrapper {
|
.actionsWrapper {
|
||||||
animation: fadeActionsIn 0.1s 0.1s linear forwards;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.actionsIndicator {
|
// .actionsIndicator {
|
||||||
opacity: 0;
|
// opacity: 0;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadeActionsIn {
|
@keyframes fadeActionsIn {
|
||||||
@ -261,4 +277,14 @@
|
|||||||
to {
|
to {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeActionOut {
|
||||||
|
from {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user