From f4e5aef47178151bc0473f35783463a2b79b7d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20L=C3=B3pez?= Date: Wed, 14 Jul 2021 18:09:08 -0300 Subject: [PATCH] feat: remove usage of paper-divider --- .../frontend/fc-applayout/paper-divider.js | 67 ------------------- .../frontend/fc-applayout/fc-separator.js | 9 +++ 2 files changed, 9 insertions(+), 67 deletions(-) delete mode 100644 src/main/resources/META-INF/frontend/fc-applayout/paper-divider.js diff --git a/src/main/resources/META-INF/frontend/fc-applayout/paper-divider.js b/src/main/resources/META-INF/frontend/fc-applayout/paper-divider.js deleted file mode 100644 index 906b201..0000000 --- a/src/main/resources/META-INF/frontend/fc-applayout/paper-divider.js +++ /dev/null @@ -1,67 +0,0 @@ -/*- - * #%L - * App Layout Addon - * %% - * Copyright (C) 2018 - 2021 Flowing Code - * %% - * 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. - * #L% - */ -/* The MIT License (MIT) -Copyright (c) 2015 WebPaperElements - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ - -import {html, PolymerElement} from '@polymer/polymer/polymer-element.js'; - -import {ThemableMixin} from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; - -//Based on https://github.com/WebPaperElements/paper-divider -class PaperDivider extends ThemableMixin(PolymerElement) { - static get is() { return 'paper-divider'; } - - static get template() { - - return html` - - `;} - -} - -customElements.define(PaperDivider.is, PaperDivider); diff --git a/src/main/resources/META-INF/resources/frontend/fc-applayout/fc-separator.js b/src/main/resources/META-INF/resources/frontend/fc-applayout/fc-separator.js index d16ad56..5e80586 100644 --- a/src/main/resources/META-INF/resources/frontend/fc-applayout/fc-separator.js +++ b/src/main/resources/META-INF/resources/frontend/fc-applayout/fc-separator.js @@ -32,7 +32,16 @@ class MenuSeparator extends ThemableMixin(PolymerElement) { font-size: 80%; padding-left: 8px; } + .divider { + display: block; + height: 1px; + min-height: 1px; + max-height: 1px; + background-color: var(--paper-divider-color, #000); + opacity: 0.12; + } +
`;}