Files
Ghost-Theme-Source/assets/css/ko-fi.css
Dave Jansen e0380e0121 Add Customizations.
- Add PrismJS dependencies (baked-in)
- Add Ko-fi button (in-line)
- Bump dependencies to fix inability to build.
- Concatenate *.css into single source.css.
2024-08-06 09:03:09 +09:00

136 lines
2.7 KiB
CSS

/*
Ko-fi Button Widget CSS.
*/
img.kofiimg {
display: initial;
vertical-align: middle;
height: 13px;
width: 20px;
padding-top: 0;
padding-bottom: 0;
border: none;
margin-top: 0;
margin-right: 5px;
margin-left: 0;
margin-bottom: 3px;
content: url(../images/ko-fi/cup-border.png);
}
.kofiimg:after {
vertical-align: middle;
height: 25px;
padding-top: 0;
padding-bottom: 0;
border: none;
margin-top: 0;
margin-right: 6px;
margin-left: 0;
margin-bottom: 4px;
content: url(../images/ko-fi/whitelogo.svg);
}
.kofi-btn-container {
--button-background-color: #fff;
--button-background-color-active: rgba(255, 255, 255, 0.8);
--button-text-color: #15171a;
--button-text-color-active: #15171a;
display: inline-block;
white-space: nowrap;
min-width: 160px;
}
a.kofi-button {
background-color: var(--button-background-color);
box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
line-height: 36px;
min-width: 150px;
display: inline-block;
padding: 2px 12px;
text-align: center;
border-radius: 7px;
color: var(--button-text-color);
cursor: pointer;
overflow-wrap: break-word;
vertical-align: middle;
border: 0 none #fff;
/* font-family: 'Quicksand', Helvetica, Century Gothic, sans-serif; */
font-family: var(--font-sans);
text-decoration: none;
text-shadow: none;
font-weight: 700;
font-size: 14px;
}
a.kofi-button:hover,
a.kofi-button:active,
a.kofi-button:visited {
color: var(--button-text-color);
text-decoration: none;
background: var(--button-background-color-active);
}
a.kofi-button:hover span.kofitext,
a.kofi-button:active span.kofitext {
text-decoration: none;
color: var(--button-text-color-active);
opacity: 1;
}
span.kofitext {
color: var(--button-text-color);
letter-spacing: -0.15px;
text-wrap: none;
vertical-align: middle;
line-height: 33px;
padding: 0;
text-align: center;
text-decoration: none;
text-shadow: 0 1px 1px rgba(34, 34, 34, 0.05);
}
span.kofitext img.kofiimg {
height: 15px;
width: 22px;
display: initial;
animation: kofi-wiggle 3s infinite;
}
@keyframes kofi-wiggle {
0% {
transform: rotate(0) scale(1);
}
60% {
transform: rotate(0) scale(1);
}
75% {
transform: rotate(0) scale(1.12);
}
80% {
transform: rotate(0) scale(1.1);
}
84% {
transform: rotate(-10deg) scale(1.1);
}
88% {
transform: rotate(10deg) scale(1.1);
}
92% {
transform: rotate(-10deg) scale(1.1);
}
96% {
transform: rotate(10deg) scale(1.1);
}
100% {
transform: rotate(0) scale(1);
}
}