From 163c98ea7e321ce3a1b38128cfb2bec6cd76e6de Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 12 Feb 2012 15:43:04 -0800 Subject: [PATCH] clean up modals.less comments, add new class for optional use on modal forms to remove bottom margin --- docs/assets/bootstrap.zip | Bin 53038 -> 53053 bytes docs/assets/css/bootstrap.css | 3 +++ less/modals.less | 11 +++++++++++ 3 files changed, 14 insertions(+) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 94e2fa1f3126cc6dc9073929cf331675be56d2a5..8c01169dc0e1d9da27ecf1115b315ccd0cc3203c 100644 GIT binary patch delta 4326 zcmZWs1yoeq_a3?hRJub-T1grD(J+7@-CdH-3^g-Iiu9mJ2nt9`cO%VEN=t))be9PH zhWGUUp6h?tx_hnjo&D{z&%SHjZ+*q-SWW3z#M7dI%p4Ad3j(aBr$Wv?>k>4Dd({ z12tr?1>H>&gaCkIqyahSul$M-a%Ud69UyNg-7t<3W--A~tXQdCh0p2`(y4OvdYApp zX#l0g_ajG1Od6KG)PYa&r1ql63z0#iE>gmHtl)lGywiAvIX1y&1g*D6u0eXV6%Tj| zC-MP}-9225<$$pD%NKH^%_=?gnPyo<(ocCLn%qLhd;DCe=+#I2@`C6aWT-XZqS=qD zMBa#V*^yTeQmm>6CfjK~mMJhwU18-u#YhMq&)+@eZlJKSl=M?8Y*_RSlDs{W+Dz*C z4kRjL%kXM-UX~`feOq?Fxc+nJrTgR_n2-BvY^kYbfBVJvmo-iLs?UAdaGyVF>8prV zfXb^Ev%e$i94@XDF>AIL77JOFfuD92&EBt!XLwQ-rmtINY}G#^WfGjut%v=wnu7E* zD8f#)GP*Q$HV&1Ww=H*!d86br551FbXl@{cyK@^s|>9iFYjv3ckl>tn#5}1D^{w+|4M8p5O42FH^HY)qhB|`;3FL*le87~!?Ss&2*&_E zeEZ<>zSX>KcP7QYA&HGAhgO)6rZ4~KfJAgk8b(SmRl!U|>?h<22ETmM`ISy-Yv-OA z?{&?6zha`qmx&=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H>hE!0hqyDIjLpi3 zp=-RvCQx8+ErZPQ;RGte$YZvGP4-_R#6Ks`D@d=#&`_;$Eg}}Gr4*=LrqO+ zK;-|ktiPQpG7+ZsuLO?5f|yBW6?x~`zizcE^;t0Usa<7B7W`#b|FOHj_L8zz$r8V_ zRfyy>0;j;#YUzJdpQ^vGo|Y^82qjB6waGlEZ)?5WNY);UO41;r@^e~iK* z1_OcadwD(beFU@jhW^9Tzo1{8`A&;pgSU0rGLx!7Kp?T-#ZNorg*`&v>y!RtmS6Dj zJb@m&-|$QSfy*NY`o#Z%^PJMfkK<o2sc#$@qPrSNa(#V?Umr G=>Gty#vqIU diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index acd3a396e8..754e9af2d3 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -2888,6 +2888,9 @@ button.btn.small, input[type="submit"].btn.small { .modal-body { padding: 15px; } +.modal-body .modal-form { + margin-bottom: 0; +} .modal-footer { padding: 14px 15px 15px; margin-bottom: 0; diff --git a/less/modals.less b/less/modals.less index aa14675ede..d1e06dc261 100644 --- a/less/modals.less +++ b/less/modals.less @@ -1,6 +1,7 @@ // MODALS // ------ +// Recalculate z-index where appropriate .modal-open { .dropdown-menu { z-index: @zindexDropdown + @zindexModal; } .dropdown.open { *z-index: @zindexDropdown + @zindexModal; } @@ -8,6 +9,7 @@ .tooltip { z-index: @zindexTooltip + @zindexModal; } } +// Background .modal-backdrop { position: fixed; top: 0; @@ -25,6 +27,7 @@ .opacity(80); } +// Base modal .modal { position: fixed; top: 50%; @@ -53,9 +56,17 @@ // Close icon .close { margin-top: 2px; } } + +// Body (where all modal content resises) .modal-body { padding: 15px; } +// Remove bottom margin if need be +.modal-body .modal-form { + margin-bottom: 0; +} + +// Footer (for actions) .modal-footer { padding: 14px 15px 15px; margin-bottom: 0;