Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Modal to support in small viewports #163

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 14 additions & 22 deletions src/client/components/modal/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
bottom: 0;
left: 0;
z-index: 4;

overflow-y: auto;
}

.modal .screen {
Expand All @@ -18,22 +20,12 @@
opacity: 0.7;
}

.modal .center {
position: relative;
left: 50%;

width: 0;
}

.modal .surface {
position: absolute;
left: -21rem;
top: 4rem;
position: relative;

margin: 4rem auto 0 auto;
width: 40rem;

/*overflow-y: scroll;*/
/*max-height: 300px;*/
max-width: 100%;

background-color: #FFF;
box-shadow: 0 0 10px #666;
Expand Down Expand Up @@ -87,20 +79,20 @@

.modal .dismiss {
position: absolute;
top: 0;
right: 0;

top: -2.75rem;
right: -2.75rem;
padding: 0 6px;
border-width: 3px;

border: 3px solid white;
border-radius: 50%;
background: none;

border-color: #333;
border-radius: 50%;
border-style: solid;
color: #333;
cursor: pointer;
font-weight: bold;
font-size: 15px;

color: white;
padding: 0 6px;
font-weight: bold;
}

.modal .help-icon { margin-right: 10px; }
Expand Down
9 changes: 4 additions & 5 deletions src/client/components/modal/modal.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.screen

.center
.surface
.content
if mayDismiss
button.dismiss ×
.surface
.content
if mayDismiss
button.dismiss ×