Browse Source

add loading css

mathjax-version
Pandao 10 years ago
parent
commit
f978cc0f17
  1. 15
      dist/css/editormd.css
  2. 4
      dist/css/editormd.css.map
  3. 4
      dist/css/editormd.css.min.map
  4. 4
      dist/css/editormd.min.css
  5. BIN
      dist/images/loading.gif
  6. BIN
      dist/images/loading@2x.gif
  7. BIN
      dist/images/loading@3x.gif
  8. 6
      dist/js/editormd.js
  9. 4
      dist/js/editormd.min.js
  10. 2
      src/js/editormd.js
  11. 16
      src/scss/editormd.scss

15
dist/css/editormd.css

@ -6,7 +6,7 @@
* @license MIT License
* @author Pandao
* {@link https://github.com/pandao/editor.md}
* @updateTime 2015-02-05
* @updateTime 2015-02-06
*/
/*!
@ -2370,11 +2370,24 @@
border: 1px solid #ddd;
text-align: left;
overflow: hidden;
background: url("../images/loading.gif") no-repeat center center;
-webkit-background-size: 32px 32px;
background-size: 32px 32px;
}
.editormd a {
text-decoration: none;
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
.editormd {
background-image: url(../images/loading@2x.gif);
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), only screen and (min-device-pixel-ratio: 3) {
.editormd {
background-image: url(../images/loading@3x.gif);
}
}
.editormd-toolbar {
width: 100%;
min-height: 35px;

4
dist/css/editormd.css.map

File diff suppressed because one or more lines are too long

4
dist/css/editormd.css.min.map

File diff suppressed because one or more lines are too long

4
dist/css/editormd.min.css

File diff suppressed because one or more lines are too long

BIN
dist/images/loading.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
dist/images/loading@2x.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
dist/images/loading@3x.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

6
dist/js/editormd.js

@ -1,12 +1,12 @@
/*
* Editor.md
* @file editormd.js
* @version v0.1.0
* @version v1.0.0
* @description A simple online markdown editor.
* @license MIT License
* @author Pandao
* {@link https://github.com/pandao/editor.md}
* @updateTime 2015-02-05
* @updateTime 2015-02-06
*/
;(function(factory) {
@ -792,6 +792,8 @@
var htmlTextarea = this.htmlTextarea = editor.find("."+this.classNames.textarea.html);
var markdownTextarea = this.markdownTextarea = editor.find("."+this.classNames.textarea.markdown);
editor.css("background", "none");
this.saveToTextareas();
preview.show();

4
dist/js/editormd.min.js

File diff suppressed because one or more lines are too long

2
src/js/editormd.js

@ -781,6 +781,8 @@
var htmlTextarea = this.htmlTextarea = editor.find("."+this.classNames.textarea.html);
var markdownTextarea = this.markdownTextarea = editor.find("."+this.classNames.textarea.markdown);
editor.css("background", "none");
this.saveToTextareas();
preview.show();

16
src/scss/editormd.scss

@ -12,13 +12,27 @@
@include box-sizing(border-box);
border: 1px solid $borderColor;
text-align: left;
overflow: hidden;
overflow: hidden;
background: url("../images/loading.gif") no-repeat center center;
@include background-size(32px 32px);
a {
text-decoration: none;
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
.editormd {
background-image: url(../images/loading@2x.gif);
}
}
@media only screen and (-webkit-min-device-pixel-ratio: 3), only screen and (min-device-pixel-ratio: 3) {
.editormd {
background-image: url(../images/loading@3x.gif);
}
}
#{$prefix}toolbar {
width: 100%;
min-height: 35px;

Loading…
Cancel
Save