itizawa 6 лет назад
Родитель
Сommit
0ade33a1b5

+ 2 - 2
src/client/js/components/PageStatusAlert.jsx

@@ -40,7 +40,7 @@ class PageStatusAlert extends React.Component {
 
   renderSomeoneEditingAlert() {
     return (
-      <div className="alert alert-success fixed-bottom p-3 mb-0">
+      <div className="alert-hackmd-someone-editing alert alert-success fixed-bottom p-3 mb-0">
         <i className="icon-fw icon-people"></i>
         Someone editing this page on HackMD
         &nbsp;
@@ -55,7 +55,7 @@ class PageStatusAlert extends React.Component {
 
   renderDraftExistsAlert(isRealtime) {
     return (
-      <div className="alert alert-success fixed-bottom p-3 mb-0">
+      <div className="alert-hackmd-draft-exists alert alert-success fixed-bottom p-3 mb-0">
         <i className="icon-fw icon-pencil"></i>
         This page has a draft on HackMD
         &nbsp;

+ 0 - 13
src/client/styles/scss/_on-edit.scss

@@ -145,19 +145,6 @@ body.on-edit {
     }
   }
 
-  #page-status-alert .myadmin-alert {
-    position: absolute;
-    right: 3px;
-    bottom: 42px;
-    left: 3px;
-    box-shadow: 2px 2px 5px #666;
-    opacity: 0.8;
-
-    &:hover {
-      opacity: 1;
-    }
-  }
-
   &.builtin-editor {
     /*****************
     * Editor styles

+ 0 - 5
src/client/styles/scss/_page.scss

@@ -38,11 +38,6 @@
   padding: 10px 15px;
 }
 
-// show PageStatusAlert in default
-#page-status-alert .myadmin-alert {
-  display: block;
-}
-
 .main .content-main .revision-history {
   .revision-history-list {
     .revision-history-outer {