element-call-Github/src/Modal.module.css

91 lines
1.7 KiB
CSS
Raw Normal View History

2023-01-04 00:58:38 +08:00
/*
Copyright 2022 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
2021-12-04 03:45:29 +08:00
.modalOverlay {
position: fixed;
z-index: 100;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(23, 25, 28, 0.5);
display: flex;
align-items: center;
justify-content: center;
}
.modal {
background: #21262c;
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);
border-radius: 8px;
2021-12-11 02:54:18 +08:00
max-width: 90vw;
2021-12-14 06:54:44 +08:00
width: 600px;
2021-12-15 07:28:54 +08:00
display: flex;
flex-direction: column;
2021-12-04 03:45:29 +08:00
}
.modalHeader {
display: flex;
justify-content: space-between;
padding: 34px 32px 0 32px;
2021-12-04 03:45:29 +08:00
}
.modalHeader h3 {
font-weight: 600;
font-size: var(--font-size-title);
2021-12-04 03:45:29 +08:00
margin: 0;
}
.closeButton {
position: relative;
display: flex;
justify-content: center;
align-items: center;
background-color: transparent;
padding: 0;
border: none;
cursor: pointer;
}
.content {
padding: 24px 32px;
}
.content p {
margin-top: 0;
}
2021-12-11 02:54:18 +08:00
@media (max-width: 799px) {
2022-01-22 07:43:03 +08:00
.modalHeader {
display: flex;
justify-content: space-between;
padding: 32px 20px 0 20px;
2022-01-22 07:43:03 +08:00
}
2021-12-11 02:54:18 +08:00
.modal.mobileFullScreen {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
max-width: none;
max-height: none;
border-radius: 0;
}
}