fix: format icons to separate file

pull/946/head
Antipkin-A 2 years ago
parent 6f6c00822d
commit c4c569a192
  1. 30
      css/format.css
  2. 12
      css/main.css
  3. 1
      lib/listeners/filesharinglistener.php
  4. 1
      lib/listeners/fileslistener.php
  5. 1
      lib/listeners/viewerlistener.php

@ -0,0 +1,30 @@
/**
*
* (c) Copyright Ascensio System SIA 2024
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
.icon-onlyoffice-new-docx {
background-image: url("../img/new-docx.svg");
}
.icon-onlyoffice-new-xlsx {
background-image: url("../img/new-xlsx.svg");
}
.icon-onlyoffice-new-pptx {
background-image: url("../img/new-pptx.svg");
}
.icon-onlyoffice-new-docxf {
background-image: url("../img/new-docxf.svg");
}

@ -16,18 +16,6 @@
*
*/
.icon-onlyoffice-new-docx {
background-image: url("../img/new-docx.svg");
}
.icon-onlyoffice-new-xlsx {
background-image: url("../img/new-xlsx.svg");
}
.icon-onlyoffice-new-pptx {
background-image: url("../img/new-pptx.svg");
}
.icon-onlyoffice-new-docxf {
background-image: url("../img/new-docxf.svg");
}
.icon-onlyoffice-open,
.icon-onlyoffice-convert,
.icon-onlyoffice-download,

@ -89,6 +89,7 @@ class FileSharingListener implements IEventListener {
});
Util::addStyle("onlyoffice", "main");
Util::addStyle("onlyoffice", "format");
}
}
}

@ -98,6 +98,7 @@ class FilesListener implements IEventListener {
Util::addStyle("onlyoffice", "main");
Util::addStyle("onlyoffice", "template");
Util::addStyle("onlyoffice", "format");
}
}
}

@ -82,6 +82,7 @@ class ViewerListener implements IEventListener {
Util::addScript("onlyoffice", "listener", "viewer");
Util::addStyle("onlyoffice", "viewer");
Util::addStyle("onlyoffice", "format");
$container = $this->serverContainer;
$this->initialState->provideLazyInitialState("settings", function () use ($container) {

Loading…
Cancel
Save