From 9c76070cbddfd02c034cba9e15960906844b76d0 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 10 Sep 2011 18:13:37 -0700 Subject: rework the transitions for the modal a bit --- lib/patterns.less | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/patterns.less') diff --git a/lib/patterns.less b/lib/patterns.less index 53ad3f991..65b16ce05 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -725,9 +725,7 @@ input[type=submit].btn { .modal-backdrop { background-color:#000; - &.fade { - opacity: 0; - } + &.fade { opacity: 0; } position: fixed; top: 0; left: 0; @@ -737,7 +735,7 @@ input[type=submit].btn { } .modal-backdrop, .modal-backdrop.fade.in { - .opacity(50); + .opacity(70); } .modal { @@ -754,9 +752,12 @@ 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; + .close { margin-top: 7px; } + &.fade { + .transition(e('opacity .25s linear, top .25s ease-out')); + top:-50%; } + &.fade.in { top: 50%;} } .modal-header { border-bottom: 1px solid #eee; -- cgit v1.2.3 From 235246d6fcc7947d04555205a5f8a242eb3f6b97 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 10 Sep 2011 18:26:37 -0700 Subject: not feeling the slide in --- lib/patterns.less | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/patterns.less') diff --git a/lib/patterns.less b/lib/patterns.less index 65b16ce05..de9096b99 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -735,7 +735,7 @@ input[type=submit].btn { } .modal-backdrop, .modal-backdrop.fade.in { - .opacity(70); + .opacity(80); } .modal { @@ -753,11 +753,6 @@ input[type=submit].btn { .box-shadow(0 3px 7px rgba(0,0,0,0.3)); .background-clip(padding-box); .close { margin-top: 7px; } - &.fade { - .transition(e('opacity .25s linear, top .25s ease-out')); - top:-50%; - } - &.fade.in { top: 50%;} } .modal-header { border-bottom: 1px solid #eee; -- cgit v1.2.3 From a71d5d8e991eee4073d3312743778b1991cfb650 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 10 Sep 2011 19:01:16 -0700 Subject: add the dhg flavor back --- lib/patterns.less | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/patterns.less') diff --git a/lib/patterns.less b/lib/patterns.less index de9096b99..9d2a387f6 100644 --- a/lib/patterns.less +++ b/lib/patterns.less @@ -753,6 +753,11 @@ input[type=submit].btn { .box-shadow(0 3px 7px rgba(0,0,0,0.3)); .background-clip(padding-box); .close { margin-top: 7px; } + &.fade { + .transition(e('opacity .3s linear, top .3s ease-out')); + top: -25%; + } + &.fade.in { top: 50%; } } .modal-header { border-bottom: 1px solid #eee; -- cgit v1.2.3