Skip to content

Commit 20bfe9d

Browse files
committed
Additional menu sidebar vs main content tweaks.
- Legacy-Id: 9392
1 parent 7c58798 commit 20bfe9d

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

ietf/templates/ietf.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<link rel="stylesheet" href="/css/bootstrap.min.css">
1010
<link rel="stylesheet" href="/css/bootstrap-theme.min.css">
11-
<link rel="stylesheet" href="/css/font-awesome.min.css">
11+
<link rel="stylesheet" href="/css/font-awesome.css">
1212
<link rel="stylesheet" href="/css/ietf.css">
1313
<style>
1414
{% block morecss %}{% endblock %}
@@ -69,12 +69,12 @@
6969

7070
{% if not hide_menu %} {# ugly hack for the more or less unported meeting agenda edit pages #}
7171
<div class="row">
72-
<div class="col-md-3 visible-md visible-lg leftmenu">
72+
<div class="col-md-2 visible-md visible-lg leftmenu">
7373
<ul class="nav nav-pills nav-stacked panel panel-default panel-body">
7474
{% include "base/menu.html" with flavor="left" %}
7575
</ul>
7676
</div>
77-
<div class="col-md-9 content-wrapper">
77+
<div class="col-md-10">
7878
<!--[if lt IE 8]>
7979
<p id="browsehappy" class="collapse alert alert-warning alert-dismissible">
8080
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
@@ -139,18 +139,16 @@
139139
</div>
140140
</footer>
141141
</div>
142-
143-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
142+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
144143
<script>window.jQuery || document.write('<script src="/js/lib/jquery-1.11.2.min.js"><\/script>')</script>
144+
<!-- Remove the *-nojs attributes if we are running js. This depends on jQuery's removeClass(): -->
145+
<!-- Do this as early as possible (after loading the page and jQuery) to avoid rendering changes -->
146+
<script>$(".visible-nojs").removeClass("visible-nojs");</script>
147+
<script>$(".hidden-nojs").removeClass("hidden-nojs");</script>
145148
<script src="/js/lib/jquery.cookie.min.js"></script>
146149
<script src="/js/lib/bootstrap.min.js"></script>
147-
{% block js %}{% endblock %}
148150
<script src="/js/ietf.js"></script>
149-
<script>
150-
151-
$(".hidden-nojs, .in-nojs").removeClass("hidden-nojs in-nojs");
152-
</script>
153-
151+
{% block js %}{% endblock %}
154152
</body>
155153
</html>
156154

static/css/ietf.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ body { padding-top: 70px; }
6969
.nav-stacked>li, .nav-stacked>li+li { margin: 0; line-height: 1.214; }
7070
.nav-stacked>li>a { padding: 2px 8px; }
7171
.leftmenu {
72-
width: 200px;
72+
max-width: 200px;
7373
}
7474
.leftmenu .nav { overflow-wrap: break-word }
7575

@@ -182,7 +182,7 @@ ampersand you get is dependent on which fonts are available in the browser. Hac
182182
display: none !important;
183183
visibility: hidden !important;
184184
}
185-
.in-nojs { display: block !important; }
185+
.visible-nojs { display: block !important; }
186186

187187
.navbar-brand > img {
188188
display: inline;

0 commit comments

Comments
 (0)