1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00
appwrite/public/styles/comps/modal.less

150 lines
2.4 KiB
Plaintext
Raw Normal View History

2019-05-09 18:54:39 +12:00
.modal-open, .modal-open body {
.modal-bg {
position: fixed;
content: '';
display: block;
width: 100%;
height: 100%;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: #0c0c0c;
opacity: 0.5;
z-index: 4;
}
}
.modal {
overflow: auto;
display: none;
position: fixed;
width: 100%;
max-height: 90%;
max-width: 640px;
2020-02-11 09:59:31 +13:00
background: var(--config-color-background-fade);
2019-05-09 18:54:39 +12:00
z-index: 1000;
box-shadow: 0 0 4px rgba(0, 0, 0, .25);
padding: 30px;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
border-radius: 10px;
box-sizing: border-box;
text-align: @config-start;
2020-02-25 01:56:57 +13:00
white-space: initial;
2020-02-28 12:24:54 +13:00
line-height: normal;
2019-05-09 18:54:39 +12:00
@media @phones, @tablets {
width: ~"calc(100% - 20px)";
}
&.padding-small {
padding: 15px;
}
&.height-tiny {
form {
height: 100px;
}
}
&.height-small {
form {
height: 220px;
}
}
&.width-small {
max-width: 400px;
}
&.width-medium {
max-width: 500px;
}
&.width-large {
max-width: 800px;
}
&.open {
display: block;
}
2019-08-09 18:28:16 +12:00
&button.close {
2019-05-09 18:54:39 +12:00
display: none;
}
&.fill {
height: 95%;
max-height: 95%;
max-width: 75%;
}
2019-08-09 18:40:52 +12:00
h1, h2 {
2019-05-09 18:54:39 +12:00
margin-bottom: 25px;
margin-top: 0;
font-size: 20px;
text-align: @config-start;
}
h1, h2, h3, h4 , h5, h6 {
2019-08-09 01:33:41 +12:00
color: inherit!important;
2019-08-09 18:28:16 +12:00
line-height: 35px;
2019-05-09 18:54:39 +12:00
}
form, .main {
position: relative;
2020-02-11 06:35:13 +13:00
border-top: solid 1px var(--config-border-color);
2019-05-09 18:54:39 +12:00
padding: 30px 30px 0 30px;
margin: 0 -30px;
2020-02-25 01:56:57 +13:00
&.strip {
border: none;
padding: 0;
margin: 0;
}
2019-05-09 18:54:39 +12:00
}
.separator {
margin: 20px -30px;
}
2020-02-27 10:54:12 +13:00
.bullets {
2020-02-25 01:56:57 +13:00
.func-padding-start(40px);
li {
.margin-bottom;
&:before {
position: absolute;
}
}
}
2019-05-09 18:54:39 +12:00
.info {
margin: 0 -30px;
padding: 20px 30px;
2020-02-12 23:38:31 +13:00
background: var(--config-modal-note-background);
color: var(--config-modal-note-color);
border-top: solid 1px var(--config-modal-note-border);
border-bottom: solid 1px var(--config-modal-note-border);
2019-05-09 18:54:39 +12:00
}
2020-04-21 06:47:26 +12:00
.ide {
box-shadow: none;
border-radius: 0;
margin: 0 -30px;
}
2019-08-09 18:28:16 +12:00
button.close {
2019-05-09 18:54:39 +12:00
width: 30px;
height: 30px;
line-height: 30px;
padding: 0;
margin: 0;
2020-02-12 10:55:00 +13:00
background: var(--config-color-normal);
color: var(--config-color-background-fade);
2019-05-09 18:54:39 +12:00
border-radius: 50%;
}
}