Skip to content

Commit 3d7ea68

Browse files
committed
Add nmgt / resolve linting errors, add an icon to the speed plugin. Note that the default experience of the plugins may be broken due to me having a different CSS file for usage in the final project which fixes these problems.
1 parent e4013e6 commit 3d7ea68

File tree

4 files changed

+482
-5
lines changed

4 files changed

+482
-5
lines changed

Gruntfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module.exports = function (grunt) {
5959
'dist/skip-back/skip-back.js': 'src/skip-back/skip-back.js',
6060
'dist/source-chooser/source-chooser.js': 'src/source-chooser/source-chooser.js',
6161
'dist/speed/speed.js': 'src/speed/speed.js',
62+
'dist/nmgt/nmgt.js': 'src/nmgt/nmgt.js',
6263
'dist/stop/stop.js': 'src/stop/stop.js',
6364
'dist/vrview/vrview.js': 'src/vrview/vrview.js',
6465
'dist/markersrolls/markersrolls.js': 'src/markersrolls/markersrolls.js',
@@ -126,6 +127,7 @@ module.exports = function (grunt) {
126127
'dist/skip-back/skip-back.css': 'src/skip-back/skip-back.css',
127128
'dist/source-chooser/source-chooser.css': 'src/source-chooser/source-chooser.css',
128129
'dist/speed/speed.css': 'src/speed/speed.css',
130+
'dist/nmgt/nmgt.css': 'src/nmgt/nmgt.css',
129131
'dist/stop/stop.css': 'src/stop/stop.css',
130132
'dist/vrview/vrview.css': 'src/vrview/vrview.css'
131133
}
@@ -155,6 +157,7 @@ module.exports = function (grunt) {
155157
'dist/skip-back/skip-back.min.css': 'dist/skip-back/skip-back.css',
156158
'dist/source-chooser/source-chooser.min.css': 'dist/source-chooser/source-chooser.css',
157159
'dist/speed/speed.min.css': 'dist/speed/speed.css',
160+
'dist/nmgt/nmgt.min.css': 'dist/nmgt/nmgt.css',
158161
'dist/stop/stop.min.css': 'dist/stop/stop.css',
159162
'dist/vrview/vrview.min.css': 'dist/vrview/vrview.css'
160163
}

src/nmgt/nmgt.css

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
.mejs__nmgt-selector.mejs__offscreen {
2+
display: none;
3+
}
4+
5+
.mejs__nmgt-button,
6+
.mejs-nmgt-button {
7+
position: relative;
8+
}
9+
10+
.mejs__nmgt-button > button,
11+
.mejs-nmgt-button > button {
12+
background: transparent;
13+
color: white;
14+
font-size: 11px;
15+
line-height: normal;
16+
margin: 11px 0 0;
17+
width: 36px;
18+
}
19+
20+
.mejs__nmgt-selector,
21+
.mejs-nmgt-selector {
22+
background: rgba(50, 50, 50, 0.7);
23+
border: solid 1px transparent;
24+
border-radius: 0;
25+
height: 150px;
26+
left: -10px;
27+
overflow: hidden;
28+
padding: 0;
29+
position: absolute;
30+
top: -100px;
31+
width: 60px;
32+
}
33+
34+
.mejs__nmgt-selector-list,
35+
.mejs-nmgt-selector-list {
36+
display: block;
37+
list-style-type: none !important;
38+
margin: 0;
39+
overflow: hidden;
40+
padding: 0;
41+
}
42+
43+
.mejs__nmgt-selector-list-item,
44+
.mejs-nmgt-selector-list-item {
45+
border: 0.06rem solid transparent;
46+
color: #fff;
47+
display: block;
48+
list-style-type: none !important;
49+
margin: 0 0 6px;
50+
overflow: hidden;
51+
padding: 0 10px;
52+
}
53+
54+
.mejs__nmgt-selector-list-item:hover,
55+
.mejs-nmgt-selector-list-item:hover {
56+
background-color: rgb(200, 200, 200) !important;
57+
background-color: rgba(255, 255, 255, 0.4) !important;
58+
}
59+
60+
.mejs__nmgt-selector-list-item:focus-within,
61+
.mejs-nmgt-selector-list-item:focus-within {
62+
border-color: #fff;
63+
}
64+
65+
.mejs__nmgt-selector-input,
66+
.mejs-nmgt-selector-input {
67+
/* stylelint-disable-next-line property-no-unknown */
68+
accent-color: black;
69+
clear: both;
70+
float: left;
71+
height: 15px;
72+
left: 2px;
73+
margin: 3px 3px 0 5px;
74+
position: absolute;
75+
top: 11px;
76+
width: 15px;
77+
}
78+
79+
80+
81+
.mejs__nmgt-selector-label,
82+
.mejs-nmgt-selector-label {
83+
color: white;
84+
cursor: pointer;
85+
float: left;
86+
font-size: 11px;
87+
line-height: 15px;
88+
margin-left: 5px;
89+
padding: 4px 0 0;
90+
width: 60px;
91+
}
92+
93+
.mejs__nmgt-selected,
94+
.mejs-nmgt-selected {
95+
/* color: rgba(33, 248, 248, 1); */
96+
font-weight: 700;
97+
}
98+
99+
100+
.mejs__nmgt-button {
101+
width: 70px;
102+
}
103+
.mejs__nmgt-button > button {
104+
width: 70px;
105+
}

0 commit comments

Comments
 (0)