aboutsummaryrefslogtreecommitdiff
path: root/lib/patterns.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-09-08 23:01:28 -0700
committerMark Otto <[email protected]>2011-09-08 23:01:28 -0700
commitba08055a7be248582ce6b5ba00bf04f5c821bcdd (patch)
treeb5f91922acbc9a4e3838501a75ba536c24aca550 /lib/patterns.less
parentc474f996a902434572c238bb6e170473171cadad (diff)
downloadbootstrap-ba08055a7be248582ce6b5ba00bf04f5c821bcdd.tar.xz
bootstrap-ba08055a7be248582ce6b5ba00bf04f5c821bcdd.zip
update the modals and alert-messages to use the same .close styles, save for some positioning in the modal after knocking down the modal padding
Diffstat (limited to 'lib/patterns.less')
-rw-r--r--lib/patterns.less54
1 files changed, 27 insertions, 27 deletions
diff --git a/lib/patterns.less b/lib/patterns.less
index b2c0d1365..9cd688c22 100644
--- a/lib/patterns.less
+++ b/lib/patterns.less
@@ -553,15 +553,34 @@ input[type=submit].btn {
}
+// CLOSE ICONS
+// -----------
+.close {
+ float: right;
+ color: @black;
+ font-size: 20px;
+ font-weight: bold;
+ line-height: @baseline * .75;
+ text-shadow: 0 1px 0 rgba(255,255,255,1);
+ .opacity(20);
+ &:hover {
+ color: @black;
+ text-decoration: none;
+ .opacity(40);
+ }
+}
+
+
// ERROR STYLES
// ------------
// Base alert styles
.alert-message {
- .gradientBar(#fceec1, #eedc94); // warning by default
+ position: relative;
+ padding: 7px 15px;
margin-bottom: @baseline;
- padding: 7px 14px;
color: @grayDark;
+ .gradientBar(#fceec1, #eedc94); // warning by default
text-shadow: 0 1px 0 rgba(255,255,255,.5);
border-width: 1px;
border-style: solid;
@@ -584,20 +603,6 @@ input[type=submit].btn {
// Provide actions with buttons
.box-shadow(0 1px 0 rgba(255,255,255,.25));
}
- .close {
- float: right;
- margin-top: -2px;
- color: @black;
- font-size: 20px;
- font-weight: bold;
- text-shadow: 0 1px 0 rgba(255,255,255,1);
- .opacity(20);
- &:hover {
- color: @black;
- text-decoration: none;
- .opacity(40);
- }
- }
&.block-message {
background-image: none;
@@ -731,25 +736,20 @@ input[type=submit].btn {
.border-radius(6px);
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
.background-clip(padding-box);
+ .close {
+ margin-top: 7px;
+ }
}
.modal-header {
border-bottom: 1px solid #eee;
- padding: 5px 20px;
- .close {
- position: absolute;
- right: 10px;
- top: 10px;
- color: #999;
- line-height:10px;
- font-size: 18px;
- }
+ padding: 5px 15px;
}
.modal-body {
- padding: 20px;
+ padding: 15px;
}
.modal-footer {
background-color: #f5f5f5;
- padding: 14px 20px 15px;
+ padding: 14px 15px 15px;
border-top: 1px solid #ddd;
.border-radius(0 0 6px 6px);
.box-shadow(inset 0 1px 0 #fff);