itty-bitty/docs/render/bookmarklet.css

83 lines
1.2 KiB
CSS
Raw Permalink Normal View History

2022-02-15 23:28:50 +00:00
* {
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
2022-12-24 07:22:13 +00:00
:root {
--capsule-color: hsla(196, 100%, 50%, 0.338);
}
@media (prefers-color-scheme: dark) {
/* Dark theme styles go here */
:root {
background-color:#111111;
color:white;
}
#emoji {
filter:grayscale() brightness(0.8);
}
}
2022-02-15 23:28:50 +00:00
body {
text-align: center;
}
2022-05-18 05:36:38 +00:00
a.bookmarklet {
cursor:grab;
padding:2em;
2022-02-15 23:28:50 +00:00
color:currentColor;
2022-05-18 05:36:38 +00:00
font-size:12px;
2022-02-15 23:28:50 +00:00
text-decoration:none;
user-select: none;
2022-05-18 05:36:38 +00:00
font-weight:600;
2022-02-15 23:28:50 +00:00
}
2022-05-18 05:36:38 +00:00
.capsule {
user-select:none;
line-height:3em;
2022-02-15 23:28:50 +00:00
border: 2px solid currentColor;
2022-05-18 05:36:38 +00:00
padding:0.333em 1em;
border-radius: 2em;
box-shadow:1px 1px black;
2022-12-24 07:22:13 +00:00
background-color:var(--capsule-color);
2022-05-18 05:36:38 +00:00
transition:transform 1s;
}
2022-05-20 15:37:00 +00:00
.description {
2022-12-24 07:22:13 +00:00
opacity:0.5;
2022-05-20 15:37:00 +00:00
margin-bottom:10px;
}
2022-05-18 05:36:38 +00:00
.hint {
font-size:small;
opacity:0.54;
}
a.bookmarklet:hover .capsule{
padding: 0.5333em 1.2em;
2022-02-15 23:28:50 +00:00
}
div#content {
max-width:300px;
margin:10vh auto;
}
#emoji {
font-size: 300%;
2022-05-18 05:36:38 +00:00
/* filter:grayscale() brightness(1.1); */
2022-02-15 23:28:50 +00:00
}
:root { color-scheme: light dark; }
2022-12-24 07:22:13 +00:00
2022-05-18 05:36:38 +00:00
.mobile {
display:none;
}
html[data-useragent*='Mobile'] .desktop {
display:none
}
html[data-useragent*='Mobile'] .mobile {
display:block
}