Skip to content

Commit 29b8251

Browse files
save file
1 parent 4062ff3 commit 29b8251

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed

blog/html/blog-hdr/blog-hdr.html

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
2+
3+
4+
<blog-hdr v2.0>
5+
6+
<template shadowrootmode=open>
7+
8+
<style>
9+
10+
#root
11+
{margin:0;box-sizing:border-box;display:flex;align-items:center;gap:10px;
12+
border-bottom:1px solid lightgray;padding-bottom:20px;position:relative;
13+
margin-bottom:20px;
14+
}
15+
16+
.icon
17+
{cursor:pointer;border-radius:3px;border:1px solid gray;box-sizing:border-box;
18+
width:38px;height:38px;
19+
}
20+
21+
.item
22+
{display:inline-flex;align-items:center;text-align:center;background:buttonface;
23+
border-radius:3px;border:1px solid lightgray;padding:5px 7px;
24+
}
25+
26+
.item-label
27+
{}
28+
29+
::slotted(.title)
30+
{text-align:center;position:absolute;left:0;right:0;top:0px;z-index:-1;margin:0 auto;color:blue;
31+
}
32+
33+
34+
.date
35+
{position:absolute;top:5px;right:5px;}
36+
37+
a
38+
{color:blue;}
39+
a:visited
40+
{color:blue;}
41+
42+
::slotted(.visually-hidden)
43+
{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
44+
45+
</style>
46+
47+
48+
<div id=root>
49+
50+
<a class=item href='/'>
51+
home
52+
</a>
53+
54+
<a class=item href='/blog/index.html'>
55+
blog
56+
</a>
57+
58+
<slot></slot>
59+
60+
<slot name=seo-hdr class=visually-hidden></slot>
61+
62+
<div class=date>
63+
<slot name=date></slot>
64+
</div>
65+
66+
</div>
67+
68+
</template>
69+
70+
71+
<script>
72+
73+
(function blog_hdr({mod,dom,host}){
74+
75+
var obj = {};
76+
77+
78+
obj.initmod = function(params){
79+
}//initmod
80+
81+
82+
//:
83+
84+
85+
//:
86+
87+
88+
obj.init = async function(){
89+
}//init
90+
91+
92+
//:
93+
94+
95+
obj.initdom = function(rootnode){
96+
97+
var root = rootnode;
98+
99+
}//initdom
100+
101+
102+
//:
103+
104+
105+
return obj;
106+
107+
})//blog_hdr
108+
109+
</script>
110+
111+
</blog-hdr>

0 commit comments

Comments
 (0)