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

118 lines
2 KiB
SCSS
Raw Normal View History

.modal {
position: absolute;
top: #{60 / $base-font-size}rem;
right: #{400 / $base-font-size}rem;
z-index: 100;
outline: none;
}
.modal-content {
@extend %modal;
min-height: #{150 / $base-font-size}rem;
width: #{400 / $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 themify() {
@extend %icon;
}
}
.modal__header {
display: flex;
justify-content: space-between;
margin-bottom: #{20 / $base-font-size}rem;
}
2016-10-19 21:09:31 +00:00
.new-file-form, .new-file-folder {
display: flex;
flex-wrap: wrap;
}
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;
2016-07-15 23:05:18 +00:00
}
.modal__divider {
text-align: center;
margin: #{20 / $base-font-size}rem 0;
}
.uploader {
min-height: #{200 / $base-font-size}rem;
2016-07-15 23:05:18 +00:00
width: 100%;
text-align: center;
2016-09-07 02:37:29 +00:00
}
.share-modal {
@extend %modal;
padding: #{20 / $base-font-size}rem;
width: #{500 / $base-font-size}rem;
}
.share-modal__header {
display: flex;
justify-content: space-between;
}
.share-modal__section {
width: 100%;
display: flex;
align-items: center;
padding: #{10 / $base-font-size}rem 0;
}
.share-modal__label {
width: #{86 / $base-font-size}rem;
}
.share-modal__input {
flex: 1;
2016-09-07 21:47:22 +00:00
}
.keyboard-shortcuts {
@extend %modal;
padding: #{20 / $base-font-size}rem;
width: #{450 / $base-font-size}rem;
2016-09-07 21:47:22 +00:00
}
.keyboard-shortcuts__header {
display: flex;
justify-content: space-between;
margin-bottom: #{20 / $base-font-size}rem;
}
.keyboard-shortcuts__close {
@include themify() {
@extend %icon;
}
2016-09-07 21:47:22 +00:00
}
.keyboard-shortcut-item {
display: flex;
& + & {
margin-top: #{10 / $base-font-size}rem;
}
align-items: baseline;
}
.keyboard-shortcut__command {
width: 50%;
2016-09-07 21:47:22 +00:00
font-weight: bold;
text-align: right;
padding-right: #{10 / $base-font-size}rem;
}