Sha256: f5ebdde96fef4032def770b4cf82703a90654ff852a0196a9caabd316f2e4644
Contents?: true
Size: 1.99 KB
Versions: 3
Compression:
Stored size: 1.99 KB
Contents
@keyframes pin { 0% { transform: rotate(-35deg); } 20% { transform: rotate(10deg); } 40% { transform: rotate(-3deg); } 60% { transform: rotate(2deg); } 80% { transform: rotate(-1deg); } 100% { transform: rotate(0deg); } } .pinned-post-card { position: relative; box-sizing: border-box; display: flex; flex-direction: column; border-radius: 14px; padding: 12px; width: 30%; transform-origin: top right; animation: pin 2s cubic-bezier(0.175, 0.885, 0.32, 1.275); background-color: var(--md-sys-color-primary-container); & p, span, a { color: var(--md-sys-color-on-primary-container); } & img { background-color: var(--md-sys-color-surface-container-high); border-radius: 24px; } @media screen and (max-width: 1300px) { width: 46%; } @media screen and (max-width: 850px) { width: 100%; & p { display: -webkit-box; line-clamp: 5; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; } } } .pinned-post-list { display: flex; margin-left: 0; flex-wrap: wrap; justify-content: space-around; padding-top: 12px; list-style: none; background-color: var(--md-sys-color-surface-container-highest); border-radius: 24px; padding: $spacing-unit; min-height: 390px; @media screen and (max-width: 850px) { padding: $spacing-unit/2; min-height: 200px; } > li:not(:last-child) { margin-bottom: $spacing-unit; } } .pinned-post-card::before { content: ""; position: absolute; top: -10px; left: -12px; right: -10px; bottom: -10px; background-image: url("/assets/theme-assets/theme-images/border-thick.svg"); background-size: 100% 100%; filter: var(--outline-filter); pointer-events: none; /* Allows interaction with content inside the border */ } .pin-svg { position: absolute; height: 80px; width: auto; top: -34px; right: 15px; z-index: 11; } .pin-path { stroke: var(--md-sys-color-tertiary); stroke-width: 2.5; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-theme-doodle-5.1.1 | _sass/minima/_pinned-post.scss |
jekyll-theme-doodle-5.1.0 | _sass/minima/_pinned-post.scss |
jekyll-theme-doodle-5.0.0 | _sass/minima/_pinned-post.scss |