animate.css/docs/style.css
Elton Mesquita 5a1c6b185b
v4 release (#1050)
* New animations added

* Update

* Update

* Update

* Update

* kill bower

* Turn off animations for print media query (#856)

* Add a feature to turn off animations for printing as requested.
* Add print media type
* Update the builds

* Moved away from gulp to npx + postcss

This PR changes the build system for a simpler one, using only npx as runner and postcss to process all the files.
* Solves #618
* Solves #836
* Also solves #758 just for fun ;P

* Updated travis and removed animate-config.json

* Removed strayed gulpfile and trimmed the header

* Moved prefix config to package.json and updated the tasks

* Updated travis

* Updated dependencies and postcss config

* Now using CSS custom properties

* Add css module file - solves #933

* Updated README for the new build

* Rebulit files

* Updated dependencies + added browserlist

* Fixed small typo on README

* Added imports to Back animations

* Added FadeInTopLeft.css file

Fade in the animation diagonally

* Added fadeInTopRight.css file

Fade in the animation diagonally

* Added fadeInBottomLeft.css

* Added fadeInBottomRight.css

* Added fadeOutTopLeft.css

* Added fadeOutTopRight.css

* Added fadeOutBottomRight.css

* Added fadeOutBottomLeft.css

* Added imports to diagonal fadings

* Aditional formatting

* Added diagonal fadings to README

* Fixes #966

* Animate.css v4 Updates (#1029)

* Update to v4

* Add Iteration-Count CSS utility classes solves #998

* Updated builds

* Update lightSpeed animations

* Update builds

* Fix Invalid CSS Media Query Syntax

* Update build

* Add gitpod support

* Add newline in gitpod file

* Update README

* Revert

* Declare variable

* Update builds

* Remove Gitpod support

Co-authored-by: Waren Gonzaga <warengonzaga.dev@gmail.com>

* Improves building process and package.json tidy up

* Improved animations (#901)

* Improved bounce

* Improved pulse

* Improved bounceInDown

* Improved bounceInLeft

* Improved bounceInRight

* Improved bounceInUp

* Improved bounceOutDown

* Improved bounceOuLeft

* Improved bounceOuRight

* Improved bounceOutRight

* Improved fadeInDown

* Improved fadeInDownBig

* Improved fadeInLeft

* Improved fadeInLeftBig

* Improved fadeInRightBig

* Improved fadeInUp

* Improved fadeInUpBig

* Improved fadeInRight

* Reverted fade animations

* Compiled

* Updated prefers-reduced-motion support on README

* Add .delay-1s (#982)

The .delay-1s is missing from the readme

* HTTPS relevant links on README (#972)

prevents HTTP redirects

* Create CONTRIBUTING.md (#1033)

Co-authored-by: Melek REBAI <melek.rebai89@gmail.com>
Co-authored-by: Christian Oliff <christianoliff@yahoo.com>
Co-authored-by: Daniel Eden <dan.eden@me.com>

* Updates dependencies

* Updates prettier config

* refactory transform-origin in styles

* animation shake with X and Y options 🔨

* Adds shakeX and shakeY to the build

* Set 0 Opacity to Out animation classes (#1043)

* Update issue templates

* Add 0 opacity to out classes

* Update builds

* Improved implemenation

* Update builds

* Update current readme

* Update builds

Co-authored-by: Elton Mesquita <callmeelton@gmail.com>
Co-authored-by: Waren Gonzaga <warengonzaga.dev@gmail.com>

* Removes prefix from att selector

* Feature/new demo site (#1046)

* Simplify & centralize the Animate.css home page. Finally.

* Design tweak

* Fix Lightspeed demos

* Fix Lightspeed demos (cont.)

* Trigger animation on change as well as click

* Correct jQuery example. Fixes #127

* Remove Readme on gh-pages to prevent mistakes like ee75b81

* Use animate.min.css because whatever

* Update demo page with MS animation JS hooks.

* Updating home page with rubberBand animation.

* Reverse hue animation

Red-orange-brown isn’t a great first impression.

* Add readme, use cssmin minified CSS instead of csso

* Update gh-pages

* Remove protocol from urls

Fixes Chrome’s SSL issue

* Remove Square Cash link

Donations are weird, and only US account holders could use this.

* Updating Gh-page animate.css to the current version

This is a simple commit, bringing animate.css up to date with the current master version.

* Updating Gh-page animate.min.css to reflect the current version

This is a simply update to the Animate.min.css file, to reflect the current version

* Update CSS

* Updating Gh-page index.html to the reflect the addition of zooms (in out down etc)

This adds the optgroup "zoom", and associated options of: ZoomIn, zoomOut, zoomInDown, zoomInUp, zoomInLeft, zoomInRight, zoomOutLeft, zoomOutRight, zoomOutUp, and zoomOutDown.

* refactoring index.html to mimic the current optgroup styling

I added zooms, which were absent, but added them in a way that didn't reflect the current optgroup styling and delineation. I fixed that and now exits and entrances are grouped appropriately.

* updated index.html to reflect the standard optgroup styling on sliders, added slideInDown

In addition to adding slider keyframes that were missing, I placed them into the appropriate optgroups to mimic the similar styling of the other animations.

* Merging updated version of animate.min.css

As requested, this is the updated version of animate.min.css that @daneden request I include in the pull request.

* Updated animate.min.css

Made it the new version

* added jello to options

* Update CSS

* Add jackInTheBox to gh-pages (#694)

* New Special - jackInTheBox

* copy min.css from master branch

* fixed the issue of overflow scroll (#740)

for more see this issue https://github.com/daneden/animate.css/issues/739

* Adds heartBeat animation demo (#893)

* Update animate.min.css to latest version

* Updated CSS for current browsers

* Updated animate.css

* Removed useless test folder

* Added warn about prefers-reduced-motion

* Adds docs compiler

* Adds new base template

* Improves the docs compiler

* Fixes flipOutY animation

* Updates docs template and build

* Reorder docs sections

* Updates docs animation list template

* Updates prettier ignore

* Adds syntax highlight to docs

* Small fixes to docs content

* Updates templates HTML

* Styles the demo website

* Adds functionality to demo website

* Fixes small website demo issue with medium screens

* Adds copy animation to demo site

* Renames loop classes to repeat

* Small adjusts to docs styles

* Updates docs template

* Updates docs  improving copy and adding sections

* Reviews the docs copy

* Fix some issues with demo-site

* Fixes issue with the demo-site playground

* Adjusts tooltip on demo-site

* Fix layout issues on mobile and update “close” button for animations list

Co-authored-by: Daniel Eden <dan.eden@me.com>
Co-authored-by: Matt Willis <contact@mrwillis.net>
Co-authored-by: Gabrielmtn <Gabrielmtn@gmail.com>
Co-authored-by: Indy Prieto <proforced@gmail.com>
Co-authored-by: Robert Pemberton <hellorobertp@gmail.com>
Co-authored-by: Khaled nuur <kahalidnuur@gmail.com>
Co-authored-by: Vladimir Jovanović <vladimir.jovanovic993@gmail.com>

* Updates docs folders

* Fix some small documentation issues

* Updates edit on github link

Co-authored-by: Arda Gedik <arnoldsivastanegezer@hotmail.com>
Co-authored-by: Arda Gedik <ardagedikk@hotmail.com>
Co-authored-by: Jabran Rafique <jabran.rafique@ratedpeople.com>
Co-authored-by: Waren Gonzaga <waren.gonzaga.dev@gmail.com>
Co-authored-by: Jabran Rafique️ <jabranr@users.noreply.github.com>
Co-authored-by: Vaibhav Tandon <vaibhav.tandongcet@gmail.com>
Co-authored-by: Waren Gonzaga <warengonzaga.dev@gmail.com>
Co-authored-by: Melek REBAI <melek.rebai89@gmail.com>
Co-authored-by: Christian Oliff <christianoliff@yahoo.com>
Co-authored-by: Daniel Eden <dan.eden@me.com>
Co-authored-by: Lucas Ferreira Lima <lucasferreiralimax@gmail.com>
Co-authored-by: Matt Willis <contact@mrwillis.net>
Co-authored-by: Gabrielmtn <Gabrielmtn@gmail.com>
Co-authored-by: Indy Prieto <proforced@gmail.com>
Co-authored-by: Robert Pemberton <hellorobertp@gmail.com>
Co-authored-by: Khaled nuur <kahalidnuur@gmail.com>
Co-authored-by: Vladimir Jovanović <vladimir.jovanovic993@gmail.com>
2020-05-07 16:42:33 +01:00

605 lines
9.1 KiB
CSS

/*-----------------------------------*\
$BASE
\*-----------------------------------*/
:root {
--c-main: #351c75;
--c-secondary: #e69138;
--c-dark: #333;
--c-background: #fce5cd;
--c-background-dark: #f7d7b5;
}
html,
body {
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
color: var(--c-dark);
font-size: 100%;
font-family: 'Work Sans', sans-serif;
line-height: 1.2;
}
@media screen and (min-width: 700px) {
html {
font-size: 112.5%;
line-height: 1.35;
}
}
*,
* *,
*::before,
*::after {
box-sizing: border-box;
}
img {
max-width: 100%;
height: auto;
}
iframe {
max-width: 100%;
}
a,
a:visited {
color: var(--c-main);
}
pre,
table {
display: block;
max-width: 100%;
overflow-x: auto;
}
code {
font-size: 1em;
background: var(--c-background);
}
pre {
padding: 1rem;
background-color: var(--c-dark);
border-radius: 0.25em;
color: #fff;
}
pre code {
background-color: transparent;
font-size: 0.8rem !important;
}
/*-----------------------------------*\
$TYPOGRAPHY
\*-----------------------------------*/
p,
ul,
ol,
hr,
table,
pre,
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 1.5em;
margin-bottom: 0;
}
p {
margin-bottom: 1.5rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--c-main);
}
h1 {
font-size: 3.998rem;
}
h2 {
font-size: 1.999rem;
}
h3 {
font-size: 1.414rem;
}
h4 {
font-size: 1.25rem;
}
h5 {
font-size: 1rem;
}
/*-----------------------------------*\
$GENERICS
\*-----------------------------------*/
.button {
padding: 0.4em 1em;
color: var(--c-main);
border-radius: 4px;
border: 2px solid var(--c-main);
background: transparent;
font-family: inherit;
font-size: 0.9rem;
text-decoration: none;
}
blockquote {
border-left: 6px solid var(--c-secondary);
padding-left: 1rem;
margin-left: 0;
}
/*-----------------------------------*\
$INTRO
\*-----------------------------------*/
.intro {
position: relative;
display: grid;
grid-template-columns: [callout] 1fr;
grid-template-rows: 1fr auto;
grid-column-gap: 0;
grid-row-gap: 1rem;
column-gap: 0;
row-gap: 1rem;
grid-template-areas:
'callout animation-list'
'footer aimation-list';
max-width: 100%;
height: calc(100vh - 2.55rem);
overflow: hidden;
background-color: var(--c-background);
}
@media (min-width: 700px) {
.intro {
height: calc(100vh - 2.8rem);
grid-column-gap: 1rem;
column-gap: 1rem;
grid-template-columns: [callout] 1fr [sidebar] 250px;
}
}
.callout {
grid-area: callout;
align-self: center;
justify-self: center;
text-align: center;
}
.callout-title {
margin-bottom: 0;
animation-delay: 0.25s;
font-size: 4rem;
font-size: min(14vw, 4rem);
}
@media (min-width: 700px) {
.callout-title {
animation-delay: 0s;
}
}
.callout-subtitle {
margin-top: 0;
animation-delay: 0.3s;
color: var(--c-secondary);
font-size: 1.3333rem;
font-size: min(10vw, 1.3333rem);
}
.callout-showList {
margin-top: 2rem;
animation-delay: 0.5s;
}
@media (min-width: 700px) {
.callout-showList {
display: none;
}
}
@media (min-width: 1000px) {
.callout-hideList {
display: none;
}
}
.animation-list {
position: absolute;
top: 0;
left: 100%;
height: 100%;
z-index: 90;
grid-area: animation-list;
grid-row: 1 / 3;
overflow-y: auto;
padding: 2rem;
animation-delay: 0.7s;
animation-fill-mode: backwards;
transition: transform 0.2s ease-out;
background-color: var(--c-background-dark);
}
.animationList-active .animation-list {
transform: translateX(-100%);
}
@media (min-width: 700px) {
.animation-list {
position: relative;
left: auto;
transform: none !important;
}
}
.intro-footer {
grid-area: footer;
justify-self: center;
padding-bottom: 1rem;
font-size: 0.75rem;
text-align: center;
}
.animation-item {
cursor: pointer;
display: flex;
justify-content: space-between;
}
.tooltip {
position: absolute;
bottom: calc(100% + 0.76em);
right: -1em;
padding: 0.5em 0.75em;
background-color: var(--c-main);
color: #fff;
border-radius: 4px;
line-height: 1;
white-space: nowrap;
visibility: hidden;
}
.tooltip::before {
content: '';
position: absolute;
top: 100%;
right: 1.1em;
width: 0;
height: 0;
border-style: solid;
border-width: 6px 4px 0 4px;
border-color: var(--c-main) transparent transparent transparent;
}
.copy-icon {
position: relative;
width: 6px;
height: 10px;
align-self: center;
background-color: transparent;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 477.867 477.867'%3E%3Cpath d='M341.333 85.333H51.2c-28.277 0-51.2 22.923-51.2 51.2v290.133c0 28.277 22.923 51.2 51.2 51.2h290.133c28.277 0 51.2-22.923 51.2-51.2V136.533c0-28.277-22.923-51.2-51.2-51.2zM358.4 426.667c0 9.426-7.641 17.067-17.067 17.067H51.2c-9.426 0-17.067-7.641-17.067-17.067V136.533c0-9.426 7.641-17.067 17.067-17.067h290.133c9.426 0 17.067 7.641 17.067 17.067v290.134z'/%3E%3Cpath d='M426.667 0h-307.2c-28.277 0-51.2 22.923-51.2 51.2 0 9.426 7.641 17.067 17.067 17.067S102.4 60.626 102.4 51.2s7.641-17.067 17.067-17.067h307.2c9.426 0 17.067 7.641 17.067 17.067v307.2c0 9.426-7.641 17.067-17.067 17.067s-17.067 7.641-17.067 17.067 7.641 17.067 17.067 17.067c28.277 0 51.2-22.923 51.2-51.2V51.2c0-28.277-22.923-51.2-51.2-51.2z'/%3E%3C/svg%3E");
background-position: right bottom;
background-repeat: no-repeat;
background-size: 10px;
visibility: hidden;
cursor: pointer;
border: 0;
box-shadow: none;
}
.animation-item:hover .copy-icon {
visibility: visible;
}
.copy-icon:hover .tooltip {
visibility: visible;
}
.animation-group,
.animation-title {
font-size: 1rem;
}
.animation-title {
margin-bottom: 0.2em;
color: var(--c-dark);
}
.animation-group {
margin: 0;
padding: 0;
list-style: none;
line-height: 1.4;
}
/*-----------------------------------*\
$DOCS
\*-----------------------------------*/
.container {
gap: 1rem;
margin: 0 auto;
max-width: 100%;
}
@media (min-width: 1000px) {
.container {
display: grid;
grid-template-rows: 1fr;
grid-template-columns: calc(100% - 300px - 1rem) 300px;
}
}
@media (min-width: 1520px) {
.container {
grid-template-rows: 1fr;
grid-template-columns: 1fr 1100px 2fr;
}
}
.docs {
position: relative;
}
.docs-header {
position: relative;
padding: 0.5rem 0;
background-color: var(--c-main);
z-index: 100;
}
.docs-mainTitle {
grid-column: 1 / 2;
padding-left: 1rem;
margin-top: 0;
font-size: 1.3333rem;
}
.docs-mainTitle a {
color: var(--c-secondary);
text-decoration: none;
}
@media (min-width: 1520px) {
.docs-mainTitle {
grid-column: 2 / 3;
}
}
.meta {
padding-left: 2rem;
margin-top: 1rem;
}
.content {
padding: 0 1rem;
margin-bottom: 2rem;
}
@media (min-width: 1520px) {
.content {
grid-column: 2 / 3;
}
}
.hamburger {
--size: 30px;
display: flex;
align-items: center;
justify-content: center;
position: sticky;
top: 2rem;
left: 100%;
width: var(--size);
height: var(--size);
background-color: var(--c-secondary);
transition: transform 0.2s ease-out;
text-align: center;
}
.hamburger-active .hamburger {
transform: translateX(-240px);
}
@media (min-width: 1000px) {
.hamburger {
display: none;
}
}
.sidebar {
position: fixed;
top: 0;
left: 100%;
z-index: 100;
width: 240px;
height: 100%;
padding-right: 1rem;
background: var(--c-background-dark);
transition: transform 0.2s ease-out;
}
.hamburger-active .sidebar {
transform: translateX(-100%);
}
@media (min-width: 1000px) {
.sidebar {
position: static;
width: auto;
height: auto;
}
.hamburger-active .sidebar {
transform: none;
}
}
.icon-github {
display: inline-block;
margin-right: 0.3em;
}
.docs-index {
top: 1rem;
padding-left: 2rem;
list-style: none;
}
@media (min-width: 1000px) {
.docs-index {
position: sticky;
}
}
.docs-indexItem {
margin-bottom: 0.4rem;
}
.edit-github {
font-size: 0.75rem;
text-align: right;
}
[class*='docSection'] {
border-bottom: 1px solid #eaeaea;
}
[class*='docSection']:last-of-type {
border-bottom: 0px;
}
.docSection-contributors table {
text-align: center;
}
.docSection-contributors table th,
.docSection-contributors table td {
padding: 0 1rem;
}
.docSection-contributors table img {
width: 150px;
border-radius: 100%;
}
/*-----------------------------------*\
$FOOTER
\*-----------------------------------*/
.main-footer {
padding: 1rem;
background-color: var(--c-main);
color: #fff;
font-size: 0.75rem;
text-align: center;
}
.main-footer p {
margin: 0;
}
.main-footer a {
color: #fff;
}
/*-----------------------------------*\
$REDUCED MOTION BANNER
\*-----------------------------------*/
.motionless__banner a {
color: #fff;
}
.motionless__banner {
display: none;
position: fixed;
bottom: 0;
left: 0;
z-index: 150;
width: 100%;
padding: 1rem;
background: #333;
color: #fff;
border-top: 2px solid #ff5722;
text-align: center;
}
.motionless__paragraph {
margin: 0;
}
@media (print), (prefers-reduced-motion: reduce) {
.motionless__banner {
display: block;
}
}
.docs {
text-align: left;
}
.animation-list {
text-align: left;
}