Skip to content

Commit a5a4d8c

Browse files
committed
prevent scrolling to the right
1 parent 7d77445 commit a5a4d8c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

source/layouts/layout.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
<script>try{Typekit.load();}catch(e){}</script>
1212
</head>
1313
<body class="layout">
14-
<%= yield %>
14+
<div class="layout--container">
15+
<%= yield %>
16+
</div>
1517
</body>
1618
</html>
1719

source/stylesheets/style.css.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
position: relative;
2020
}
2121

22+
.layout--container {
23+
overflow: hidden;
24+
}
25+
2226
.layout--header {
2327
background: black;
2428
color: white;

0 commit comments

Comments
 (0)