generated from adobecom/milo-college
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #54 from adobecom/sync-repos
Sync repos
- Loading branch information
Showing
54 changed files
with
3,231 additions
and
422 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,194 @@ | ||
.section:not(:first-of-type) .how-to-cards:first-child { | ||
padding-top: 60px; | ||
} | ||
|
||
.how-to-cards { | ||
max-width: 1440px; | ||
margin: auto; | ||
} | ||
|
||
.how-to-cards h3 { | ||
font-size: var(--heading-font-size-s); | ||
text-align: left; | ||
line-height: 26px; | ||
margin-top: 0; | ||
} | ||
|
||
.how-to-cards .text h2, | ||
.how-to-cards .text p { | ||
text-align: left; | ||
padding: 0 16px; | ||
} | ||
|
||
.how-to-cards .cards-container { | ||
margin: 0; | ||
} | ||
|
||
.how-to-cards .card { | ||
flex: 0 0 auto; | ||
box-sizing: border-box; | ||
padding: 24px; | ||
border-radius: 12px; | ||
background-color: var(--color-gray-150); | ||
list-style: none; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
} | ||
|
||
.how-to-cards .card p { | ||
font-size: var(--body-font-size-s); | ||
text-align: left; | ||
margin: 4px 0; | ||
} | ||
|
||
.how-to-cards .number { | ||
position: relative; | ||
font-weight: 700; | ||
border-radius: 50%; | ||
background-color: white; | ||
width: 34px; | ||
height: 34px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
overflow: hidden; | ||
} | ||
|
||
.how-to-cards .number-txt { | ||
z-index: 1; | ||
} | ||
|
||
.how-to-cards .number-bg { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
height: 0; | ||
width: 100%; | ||
transition: height .5s cubic-bezier(0.19, 1, 0.22, 1); | ||
background-color: black; | ||
} | ||
|
||
.how-to-cards .card:hover, | ||
.how-to-cards .card:focus { | ||
background-color: var(--color-gray-200); | ||
transition: background-color .5s cubic-bezier(0.19, 1, 0.22, 1); | ||
} | ||
|
||
.how-to-cards .card:not(:hover) { | ||
transition: background-color .2s cubic-bezier(0.19, 1, 0.22, 1); | ||
} | ||
|
||
.how-to-cards .card:hover .number-bg, | ||
.how-to-cards .card:focus .number-bg { | ||
height: 100%; | ||
transition: height .5s cubic-bezier(0.19, 1, 0.22, 1); | ||
} | ||
|
||
.how-to-cards .card:not(:hover) .number-bg { | ||
transition: height .2s cubic-bezier(0.19, 1, 0.22, 1); | ||
} | ||
|
||
.how-to-cards .card:hover .number-txt, | ||
.how-to-cards .card:focus .number-txt { | ||
color: white; | ||
transition: color .1s linear; | ||
} | ||
|
||
@media (min-width: 480px) { | ||
.how-to-cards .card { | ||
width: 308px; | ||
} | ||
} | ||
|
||
.gallery { | ||
display: flex; | ||
flex-wrap: nowrap; | ||
gap: 16px; | ||
overflow-x: scroll; | ||
scrollbar-width: none; | ||
scroll-snap-type: x mandatory; | ||
scroll-behavior: smooth; | ||
padding: 0 16px; | ||
scroll-padding: 0 16px; | ||
} | ||
|
||
.gallery::-webkit-scrollbar { | ||
-webkit-appearance: none; | ||
width: 0; | ||
height: 0; | ||
} | ||
|
||
.gallery.center.gallery--all-displayed { | ||
justify-content: center; | ||
} | ||
|
||
.gallery--item { | ||
scroll-snap-align: start; | ||
width: calc(100% - 16px); | ||
} | ||
|
||
.gallery-control { | ||
padding: 16px 16px 0; | ||
display: flex; | ||
justify-content: flex-end; | ||
gap: 8px; | ||
align-items: center; | ||
} | ||
|
||
.gallery-control.hide, | ||
.gallery-control .hide { | ||
display: none; | ||
} | ||
|
||
.gallery-control.loading { | ||
visibility: hidden; | ||
} | ||
|
||
.gallery-control button { | ||
all: unset; | ||
cursor: pointer; | ||
height: 2rem; | ||
box-shadow: 0px 2px 8px 0px #00000029; | ||
border-radius: 50px; | ||
} | ||
|
||
.gallery-control button:focus { | ||
outline: revert; | ||
} | ||
|
||
.gallery-control button:hover:not(:disabled) circle { | ||
fill: var(--color-gray-300); | ||
} | ||
|
||
.gallery-control button:disabled { | ||
cursor: auto; | ||
} | ||
|
||
.gallery-control button:disabled path { | ||
stroke: var(--color-gray-300); | ||
} | ||
|
||
.gallery-control .status { | ||
display: flex; | ||
align-items: center; | ||
gap: 6px; | ||
background-color: white; | ||
box-shadow: 0px 2px 8px 0px #00000029; | ||
padding: 8px 16px; | ||
border-radius: 50px; | ||
height: 32px; | ||
box-sizing: border-box; | ||
} | ||
|
||
.gallery-control .status .dot { | ||
border-radius: 50px; | ||
width: 6px; | ||
height: 6px; | ||
background-color: #717171; | ||
} | ||
|
||
.gallery-control .status .dot.curr { | ||
width: 30px; | ||
background-color: #686DF4; | ||
} |
Oops, something went wrong.