-
Notifications
You must be signed in to change notification settings - Fork 0
/
RStick2.css
177 lines (151 loc) · 3.7 KB
/
RStick2.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
@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;
}
.custom .sticks:before{
content: "PITCH";
display: inline-block;
position: absolute;
font-size: 15px;
color: #03b2e1;
top: -1.5em;
left: 50%;
transform: translateX(-50%);
}
.custom .sticks:after{
content: "YAW";
display: inline-block;
position: absolute;
font-size: 15px;
color: #03b2e1;
top: 50%;
right: calc(80% + 1.25em);
transform-origin: center;
transform: translateY(-50%) rotate(-90deg);
}
.custom .stick.left{
top: 50%;
left: 50%;
}
/*Hiding the unused stick*/
/*.custom .stick.right{*/
/* display: none*/
/*}*/
.custom .bumpers{
position: absolute;
top: 0;
left: 0;
}
.custom .abxy{
position: absolute;
width: 100%;
top: 0;
}
/* FA Button */
.custom .bumper.right:after{
content: "FA";
left: 68px;
top: 45px;
word-wrap: normal;
width: 49px;
transition: none
}
/* FA Button when set to off */
.custom .bumper.right.pressed:after{
content: "FA OFF";
}
/*Chaff Button*/
/*.custom .button.y:after{*/
/* content: "CHAFF";*/
/* right: 80px;*/
/* top: 0px*/
/*}*/
/* Below here is from another file */
/* - END COMMON STUFF - */
/* This part makes up the background of the Roll 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 Roll axis */
.custom .triggers:after{
content: "ROLL";
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 Roll pointer */
.custom .stick.right{
top: calc(-55px);
left: 50%;
}