Advertisement
mad24md

Untitled

May 6th, 2024 (edited)
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.12 KB | None | 0 0
  1. /*BEGIN PS4 Controller Styling*/
  2. .controller.ds4 {
  3.   background: url(base.svgz);
  4.   height: 598px;
  5.   width: 806px;
  6.   /*    margin-left: -403px;
  7.         margin-top: -280px;*/
  8. }
  9.  
  10. .ds4.disconnected {
  11.   background: url(disconnected.svgz);
  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(triggers.svgz);
  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(bumper.svgz) 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(touchpad.svgz) 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(meta.svgz) 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(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,
  125. .ds4 .start {
  126.   background: url(start.svgz);
  127.   width: 28px;
  128.   height: 46px;
  129.   opacity: 0;
  130. }
  131.  
  132. .ds4 .back.pressed,
  133. .ds4 .start.pressed {
  134.   /* background-position-y: -21px; */
  135.   /* margin-top: 2px; */
  136.   opacity: 1;
  137. }
  138.  
  139. .ds4 .back {
  140.   float: left;
  141.   /* width: 28px; */
  142. }
  143.  
  144. .ds4 .start {
  145.   float: right;
  146.   /* width: 28px; */
  147.   background-position: 28px 0;
  148. }
  149.  
  150. .ds4 .abxy {
  151.   position: absolute;
  152.   width: 170px;
  153.   height: 171px;
  154.   top: 159px;
  155.   left: 567px;
  156. }
  157.  
  158. .ds4 .button {
  159.   position: absolute;
  160.   width: 55px;
  161.   height: 55px;
  162.   background: url(face.svgz);
  163. }
  164.  
  165. .ds4 .button.pressed {
  166.   background-position-y: 55px;
  167.   /* margin-top: 5px; */
  168. }
  169.  
  170. .ds4 .a {
  171.   background-position: 0 0;
  172.   bottom: 0;
  173.   left: 58px;
  174. }
  175.  
  176. .ds4 .b {
  177.   background-position: -57px 0;
  178.   top: 58px;
  179.   right: 0px;
  180. }
  181.  
  182. .ds4 .x {
  183.   background-position: -113px 0;
  184.   top: 58px;
  185. }
  186.  
  187. .ds4 .y {
  188.   background-position: 55px 0;
  189.   left: 58px;
  190. }
  191.  
  192. .ds4 .sticks {
  193.   position: absolute;
  194.   width: 361px;
  195.   height: 105px;
  196.   top: 308px;
  197.   left: 228px;
  198. }
  199.  
  200. .ds4 .stick {
  201.   position: absolute;
  202.   background: url(sticks.svgz);
  203.   height: 94px;
  204.   width: 94px;
  205. }
  206.  
  207. .ds4 .stick.pressed.left {
  208.   background-position-x: -96px;
  209. }
  210.  
  211. .ds4 .stick.pressed.right {
  212.   background-position-x: -192px;
  213. }
  214.  
  215. .ds4 .stick.left {
  216.   top: 0;
  217.   left: 0;
  218. }
  219.  
  220. .ds4 .stick.right {
  221.   top: calc(100% - 105px);
  222.   left: calc(100% - 105px);
  223. }
  224.  
  225. .ds4 .dpad {
  226.   position: absolute;
  227.   width: 125px;
  228.   height: 126px;
  229.   top: 181px;
  230.   left: 92px;
  231. }
  232.  
  233. .ds4 .face {
  234.   background: url(dpad.svgz);
  235.   position: absolute;
  236. }
  237.  
  238. .ds4 .face.up,
  239. .ds4 .face.down {
  240.   width: 36px;
  241.   height: 52px;
  242. }
  243.  
  244. .ds4 .face.left,
  245. .ds4 .face.right {
  246.   width: 52px;
  247.   height: 36px;
  248. }
  249.  
  250. .ds4 .face.up {
  251.   left: 44px;
  252.   top: 0;
  253.   background-position: -37px 0px;
  254. }
  255.  
  256. .ds4 .face.down {
  257.   left: 44px;
  258.   bottom: 0;
  259.   background-position: 0px 0;
  260. }
  261.  
  262. .ds4 .face.left {
  263.   top: 45px;
  264.   left: 0;
  265.   background-position: 104px 0;
  266. }
  267.  
  268. .ds4 .face.right {
  269.   top: 45px;
  270.   right: 0px;
  271.   background-position: 52px 0;
  272. }
  273.  
  274. .ds4 .face.pressed {
  275.   /* margin-top: 5px; */
  276.   background-position-y: 52px;
  277. }
  278.  
  279. .ds4.half {
  280.   margin-top: -300px;
  281. }
  282.  
  283. /*END PS4 Controller Styling*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement