Commit 967030cb authored by Mark Otto's avatar Mark Otto
Browse files

modal refinements in docs and general responsiveness

parent 18d95a16
3 merge requests!14752.0 wip,!1403warningText and warningBackground docs fix,!13512.0 wip - relative font sizes
Showing with 19 additions and 8 deletions
+19 -8
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
} }
.modal { .modal {
position: absolute; position: absolute;
top: 20px; top: 10px;
left: 20px; left: 10px;
right: 20px; right: 10px;
width: auto; width: auto;
margin: 0; margin: 0;
} }
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
} }
.modal-header .close { .modal-header .close {
padding: 10px; padding: 10px;
margin: -10px;
} }
} }
@media (max-width: 768px) { @media (max-width: 768px) {
......
...@@ -723,6 +723,15 @@ form.well { ...@@ -723,6 +723,15 @@ form.well {
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
} }
/* Modal example */
.modal-example .modal {
position: relative;
top: auto;
right: auto;
bottom: auto;
left: auto;
}
} }
......
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
<div class="span9 columns"> <div class="span9 columns">
<h2>Static example</h2> <h2>Static example</h2>
<p>Below is a statically rendered modal.</p> <p>Below is a statically rendered modal.</p>
<div class="well" style="background-color: #888; border: none;"> <div class="well modal-example" style="background-color: #888; border: none;">
<div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1"> <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1">
<div class="modal-header"> <div class="modal-header">
<a href="#" class="close" data-dismiss="modal">&times;</a> <a href="#" class="close" data-dismiss="modal">&times;</a>
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<div class="span9 columns"> <div class="span9 columns">
<h2>{{_i}}Static example{{/i}}</h2> <h2>{{_i}}Static example{{/i}}</h2>
<p>{{_i}}Below is a statically rendered modal.{{/i}}</p> <p>{{_i}}Below is a statically rendered modal.{{/i}}</p>
<div class="well" style="background-color: #888; border: none;"> <div class="well modal-example" style="background-color: #888; border: none;">
<div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1"> <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1">
<div class="modal-header"> <div class="modal-header">
<a href="#" class="close" data-dismiss="modal">&times;</a> <a href="#" class="close" data-dismiss="modal">&times;</a>
......
...@@ -56,15 +56,16 @@ ...@@ -56,15 +56,16 @@
// Modals // Modals
.modal { .modal {
position: absolute; position: absolute;
top: 20px; top: 10px;
left: 20px; left: 10px;
right: 20px; right: 10px;
width: auto; width: auto;
margin: 0; margin: 0;
&.fade.in { top: auto; } &.fade.in { top: auto; }
} }
.modal-header .close { .modal-header .close {
padding: 10px; padding: 10px;
margin: -10px;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment