communications app, popup lib
This commit is contained in:
94
css/popup.scss
Normal file
94
css/popup.scss
Normal file
@ -0,0 +1,94 @@
|
||||
@import './functions/func.scss';
|
||||
@import './variables/definition.scss';
|
||||
|
||||
$headerLineHeight: 24px;
|
||||
$buttonHeight: 36px;
|
||||
|
||||
.popup-mask {
|
||||
position: fixed;
|
||||
@include inset(0, 0, 0, 0);
|
||||
background-color: rgba(0 0 0 /20%);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
opacity: 0;
|
||||
z-index: 200;
|
||||
transition: opacity .12s ease;
|
||||
|
||||
&.active .popup-container {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.popup-container {
|
||||
min-width: 400px;
|
||||
max-width: 800px;
|
||||
background-color: $bgColor;
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 2px 8px rgba(0 0 0 /11%);
|
||||
transition: all .12s ease;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.popup-header {
|
||||
flex: 0 0 auto;
|
||||
padding: 10px 12px 6px;
|
||||
line-height: $headerLineHeight;
|
||||
user-select: none;
|
||||
background-color: var(--title-bg-color);
|
||||
color: var(--title-color);
|
||||
display: flex;
|
||||
|
||||
>div {
|
||||
flex: 1 1 auto;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
>svg {
|
||||
flex: 0 0 auto;
|
||||
width: $headerLineHeight;
|
||||
height: $headerLineHeight;
|
||||
padding: 4px;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:hover {
|
||||
opacity: .8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.popup-body {
|
||||
margin: 6px 10px;
|
||||
flex: 1 1 auto;
|
||||
line-height: $headerLineHeight;
|
||||
}
|
||||
|
||||
.popup-footer {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 4px 10px 16px 2px;
|
||||
|
||||
.popup-button {
|
||||
margin-left: 8px;
|
||||
border: none;
|
||||
height: $buttonHeight;
|
||||
padding: 0 8px;
|
||||
min-width: 60px;
|
||||
cursor: pointer;
|
||||
background-color: var(--title-bg-color);
|
||||
|
||||
&:hover {
|
||||
opacity: .8;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:focus-visible {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user