mirror of
https://github.com/kognise/water.css.git
synced 2025-02-24 05:43:28 +01:00
117 lines
2.3 KiB
CSS
Executable File
117 lines
2.3 KiB
CSS
Executable File
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
#js-producthunt {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.version-select {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.version-select__snippet h3 {
|
|
margin: 1rem 2.5rem 1rem 0;
|
|
}
|
|
/* Make the ✔ / ❌ Emoji appear next to the button */
|
|
.version-select__snippet__btn {
|
|
position: relative;
|
|
margin: 0 2px 0 auto;
|
|
overflow: visible;
|
|
}
|
|
.version-select__snippet__btn span {
|
|
position: absolute;
|
|
left: -2rem;
|
|
display: inline-block;
|
|
transform: scale(1.3);
|
|
}
|
|
|
|
.version-select__options > label {
|
|
white-space: pre;
|
|
}
|
|
.version-select__options > label:first-child {
|
|
margin-right: 1rem;
|
|
}
|
|
.version-select__options__additional > * {
|
|
margin-top: 1rem;
|
|
display: inline-block;
|
|
}
|
|
.version-select__options__additional summary {
|
|
display: block;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
}
|
|
.version-select__options__additional summary:focus {
|
|
outline: none;
|
|
}
|
|
.version-select__options__additional summary:focus span {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Fixed layout so columns don't jump when content changes */
|
|
.version-select__info {
|
|
table-layout: fixed;
|
|
}
|
|
.version-select__info caption {
|
|
text-align: left;
|
|
}
|
|
.version-select__info th {
|
|
border: none;
|
|
vertical-align: top;
|
|
width: 35%;
|
|
}
|
|
|
|
body > footer {
|
|
padding-top: 2rem;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
/* Used for (Links / ProductHunt) and (Installation / Copy-Button) rows */
|
|
.row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* Use proper Emoji instead of plain Unicode chars */
|
|
.emoji {
|
|
font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', system-ui, -apple-system,
|
|
BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans,
|
|
Helvetica Neue, sans-serif;
|
|
}
|
|
.translucent {
|
|
opacity: 0.4;
|
|
}
|
|
.tooltip {
|
|
position: relative;
|
|
cursor: help;
|
|
}
|
|
.tooltip::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: -4px;
|
|
width: 100%;
|
|
border-width: 0 0 1.5px;
|
|
border-style: dotted;
|
|
}
|
|
|
|
/* For the bounce transitions of code snippet and copy success Emoji */
|
|
.v-enter,
|
|
.v-leave-to {
|
|
transform: scale(0) !important;
|
|
}
|
|
.v-enter-active,
|
|
.v-leave-active {
|
|
transition: transform 220ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
}
|
|
[v-cloak] > * {
|
|
display: none;
|
|
}
|
|
[v-cloak]::after {
|
|
content: 'Version picker is loading...';
|
|
}
|