BetterDiscordApp-rauenzi/src/styles/ui/modals.css

224 lines
4.4 KiB
CSS

@keyframes bd-backdrop {
to {
opacity: 0.85;
}
}
@keyframes bd-modal-wrapper {
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes bd-backdrop-closing {
to {
opacity: 0;
}
}
@keyframes bd-modal-wrapper-closing {
to {
transform: scale(0.7);
opacity: 0;
}
}
.bd-backdrop {
animation: bd-backdrop 250ms ease;
animation-fill-mode: forwards;
opacity: 0;
background-color: rgb(0, 0, 0);
transform: translateZ(0);
}
.bd-modal-wrapper.closing .bd-backdrop {
animation: bd-backdrop-closing 200ms linear;
animation-fill-mode: forwards;
animation-delay: 50ms;
opacity: 0.85;
}
.bd-modal-wrapper .bd-modal {
animation: bd-modal-wrapper 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
animation-fill-mode: forwards;
transform: scale(0.7);
transform-origin: 50% 50%;
display: flex;
align-items: center;
box-sizing: border-box;
contain: content;
justify-content: center;
top: 0;
left: 0;
bottom: 0;
right: 0;
opacity: 0;
pointer-events: none;
position: absolute;
z-index: 1000;
}
.bd-modal-wrapper.closing .bd-modal {
animation: bd-modal-wrapper-closing 250ms cubic-bezier(0.19, 1, 0.22, 1);
animation-fill-mode: forwards;
opacity: 1;
transform: scale(1);
}
.bd-modal-wrapper .bd-modal-inner {
display: flex;
contain: layout;
flex-direction: column;
pointer-events: auto;
border: 1px solid rgba(28, 36, 43, 0.6);
border-radius: 5px;
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
overflow: hidden;
max-height: 660px;
min-height: 200px;
width: 440px;
user-select: text;
}
.bd-modal-wrapper .bd-content-modal .bd-modal-inner {
height: 500px;
width: 700px;
}
.bd-modal-wrapper .header {
background-color: #35393e;
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);
padding: 12px 20px;
z-index: 1;
color: #fff;
font-size: 16px;
font-weight: 700;
line-height: 19px;
}
.bd-modal-wrapper .bd-modal-body {
background-color: #36393f;
color: #fff;
overflow: hidden;
display: flex;
flex-direction: column;
flex: 1;
contain: layout;
position: relative;
}
.bd-modal-wrapper .scroller {
padding: 10px;
overflow-y: auto;
}
.bd-modal-wrapper .bd-content-modal .bd-modal-body {
padding: 0;
}
.bd-modal-wrapper .footer {
display: flex;
justify-content: flex-end;
padding: 10px 20px;
}
.bd-modal-wrapper .footer button {
min-height: 32px;
min-width: 60px;
align-items: center;
display: flex;
font-size: 14px;
font-weight: 500;
justify-content: center;
line-height: 16px;
padding: 2px 16px;
user-select: none;
}
.bd-modal-wrapper .tab-bar-container {
align-items: center;
border-bottom: 0;
background: rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: row;
justify-content: space-between;
margin-bottom: 15px;
}
.bd-modal-wrapper .tab-bar.TOP {
margin: 0;
border: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.bd-modal-wrapper .tab-bar-container .tab-bar-item {
margin: 0 15px;
padding: 15px 0;
color: #fff;
opacity: 0.5;
transition: opacity 200ms ease;
border-bottom: 2px solid transparent;
}
.bd-modal-wrapper .tab-bar-container .tab-bar-item:hover {
border-color: #fff;
cursor: pointer;
}
.bd-modal-wrapper .tab-bar-container .tab-bar-item.selected {
opacity: 1;
border-color: #fff;
}
.bd-modal-wrapper .tab-bar.TOP .tab-bar-item + .tab-bar-item {
margin: 0;
}
.bd-modal-wrapper .table-header {
display: flex;
justify-content: space-between;
color: #fff;
font-weight: 700;
padding-bottom: 10px;
margin: 3px 15px 0 15px;
border-bottom: 1px solid #fff;
font-size: 14px;
}
.bd-modal-wrapper .table-column {
width: 25%;
word-wrap: break-word;
}
.bd-modal-wrapper .table-column.column-error {
width: 50%;
}
.bd-modal-wrapper .errors {
display: flex;
flex-direction: column;
font-size: 14px;
padding: 0 5px;
}
.bd-modal-wrapper .error {
display: flex;
color: #fff;
border-bottom: 1px solid rgba(255, 255, 255, 0.25);
padding: 15px 0;
align-items: center;
}
.bd-modal-wrapper .error-link {
color: #3e82e5;
font-weight: 500;
}
.bd-modal-wrapper .bd-content-modal .scroller {
padding-top: 0;
}