Skip to content

Commit e9cd83f

Browse files
committed
背景图
1 parent e60efad commit e9cd83f

File tree

4 files changed

+35
-20
lines changed

4 files changed

+35
-20
lines changed

css/app.css

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,63 @@
11
/* Your app styles here */
22

33
/* Left Panel right border when it is visible by breakpoint */
4+
45
.panel-left.panel-visible-by-breakpoint:before {
56
position: absolute;
67
right: 0;
78
top: 0;
89
height: 100%;
910
width: 1px;
10-
background: rgba(0,0,0,0.1);
11+
background: rgba(0, 0, 0, 0.1);
1112
content: '';
1213
z-index: 6000;
1314
}
1415

1516
/* Hide navbar link which opens left panel when it is visible by breakpoint */
16-
.panel-left.panel-visible-by-breakpoint ~ .view .navbar .panel-open[data-panel="left"] {
17+
18+
.panel-left.panel-visible-by-breakpoint~.view .navbar .panel-open[data-panel="left"] {
1719
display: none;
1820
}
1921

2022
/*
2123
Extra borders for main view and left panel for iOS theme when it behaves as panel (before breakpoint size)
2224
*/
23-
.ios .panel-left:not(.panel-visible-by-breakpoint).panel-active ~ .view-main:before,
24-
.ios .panel-left:not(.panel-visible-by-breakpoint).panel-closing ~ .view-main:before {
25+
26+
.ios .panel-left:not(.panel-visible-by-breakpoint).panel-active~.view-main:before,
27+
.ios .panel-left:not(.panel-visible-by-breakpoint).panel-closing~.view-main:before {
2528
position: absolute;
2629
left: 0;
2730
top: 0;
2831
height: 100%;
2932
width: 1px;
30-
background: rgba(0,0,0,0.1);
33+
background: rgba(0, 0, 0, 0.1);
3134
content: '';
3235
z-index: 6000;
3336
}
34-
textarea{
37+
38+
textarea {
3539
min-height: 36px;
3640
width: 100%;
3741
height: 100%;
3842
}
39-
.bottomline{
43+
44+
.bottomline {
4045
height: 50%;
4146
min-height: 300px;
4247
margin-top: 10px;
4348
}
44-
hr{
49+
50+
hr {
4551
color: #c0c0c0;
4652
}
47-
card_footer_custome{
53+
54+
card_footer_custome {
4855
text-align: right;
56+
}
57+
58+
.bg-image {
59+
background-image: url("../images/bg.png");
60+
background-origin:content-box;
61+
background-position:left;
62+
background-attachment:fixed;
4963
}

images/bg.png

1.61 MB
Loading

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
</div>
5656
</div>
5757
</div>
58-
<div class="page-content">
58+
<div class="page-content bg-image">
5959
<div class="block-title">My Cloud Notes</div>
6060
<div id="cards">
6161

js/index.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
window.onload = function () {
2-
if(webExtensionWallet){
3-
$$("#addbtn").show();
4-
setTimeout(() => {
5-
getMyNotes();
6-
}, 10);
7-
}else{
8-
$$("#addbtn").hide();
9-
$$("#cards").html("Please install<a href='https://github.com/ChengOrangeJu/WebExtensionWallet' class='external'>WebExtensionWallet</a>")
10-
}
2+
if (typeof (webExtensionWallet) === "undefined") {
3+
$$("#addbtn").hide();
4+
$$("#cards").html("Please install<a href='https://github.com/ChengOrangeJu/WebExtensionWallet' class='external'>WebExtensionWallet</a>")
5+
6+
} else {
7+
$$("#addbtn").show();
8+
setTimeout(() => {
9+
getMyNotes();
10+
}, 10);
11+
}
1112
}
1213

1314
function initForm() {
@@ -56,4 +57,4 @@ function generateTemplate(note) {
5657
"</div>" +
5758
"<div class='card-footer card_footer_custome'>" + d.getFullYear() + "年" + (d.getMonth() + 1) + "月" + (d.getDay() + 1) + "日" + "</div>" +
5859
"</div>"
59-
}
60+
}

0 commit comments

Comments
 (0)