@@ -211,24 +211,39 @@ pre code {
211211 margin-top : 20px ;
212212}
213213@media only screen and (max-width : 767px ) {
214+ /**
215+ * Layout
216+ * Since V1.6 we use absolute positioning to prevent to expand container-fluid
217+ * which would cover tags. A absolute positioning make a new layer.
218+ */
214219 .navbar-default .navbar-collapse {
220+ position : absolute;
221+ right : 0 ;
215222 border : none;
216223 background : white;
217224 box-shadow : 0px 5px 10px 2px rgba (0 , 0 , 0 , 0.2 );
218225 box-shadow : rgba (0 , 0 , 0 , 0.117647 ) 0px 1px 6px , rgba (0 , 0 , 0 , 0.239216 ) 0px 1px 4px ;
219226 border-radius : 2px ;
220227 width : 170px ;
221- float : right;
222- margin : 0px ;
223228 }
229+ /**
230+ * Animation
231+ * HuxBlog-Navbar using genuine Material Design Animation
232+ */
224233 # huxblog_navbar {
234+ /**
235+ * Sharable code and 'out' function
236+ */
225237 opacity : 0 ;
226238 transform : scaleX (0 );
227239 transform-origin : top right;
228- transition : all 0.25 s cubic-bezier (0.23 , 1 , 0.32 , 1 ) ;
240+ transition : all 200 ms cubic-bezier (0.47 , 0 , 0.4 , 0.99 ) 0 ms ;
229241 -webkit-transform : scaleX (0 );
230242 -webkit-transform-origin : top right;
231- -webkit-transition : all 0.25s cubic-bezier (0.23 , 1 , 0.32 , 1 );
243+ -webkit-transition : all 200ms cubic-bezier (0.47 , 0 , 0.4 , 0.99 ) 0ms ;
244+ /**
245+ *'In' Animation
246+ */
232247 }
233248 # huxblog_navbar a {
234249 font-size : 13px ;
@@ -238,27 +253,33 @@ pre code {
238253 height : 0px ;
239254 transform : scaleY (0 );
240255 transform-origin : top right;
241- transition : transform 500 ms cubic-bezier (0.23 , 1 , 0.32 , 1 );
256+ transition : transform 400 ms cubic-bezier (0.32 , 1 , 0.23 , 1 ) 0 ms ;
242257 -webkit-transform : scaleY (0 );
243258 -webkit-transform-origin : top right;
244- -webkit-transition : -webkit-transform 500 ms cubic-bezier (0.23 , 1 , 0.32 , 1 );
259+ -webkit-transition : -webkit-transform 400 ms cubic-bezier (0.32 , 1 , 0.23 , 1 ) 0 ms ;
245260 }
246261 # huxblog_navbar li {
247262 opacity : 0 ;
248- transition : opacity 450 ms cubic-bezier (0.23 , 1 , 0.32 , 1 ) 205 ms ;
249- -webkit-transition : opacity 450 ms cubic-bezier (0.23 , 1 , 0.32 , 1 ) 205 ms ;
263+ transition : opacity 100 ms cubic-bezier (0.23 , 1 , 0.32 , 1 ) 0 ms ;
264+ -webkit-transition : opacity 100 ms cubic-bezier (0.23 , 1 , 0.32 , 1 ) 0 ms ;
250265 }
251266 # huxblog_navbar .in {
252267 transform : scaleX (1 );
253268 -webkit-transform : scaleX (1 );
254269 opacity : 1 ;
270+ transition : all 250ms cubic-bezier (0.23 , 1 , 0.32 , 1 ) 0ms ;
271+ -webkit-transition : all 250ms cubic-bezier (0.23 , 1 , 0.32 , 1 ) 0ms ;
255272 }
256273 # huxblog_navbar .in .navbar-collapse {
257274 transform : scaleY (1 );
258275 -webkit-transform : scaleY (1 );
276+ transition : transform 500ms cubic-bezier (0.23 , 1 , 0.32 , 1 );
277+ -webkit-transition : -webkit-transform 500ms cubic-bezier (0.23 , 1 , 0.32 , 1 );
259278 }
260279 # huxblog_navbar .in li {
261280 opacity : 1 ;
281+ transition : opacity 450ms cubic-bezier (0.23 , 1 , 0.32 , 1 ) 205ms ;
282+ -webkit-transition : opacity 450ms cubic-bezier (0.23 , 1 , 0.32 , 1 ) 205ms ;
262283 }
263284}
264285.navbar-custom {
0 commit comments