new PS5 controller skin

This commit is contained in:
Khyretos 2024-12-10 20:29:14 +01:00
parent 2f3d181471
commit cfbe8a150d

View file

@ -1,287 +1,156 @@
/*BEGIN PS4 Controller Styling*/ body {
.controller.ds4 { background-color: #000000;
background: url(White_SkinNo_Buttons.png); background-color: RGBA(0, 0, 0, 0);
height: 700px; margin: 0 auto;
width: 1200px; overflow: hidden;
/* margin-left: -403px;
margin-top: -280px;*/
} }
.controller.xbox {
.ds4.disconnected div { background: url(https://i.imgur.com/fJIyBwn.png);
display: none; width: 807px;
height: 651px;
margin-left: 0;
margin-top: 0;
} }
.xbox .sticks {
.ds4 .triggers { width: 367px;
width: 598px; height: 100px;
height: 90px; left: 220px;
position: absolute; top: 333px;
left: 299px;
top: 38px;
} }
.xbox .stick {
.ds4 .trigger { background: url(https://i.imgur.com/nXaGdI2.png);
width: 99px; width: 100px;
height: 100%; height: 100px;
background: url(Trigger_Pressed.png);
opacity: 0;
} }
.xbox .stick.pressed {
.ds4 .trigger.left { background-position: -102px 0;
float: left;
} }
.xbox .stick.right {
.ds4 .trigger.right { top: 0;
float: right; left: 267px;
background-position-x: 99px;
} }
.xbox .abxy {
.ds4 .bumper { width: 181px;
width: 200px; height: 181px;
height: 45px; left: 573px;
background: url(Bumper.png) no-repeat; top: 178px;
opacity: 0;
} }
.xbox .button {
.ds4 .bumpers { background: url(https://i.imgur.com/DVqDSsJ.png);
position: absolute; width: 58px;
width: 672px; height: 58px;
height: 23px;
left: 263px;
top: 132px;
} }
.xbox .button.pressed {
.ds4 .bumper.pressed { background-position-y: -59px;
opacity: 0.8; margin-top: 0;
} }
.xbox .a {
.ds4 .bumper.left { background-position: 0 0;
/* -webkit-transform: rotateY(180deg); */ left: 61px;
/* transform: rotateY(180deg); */ top: 123px;
float: left;
} }
.xbox .b {
.ds4 .bumper.right { background-position: -59px 0;
float: right; left: 123px;
transform: rotateY(180deg); top: 62px;
} }
.xbox .x {
.ds4 .touchpad { background-position: -118px 0;
width: 350px; left: 0px;
height: 300px; top: 61px;
position: absolute;
left: 422px;
top: 74px;
} }
.xbox .y {
.ds4 .touchpad.pressed { background-position: -177px 0;
background: url(Touchpad.png) no-repeat center; left: 61px;
top: 0px;
} }
.xbox .arrows {
.ds4 .meta { left: 195px;
width: 100px; top: 140px;
height: 100px; width: 416px;
position: absolute; height: 57px;
left: 546px;
bottom: 264px;
} }
.xbox .quadrant {
.ds4 .meta.pressed { display: none;
background: url(Home.png) no-repeat center;
} }
.xbox .back,
.ds4 .p0{ .xbox .start {
background-position: 0 -6px; background: url(https://i.imgur.com/YJRVQxC.png);
width: 27px;
height: 57px;
opacity: 0;
} }
.ds4 .p1{ .xbox .start {
background-position: 0 -28px; background-position: 27px 0;
float: right;
} }
.ds4 .p2{ .xbox .dpad {
background-position: 0 -49px; width: 144px;
height: 144px;
left: 71px;
top: 196px;
} }
.ds4 .p3{ .xbox .face {
background-position: 0 -70px; background: url(https://i.imgur.com/hCmzXWK.png);
}*/ position: absolute;
.ds4 .arrows { opacity: 0;
position: absolute;
width: 352px;
height: 46px;
top: 142px;
left: 227px;
} }
.xbox .face.up {
.ds4 .back, .ds4 .start { background-position: 0 -68px;
background: url(Select.png); width: 52px;
width: 26px; height: 63px;
height: 43px; left: 46px;
opacity: 0;
} }
.ds4 .start { .xbox .face.down {
position: absolute; background-position: -54px 63px;
left: 546px; width: 52px;
bottom: -30px; height: 63px;
left: 46px;
top: 81px;
} }
.ds4 .back { .xbox .face.left {
position: absolute; background-position: -108px -68px;
left: 170px; width: 64px;
bottom: -30px; height: 52px;
left: -1px;
top: 47px;
} }
.xbox .face.right {
background-position: -175px -68px;
.ds4 .back.pressed, .ds4 .start.pressed { width: 63px;
/* background-position-y: -21px; */ height: 52px;
/* margin-top: 2px; */ left: 81px;
opacity: 1; top: 46px;
} }
.xbox .bumpers {
.ds4 .back { width: 620px;
float: left; height: 35px;
/* width: 28px; */ left: 93px;
top: 114px;
} }
.xbox .bumper {
.ds4 .start { background: url(https://i.imgur.com/2YssqRT.png);
float: right; width: 110px;
/* width: 28px; */ height: 35px;
background-position: 0px 0; opacity: 0;
} }
.xbox .triggers {
.ds4 .abxy { width: 619px;
position: absolute; height: 108px;
width: 170px; left: 94px;
height: 171px;
top: 200px;
left: 762px;
} }
.xbox .trigger {
.ds4 .button { background: url(https://i.imgur.com/LsxmGBD.png);
position: absolute; width: 111px;
width: 55px; height: 108px;
height: 55px; opacity: 0;
background: url(FaceButtons.png);
} }
.xbox .trigger.right {
.ds4 .button.pressed { background-position: -113px 0;
background-position-y: 55px; transform: rotateY(0);
/* margin-top: 5px; */
} }
/*
.ds4 .a { The general design of the DualSense (tm) controller, as well as the PlayStation (tm) logo, are the intellectual property of Sony.
background-position: 0 0; Vectorized design referenced in the images linked above: copyright (c) CrazyGrape 2021
bottom: 0px; This work is licensed under a Creative Commons Attribution 3.0 United States License. The terms of this license are available at https://creativecommons.org/licenses/by/3.0/us/
left: 58px; */
}
.ds4 .b {
background-position: -57px 0;
top: 57px;
right: -3px;
}
.ds4 .x {
background-position: -113px 0;
top: 57px;
}
.ds4 .y {
background-position: 55px 0;
left: 58px;
bottom: 119px;
}
.ds4 .sticks {
position: absolute;
width: 364px;
height: 105px;
top: 348px;
left: 422px;
}
.ds4 .stick {
position: absolute;
background: url(Sticks.png);
height: 94px;
width: 94px;
}
.ds4 .stick.pressed.left {
background-position-x: -96px;
}
.ds4 .stick.pressed.right {
background-position-x: -192px;
}
.ds4 .stick.left {
top: 0;
left: 0;
}
.ds4 .stick.right {
top: calc(100% - 105px);
left: calc(100% - 105px);
}
.ds4 .dpad {
position: absolute;
width: 125px;
height: 126px;
top: 220px;
left: 286px;
}
.ds4 .face {
background: url(Dpad.png);
position: absolute;
}
.ds4 .face.up, .ds4 .face.down {
width: 37px;
height: 52px;
}
.ds4 .face.left, .ds4 .face.right {
width: 52px;
height: 40px;
}
.ds4 .face.up {
left: 44px;
top: 0;
background-position: -37px 0px;
}
.ds4 .face.down {
left: 44px;
bottom: 0;
background-position: 0px 0;
}
.ds4 .face.left {
top: 45px;
left: 0;
background-position: 104px 0;
}
.ds4 .face.right {
top: 45px;
right: 0px;
background-position: 52px 0;
}
.ds4 .face.pressed {
/* margin-top: 5px; */
background-position-y: 52px;
}
.ds4.half {
margin-top: -300px;
}
/*END PS4 Controller Styling*/
.ds4.white .back, .ds4 .start {
background-image: url(Start.png);
width: 26px;
height: 43px;
}
/*END PS4 White Controller Styling*/