You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mc...@apache.org on 2019/01/06 21:17:10 UTC
svn commit: r1850596 - in /cassandra/site/src: _includes/footer.html
css/sphinx.scss css/style.scss
Author: mck
Date: Sun Jan 6 21:17:10 2019
New Revision: 1850596
URL: http://svn.apache.org/viewvc?rev=1850596&view=rev
Log:
Docs: Fix page width exceeding the viewport
patch by Stefan Podkowinski; reviewed by Mick Semb Wever for CASSANDRA-14065
Modified:
cassandra/site/src/_includes/footer.html
cassandra/site/src/css/sphinx.scss
cassandra/site/src/css/style.scss
Modified: cassandra/site/src/_includes/footer.html
URL: http://svn.apache.org/viewvc/cassandra/site/src/_includes/footer.html?rev=1850596&r1=1850595&r2=1850596&view=diff
==============================================================================
--- cassandra/site/src/_includes/footer.html (original)
+++ cassandra/site/src/_includes/footer.html Sun Jan 6 21:17:10 2019
@@ -39,37 +39,6 @@
{% if page.extra-footer %}
{{ page.extra-footer }}
{% endif %}
-<script type="text/javascript">
-$(function() {
- // Stick the #nav to the top of the window
- var nav = $('.doc-navigation');
- var navHomeY = nav.offset().top;
- var isFixed = false;
- var $w = $(window);
- $w.scroll(function() {
- var scrollTop = $w.scrollTop();
- var shouldBeFixed = $w.width() > 991 && scrollTop >= navHomeY - 10;
- if (shouldBeFixed && !isFixed) {
- nav.css({
- position: 'fixed',
- top: 0,
- left: nav.offset().left,
- width: nav.width(),
- });
- nav.addClass('fixed-navigation');
- isFixed = true;
- }
- else if (!shouldBeFixed && isFixed)
- {
- nav.css({
- position: 'static'
- });
- nav.removeClass('fixed-navigation');
- isFixed = false;
- }
- });
-});
-</script>
{% endif %}
<script type="text/javascript">
Modified: cassandra/site/src/css/sphinx.scss
URL: http://svn.apache.org/viewvc/cassandra/site/src/css/sphinx.scss?rev=1850596&r1=1850595&r2=1850596&view=diff
==============================================================================
--- cassandra/site/src/css/sphinx.scss (original)
+++ cassandra/site/src/css/sphinx.scss Sun Jan 6 21:17:10 2019
@@ -64,7 +64,7 @@ $menu-selected-hover-color: $dark-green;
margin-top: 40px;
background-color: $menu-main-background;
- max-width: 300px;
+ max-width: 350px;
z-index: 200;
overflow-x: hidden;
overflow-y: hidden;
Modified: cassandra/site/src/css/style.scss
URL: http://svn.apache.org/viewvc/cassandra/site/src/css/style.scss?rev=1850596&r1=1850595&r2=1850596&view=diff
==============================================================================
--- cassandra/site/src/css/style.scss (original)
+++ cassandra/site/src/css/style.scss Sun Jan 6 21:17:10 2019
@@ -20,10 +20,8 @@ body {
background-color: #fff;
}
-.content {
- .container {
- margin-top: 20px;
- }
+.doc-content {
+ margin-top: 40px;
}
#wipwarning {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org