-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2544 from exadel-inc/feat/site-presentation-style…
…s-basis refactor(site): add presentation draft
- Loading branch information
Showing
48 changed files
with
1,185 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ node_modules | |
# Submodule output | ||
/site/dist | ||
/eslint/dist | ||
|
||
# Site build configuration | ||
/site/webpack.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.presentation-carousel { | ||
margin: 0; | ||
padding: 0; | ||
width: 100%; | ||
|
||
.presentation-content { | ||
width: auto; | ||
margin: auto; | ||
} | ||
|
||
.presentation-carousel, | ||
.presentation-carousel-inner { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
// Fallback | ||
&:not(.esl-carousel) .presentation-carousel-inner { | ||
flex-direction: column; | ||
opacity: 0; | ||
animation: fallback-fade-in 0.5s linear forwards; | ||
animation-delay: 0.5s; | ||
} | ||
&:not(.esl-carousel) .presentation-slide { | ||
min-height: 50svh; | ||
border-bottom: 1px solid #e5e5e5; | ||
} | ||
} | ||
|
||
@keyframes fallback-fade-in { | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@import (reference) '../common/variables.less'; | ||
|
||
.presentation-footer { | ||
position: fixed; | ||
z-index: 10; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
|
||
pointer-events: none; | ||
|
||
display: flex; | ||
justify-content: center; | ||
|
||
@media print { | ||
display: none; | ||
} | ||
|
||
&-container { | ||
display: flex; | ||
align-items: center; | ||
gap: 1.5rem; | ||
pointer-events: all; | ||
|
||
padding: 0.75rem; | ||
opacity: 0.2; | ||
transition: opacity 0.5s ease-in-out; | ||
|
||
&:hover { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
&-item { | ||
text-shadow: | ||
#000 0 0 10px, | ||
@nav-dark-bg 0 0 2px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
@import (reference) '../common/variables.less'; | ||
|
||
.presentation-layout { | ||
--_header-height: 60px; | ||
|
||
color: @landing-fg-color; | ||
height: 100dvh; | ||
|
||
@media screen { | ||
main { | ||
display: flex; | ||
justify-content: center; | ||
width: 100%; | ||
height: calc(100dvh - var(--_header-height)); | ||
|
||
&:not(:has(.esl-carousel)) { | ||
overflow: auto; | ||
} | ||
} | ||
} | ||
|
||
@media print { | ||
height: fit-content; | ||
|
||
pre { | ||
overflow: hidden; | ||
} | ||
|
||
.print-hidden, | ||
.esl-scrollbar { | ||
display: none !important; | ||
} | ||
} | ||
|
||
background: @landing-bg-color url('/assets/common/stars.webp') repeat; | ||
background-size: 1000px 500px; | ||
animation: p-slow-move-bg 90s infinite linear; | ||
|
||
&::before { | ||
content: ''; | ||
position: absolute; | ||
inset: 0; | ||
|
||
opacity: 0.25; | ||
background: url('/assets/common/fog.webp') repeat; | ||
background-size: 100% 100%; | ||
|
||
@media print { | ||
display: none; | ||
} | ||
} | ||
|
||
@keyframes p-slow-move-bg { | ||
0% { | ||
background-position: 1000px 500px; | ||
} | ||
100% { | ||
background-position: 0 0; | ||
} | ||
} | ||
|
||
@media @md-xl { | ||
.header { | ||
background-color: transparent; | ||
} | ||
} | ||
} | ||
|
||
@media print { | ||
@page { | ||
margin: 0; | ||
size: A4 landscape; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
@import (reference) '../common/variables.less'; | ||
|
||
.presentation-sidebar { | ||
&, | ||
&.esl-toggleable { | ||
display: flex; | ||
|
||
@media print { | ||
display: none; | ||
} | ||
} | ||
|
||
flex-direction: column; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
max-height: 100svh; | ||
z-index: 9; | ||
|
||
padding-top: var(--_header-height); | ||
|
||
color: @nav-dark-fg; | ||
background: linear-gradient( | ||
to right, | ||
fadeout(@nav-dark-bg, 20%) 0%, | ||
fadeout(@nav-dark-bg, 100%) 100% | ||
); | ||
|
||
width: 100%; | ||
overflow: hidden; | ||
opacity: 0; | ||
visibility: hidden; | ||
transition: | ||
opacity 0.5s linear, | ||
visibility 0.5s linear; | ||
|
||
&.open { | ||
opacity: 1; | ||
visibility: visible; | ||
|
||
transition: | ||
opacity 0.5s linear, | ||
visibility 0s linear; | ||
} | ||
|
||
&-container { | ||
width: auto; | ||
flex: 1 1 auto; | ||
transition: transform 0.5s ease-in-out; | ||
padding: 2rem 0 2rem 20px; | ||
@media @sm { | ||
padding-left: 30px; | ||
} | ||
@media @md { | ||
padding-left: 45px; | ||
} | ||
@media @lg-xl { | ||
padding-left: 60px; | ||
} | ||
@media @sm-xl { | ||
width: 30rem; | ||
} | ||
} | ||
|
||
&:not(.open) &-container { | ||
transform: translateX(-100%); | ||
} | ||
|
||
&-menu { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 0; | ||
} | ||
&-item { | ||
list-style-type: none; | ||
margin: 0.5rem 0; | ||
} | ||
&-item &-link { | ||
color: @nav-dark-fg; | ||
text-decoration: none; | ||
font-size: 1rem; | ||
padding: 1rem 0; | ||
|
||
&:hover { | ||
color: @nav-dark-hover; | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
&-overlay { | ||
position: absolute; | ||
inset: 0; | ||
z-index: -1; | ||
background: fadeout(@nav-dark-bg, 25%); | ||
|
||
&::before { | ||
content: ''; | ||
position: absolute; | ||
inset: 0; | ||
background: url('/assets/common/fog.webp') repeat; | ||
background-size: 2500px 1500px; | ||
transition: all linear 1s; | ||
} | ||
} | ||
|
||
&.open &-overlay { | ||
&::before { | ||
background-position: 10vw 0; | ||
} | ||
} | ||
|
||
&-scroll.esl-scrollbar { | ||
top: var(--_header-height); | ||
@media (hover: hover) { | ||
opacity: 0.4; | ||
transition: opacity 0.3s linear; | ||
} | ||
|
||
.scrollbar-track { | ||
background: rgba(255, 255, 255, 0.3); | ||
} | ||
|
||
.scrollbar-thumb { | ||
background: rgba(0, 0, 0, 0.4); | ||
} | ||
|
||
&[dragging] .scrollbar-thumb { | ||
background: rgba(0, 0, 0, 0.6); | ||
box-shadow: inset 0 0 4px 0 rgba(255, 255, 255, 0.2); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.presentation-slide { | ||
display: flex; | ||
position: relative; | ||
max-height: 100%; | ||
|
||
@media print { | ||
// TODO: A4 landscape height to enlarge short slides | ||
page-break-after: always; | ||
} | ||
|
||
.presentation-content { | ||
padding-block: 2rem; | ||
max-width: calc(1400px + 4rem); | ||
max-height: 100%; | ||
touch-action: pan-y; | ||
} | ||
|
||
.presentation-scrollbar { | ||
opacity: 0.6; | ||
} | ||
|
||
&.light { | ||
background-image: linear-gradient( | ||
to bottom, | ||
rgb(255 255 255 / 0%), | ||
rgb(255 255 255) 2.5%, | ||
rgb(255 255 255) 97.5%, | ||
rgb(255 255 255 / 0%) 100% | ||
); | ||
background-size: 100% 100%; | ||
color: #000; | ||
} | ||
|
||
&.full-width .presentation-content { | ||
width: 100%; | ||
max-width: 1600px; | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import './presentation/layout.less'; | ||
@import './presentation/carousel.less'; | ||
@import './presentation/slide.less'; | ||
@import './presentation/sidebar.less'; | ||
@import './presentation/footer.less'; |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.