fix: allow code to auto wrap

This commit is contained in:
Zhicheng WANG 2018-12-05 16:25:35 +08:00
parent c2815589c2
commit f4e35179ea

View File

@ -1,9 +1,11 @@
.github-links { .github-links {
float: right; float: right;
.material-icons { .material-icons {
border-radius: 4px; border-radius: 4px;
padding: 4px; padding: 4px;
font-size: 20px; font-size: 20px;
&:hover { &:hover {
background-color: $mist; background-color: $mist;
} }
@ -26,14 +28,14 @@
position: relative; position: relative;
code-example { code-example {
clear: left; clear: left;
} }
} }
.method-table, .option-table, .list-table { .method-table, .option-table, .list-table {
td > code { td > code {
background-color: inherit; background-color: inherit;
white-space: pre; white-space: normal;
} }
.with-github-links { .with-github-links {
@ -44,6 +46,7 @@
.github-links { .github-links {
a { a {
color: $mediumgray; color: $mediumgray;
.material-icons:hover { .material-icons:hover {
background: none; background: none;
color: $blue; color: $blue;
@ -74,6 +77,7 @@
.parameters-table { .parameters-table {
margin-top: 0; margin-top: 0;
font-size: 14px; font-size: 14px;
td:nth-child(1) { td:nth-child(1) {
width: 20%; width: 20%;
} }
@ -85,6 +89,7 @@
summary { summary {
height: inherit; height: inherit;
padding: 8px 12px; padding: 8px 12px;
h4 { h4 {
margin: 0; margin: 0;
clear: left; clear: left;
@ -105,6 +110,7 @@
.selector-list, .inherited-members-list { .selector-list, .inherited-members-list {
ul { ul {
padding: 0; padding: 0;
li { li {
list-style: none; list-style: none;
margin-bottom: 12px; margin-bottom: 12px;
@ -115,6 +121,7 @@
.selector-list { .selector-list {
li, a { li, a {
font-weight: bold; font-weight: bold;
i { i {
font-weight: normal; font-weight: normal;
} }