UNPKG

slidedeck

Version:

An easy to use React-based slide show library

139 lines (127 loc) 3.27 kB
@import url("https://fonts.googleapis.com/css?family=Nanum+Gothic|Varela|Exo|Oswald&display=swap"); .navigation { font-family: "Nanum Gothic", sans-serif; letter-spacing: 20px; position: absolute; right: 5px; bottom: 20px; } .navigation .left-arrow, .navigation .right-arrow { font-size: 2rem; background-color: transparent; border: none; color: #bebebe; } .navigation .left-arrow:hover, .navigation .right-arrow:hover { cursor: pointer; color: #fff; } .progress-bar { position: absolute; bottom: 0; height: 5px; background-color: #4d7ea8; } .slide { font-size: 3.5rem; padding: 10px 15%; overflow: hidden; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; } .slide h1 { color: #92afd7; text-transform: uppercase; font-size: 7.5rem; width: 100%; } .slide .column { flex: 50%; } .slide .subtext { font-size: 3.3rem; font-weight: bold; flex: auto; } .slide ul { list-style: none; flex: auto; } .slide ul li.with-bullet { margin-bottom: 10px; font-size: 3rem; text-align: left; } .slide ul li.with-bullet::before { content: "\2022"; color: #fff; display: inline-block; width: 1em; margin-left: -1em; font-weight: bold; font-size: 1.7rem; } .slide a { color: #f2d5f8; text-decoration: none; } .slide a:hover { text-decoration: underline; } .slide .highlight { color: #f2d5f8; } .slide-deck { min-height: 100vh; width: 100%; background-color: #242f40; color: #fff; overflow: hidden; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .animate { opacity: 0; animation: fadeIn ease-in 1; animation-fill-mode: forwards; animation-duration: 0.75s; } .title-slide, .title-slide-secondary, .title-slide-tertiary { opacity: 0; animation: fadeIn ease-in 1; animation-fill-mode: forwards; animation-duration: 0.75s; display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; text-align: center; height: 100vh; } @media (max-width: 1050px) { .title-slide, .title-slide-secondary, .title-slide-tertiary { flex-wrap: wrap; } } .title-slide h1, .title-slide-secondary h1, .title-slide-tertiary h1 { font-size: 7rem; color: #92afd7; font-family: Oswald; width: 75%; text-align: center; } .title-slide h2, .title-slide-secondary h2, .title-slide-tertiary h2 { font-size: 2.5rem; color: #fff; flex: auto; } .title-slide-secondary { flex-wrap: unset; padding: 0 25px; background-color: #92afd7; } .title-slide-secondary h1 { color: #fff; } .title-slide-tertiary { flex-wrap: unset; padding: 0 25px; background-color: #fff; } .title-slide-tertiary h1 { color: #c5d1eb; } .inline { display: inline-block; margin: 0; color: #92afd7; } .bold { font-weight: bolder; font-size: 2.5rem; } body { margin: 0; font-family: "Varela", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }