p5.js-web-editor/client/styles/components/_modal.scss

59 lines
1.1 KiB
SCSS
Raw Permalink Normal View History

.modal {
position: absolute;
top: #{60 / $base-font-size}rem;
right: 50%;
transform: translate(50%, 0);
z-index: 100;
outline: none;
}
.modal-content {
@extend %modal;
min-height: #{150 / $base-font-size}rem;
width: #{500 / $base-font-size}rem;
padding: #{20 / $base-font-size}rem;
2016-07-21 02:18:20 +00:00
.modal--reduced & {
//min-height: #{150 / $base-font-size}rem;
2016-07-21 02:18:20 +00:00
}
}
2016-08-30 03:23:10 +00:00
.modal-content-folder {
@extend .modal-content;
height: #{150 / $base-font-size}rem;
}
.modal__exit-button {
@include icon();
}
.modal__header {
display: flex;
justify-content: space-between;
margin-bottom: #{20 / $base-font-size}rem;
}
.new-folder-form__input-wrapper, .new-file-form__input-wrapper {
2016-10-19 21:09:31 +00:00
display: flex;
}
2016-08-30 03:23:10 +00:00
.new-file-form__name-label, .new-folder-form__name-label {
@extend %hidden-element;
}
2016-08-30 03:23:10 +00:00
.new-file-form__name-input, .new-folder-form__name-input {
margin-right: #{10 / $base-font-size}rem;
flex: 1;
2016-07-15 23:05:18 +00:00
}
input.new-file-form__submit,
input.new-folder-form__submit {
@include themify() {
background-color: getThemifyVariable("button-secondary-background-color");
}
}
2016-07-15 23:05:18 +00:00
.modal__divider {
text-align: center;
margin: #{20 / $base-font-size}rem 0;
}