Skip to content

Commit 27795ce

Browse files
committed
Initial implementation
Signed-off-by: Jaid <[email protected]>
1 parent 0cbaa57 commit 27795ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+5523
-135
lines changed

.browserslistrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/publishPackage.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitignore

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,7 @@
1-
# dotenv
2-
.env
3-
4-
# Node packages
1+
*.DS_Store
52
node_modules
6-
7-
# npm
8-
package-lock.json
9-
!/package-lock.json
10-
npm-debug.log
11-
npm-debug.log.*
12-
.npmrc
13-
/report.*.json
14-
15-
# pnpm
16-
shrinkwrap.yaml
17-
!/shrinkwrap.yaml
18-
pnpm-debug.log
19-
20-
# Yarn
21-
yarn.lock
22-
!/yarn.lock
23-
yarn-error.log
24-
25-
# Generated or temporary content
26-
dist
27-
temp
28-
29-
# IDEs
30-
/.vscode/
31-
/.idea/
3+
theme-extension/stable.css
4+
theme-extension/canary.css
5+
theme-extension.zip
6+
theme-extension.crx
7+
theme-extension.pem

Gruntfile.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
module.exports = function(grunt) {
2+
/* Load Plugins */
3+
4+
grunt.loadNpmTasks('grunt-contrib-less')
5+
grunt.loadNpmTasks('grunt-contrib-watch')
6+
grunt.loadNpmTasks('grunt-contrib-compress')
7+
grunt.loadNpmTasks('grunt-bump')
8+
9+
grunt.initConfig({
10+
pkg: '<json:package.json>',
11+
compress: {
12+
main: {
13+
options: {
14+
archive: 'theme-extension.zip',
15+
mode: 'zip',
16+
},
17+
files: [
18+
{
19+
cwd: 'theme-extension/',
20+
src: '**/*',
21+
expand: true,
22+
},
23+
],
24+
},
25+
},
26+
less: {
27+
generate: {
28+
options: {
29+
compress: true,
30+
ieCompat: false,
31+
},
32+
files: {
33+
'theme-extension/stable.css': 'less/build-stable.less',
34+
'theme-extension/canary.css': 'less/build-canary.less',
35+
},
36+
},
37+
build: {
38+
options: {
39+
compress: true,
40+
},
41+
files: {
42+
'theme-extension/stable.css': 'less/build-stable.less',
43+
'theme-extension/canary.css': 'less/build-canary.less',
44+
},
45+
},
46+
},
47+
watch: {
48+
canary: {
49+
files: [ 'less/*.less', 'themes/*.less' ],
50+
tasks: [ 'less:generate' ],
51+
},
52+
},
53+
})
54+
55+
grunt.registerTask('default', [ 'less:generate' ])
56+
grunt.registerTask('package', [ 'less:build', 'compress' ])
57+
}

jest.config.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

jsconfig.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

less/_animations.less

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**********************************************
2+
/* Animations
3+
/* -------------------------------------------
4+
/* If you are experiencing performance issues,
5+
/* remove the animations section below.
6+
/**********************************************/
7+
8+
// ==========================================================================
9+
// Popovers
10+
// ==========================================================================
11+
.show-popover-animations(@choice) when (@choice = true) {
12+
13+
@keyframes growFadeIn {
14+
0% {
15+
opacity: 0;
16+
transform: scale(.3);
17+
}
18+
19+
100% {
20+
transform: scale(1);
21+
}
22+
}
23+
24+
.popover {
25+
animation: growFadeIn .2s ease-in-out;
26+
27+
&.top-left-arrow { transform-origin: 25% 0%; }
28+
&.top-right-arrow { transform-origin: 75% 0%; }
29+
&.right-top-arrow { transform-origin: 100% 10%; }
30+
&.right-bottom-arrow { transform-origin: 100% 90%;}
31+
&.bottom-left-arrow { transform-origin: 25% 100%; }
32+
&.bottom-right-arrow { transform-origin: 75% 100%; }
33+
&.left-top-arrow { transform-origin: 0% 10%; }
34+
&.left-bottom-arrow { transform-origin: 0% 90%; }
35+
}
36+
}
37+
38+
// ==========================================================================
39+
// Child Highlighter
40+
// ==========================================================================
41+
42+
.show-child-highlighter-animations(@choice) when (@choice = true) {
43+
/*-- HIGHLIGHT CHILDREN --*/
44+
.elements-disclosure .parent + .children {
45+
transition: .5s ease-in .25s;
46+
}
47+
48+
.elements-disclosure .hovered,
49+
.elements-disclosure .selected {
50+
&.parent.expanded + .children > li:last-of-type .webkit-html-tag.close {
51+
transition: opacity .5s ease-in-out .25s;
52+
}
53+
}
54+
}

less/_canary.less

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// ==========================================================================
2+
// Sources Sidebar
3+
// ==========================================================================
4+
5+
// section headers - replace when stable
6+
.expandable-view-title {
7+
&:extend(.sidebar-pane all);
8+
}
9+
10+
// ==========================================================================
11+
// Sidebars
12+
// ==========================================================================
13+
14+
// Darken side panel bg
15+
.panel-sidebar {
16+
background-color: @global-background !important;
17+
}
18+
19+
// ==========================================================================
20+
// Syntax
21+
// ==========================================================================
22+
#console-messages .link,
23+
#console-messages .devtools-link {
24+
color: @global-text;
25+
}
26+
27+
// Adding class for weird bug where files that are of size equals multiple
28+
// of content hash's block_size (4096 bytes) always fail content verification due to bug.
29+
// https://bugs.chromium.org/p/chromium/issues/detail?id=720597
30+
// Fix landed in m61
31+
.dummy-class-to-fix-weird-bug {
32+
display: none;
33+
}

0 commit comments

Comments
 (0)