-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
36 changed files
with
1,288 additions
and
471 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
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
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,115 @@ | ||
|
||
.embla { | ||
margin: auto; | ||
--slide-height: 19rem; | ||
--slide-spacing: 2rem; | ||
--slide-size: 80%; | ||
} | ||
.embla__viewport { | ||
overflow: hidden; | ||
} | ||
.embla__container { | ||
display: flex; | ||
touch-action: pan-y pinch-zoom; | ||
/* margin-left: calc(var(--slide-spacing) * -1); */ | ||
} | ||
.embla__slide { | ||
transform: translate3d(0, 0, 0); | ||
/* flex: 0 0 var(--slide-size); */ | ||
min-width: 0; | ||
/* padding-left: var(--slide-spacing); */ | ||
} | ||
|
||
.embla__slide__number { | ||
box-shadow: inset 0 0 0 0.2rem black; | ||
border-radius: 1.8rem; | ||
font-size: 4rem; | ||
font-weight: 600; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: var(--slide-height); | ||
user-select: none; | ||
} | ||
.embla__controls { | ||
display: grid; | ||
grid-template-columns: auto 1fr; | ||
justify-content: space-between; | ||
gap: 1.2rem; | ||
margin-top: 1.8rem; | ||
} | ||
.embla__buttons { | ||
display: grid; | ||
grid-template-columns: repeat(2, 1fr); | ||
gap: 0.6rem; | ||
align-items: center; | ||
} | ||
.embla__button { | ||
-webkit-tap-highlight-color: red; | ||
-webkit-appearance: none; | ||
appearance: none; | ||
background-color: transparent; | ||
touch-action: manipulation; | ||
display: inline-flex; | ||
text-decoration: none; | ||
cursor: pointer; | ||
border: 0; | ||
padding: 0; | ||
margin: 0; | ||
box-shadow: inset 0 0 0 0.2rem gray; | ||
width: 3.6rem; | ||
height: 3.6rem; | ||
z-index: 1; | ||
border-radius: 50%; | ||
color: white; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
.embla__button:disabled { | ||
color: var(--detail-high-contrast); | ||
} | ||
.embla__button__svg { | ||
width: 35%; | ||
height: 35%; | ||
} | ||
.embla__dots { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: flex-end; | ||
align-items: center; | ||
gap: 16px; | ||
margin-right: calc((2.6rem - 1.4rem) / 2 * -1); | ||
} | ||
.embla__dot { | ||
-webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5); | ||
-webkit-appearance: none; | ||
appearance: none; | ||
/* background-color: white; */ | ||
border: 1px solid white; | ||
touch-action: manipulation; | ||
display: inline-flex; | ||
text-decoration: none; | ||
cursor: pointer; | ||
/* border: 0; */ | ||
padding: 0; | ||
margin: 0; | ||
width: 2rem; | ||
height: 2rem; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 50%; | ||
} | ||
.embla__dot:after { | ||
box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast); | ||
width: 1.4rem; | ||
height: 1.4rem; | ||
border-radius: 50%; | ||
display: flex; | ||
align-items: center; | ||
content: ''; | ||
} | ||
.embla__dot--selected:after { | ||
box-shadow: inset 0 0 0 0.2rem var(--text-body); | ||
} |
Oops, something went wrong.