style_pq_eseiaat.css
style_pq_eseiaat.css
— 3.6 KB
Continguts del fitxer
.cardBox h3 { color: #fff; text-align: center; margin: 0 0 5% 0; padding: 0.1em; margin: 15% 0 5% 0; line-height:1.8em; } .cardBox { float: left; font-size: 1.2em; margin: 1% 0 0 1%; perspective: 800px; transition: all 0.3s ease 0s; width: 23.7%; } .cardBox:hover .card { transform: rotateY( 180deg); } .card { background: #004672; cursor: default; height: 205px; transform-style: preserve-3d; transition: transform 0.4s ease 0s; width: 100%; -webkit-animation: giro 1s 1; animation: giro 1s 1; } .card p { margin-top: 1.2em; line-height:1.4em; } .card .front, .card .back { backface-visibility: hidden; box-sizing: border-box; color: white; display: block; font-size: 1.2em; height: 100%; padding: 0.3em; position: absolute; text-align: center; width: 100%; } .card .front strong { background: #fff; border-radius: 100%; color: #222; font-size: 1.5em; line-height: 30px; padding: 0 7px 4px 6px; } .card .back { transform: rotateY( 180deg); } .cardBox:nth-child(1) .card .back { background-color:#C7007D; } .cardBox:nth-child(2) .card .back { background-color:#D91F87; } .cardBox:nth-child(3) .card .back { background-color:#C24292; } .cardBox:nth-child(4) .card .back { background-color:#DF97C0; } .cardBox:nth-child(5) .card .back { background-color:#C7007D; } .cardBox:nth-child(6) .card .back { background-color:#D91F87; } .cardBox:nth-child(7) .card .back { background-color:#C24292; } .cardBox:nth-child(8) .card .back { background-color:#DF97C0; } .cardBox:nth-child(9) .card .back { background-color:#C7007D; } .cardBox:nth-child(10) .card .back { background-color:#D91F87; } .cardBox:nth-child(11) .card .back { background-color:#C24292; } .cardBox:nth-child(12) .card .back { background-color:#DF97C0; } .cardBox:nth-child(2) .card { -webkit-animation: giro 1.5s 1; animation: giro 1.5s 1; } .cardBox:nth-child(3) .card { -webkit-animation: giro 2s 1; animation: giro 2s 1; } .cardBox:nth-child(4) .card { -webkit-animation: giro 2.5s 1; animation: giro 2.5s 1; } .cardBox:nth-child(5) .card { -webkit-animation: giro 2.5s 1; animation: giro 2.5s 1; } .cardBox:nth-child(6) .card { -webkit-animation: giro 2.5s 1; animation: giro 2.5s 1; } .cardBox:nth-child(7) .card { -webkit-animation: giro 2.5s 1; animation: giro 2.5s 1; } .cardBox:nth-child(8) .card { -webkit-animation: giro 2.5s 1; animation: giro 2.5s 1; } .cardBox:nth-child(9) .card { -webkit-animation: giro 2.5s 1; animation: giro 2.5s 1; } .cardBox:nth-child(10) .card { -webkit-animation: giro 2.5s 1; animation: giro 2.5s 1; } .cardBox:nth-child(11) .card { -webkit-animation: giro 2.5s 1; animation: giro 2.5s 1; } .cardBox:nth-child(12) .card { -webkit-animation: giro 2.5s 1; animation: giro 2.5s 1; } @-webkit-keyframes giro { from { transform: rotateY( 180deg); } to { transform: rotateY( 0deg); } } @keyframes giro { from { transform: rotateY( 180deg); } to { transform: rotateY( 0deg); } } @media screen and (max-width: 970px) { .cardBox { margin-left: 2.8%; margin-top: 3%; width: 46%; } .card { height: 205px; } .card p { font-size: 0.9em; } .cardBox:last-child { margin-bottom: 3%; } } @media screen and (max-width: 480px) { .cardBox { width: 94.5%; } .card p { font-size: 1em; } .card { height: 205px; } }