init
This commit is contained in:
290
assets/css/layout.css
Normal file
290
assets/css/layout.css
Normal file
@@ -0,0 +1,290 @@
|
||||
.container {
|
||||
max-width: 80rem;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.section {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.section--block {
|
||||
width: 100vw;
|
||||
height: calc(100% - 5rem);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.section__intro {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: calc(100vh - 5rem);
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
background: var(--color-white-100);
|
||||
transition: left 1.25s ease-in-out;
|
||||
}
|
||||
|
||||
.section__picture {
|
||||
width: 100vw;
|
||||
max-height: 18.75rem;
|
||||
height: auto;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.section__content {
|
||||
overflow-y: auto;
|
||||
margin-block: 0 0.75rem;
|
||||
}
|
||||
|
||||
.section__footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
font-size: 0.875rem;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.section__footer iframe{
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 16/9;
|
||||
box-shadow: var(--shadow-outset);
|
||||
}
|
||||
|
||||
.section__footer p {
|
||||
display: none;
|
||||
margin: auto 0;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.section__footer div:last-child {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.section__welcome {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.section__welcome,
|
||||
.section__left,
|
||||
.section__right {
|
||||
box-shadow: var(--shadow-inset);
|
||||
}
|
||||
|
||||
.section__welcome .title {
|
||||
font-size: 2rem;
|
||||
text-decoration: underline;
|
||||
margin-block: 0;
|
||||
}
|
||||
|
||||
.section--badges {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: inset 0 -0.5rem 0.75rem #c9c9c9;
|
||||
border-top: 0.0625rem solid #aaaaaa;
|
||||
}
|
||||
|
||||
.section__badges {
|
||||
text-align: center;
|
||||
background: var(--color-white);
|
||||
border-radius: 0.25rem;
|
||||
padding: 3rem 2rem;
|
||||
margin: 2rem;
|
||||
box-shadow: 0.0625rem 0.0625rem 0.5rem rgba(0, 0, 0, 0.2), 0.0625rem 0.125rem 0.25rem rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.section__badges .title {
|
||||
font-size: 0.875rem;
|
||||
margin-block: 0.25rem;
|
||||
}
|
||||
|
||||
.section__badges p {
|
||||
font-size: 0.875rem;
|
||||
margin-block: 0;
|
||||
}
|
||||
|
||||
.section__badges div + div {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.section__header {
|
||||
display: flex;
|
||||
align-items: start;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
font-size: 2rem;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.section__header .title {
|
||||
margin-block: 0 0.75rem;
|
||||
}
|
||||
|
||||
.section__links {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.section__links .button {
|
||||
width: 10rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.section__left,
|
||||
.section__right {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 1.5rem;
|
||||
width: calc(100vw - 3rem);
|
||||
height: calc(100% - 3rem);
|
||||
background: var(--color-white-100);
|
||||
transition: all 1.25s ease-in-out;
|
||||
border-left: 0.0625rem solid var(--color-gray);
|
||||
}
|
||||
|
||||
.section__right .list{
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.section__right .list + .list{
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.section__right li+li{
|
||||
margin-top: 0.125rem;
|
||||
}
|
||||
|
||||
.section__left {
|
||||
left: -100%;
|
||||
}
|
||||
|
||||
.section__gallery {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 8rem;
|
||||
height: 8rem;
|
||||
background-color: var(--color-white);
|
||||
box-shadow: var(--shadow-outset);
|
||||
transform: translate(-50%,-50%);
|
||||
z-index: 1;
|
||||
transition: all 1.25s ease;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
.section__gallery::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.section__gallery.is-open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.section__gallery.loaded {
|
||||
width: 95%;
|
||||
height: 95%;
|
||||
}
|
||||
|
||||
.section__gallery.loaded .loader{
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.section__gallery.loaded .close{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.section__gallery.loaded .gallery{
|
||||
filter: blur(0);
|
||||
}
|
||||
|
||||
.section--preview {
|
||||
position: fixed;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: var(--color-white-100);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.section--preview.horizontal .close--preview {
|
||||
left: 0.25rem;
|
||||
right: unset;
|
||||
}
|
||||
|
||||
.section--preview.horizontal img {
|
||||
width: 90vh;
|
||||
height: 90vw;
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.section--preview.horizontal .preview {
|
||||
left: calc(50% - 3.25rem);
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.section--preview.horizontal .preview--prev {
|
||||
top: unset;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.section--preview.horizontal .preview--next {
|
||||
top: 0;
|
||||
right: unset;
|
||||
}
|
||||
|
||||
.section--preview.is-open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.section--preview img {
|
||||
width: 90%;
|
||||
max-width: 100rem;
|
||||
height: 90%;
|
||||
max-height: 56.25rem;
|
||||
object-fit: cover;
|
||||
box-shadow: var(--shadow-outset);
|
||||
}
|
||||
|
||||
.section--switch .section__intro{
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.section--switch .section__left {
|
||||
left: -100%;
|
||||
}
|
||||
|
||||
.section--switch .section__right {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
.section__control {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.section__price {
|
||||
overflow-y: auto;
|
||||
margin-bottom: 0.625rem;
|
||||
}
|
||||
Reference in New Issue
Block a user