Skip to content

Commit c40cbed

Browse files
committed
Add default value
1 parent 714bb9c commit c40cbed

File tree

4 files changed

+28
-33
lines changed

4 files changed

+28
-33
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</title>
2121
<link rel="publisher" href="https://plus.google.com/107187849809354688692">
2222
<link rel="shortcut icon" href="/images/logos/p-logo-16.png">
23-
<link href="//fonts.googleapis.com/css?family=RobotoDraft:300,400,500|Source+Code+Pro:400,700" rel="stylesheet">
23+
<link href="//fonts.googleapis.com/css?family=RobotoDraft:300,400,500|Source+Code+Pro:400,500,700" rel="stylesheet">
2424
<link href="/css/site2.css?{{site.time | date: '%Y%m%d'}}" rel="stylesheet" shim-shadowdom>
2525

2626
{% for item in page.stylesheets %}

css/elements/doc-page.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

elements/component-docs.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ <h3>Attributes</h3>
7676
<div class="details-name" flex>
7777
<p><code>{{name}}</code></p>
7878
</div>
79-
<div class="details-info" flex two>
80-
<p><code>{{type}}</code></p>
79+
<div class="details-info" flex three>
80+
<p layout horizontal center justified>
81+
<code>{{type}}</code><span class="default" hidden?="{{!default}}">default: <code>{{default}}</code></span>
82+
</p>
8183
<marked-element text="{{description}}"></marked-element>
8284
</div>
8385
</div>
@@ -93,8 +95,10 @@ <h3>Properties</h3>
9395
<div class="details-name" flex>
9496
<p><code>{{name}}</code></p>
9597
</div>
96-
<div class="details-info" flex two>
97-
<p><code>{{type}}</code></p>
98+
<div class="details-info" flex three>
99+
<p layout horizontal center justified>
100+
<code>{{type}}</code><span class="default" hidden?="{{!default}}">default: <code>{{default}}</code></span>
101+
</p>
98102
<marked-element text="{{description}}"></marked-element>
99103
</div>
100104
</div>
@@ -110,7 +114,7 @@ <h3>Events</h3>
110114
<div class="details-name" flex>
111115
<p><code>{{name}}</code></p>
112116
</div>
113-
<div class="details-info" flex two>
117+
<div class="details-info" flex three>
114118
<marked-element text="{{description}}"></marked-element>
115119
</div>
116120
</div>
@@ -126,7 +130,7 @@ <h3>Methods</h3>
126130
<div class="details-name" flex>
127131
<p><code>{{name}}</code></p>
128132
</div>
129-
<div class="details-info" flex two>
133+
<div class="details-info" flex three>
130134
<marked-element text="{{description}}"></marked-element>
131135
</div>
132136
</div>

sass/elements/doc-page.scss

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,28 @@ h1 {
3333

3434
code {
3535
color: currentcolor;
36-
font-weight: 400;
36+
font-weight: 500;
3737
}
3838
}
3939

40-
code {
41-
border: 1px solid #ddd;
42-
background-color: #f8f8f8;
43-
border-radius: 3px;
44-
padding: 0 3px;
45-
}
40+
// code {
41+
// border: 1px solid #ddd;
42+
// background-color: #f8f8f8;
43+
// border-radius: 3px;
44+
// padding: 0 3px;
45+
// }
4646

47-
// higlightjs overwrites
48-
code {
49-
border: none;
50-
background-color: transparent;
51-
border-radius: none;
52-
padding: 0;
53-
}
47+
// // higlightjs overwrites
48+
// code {
49+
// border: none;
50+
// background-color: transparent;
51+
// border-radius: none;
52+
// padding: 0;
53+
// }
5454

55-
pre code {
55+
pre {
5656
max-width: 832px;
57-
// white-space: pre-wrap;
57+
white-space: pre-wrap;
5858
overflow: hidden;
5959
border: none;
6060
}
@@ -99,15 +99,6 @@ pre code {
9999
}
100100
}
101101

102-
// .badge {
103-
// display: inline-block;
104-
// border-radius: 3px;
105-
// background-color: $materialPurple;
106-
// color: #fff;
107-
// text-decoration: none;
108-
// text-transform: uppercase;
109-
// padding: 3px 5px;
110-
// }
111102
.badge {
112103
color: currentcolor;
113104
}

0 commit comments

Comments
 (0)