/* Copyright 2019 Tecnativa - Alexandre Díaz * Copyright 2021 ITerra - Sergey Shebanin * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ // Attachment Viewer .o_web_client .o_DialogManager_dialog { /* Show sided viewer on large screens */ @media (min-width: 1533px) { &:has(.o_AttachmentViewer) { position: static; } .o_AttachmentViewer_main { padding-bottom: 20px; } .o_AttachmentViewer { // On-top of navbar z-index: 1100; position: absolute; right: 0; top: 0; bottom: 0; margin-left: auto; background-color: rgba(0, 0, 0, 0.7); width: $chatter_zone_width; &.o_AttachmentViewer_maximized { width: 100% !important; } /* Show/Hide control buttons (next, prev, etc..) */ &:hover .o_AttachmentViewer_buttonNavigation, &:hover .o_AttachmentViewer_toolbar { display: flex; } .o_AttachmentViewer_buttonNavigation, .o_AttachmentViewer_toolbar { display: none; } .o_AttachmentViewer_viewIframe { width: 100% !important; } } } @media (max-width: 1533px) { .o_AttachmentViewer_headerItemButtonMinimize, .o_AttachmentViewer_headerItemButtonMaximize { display: none !important; } } } /* Attachment Viewer Max/Min buttons only are useful in sided mode */ .o_FormRenderer_chatterContainer:not(.o-aside) { .o_AttachmentViewer_headerItemButtonMinimize, .o_AttachmentViewer_headerItemButtonMaximize { display: none !important; } } .o_apps_menu_opened .o_AttachmentViewer { display: none !important; }