Advertisement
cypherine

pokemonbattllecss.css

Jan 19th, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.66 KB | None | 0 0
  1. body{
  2.   font-family: 'helvetica neue', helvetica, arial, sans-serif;
  3.   font-size: 16px;
  4.   padding-top: 30px;
  5. }
  6.  
  7. header{
  8.   text-align: center;
  9.   img{
  10.     max-height: 100px;
  11.     cursor: pointer;
  12.   }
  13. }
  14.  
  15. strong{
  16.   font-weight: 600;
  17.   line-height: 1.5em;
  18. }
  19.  
  20.  
  21. .type{
  22.   display: inline-block;
  23.   height: 30px;
  24.   width: 30px;
  25.   margin: 10px;
  26.   background-image: url('http://orig15.deviantart.net/24d8/f/2011/057/3/5/ge___energy_type_icons_by_aschefield101-d3agp02.png');
  27.   background-repeat: no-repeat;
  28.   background-size: 500% 400%;
  29.   &.electric{
  30.     background-position: 100% 0;
  31.   }
  32.   &.fire{
  33.     background-position: 25% 33%;
  34.   }
  35.   &.water{
  36.     background-position: 63% 100%;
  37.   }
  38.   &.grass{
  39.     background-position: 100% 33%;
  40.   }
  41.   &.fighting{
  42.     background-position: 0 33%;
  43.   }
  44. }
  45.  
  46.  
  47. .row{
  48.   display: block;
  49.   min-height: 50px;
  50. }
  51.  
  52.  
  53. .instructions{
  54.   text-align: center;
  55.   padding: 20px 0;
  56.  
  57.   p{
  58.     font-size: 2em;
  59.   }
  60. }
  61.  
  62.  
  63. .characters{
  64.   display: flex;
  65.   justify-content: space-around;
  66.   transition: visibility 0.3s ease, opacity 0.3s ease, height 0.3s ease;
  67.  
  68.   &.hidden{
  69.     visibility: hidden;
  70.     opacity: 0;
  71.     height: 0;
  72.   }
  73. }
  74. .char-container{
  75.   width: 25%;
  76.   text-align: center;
  77.   padding: 25px 0;
  78.   cursor: pointer;
  79.  
  80.   img{
  81.     max-height: 100px;
  82.     margin-bottom: 13px;
  83.     transition: transform 0.3s ease, margin 0.3s ease;
  84.   }
  85.   h2{
  86.     text-transform: capitalize;
  87.     font-size: 1.5em;
  88.     font-weight: 600;
  89.     transition: font-size 0.3s ease;
  90.   }
  91.  
  92.   &:hover{
  93.     img{
  94.       transform: scale(1.3);
  95.       margin-bottom: 17px;
  96.     }
  97.     h2{
  98.       font-size: 1.2em;
  99.     }
  100.   }
  101. }
  102.  
  103.  
  104. .stadium{
  105.   background: #7DCD79;
  106.  
  107.   >section{
  108.     display: block;
  109.     box-sizing: border-box;
  110.    
  111.     .char{
  112.       height: 175px;
  113.       position: relative;
  114.      
  115.       > *{
  116.         position: absolute;
  117.         text-transform: capitalize;
  118.       }
  119.      
  120.       img{
  121.         height: 150px;
  122.       }
  123.      
  124.       .data{
  125.         background: #CCC;
  126.         width: 20vw;
  127.         padding: 15px 2%;
  128.         box-sizing: border-box;
  129.         top: 25px;
  130.         progress{
  131.           width: 100%;
  132.         }
  133.         p{
  134.           text-align: right;
  135.         }
  136.       }
  137.     }
  138.   }
  139.  
  140.   .enemy{
  141.     img{
  142.       right: 15vw;
  143.     }
  144.     .data{
  145.       left: 15vw;
  146.     }
  147.   }
  148.  
  149.   .hero{
  150.     img{
  151.       left: 15vw;
  152.     }
  153.     .data{
  154.       right: 15vw;
  155.     }
  156.   }
  157. }
  158.  
  159.  
  160. .attack-list{
  161.   display: flex;
  162.   flex-wrap: wrap;
  163.   background: #FFFAFA;
  164.   position: initial;
  165.   transtion: opacity 0.3s ease;
  166.   text-transform: capitalize;
  167.  
  168.   &.disabled{
  169.     opacity: 0.5;
  170.     position: relative;
  171.     z-index: -1;
  172.     cursor: initial;
  173.   }
  174.  
  175.   li{
  176.     width: 50%;
  177.     text-align: center;
  178.     padding: 25px 0;
  179.     box-sizing: border-box;
  180.     border: 1px solid #666;
  181.     cursor: pointer;
  182.     transition: background 0.3s ease;
  183.    
  184.     &:hover{
  185.       background: #EEE;
  186.     }
  187.   }
  188. }
  189.  
  190.  
  191.  
  192. .modal-out{
  193.   display: none;
  194.   position: fixed;
  195.   top: 0;
  196.   left: 0;
  197.   height: 100vh;
  198.   width: 100vw;
  199.   background: rgba(33,33,33,0.75);
  200.   z-index: 900;
  201.  
  202.   .modal-in{
  203.     position: fixed;
  204.     top: 15vh;
  205.     left: 0;
  206.     right: 0;
  207.     width: 50vw;
  208.     height: 70vh;
  209.     margin: 0 auto;
  210.     background: #FFFAFA;
  211.    
  212.     header{
  213.       position: relative;
  214.       min-height: 30px;
  215.       text-align: center;
  216.       padding: 10px 3%;
  217.       box-sizing: border-box;
  218.       h1{
  219.         font-size: 2.2em;
  220.       }
  221.     }
  222.     .close{
  223.       cursor: pointer;
  224.       position: absolute;
  225.       top: 13px;
  226.       right: 13px;
  227.     }
  228.    
  229.     section{
  230.       box-sizing: border-box;
  231.       padding: 25px 3%;
  232.     }
  233.   }
  234. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement