
.blog-post {
display: flex;
flex-flow: column nowrap;
gap: 20px;
header {
display: flex;
flex-flow: column nowrap;
gap: 20px;
background: #FFFFFF;
color: #000000;
h1 {
font-size: 36px;
font-weight: 500;
line-height: 110%;
margin: 0px;
letter-spacing: 1px;
word-break: break-word;
}
.blog-post-meta {
height: 30px;
width: 100%;
display: flex;
flex-flow: row nowrap;
align-items: center;
font-size: 14px;
gap: 8px;
span {
color: #767676;
font-size: 14px;
}
.middleDot {
font-size: 26px;
}
.share-container {
position: relative;
.share-toggle {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 4px;
padding: 3px 10px;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
transition: background 0.2s;
border-style: solid;
svg {
fill: currentColor;
height: 20px;
width: 20px;
}
}
.share-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 140px;
padding: 8px 0;
flex-direction: column;
border-radius: 4px;
box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.10);
z-index: 100;
background: white;
}
.share-menu.active {
display: flex;
}
.share-menu button {
display: flex;
width: 100%;
height: 44px;
gap: 8px;
font-size: 14px;
padding: 0px 12px;
align-items: center;
border: none;
border-radius: 4px;
background: none;
cursor: pointer;
transition: background 0.2s;
}
.share-menu button:hover {
background: #257AA710;
}
.share-menu img {
width: 24px;
height: 24px;
}
}
}
}
figure {
margin: 0px;
max-width: 100%;
display: flex;
justify-content: center;
align-items: center;
img {
display: block;
object-fit: contain;
object-position: center;
width: 100%;
height: 100%;
}
}
.blog-post-content {
word-break: break-word;
img {
max-width: 100%;
}
}
.toast-message {
position: fixed;
left: 50%;
bottom: 30px;
transform: translateX(-50%) translateY(20px);
background-color: #333;
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
visibility: hidden;
min-width: 240px;
max-width: 90%;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 8px;
padding: 10px 16px;
font-size: 14px;
opacity: 0;
transition: opacity 0.4s ease, bottom 0.4s ease, visibility 0.3s;
z-index: 9999;
&.show {
visibility: visible;
opacity: 1;
transform: translateX(-50%) translateY(0);
}
.toast-icon {
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
}
.toast-text {
flex: 1;
white-space: break-spaces;
line-height: 24px;
}
.toast-close {
background: transparent;
border: none;
fill: #bbb;
font-size: 16px;
cursor: pointer;
padding: 0;
margin-left: 8px;
&:hover {
fill: #fff;
}
}
&.success .toast-icon {
fill: #3bb54a;
}
&.error .toast-icon {
fill: #e74c3c;
}
#toast-success-icon,
#toast-error-icon {
display: none;
}
&.success #toast-success-icon {
display: block;
}
&.error #toast-error-icon {
display: block;
}
}
}
