forked from exigeous/HOTASOverlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpedals.css
104 lines (95 loc) · 2.69 KB
/
pedals.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
@import url('https://fonts.googleapis.com/css?family=Orbitron:400,500');
.custom.controller {
width: 1900px;
height: 360px;
font-family: 'Orbitron', sans-serif;
}
.custom .bumper.pressed:after, .custom .button.pressed:after{
background: red;
color: black;
border-color: black;
transition: none
}
.custom .stick{
width: 20px;
height: 20px;
background: #fd1601;
display: inline-block;
position: absolute;
transform: translate(-50%, -50%);
border-radius: 10px;
}
.custom .bumper:after, .custom .button:after{
position: absolute;
display: inline-block;
background: black;
border: 2px solid hsla(193, 97%, 27%, 1);
color: hsla(193, 97%, 27%, 1);
font-size: 12px;
font-weight: 500;
padding: 10px;
border-radius: 25px;
text-align: center;
white-space: nowrap;
transition: 5s all linear
}
/* - END COMMON STUFF - */
.custom .sticks{
width: 135px;
height: 135px;
display: inline-block;
position: relative;
background: black;
border: 2px solid #03b2e1;
border-radius: 15px;
background-image: linear-gradient(0deg, transparent 48%, #002f3b 49%, #002f3b 50%, #002f3b 51%, transparent 52%, transparent), linear-gradient(90deg, transparent 48%, #002f3b 49%, #002f3b 50%, #002f3b 51%, transparent 52%, transparent);
top: calc(195px);
right: -100%;
transform: translateX(-100%);
background-size: calc(100% - 15px) 100%, 100% calc(100% - 15px);
background-repeat: no-repeat;
background-position: center;
padding: 2px;
/*We keep this stuff above to make sure the other stick
is in the right location while we hide background.*/
background: none;
border-color: transparent;
}
/* This part makes up the background of the Yaw part */
.custom .triggers{
width: 129px;
height: 20px;
display: inline-block;
background: black;
position: absolute;
border: 2px solid #03b2e1;
border-radius: 20px;
background-image: linear-gradient(90deg, transparent 48%, #002f3b 49%, #002f3b 50%, #002f3b 51%, transparent 52%, transparent);
background-size: 100% calc(100% - 10px);
background-repeat: no-repeat;
background-position: center;
padding: 5px;
right: 0;
top: 125px
}
/* Here we position the title for the Yaw axis */
.custom .triggers:after{
content: "YAW";
display: inline-block;
position: absolute;
font-size: 14px;
color: #03b2e1;
top: -1.5em;
right: 50%;
transform-origin: center;
transform: translateX(50%);
}
/* This is to hide the stick we're not using */
.custom .stick.left{
display: none;
}
/* This is to position the Yaw pointer */
.custom .stick.right{
top: calc(-55px);
left: 50%;
}