Skip to content

Commit 03ee723

Browse files
author
saowang
committed
💎 v2.0.5
1 parent 74b0b24 commit 03ee723

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1369
-23
lines changed

_includes/reset/version.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{%- assign version = "2.0.4" -%}
1+
{%- assign version = "2.0.5" -%}

_includes/shortcodes/danger.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<div class="admonition danger mb-3">
1+
<div class="admonition danger mb-4">
22
<div class="title px-2 py-1">
33
<i class="fa fa-exclamation-circle"></i>
44
{{ __.danger | default: "Danger" }}
55
</div>
6-
<div class="content p-2">
6+
<div class="content px-2 py-3">
77
{{ codes | markdownify | strip_newlines -}}
88
</div>
99
</div>

_includes/shortcodes/note.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<div class="admonition note mb-3">
1+
<div class="admonition note mb-4">
22
<div class="title px-2 py-1">
33
<i class="fa fa-exclamation-circle"></i>
44
{{ __.note | default: "Note" }}
55
</div>
6-
<div class="content p-2">
6+
<div class="content px-2 py-3">
77
{{ codes | markdownify | strip_newlines -}}
88
</div>
99
</div>

_includes/shortcodes/tip.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<div class="admonition tip mb-3">
1+
<div class="admonition tip mb-4">
22
<div class="title px-2 py-1">
33
<i class="fa fa-exclamation-circle"></i>
44
{{ __.tip | default: "Tip" }}
55
</div>
6-
<div class="content p-2">
6+
<div class="content px-2 py-3">
77
{{ codes | markdownify | strip_newlines -}}
88
</div>
99
</div>

_includes/shortcodes/warning.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<div class="admonition warning mb-3">
1+
<div class="admonition warning mb-4">
22
<div class="title px-2 py-1">
33
<i class="fa fa-exclamation-circle"></i>
44
{{ __.warning | default: "Warning" }}
55
</div>
6-
<div class="content p-2">
6+
<div class="content px-2 py-3">
77
{{ codes | markdownify | strip_newlines -}}
88
</div>
99
</div>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

_sass/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ $theme-mask-black: transparentize($theme-black, 0.9);
2929
// theme menu
3030
$theme-menu-width: 300px;
3131
$theme-menu-background: darken($theme-black, 10%);
32-
$theme-menu-active-background: darken($theme-blue, 20%);
32+
$theme-menu-active-background: darken($theme-blue, 15%);

_sass/class/admonition.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
.admonition {
22
// fixed note
33
font-size: $h4-size;
4+
// mdl
5+
@include shadow-2dp();
6+
7+
.title {
8+
box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.14);
9+
}
410

511
// fixed
612
.content {

_sass/class/markdown-body.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,23 @@
6060
pre {
6161
font-size: $font-size-small;
6262
border: $border;
63+
// from rouge highlight
64+
background-color: #f8f8f8;
6365
}
6466

65-
.highlight pre {
66-
background-color: transparent;
67+
div.highlighter-rouge {
68+
position: relative;
69+
70+
&:after {
71+
position: absolute;
72+
right: 0;
73+
top: 0;
74+
font-family: $mono-font;
75+
font-size: $font-size-small;
76+
content: attr(data-lang);
77+
padding: 2px 5px 0px;
78+
color: lighten($text-gray-light, 25%);
79+
}
6780
}
6881

6982
// search

_sass/class/sidebar-wrap.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232

3333
> ul {
3434
// the first level links
35+
> .toc > a {
36+
padding-left: 0.75em;
37+
}
38+
39+
// the first level links not current
3540
> .toc:not(.current) > a {
3641
&:hover {
3742
background: $theme-mask-white;

0 commit comments

Comments
 (0)