UNPKG

@eclipse-scout/core

Version:
97 lines (82 loc) 1.91 kB
/* * Copyright (c) 2010, 2024 BSI Business Systems Integration AG * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 */ /** * Used for static pages like login, logout, unsupported-browser and noscript section. * Note: This box must not depend on javascript because it is used for the noscript section as well. */ @box-responsive-width: @box-width + 40px; .box { display: table; position: absolute; height: 75%; width: 100%; & > .wrapper { display: table-cell; vertical-align: middle; } } .box-content { border: @popup-border-width solid @popup-border-color; border-radius: @border-radius-large; background-color: @popup-background-color; max-width: @box-width; margin: @box-margin-y auto; padding: 45px 95px 50px 95px; #scout.drop-shadow(0, 20px, 50px, 0, 0.2); font-size: @box-font-size; & > .header { text-align: center; & > .logo { margin-top: 4px; margin-bottom: 40px; max-height: 30px; } } &.small > .header > .logo { max-width: 50%; } & > .button-bar { padding-top: 32px; text-align: center; & > .button { padding: 7px @button-padding-x; font-size: @box-font-size; } } &.centered { text-align: center; } } @media (max-width: @box-responsive-width) { .box-content { & > .header > .logo { margin-bottom: 30px; margin-top: 0; } padding: 40px; margin-left: 10px; margin-right: 10px; } } @media (max-height: 400px) { .box-content { & > .header > .logo { margin-bottom: 20px; margin-top: 0; } padding-top: 25px; padding-bottom: 25px; } } @media (max-height: 700px) { .box { height: calc(~'100% - ' @box-margin-y * 2); } }