1
0
mirror of https://github.com/kognise/water.css.git synced 2025-02-24 05:43:28 +01:00
css-water.css/docs/style.css

125 lines
2.5 KiB
CSS
Raw Normal View History

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 {
display: flex;
flex-direction: column;
margin: 1rem 0;
}
.version-select__options__additional > *:not(summary) {
display: block;
margin-top: 1rem;
}
.version-select__options__additional summary {
cursor: pointer;
font-weight: 600;
}
.version-select__options__additional summary:focus {
outline: none;
}
.version-select__options__additional summary:hover span,
.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%;
}
2019-05-31 00:36:55 +02:00
body > footer {
padding-top: 2rem;
2019-05-31 00:36:55 +02:00
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;
}
.opacity-4 {
opacity: 0.4;
}
.opacity-7 {
opacity: 0.76;
}
.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...';
}