Skip to content

Commit ff676e1

Browse files
committed
tweaked badge button
1 parent d138fd5 commit ff676e1

7 files changed

Lines changed: 17 additions & 17 deletions

File tree

dist/sceditor.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.

dist/sceditor.min.js

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

dist/sceditor.min.js.map

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

example/example.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<title>SCEditor Demo</title>
88

99
<link rel="stylesheet" href="../dist/sceditor.min.css" id="theme-style" />
10-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
10+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet">
1111

1212
<script src="../dist/sceditor.min.js"></script>
1313

14-
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" rel="stylesheet">
14+
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css" rel="stylesheet">
1515
</head>
1616
<body>
1717

@@ -53,7 +53,7 @@ <h1>SCEditor example</h1>
5353
<p class="col-md-4 mb-0 text-body-secondary">SCEditor is licensed under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT</a></p>
5454
</footer>
5555
</div>
56-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
56+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>
5757
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/prism.min.js" integrity="sha512-UOoJElONeUNzQbbKQbjldDf9MwOHqxNz49NNJJ1d90yp+X9edsHyJoAs6O4K19CZGaIdjI5ohK+O2y5lBTW6uQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
5858
<script>
5959
var textarea = document.getElementById('example');
@@ -66,7 +66,7 @@ <h1>SCEditor example</h1>
6666
plugins: 'emojis,undo,mentions,dragdrop',
6767

6868
//emojis: ['😊', '❤️', '😄', '😄', '😄', '😄', '😄', '😄', '😄', '😄', '😄', '😄'],
69-
styles: ['https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css', 'https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.min.css'],
69+
styles: ['https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css', 'https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.min.css'],
7070
toolbar: 'bold,italic,underline,strike|' +
7171
'font,size,color|mark|' +
7272
'email,link,unlink,quote,code,|image,albums|attachments|note|' +

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@rollup/plugin-node-resolve": "^16.0.3",
4747
"@w8tcha/grunt-dev-update": "^2.3.4",
4848
"autoprefixer": "^10.4.21",
49-
"cssnano": "^7.1.1",
49+
"cssnano": "^7.1.2",
5050
"grunt": "~1.6.1",
5151
"grunt-contrib-clean": "^2.0.1",
5252
"grunt-contrib-concat": "~2.1.0",
@@ -55,7 +55,7 @@
5555
"grunt-contrib-uglify": "^5.2.2",
5656
"grunt-eslint": "^26.0.0",
5757
"grunt-rollup": "^12.0.0",
58-
"grunt-sass": "^4.0.0",
58+
"grunt-sass": "^4.0.1",
5959
"istanbul-lib-coverage": "^3.2.2",
6060
"istanbul-lib-instrument": "^6.0.3",
6161
"istanbul-lib-report": "^3.0.1",
@@ -65,7 +65,7 @@
6565
"postcss-header": "^3.0.3",
6666
"qunit": "^2.24.2",
6767
"rangy": "^1.3.2",
68-
"sass": "^1.93.2",
68+
"sass": "^1.93.3",
6969
"sinon": "^21.0.0",
7070
"webpack": "^5.102.1",
7171
"webpack-dev-server": "^5.2.2"

src/icons/fontawesome.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
'center': '<i class="fa-solid fa-align-center"></i>',
2424
'code': '<i class="fa-solid fa-code"></i>',
2525
'color':
26-
'<span class="fa-stack me-2 pe-2"><i class="fas fa-font fa-stack-1x"></i><i class="fa fa-xs fa-palette sce-color fa-badge"></i></span>',
26+
'<span class="fa-stack me-2 pe-2"><i class="fas fa-font fa-stack-1x"></i><i class="fa fa-xs fa-palette sce-color fa-sceditor-badge"></i></span>',
2727
'copy': '<i class="fa-solid fa-copy"></i>',
2828
'cut': '<i class="fa-solid fa-scissors"></i>',
2929
'email': '<i class="fa-solid fa-envelope"></i>',
3030
'emojis': '<i class="fa-solid fa-face-smile"></i>',
3131
'extensions': '<i class="fa-solid fa-plug"></i>',
3232
'font':
33-
'<span class="fa-stack me-2 pe-2"><i class="fas fa-font fa-stack-1x"></i><i class="fa fa-xs fa-font fa-badge"></i></span>',
33+
'<span class="fa-stack me-2 pe-2"><i class="fas fa-font fa-stack-1x"></i><i class="fa fa-xs fa-font fa-sceditor-badge"></i></span>',
3434
'format': '<i class="fa-solid fa-font"></i>',
3535
'grip':
3636
'<svg xmlns="http://www.w3.org/2000/svg"viewbox="0 0 16 16" unselectable="on"><path d="M14.656 5.156l-10 10 .688.688 10-10-.688-.688zm0 3l-7 7 .688.688 7-7-.688-.688zm0 3l-4 4 .688.688 4-4-.688-.688z"/></svg>',
@@ -53,7 +53,7 @@
5353
'reply': '<i class="fa-solid fa-reply"></i>',
5454
'right': '<i class="fa-solid fa-align-right"></i>',
5555
'size':
56-
'<span class="fa-stack me-2 pe-2"><i class="fas fa-font fa-stack-1x"></i><i class="fa fa-xs fa-up-down fa-badge"></i></span>',
56+
'<span class="fa-stack me-2 pe-2"><i class="fas fa-font fa-stack-1x"></i><i class="fa fa-xs fa-up-down fa-sceditor-badge"></i></span>',
5757
'source': '<i class="fa-solid fa-file-code"></i>',
5858
'strike': '<i class="fa-solid fa-strikethrough"></i>',
5959
'table': '<i class="fa-solid fa-table"></i>',

src/sceditor.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ div.sceditor-grip {
8585
line-height: inherit;
8686
}
8787

88-
.fa-badge {
88+
.fa-sceditor-badge {
8989
position: absolute;
90-
right: -14px;
91-
top: 4px;
90+
right: -16px;
91+
top: 6px;
9292
}
9393

9494
.fa-stack-1x {
95-
top: -4px;
95+
top: -2px;
9696
}
9797
}
9898

0 commit comments

Comments
 (0)