accounts-frontend/packages/app/components/ui/panel.scss

139 lines
2.4 KiB
SCSS
Raw Normal View History

@import '~app/components/ui/colors.scss';
@import '~app/components/ui/fonts.scss';
.panel {
2020-05-24 04:38:24 +05:30
background: $black;
}
$headerHeight: 60px;
.header {
2020-05-24 04:38:24 +05:30
box-sizing: border-box;
height: $headerHeight;
border-bottom: 1px solid lighter($black);
position: relative;
overflow: hidden;
font-family: $font-family-title;
text-align: center;
// Шрифт Roboto Condensed имеет странную высоту линии, так что компенсируем это
line-height: $headerHeight + 2px;
font-size: 20px;
color: #fff;
}
.headerControl {
2020-05-24 04:38:24 +05:30
composes: black from '~app/components/ui/buttons.scss';
2021-03-26 08:49:04 +05:30
float: start;
2020-05-24 04:38:24 +05:30
overflow: hidden;
height: $headerHeight - 1px;
width: 49px;
padding: 0;
2021-03-26 08:49:04 +05:30
border-inline-end: 1px solid lighter($black);
2020-05-24 04:38:24 +05:30
line-height: 1;
text-align: center;
}
$bodyLeftRightPadding: 20px;
$bodyTopBottomPadding: 15px;
.body {
2020-05-24 04:38:24 +05:30
overflow: hidden;
padding: $bodyTopBottomPadding $bodyLeftRightPadding;
color: #ccc;
font-size: 18px;
b {
font-weight: normal;
color: #fff;
}
2020-05-24 04:38:24 +05:30
a {
color: #fff !important;
border-bottom-color: rgba(#fff, 0.75);
2020-05-24 04:38:24 +05:30
&:hover {
border-bottom-color: rgba(#fff, 0.5);
}
}
}
.footer {
2020-05-24 04:38:24 +05:30
position: relative;
overflow: hidden;
height: 50px;
2020-05-24 04:38:24 +05:30
button {
width: 100%;
}
}
.bodyHeader {
2020-05-24 04:38:24 +05:30
position: relative;
overflow: hidden;
padding: 10px 20px;
margin: (-$bodyTopBottomPadding) (-$bodyLeftRightPadding) 15px;
max-height: 200px;
2020-05-24 04:38:24 +05:30
transition: 0.4s ease;
}
.isClosed {
2020-05-24 04:38:24 +05:30
max-height: 0;
opacity: 0;
padding: 0;
margin: 0;
}
.errorBodyHeader {
2020-05-24 04:38:24 +05:30
composes: bodyHeader;
2020-05-24 04:38:24 +05:30
background: $red;
border: 1px darker($red) solid;
2020-05-24 04:38:24 +05:30
font-size: 14px;
line-height: 1.3;
color: #fff;
2020-05-24 04:38:24 +05:30
a {
&:hover {
text-shadow: 0 0 1px #fff;
border-bottom-color: transparent;
}
}
}
.defaultBodyHeader {
2020-05-24 04:38:24 +05:30
composes: bodyHeader;
2020-05-24 04:38:24 +05:30
background: darker($black);
border: lighter($black) solid;
border-bottom-width: 5px;
border-top-width: 4px;
2020-05-24 04:38:24 +05:30
font-size: 14px;
line-height: 1.3;
color: #fff;
}
.close {
2020-05-24 04:38:24 +05:30
composes: close from '~app/components/ui/icons.scss';
2020-05-24 04:38:24 +05:30
position: absolute;
2021-03-26 08:49:04 +05:30
inset-inline-end: 5px;
2020-05-24 04:38:24 +05:30
top: 5px;
2020-05-24 04:38:24 +05:30
font-size: 10px;
2020-05-24 04:38:24 +05:30
cursor: pointer;
}
2017-08-23 00:09:08 +05:30
.panelIcon {
2020-05-24 04:38:24 +05:30
color: #ccc;
font-size: 100px;
line-height: 1;
margin-bottom: 15px;
2017-08-23 00:09:08 +05:30
}