maputnik/src/styles/_modal.scss

287 lines
4.5 KiB
SCSS
Raw Normal View History

2017-01-11 09:35:48 +01:00
//MODAL
.maputnik-modal {
min-width: 350px;
max-width: 600px;
2017-10-08 21:42:04 +02:00
overflow: hidden;
2017-01-11 09:35:48 +01:00
background-color: $color-black;
2017-01-12 11:23:06 +01:00
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
2017-01-11 09:35:48 +01:00
z-index: 3;
position: relative;
font-family: $font-family;
2017-01-11 09:35:48 +01:00
}
2017-01-12 11:23:06 +01:00
2017-01-11 09:35:48 +01:00
.maputnik-modal-section {
padding-top: $margin-3;
padding-bottom: $margin-3;
2017-04-02 19:42:27 +02:00
2017-04-02 17:01:56 +02:00
/* Bug fix: <http://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox> */
min-height: 0;
2017-04-02 19:42:27 +02:00
@include flex-column;
flex-shrink: 0;
}
.maputnik-modal-sub-section {
margin-top: $margin-1;
}
2017-04-02 17:01:56 +02:00
.maputnik-modal-section--shrink {
flex-shrink: 1;
2017-01-11 09:35:48 +01:00
}
2017-01-12 11:23:06 +01:00
2017-01-11 09:35:48 +01:00
.maputnik-modal-header {
background-color: $color-gray;
padding: $margin-3;
2017-01-12 11:23:06 +01:00
@include flex-row;
2017-01-11 09:35:48 +01:00
}
2017-01-12 11:23:06 +01:00
2017-01-11 09:35:48 +01:00
.maputnik-modal-header-title {
font-size: $font-size-5;
margin: 0;
}
.maputnik-modal-header-toggle {
border: none;
background: initial;
color: white;
padding: 0;
2017-01-11 09:35:48 +01:00
}
2017-01-12 11:23:06 +01:00
2017-10-08 21:42:04 +02:00
.maputnik-modal-scroller {
2017-10-11 23:11:40 +02:00
max-height: calc(100vh - 35px);
2017-10-08 21:42:04 +02:00
overflow-y: auto;
}
2017-01-11 09:35:48 +01:00
.maputnik-modal-content {
padding: $margin-3;
2017-04-02 19:42:27 +02:00
@include flex-column;
2017-01-11 09:35:48 +01:00
}
.maputnik-modal-header-space {
@extend .maputnik-space;
}
//OPEN MODAL
.maputnik-upload-button {
@extend .maputnik-big-button;
}
2017-01-12 11:23:06 +01:00
2017-01-14 14:00:32 +01:00
.maputnik-style-gallery-container {
2017-04-02 17:01:56 +02:00
flex-shrink: 1;
2017-01-14 14:00:32 +01:00
}
2017-01-11 09:35:48 +01:00
.maputnik-public-style {
vertical-align: top;
margin-top: 10px;
margin-right: 10px;
background-color: $color-gray;
display: inline-block;
width: 180px;
font-size: $font-size-2;
color: $color-lowgray;
}
2017-01-12 11:23:06 +01:00
2017-01-11 09:35:48 +01:00
.maputnik-public-style-button {
background-color: $color-gray;
padding: $margin-3;
display: block;
width: 100%;
2017-01-11 09:35:48 +01:00
&:hover {
background-color: $color-midgray;
}
}
2017-01-12 11:23:06 +01:00
2017-01-11 09:35:48 +01:00
.maputnik-public-style-header {
2017-01-12 11:23:06 +01:00
@include flex-row;
2017-01-11 09:35:48 +01:00
}
.maputnik-public-style-thumbnail {
display: block;
margin-top: $margin-2;
2017-01-12 11:31:16 +01:00
width: 100%;
padding-top: calc(400 / 600 * 100%);
background-size: cover;
background-color: $color-midgray;
2017-01-11 09:35:48 +01:00
}
2017-01-12 11:23:06 +01:00
.maputnik-add-layer {
2017-01-11 11:35:33 +01:00
@extend .clearfix;
}
2017-01-12 11:23:06 +01:00
2017-01-11 09:35:48 +01:00
//ADD MODAL
.maputnik-add-layer-button {
2017-01-12 11:23:06 +01:00
@extend .maputnik-big-button;
2017-01-11 09:35:48 +01:00
margin-right: $margin-3;
float: right;
display: inline-block;
margin-top: 3;
margin-bottom: $margin-3;
text-align: right;
}
2017-01-11 11:35:33 +01:00
//SOURCE MODAL
.maputnik-public-sources {
margin-bottom: 1.5%;
}
2017-01-11 11:35:33 +01:00
.maputnik-public-source {
2017-01-12 11:23:06 +01:00
vertical-align: top;
margin-top: 1.5%;
margin-right: 1.5%;
background-color: $color-gray;
width: 48.5%;
2017-01-11 11:35:33 +01:00
display: inline-block;
}
.maputnik-public-source-select {
padding: $margin-3;
2017-01-12 11:23:06 +01:00
font-size: $font-size-5;
color: $color-lowgray;
2017-01-11 11:35:33 +01:00
background-color: transparent;
2018-05-22 22:43:35 +02:00
width: 100%;
2017-01-12 11:23:06 +01:00
@include flex-row;
2017-01-11 11:35:33 +01:00
}
.maputnik-public-source-name {
font-weight: 700;
}
.maputnik-public-source-id {
font-weight: 400;
text-align: left;
2017-01-11 11:35:33 +01:00
}
.maputnik-active-source-type-editor {
min-width: 500px;
}
2017-01-12 11:23:06 +01:00
2017-01-11 11:35:33 +01:00
.maputnik-active-source-type-editor-header {
2017-01-11 16:20:10 +01:00
background-color: $color-gray;
color: $color-lowgray;
padding: $margin-2;
2017-01-12 11:23:06 +01:00
@include flex-row;
2017-01-11 11:35:33 +01:00
}
2017-01-12 11:23:06 +01:00
2017-01-11 11:35:33 +01:00
.maputnik-active-source-type-editor-header-id {
font-weight: 700;
line-height: 2;
font-size: $font-size-5;
}
.maputnik-active-source-type-editor-content {
2017-01-12 11:23:06 +01:00
border-color: $color-gray;
border-width: 2px;
border-style: solid;
padding: $margin-2;
.maputnik-input-block-label {
width: 30%;
}
.maputnik-input-block-content {
width: 70%;
}
2017-01-11 11:35:33 +01:00
}
.maputnik-add-source {
@extend .clearfix;
.maputnik-input-block-label {
width: 30%;
}
.maputnik-input-block-content {
width: 70%;
}
2017-01-11 11:35:33 +01:00
}
.maputnik-add-source-button {
@extend .maputnik-big-button;
2017-01-12 11:23:06 +01:00
2017-01-11 11:35:33 +01:00
display: inline-block;
margin-top: 0;
margin-right: $margin-3;
float: right;
}
2017-01-16 15:43:52 +01:00
//EXPORT MODAL
.maputnik-export-gist {
2017-01-16 16:34:55 +01:00
font-size: $font-size-6;
2017-01-16 15:43:52 +01:00
.maputnik-input-block {
margin-left: 0;
margin-right: 0;
label {
vertical-align: middle;
}
}
2017-01-16 16:34:55 +01:00
2017-01-16 15:43:52 +01:00
span {
color: $color-lowgray;
}
}
.maputnik-modal-error {
2017-04-02 19:42:27 +02:00
border: solid 2px #ef5350;
color: #ef5350;
padding: 8px;
padding-right: 32px;
position: relative;
}
.maputnik-modal-error-close {
position: absolute;
right: 8px;
2017-04-02 17:01:56 +02:00
top: 8px;
text-decoration: none;
color: #ef5350;
}
2018-06-02 11:17:39 +02:00
.maputnik-modal-shortcuts {
code {
color: white;
background: #3c3c3c;
padding: 2px 6px;
display: inline-block;
text-align: center;
border-radius: 2px;
margin-right: 4px;
font-family: monospace;
}
li {
margin-bottom: 4px;
}
}
.maputnik-modal-survey {
2018-11-01 19:26:21 +01:00
width: 400px;
}
.maputnik-modal-survey__logo {
display: block;
margin: 0 auto;
height: 128px;
}
.maputnik-modal-survey__description {
line-height: 1.5;
}
.maputnik-modal-survey__footnote {
2018-06-30 10:17:14 +02:00
color: $color-green;
margin-top: 16px;
}
2019-10-27 19:54:40 +01:00
.modal-settings {
width: 400px;
}