Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit f2858c6

Browse files
devversionThomasBurleson
authored andcommitted
fix(docs): docs stylesheet should not prevent scrolling in code pens
Fixes #7269 Fixes #7216 Closes #7270
1 parent b88b1d8 commit f2858c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/app/css/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ body {
77
font-size: 1.6rem;
88
}
99

10-
body {
10+
/* This styling should be not applied to codepen demos, so we need to add a unique identifier. */
11+
body.docs-body {
1112
overflow: hidden;
1213
max-width: 100%;
1314
max-height: 100%;

docs/config/template/index.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<link rel="stylesheet" href="angular-material.min.css">
1313
<link rel="stylesheet" href="docs.css">
1414
</head>
15-
<body layout="row" ng-cloak>
15+
<body class="docs-body" layout="row" ng-cloak>
1616

1717
<md-sidenav class="site-sidenav md-sidenav-left md-whiteframe-z2"
1818
md-component-id="left"

0 commit comments

Comments
 (0)