Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.51 KB | None | 0 0
  1. /*BEGIN PS4 Controller Styling*/
  2. .controller.ds4 {
  3.     background: url(https://imgur.com/S7kcihO);
  4.     height: 598px;
  5.     width: 806px;
  6.     /*    margin-left: -403px;
  7.         margin-top: -280px;*/
  8. }
  9.  
  10. .ds4.disconnected {
  11.     background: url(https://imgur.com/5nwqTas);
  12. }
  13.  
  14. .ds4.disconnected div {
  15.     display: none;
  16. }
  17.  
  18. .ds4 .triggers {
  19.     width: 588px;
  20.     height: 90px;
  21.     position: absolute;
  22.     left: 109px;
  23. }
  24.  
  25. .ds4 .trigger {
  26.     width: 99px;
  27.     height: 100%;
  28.     background: url(https://imgur.com/w4KCnPU);
  29.     opacity: 0;
  30. }
  31.  
  32. .ds4 .trigger.left {
  33.     float: left;
  34. }
  35.  
  36. .ds4 .trigger.right {
  37.     float: right;
  38.     background-position-x: 99px;
  39. }
  40.  
  41. .ds4 .bumper {
  42.     width: 99px;
  43.     height: 23px;
  44.     background: url(https://imgur.com/WtfGkgZ) no-repeat;
  45.     opacity: 0;
  46. }
  47.  
  48. .ds4 .bumpers {
  49.     position: absolute;
  50.     width: 588px;
  51.     height: 23px;
  52.     left: 109px;
  53.     top: 94px;
  54. }
  55.  
  56. .ds4 .bumper.pressed {
  57.     opacity: 1;
  58. }
  59.  
  60. .ds4 .bumper.left {
  61.     /* -webkit-transform: rotateY(180deg); */
  62.     /* transform: rotateY(180deg); */
  63.     float: left;
  64. }
  65.  
  66. .ds4 .bumper.right {
  67.     float: right;
  68.     transform: rotateY(180deg);
  69. }
  70.  
  71. .ds4 .touchpad {
  72.     width: 262px;
  73.     height: 151px;
  74.     position: absolute;
  75.     left: 272px;
  76.     top: 122px;
  77. }
  78.  
  79. .ds4 .touchpad.pressed {
  80.     background: url(https://imgur.com/GyiQds8)) no-repeat center;
  81. }
  82.  
  83. .ds4 .meta {
  84.     width: 42px;
  85.     height: 42px;
  86.     position: absolute;
  87.     left: 382px;
  88.     bottom: 216px;
  89. }
  90.  
  91. .ds4 .meta.pressed {
  92.     background: url(https://imgur.com/EtpsGzE) no-repeat center;
  93. }
  94.  
  95. /*Not needed, but I like keeping them here for posterity*/
  96. /*.ds4 .quadrant{
  97. position: absolute;
  98. background: url(ps4-assets/player-n.svgz);
  99. height: 17px;
  100. width: 111px;
  101. top: 140px;
  102. left: 240px;
  103. }
  104. .ds4 .p0{
  105. background-position: 0 -6px;
  106. }
  107. .ds4 .p1{
  108. background-position: 0 -28px;
  109. }
  110. .ds4 .p2{
  111. background-position: 0 -49px;
  112. }
  113. .ds4 .p3{
  114. background-position: 0 -70px;
  115. }*/
  116. .ds4 .arrows {
  117.     position: absolute;
  118.     width: 352px;
  119.     height: 46px;
  120.     top: 142px;
  121.     left: 227px;
  122. }
  123.  
  124. .ds4 .back, .ds4 .start {
  125.     background: url(https://imgur.com/ZvZZJIk));
  126.     width: 28px;
  127.     height: 46px;
  128.     opacity: 0;
  129. }
  130.  
  131. .ds4 .back.pressed, .ds4 .start.pressed {
  132.     /* background-position-y: -21px; */
  133.     /* margin-top: 2px; */
  134.     opacity: 1;
  135. }
  136.  
  137. .ds4 .back {
  138.     float: left;
  139.     /* width: 28px; */
  140. }
  141.  
  142. .ds4 .start {
  143.     float: right;
  144.     /* width: 28px; */
  145.     background-position: 28px 0;
  146. }
  147.  
  148. .ds4 .abxy {
  149.     position: absolute;
  150.     width: 170px;
  151.     height: 171px;
  152.     top: 159px;
  153.     left: 567px;
  154. }
  155.  
  156. .ds4 .button {
  157.     position: absolute;
  158.     width: 55px;
  159.     height: 55px;
  160.     background: url(https://imgur.com/HlPr1Md);
  161. }
  162.  
  163. .ds4 .button.pressed {
  164.     background-position-y: 55px;
  165.     /* margin-top: 5px; */
  166. }
  167.  
  168. .ds4 .a {
  169.     background-position: 0 0;
  170.     bottom: 0;
  171.     left: 58px;
  172. }
  173.  
  174. .ds4 .b {
  175.     background-position: -57px 0;
  176.     top: 58px;
  177.     right: 0px;
  178. }
  179.  
  180. .ds4 .x {
  181.     background-position: -113px 0;
  182.     top: 58px;
  183. }
  184.  
  185. .ds4 .y {
  186.     background-position: 55px 0;
  187.     left: 58px;
  188. }
  189.  
  190. .ds4 .sticks {
  191.     position: absolute;
  192.     width: 361px;
  193.     height: 105px;
  194.     top: 308px;
  195.     left: 228px;
  196. }
  197.  
  198. .ds4 .stick {
  199.     position: absolute;
  200.     background: url(https://imgur.com/fGrcx6w);
  201.     height: 94px;
  202.     width: 94px;
  203. }
  204.  
  205. .ds4 .stick.pressed.left {
  206.     background-position-x: -96px;
  207. }
  208.  
  209. .ds4 .stick.pressed.right {
  210.     background-position-x: -192px;
  211. }
  212.  
  213. .ds4 .stick.left {
  214.     top: 0;
  215.     left: 0;
  216. }
  217.  
  218. .ds4 .stick.right {
  219.     top: calc(100% - 105px);
  220.     left: calc(100% - 105px);
  221. }
  222.  
  223. .ds4 .dpad {
  224.     position: absolute;
  225.     width: 125px;
  226.     height: 126px;
  227.     top: 181px;
  228.     left: 92px;
  229. }
  230.  
  231. .ds4 .face {
  232.     background: url(https://imgur.com/4fLVqsR);
  233.     position: absolute;
  234. }
  235.  
  236. .ds4 .face.up, .ds4 .face.down {
  237.     width: 36px;
  238.     height: 52px;
  239. }
  240.  
  241. .ds4 .face.left, .ds4 .face.right {
  242.     width: 52px;
  243.     height: 36px;
  244. }
  245.  
  246. .ds4 .face.up {
  247.     left: 44px;
  248.     top: 0;
  249.     background-position: -37px 0px;
  250. }
  251.  
  252. .ds4 .face.down {
  253.     left: 44px;
  254.     bottom: 0;
  255.     background-position: 0px 0;
  256. }
  257.  
  258. .ds4 .face.left {
  259.     top: 45px;
  260.     left: 0;
  261.     background-position: 104px 0;
  262. }
  263.  
  264. .ds4 .face.right {
  265.     top: 45px;
  266.     right: 0px;
  267.     background-position: 52px 0;
  268. }
  269.  
  270. .ds4 .face.pressed {
  271.     /* margin-top: 5px; */
  272.     background-position-y: 52px;
  273. }
  274.  
  275. .ds4.half {
  276.     margin-top: -300px;
  277. }
  278.  
  279. /*END PS4 Controller Styling*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement