Advertisement
Guest User

style.css

a guest
Jan 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. /*
  2. * html5 doctor css reset | http://html5doctor.com/html-5-reset-stylesheet
  3. */
  4. html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
  5. body{line-height:1}
  6. article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
  7. nav ul{list-style:none}
  8. blockquote,q{quotes:none}
  9. blockquote:before,blockquote:after,q:before,q:after{content:none}
  10. a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}
  11. ins{background-color:#ff9;color:#000;text-decoration:none}
  12. mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
  13. del{text-decoration:line-through}
  14. abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
  15. table{border-collapse:collapse;border-spacing:0}
  16. hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
  17. input,select{vertical-align:middle}
  18.  
  19. * {
  20. -webkit-box-sizing: border-box;
  21. -moz-box-sizing: border-box;
  22. box-sizing: border-box;
  23. }
  24.  
  25. .board {
  26. display: flex;
  27. flex-wrap: wrap;
  28. height: 100vh;
  29. width: 100vh;
  30. margin: auto;
  31. border: 4px solid #000;
  32. }
  33.  
  34. .cell {
  35. width: 25%;
  36. height: 33.333333333333336%;
  37. padding: 10px;
  38. background: yellow;
  39. perspective: 400px;
  40. }
  41.  
  42. .card {
  43. position: relative;
  44. height: 100%;
  45. width: 100%;
  46. color: #fff;
  47. transform-style: preserve-3d;
  48. transition: all 0.8s;
  49. }
  50.  
  51. .card.flipped {
  52. transform: rotateY(180deg);
  53. }
  54.  
  55. .card div {
  56. position: absolute;
  57. top: 0;
  58. left: 0;
  59. right: 0;
  60. bottom: 0;
  61. backface-visibility: hidden;
  62. }
  63.  
  64. .recto {
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. font-size: 48px;
  69. background: red;
  70. transform: rotateY(180deg);
  71. }
  72.  
  73. .verso {
  74. background: navy;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement