Skip to content

Commit a4685f7

Browse files
committed
responsive (#1006)
1 parent 2d20cd7 commit a4685f7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/components/App.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -7613,7 +7613,8 @@ handleCheck = (ev:Event,lab:string,val:boolean,params:{}) => {
76137613
{ showMenus }
76147614
{ !this.props.config.khmerServer &&
76157615
<div class="fond-logo">
7616-
<a /*title="Photo by Ven. Matthieu Ricard"*/ id="logo" target="_blank" old-href="https://www.tbrc.org/">
7616+
<a /*title="Photo by Ven. Matthieu Ricard"*/ id="logo" target="_blank" old-href="https://www.tbrc.org/"
7617+
data-caption='Photo by Ven. Matthieu Ricard'>
76177618
{/* <img src="/logo.svg" style={{width:"200px"}} /> */}
76187619
{/* <img src="/pichome.jpg" /> */}
76197620
<img src="library-hero.jpg" />
@@ -8001,7 +8002,9 @@ handleCheck = (ev:Event,lab:string,val:boolean,params:{}) => {
80018002

80028003
<div class="home-tradi-grid">
80038004
{ ["bo","pi","sa","zh"].map(t => (
8004-
<Link /*{...t=="bo"?{title:"Photo by Ven. Matthieu Ricard"}:{}}*/ onClick={() => { document.documentElement.scrollTo({ top:0, left:0, behavior: "instant" }); }}
8005+
<Link /*{...t=="bo"?{title:"Photo by Ven. Matthieu Ricard"}:{}}*/
8006+
data-caption='Photo by Ven. Matthieu Ricard'
8007+
onClick={() => { document.documentElement.scrollTo({ top:0, left:0, behavior: "instant" }); }}
80058008
className={this.props.tradition === t ? "active": ""} to={"/tradition/"+t+"/"}>
80068009
<span>{I18n.t("tradition."+t+"T")}</span>
80078010
<img src={"/tradi/"+t+".jpg"}/>

src/lib/searchkit/App.css

+8-1
Original file line numberDiff line numberDiff line change
@@ -1797,13 +1797,14 @@ header[data-hits="0"] ~ .hits .pagination,
17971797
.home-tradi-grid a[href$="/bo/"]::after,
17981798
.SearchPane #logo::after {
17991799

1800-
content:'Photo by Ven. Matthieu Ricard';
1800+
content:attr(data-caption);
18011801
position:absolute;
18021802
color:white;
18031803
bottom:0;
18041804
left:0;
18051805
font-size:12px;
18061806
text-shadow:1px 1px 1px black;
1807+
padding-left:3px;
18071808
}
18081809

18091810
/* responsive */
@@ -2812,6 +2813,10 @@ header[data-hits="0"] ~ .hits .pagination,
28122813
top:190px;
28132814
}
28142815

2816+
.SearchPane #logo::after {
2817+
bottom:auto;
2818+
top:calc(max(100vw,375px) * 490 / 1440 - 17px);
2819+
}
28152820
}
28162821

28172822
@media (max-width:665px){
@@ -3010,6 +3015,8 @@ header[data-hits="0"] ~ .hits .pagination,
30103015
#viewer .nav-bar-top #buda + a {
30113016
display:none;
30123017
}
3018+
3019+
30133020
}
30143021

30153022

0 commit comments

Comments
 (0)