Professional Documents
Culture Documents
6
6
.box-1 {
position: relative;
background: #ffffff;
padding: 15px;
margin-top: 20px;
.box-1::before,
.box-1::after {
content: '';
position: absolute;
bottom: 100%;
left: 19px;
border-bottom-color: #dddddd;
.box-1::after {
left: 20px;
border-bottom-color: #ffffff;
@keyframes bouncing-loader {
to {
opacity: 0.1;
transform: translate3d(0, -16px, 0);
.bouncing-loader {
display: flex;
justify-content: center;
width: 16px;
height: 16px;
background: #8385aa;
border-radius: 50%;
animation-delay: 0.2s;
animation-delay: 0.4s;
div {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
.box2 {
display: inline-block;
width: 120px;
height: 120px;
padding: 8px;
margin: 8px;
background: #F24333;
color: white;
border-radius: 4px;
.content-box {
box-sizing: content-box;
/* Drop cap */
p:first-child::first-letter {
color: #5f79ff;
float: left;
font-weight: bold;
line-height: 1;
/* Dynamic shadow */
.dynamic-shadow {
position: relative;
width: 10rem;
height: 10rem;
z-index: 1;
.dynamic-shadow::after {
content: '';
width: 100%;
height: 100%;
position: absolute;
background: inherit;
top: 0.5rem;
filter: blur(0.4rem);
opacity: 0.7;
z-index: -1;
/* etched-text */
.etched-text {
font-size: 1.5rem;
font-weight: bold;
color: #b8bec5;
.evenly-distributed-children {
display: flex;
justify-content: space-between;
.image {
background: #34495e;
width: 200px;
height: 200px;
.image-contain {
object-fit: contain;
object-position: center;
.image-cover {
object-fit: cover;
/* Flexbox centering */
.flexbox-centering {
display: flex;
justify-content: center;
align-items: center;
height: 100px;
/* floating stack */
.floating-stack {
background: #455A64;
color: #fff;
height: 80vh;
width: 320px;
border-radius: 1rem;
overflow-y: auto;
.floating-stack > dl {
margin: 0 0 1rem;
display: grid;
align-items: center;
.floating-stack dt {
position: sticky;
top: 0.5rem;
left: 0.5rem;
font-weight: bold;
background: #263238;
color: #cfd8dc;
height: 2rem;
width: 2rem;
border-radius: 50%;
padding: 0.25rem 1rem;
grid-column: 1;
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
.floating-stack dd {
grid-column: 2;
margin: 0;
padding: 0.75rem;
margin-top: 0.25rem;
/* fluid typography */
.fluid-type {
/* focus within */
form {
padding: 8px;
border-radius: 2px;
}
form:focus-within {
background: #7CF0BD;
label {
display: inline-block;
width: 72px;
input {
/* fullscreen */
.element p {
text-align: center;
color: white;
font-size: 3em;
.element:-ms-fullscreen p {
visibility: visible;
.element:fullscreen {
background-color: #e4708a;
width: 100vw;
height: 100vh;
}
/* full width image */
main {
margin: 0 auto;
max-width: 640px;
img {
height: auto;
max-width: 100%;
.full-width {
/* position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
max-width: 100vw;
width: 100vw; */
/* Gradient text */
.gradient-text {
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
font-size: 32px;
.grid-centering {
display: grid;
justify-content: center;
align-items: center;
height: 100px;
/* Hamburger Button */
.hamburger-menu {
display: flex;
justify-content: space-between;
height: 2.5rem;
width: 2.5rem;
cursor: pointer;
.hamburger-menu .bar {
height: 5px;
background: black;
border-radius: 5px;
transform-origin: left;
.hamburger-menu:hover .top {
transform: rotate(45deg);
.hamburger-menu:hover .middle {
opacity: 0;
.hamburger-menu:hover .bottom {
transform: rotate(-45deg);
/* Height transition */
.el {
overflow: hidden;
max-height: 0;
max-height: var(--max-height);
/* :empty {
display: none;
} */
/* div {
width: 200px;
height: 100px;
.no-scrollbars {
overflow: auto;
scrollbar-width: none;
.no-scrollbars::-webkit-scrollbar {
display: none;
} */
.gallery-container {
position: relative;
display: flex;
justify-content: center;
.thumbnails {
position: absolute;
bottom: 8px;
display: flex;
flex-direction: row;
gap: 6px;
.thumbnails div {
width: 8px;
height: 8px;
cursor: pointer;
background: #aaa;
border-radius: 100%;
}
.thumbnails div.highlighted {
background-color: #777;
.slides {
margin: 0 16px;
display: grid;
grid-auto-flow: column;
gap: 1rem;
width: 540px;
padding: 0 0.25rem;
height: 720px;
overflow-y: auto;
overscroll-behavior-x: contain;
scroll-snap-type: x mandatory;
scrollbar-width: none;
scroll-snap-align: start;
.slides img {
width: 540px;
object-fit: contain;
}
.slides::-webkit-scrollbar {
display: none;
.horizontal-snap {
margin: 0 auto;
display: grid;
grid-auto-flow: column;
gap: 1rem;
padding: 1rem;
max-width: 480px;
overflow-y: auto;
overscroll-behavior-x: contain;
scroll-snap-type: x mandatory;
.horizontal-snap > a {
scroll-snap-align: center;
.horizontal-snap img {
width: 180px;
max-width: none;
object-fit: contain;
border-radius: 1rem;
width: 300px;
height: 280px;
padding: 0;
border-radius: 8px;
box-sizing: border-box;
overflow: hidden;
.card * {
.card img {
margin: 0;
width: 300px;
height: 224px;
object-fit: cover;
display: block;
.card h3 {
margin: 0;
line-height: 32px;
font-weight: 500;
font-size: 20px;
}
.card .focus-content {
display: block;
.card p {
margin: 0;
line-height: 1.5;
margin-top: -80px;
.image-card {
display: inline-block;
box-sizing: border-box;
margin: 1rem;
width: 240px;
height: 320px;
padding: 8px;
border-radius: 1rem;
background: url("nat-1-large.jpg");
.perspective-left {
.perspective-left:hover {
.perspective-right {
.perspective-right:hover {
.hover-shadow-box-animation {
display: inline-block;
vertical-align: middle;
margin: 10px;
transition-duration: 0.3s;
}
.hover-shadow-box-animation:hover,
.hover-shadow-box-animation:focus,
.hover-shadow-box-animation:active {
transform: scale(1.2);
.hover-underline-animation {
display: inline-block;
position: relative;
color: #0087ca;
.hover-underline-animation::after {
content: '';
position: absolute;
width: 100%;
transform: scaleX(0);
height: 2px;
bottom: 0;
left: 0;
background-color: #0087ca;
.hover-underline-animation:hover::after {
transform: scaleX(1);
transform-origin: bottom left;
.hover-menu {
position: relative;
overflow: hidden;
margin: 8px;
min-width: 340px;
max-width: 480px;
max-height: 290px;
width: 100%;
background: #000;
text-align: center;
box-sizing: border-box;
.hover-menu * {
box-sizing: border-box;
.hover-menu img {
position: relative;
max-width: 100%;
top: 0;
right: 0;
opacity: 1;
}
.hover-menu div {
position: absolute;
top: 0;
left: -120px;
width: 120px;
height: 100%;
background: #000;
display: flex;
flex-direction: column;
justify-content: center;
.hover-menu div a {
display: block;
line-height: 2;
color: #fff;
text-decoration: none;
opacity: 0.8;
position: relative;
text-decoration: underline;
}
.hover-menu:hover img {
opacity: 0.5;
right: -120px;
.hover-menu:hover div {
left: 0;
opacity: 1;
.hover-rotate {
overflow: hidden;
margin: 8px;
min-width: 240px;
max-width: 320px;
width: 100%;
.hover-rotate img {
box-sizing: border-box;
max-width: 100%;
.hover-rotate:hover img {
}
/* image mosaic card */
.image-mosaic {
display: grid;
gap: 1rem;
grid-auto-rows: 240px;
.card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #353535;
font-size: 3rem;
color: #fff;
box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
height: 100%;
width: 100%;
border-radius: 4px;
overflow: hidden;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding: 0;
margin: 0;
}
@media screen and (min-width: 600px) {
.card-tall {
.card-wide {
.hover-img {
background-color: #000;
color: #fff;
display: inline-block;
margin: 8px;
max-width: 320px;
min-width: 240px;
overflow: hidden;
position: relative;
text-align: center;
width: 100%;
.hover-img * {
box-sizing: border-box;
}
.hover-img::before,
.hover-img::after {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
content: '';
z-index: 1;
opacity: 0;
transform: scaleY(2);
.hover-img img {
vertical-align: top;
max-width: 100%;
backface-visibility: hidden;
.hover-img figcaption {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
align-items: center;
z-index: 1;
display: flex;
flex-direction: column;
justify-content: center;
line-height: 1.1em;
opacity: 0;
z-index: 2;
transition-delay: 0.1s;
font-size: 24px;
font-family: sans-serif;
font-weight: 400;
letter-spacing: 1px;
text-transform: uppercase;
.hover-img:hover::before,
.hover-img:hover::after {
transform: scale(1);
opacity: 1;
opacity: 0.7;
.hover-img:hover figcaption {
opacity: 1;
}
/* */