Skip to content

Commit d83953a

Browse files
committed
Restructured Project
1 parent 13074bc commit d83953a

File tree

11 files changed

+46
-77
lines changed

11 files changed

+46
-77
lines changed

Gruntfile.coffee

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ module.exports = (grunt) ->
44

55
License = '/*!Copyright(c) CommentCoreLibrary (//github.com/jabbany/CommentCoreLibrary) - Licensed under the MIT License */'
66

7+
CSS = [
8+
'src/css/base.css',
9+
'src/css/fontalias.css'
10+
]
11+
712
SRC_CORE = [
813
'src/CommentFilter.js'
914
'src/CommentSpaceAllocator.js'
@@ -29,17 +34,18 @@ module.exports = (grunt) ->
2934
grunt.initConfig(
3035
clean:
3136
build: ['build']
37+
3238
# Concat CSS and JS files
3339
# core_only : builds CCL without parsers
3440
# all : builds CCL with everything
3541
concat:
3642
core_only:
3743
files:
38-
'build/style.css': ['src/base.css', 'src/fontalias.css']
39-
'build/CommentCore.js': SRC_CORE
44+
'build/style.css': CSS
45+
'build/CommentCore.js': SRC_CORE
4046
all:
4147
files:
42-
'build/style.css': ['src/base.css', 'src/fontalias.css']
48+
'build/style.css': CSS
4349
'build/CommentCoreLibrary.js': SRC_CORELIB
4450

4551
# Auto-prefix CSS properties using Can I Use?

build/style.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ div.abp{
4343
text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white !important;
4444
}
4545

46-
/** Here because some UP-ers use chinese font names, and some of us are on Linux **/
46+
/** Aliases for Chinese named fonts because they don't work on *nix **/
4747
@font-face{
4848
font-family: "\9ED1\4F53";
4949
src:local('SimHei');
@@ -54,7 +54,17 @@ div.abp{
5454
src:local('SimSun');
5555
}
5656

57+
@font-face{
58+
font-family: "\534E\6587\6977\4F53";
59+
src:local('SimKai');
60+
}
61+
5762
@font-face{
5863
font-family: "\5E7C\5706";
5964
src:local('YouYuan');
6065
}
66+
67+
@font-face{
68+
font-family: "\5FAE\8F6F\96C5\9ED1";
69+
src:local('Microsoft YaHei');
70+
}

build/style.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

src/css/fontalias.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/** Aliases for Chinese named fonts because they don't work on *nix **/
2+
@font-face{
3+
font-family: "\9ED1\4F53";
4+
src:local('SimHei');
5+
}
6+
7+
@font-face{
8+
font-family: "\5B8B\4F53";
9+
src:local('SimSun');
10+
}
11+
12+
@font-face{
13+
font-family: "\534E\6587\6977\4F53";
14+
src:local('SimKai');
15+
}
16+
17+
@font-face{
18+
font-family: "\5E7C\5706";
19+
src:local('YouYuan');
20+
}
21+
22+
@font-face{
23+
font-family: "\5FAE\8F6F\96C5\9ED1";
24+
src:local('Microsoft YaHei');
25+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/external/timer.polyfill.js

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

src/fontalias.css

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

0 commit comments

Comments
 (0)