From 4106715fdea6a71aa627047b53947fd05d7e733f Mon Sep 17 00:00:00 2001 From: jlukic Date: Wed, 27 Aug 2014 21:09:03 -0400 Subject: [PATCH] Change default sidebar settings for docs --- server/files/javascript/semantic.js | 2 +- server/files/stylesheets/semantic.css | 19 ++++++ server/layouts/default.html.eco | 98 ++++++++++++++------------- src/definitions/collections/menu.less | 32 ++++----- src/definitions/modules/sidebar.js | 6 +- 5 files changed, 91 insertions(+), 66 deletions(-) diff --git a/server/files/javascript/semantic.js b/server/files/javascript/semantic.js index aef0c2579..8d9fad6ed 100755 --- a/server/files/javascript/semantic.js +++ b/server/files/javascript/semantic.js @@ -837,7 +837,7 @@ semantic.ready = function() { ; $menu .sidebar({ - animation: 'slide along' + animation: 'scale down' }) .sidebar('attach events', '.launch.button, .view-ui.button, .launch.item') .sidebar('attach events', $hideMenu, 'hide') diff --git a/server/files/stylesheets/semantic.css b/server/files/stylesheets/semantic.css index 6d79fadaf..3f4174117 100755 --- a/server/files/stylesheets/semantic.css +++ b/server/files/stylesheets/semantic.css @@ -871,7 +871,26 @@ body.guide .main.container > * { #example .settings.table td:nth-child(2n) { width: 100px; } +#example.pushed { + background: #333333 url(../images/icons.png) !important; + -webkit-animation-name: masthead; + -moz-animation-name: masthead; + -o-animation-name: masthead; + animation-name: masthead; + + -webkit-animation-duration: 30s; + -moz-animation-duration: 30s; + -ms-animation-duration: 30s; + -o-animation-duration: 30s; + animation-duration: 30s; + +} +#example.pushed .page .main.menu { + top: -1px; + left: -1px; + width: calc(100% + 2px); +} /* example code reskin */ #example div.code.hide { diff --git a/server/layouts/default.html.eco b/server/layouts/default.html.eco index c15fe7698..6acbada11 100755 --- a/server/layouts/default.html.eco +++ b/server/layouts/default.html.eco @@ -197,59 +197,63 @@ -