mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-12-15 05:43:45 +01:00
🔤 🐛 ⚡ v0.9.1-alpha (#30)
* :tap: removed on.attributeChanged and static observedAttributes * ⚡ import optimalization * ⚡ scope.signal * 🔤 🐛 * ⚡ 🐛 registerReactivity and types * 🔤 * ⚡ * 🔤 * 🐛 Node in enviroment * ⚡ todos * ⚡ * ⚡ 🔤 * ⚡ lint * ⚡ memo * 🔤 🐛 memo * ⚡ 🔤 todomvc * 🐛 types * 🔤 p08 signal factory * 🔤 ⚡ types * ⚡ 🔤 lint * 🔤 * 🔤 * 🔤 * 🔤 * 📺
This commit is contained in:
39
docs/components/scrollTop.css.js
Normal file
39
docs/components/scrollTop.css.js
Normal file
@@ -0,0 +1,39 @@
|
||||
import { styles } from "../ssr.js";
|
||||
|
||||
styles.css`
|
||||
/* Scroll to top button */
|
||||
.scroll-top-button {
|
||||
position: fixed;
|
||||
bottom: 2rem;
|
||||
left: 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
border-radius: 50%;
|
||||
background-color: var(--primary);
|
||||
color: var(--button-text);
|
||||
font-size: 1.5rem;
|
||||
text-decoration: none;
|
||||
box-shadow: var(--shadow);
|
||||
transition: background-color 0.2s ease, transform 0.2s ease;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.scroll-top-button:hover {
|
||||
background-color: var(--primary-dark);
|
||||
transform: translateY(-4px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.scroll-top-button {
|
||||
bottom: 0.5rem;
|
||||
left: unset;
|
||||
right: .5rem;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user