Skip to content

Commit 29fa557

Browse files
committed
2 parents 6d4a753 + 35cb22e commit 29fa557

File tree

12 files changed

+592
-17
lines changed

12 files changed

+592
-17
lines changed

api/modal.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212

1313
.st-modal {
1414
position: fixed;
15-
top: 15rem;
15+
top: 50%;
1616
width: calc(40% - 4rem);
1717
padding: 2rem;
1818
left: 30%;
1919
background-color: #fafafa;
2020
border-radius: 0.5rem;
21-
padding-top: 3rem;
21+
padding-top: 1rem;
2222
z-index: 2147483647;
23+
transform: translateY(-50%);
24+
border-top: 1rem solid #ff9f00;
2325
}
2426

2527
.st-modal h1 {

api/modals.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ ScratchTools.modals = {
2424
p.textContent = data.description;
2525
modal.appendChild(p);
2626

27-
var orangeBar = document.createElement("div");
28-
orangeBar.className = "st-modal-header";
29-
3027
data.components?.forEach(function (component) {
3128
if (component.type === "code") {
3229
var code = document.createElement("code");
@@ -46,7 +43,6 @@ ScratchTools.modals = {
4643
modal.appendChild(closeButton);
4744

4845
div.appendChild(modal);
49-
modal.prepend(orangeBar);
5046
document.body.appendChild(div);
5147

5248
return {

extras/feature-locales/en.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"filter": "filter",
3+
"title": "Title",
4+
"author": "Author",
5+
"period": "Period",
6+
"reset": "Reset",
7+
"sharedDate": "Shared Date",
8+
"updateDate": "Update Date",
9+
"startDate": "Start date",
10+
"endDate": "End date",
11+
"including": "including",
12+
"excluding": "excluding"
13+
}

features/explore-filter/data.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"title": "Explore Filter",
3+
"description": "Customize project and studio search results with filters on the Search, Explore, and Studio pages.",
4+
"credits": [
5+
{
6+
"username": "Masaabu-YT",
7+
"url": "https://scratch.mit.edu/users/Masaabu-YT/"
8+
}
9+
],
10+
"type": ["Website"],
11+
"tags": ["New", "Featured"],
12+
"dynamic": true,
13+
"options": [
14+
{
15+
"id": "filter-operation",
16+
"name": "Filter operation",
17+
"type": 4,
18+
"options": [
19+
{
20+
"name": "Blur",
21+
"value": "blur"
22+
},
23+
{
24+
"name": "Hide",
25+
"value": "hide"
26+
}
27+
]
28+
},
29+
{
30+
"id": "keep-settings",
31+
"name": "Keep filter setting even if you change pages",
32+
"type": 1
33+
}
34+
],
35+
"scripts": [
36+
{ "file": "script.js", "runOn": "/explore/*" },
37+
{ "file": "script.js", "runOn": "/search/*" },
38+
{ "file": "script.js", "runOn": "/studios/*" }
39+
],
40+
"styles": [
41+
{ "file": "style.css", "runOn": "/explore/*" },
42+
{ "file": "style.css", "runOn": "/search/*" },
43+
{ "file": "style.css", "runOn": "/studios/*" }
44+
],
45+
"resources": [
46+
{ "name": "filter-icon", "path": "/resources/filter.svg" },
47+
{ "name": "title-icon", "path": "/resources/title.svg" },
48+
{ "name": "user-icon", "path": "/resources/user.svg" },
49+
{ "name": "calendar-icon", "path": "/resources/calendar.svg" }
50+
]
51+
}
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)