i18n hidden photo
parent
12c898009d
commit
5f62d0abdd
|
@ -180,14 +180,12 @@ div.hidden-photo {
|
||||||
background-color: rgba($color: #000000, $alpha: 0.5);
|
background-color: rgba($color: #000000, $alpha: 0.5);
|
||||||
transition: opacity 0.3s;
|
transition: opacity 0.3s;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
&::before {
|
|
||||||
content: '点击查看';
|
|
||||||
color: white;
|
color: white;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
font-size: 1.5em;
|
||||||
}
|
}
|
||||||
&.show {
|
&.show {
|
||||||
img {
|
img {
|
||||||
|
|
|
@ -21,3 +21,6 @@ other = "min read"
|
||||||
|
|
||||||
[single-writtenBy]
|
[single-writtenBy]
|
||||||
other = "WRITTEN BY"
|
other = "WRITTEN BY"
|
||||||
|
|
||||||
|
[click-to-show]
|
||||||
|
other = "Click to Show"
|
||||||
|
|
|
@ -3,3 +3,6 @@ other = "このページで"
|
||||||
|
|
||||||
[contactUs]
|
[contactUs]
|
||||||
other = "お問い合わせ"
|
other = "お問い合わせ"
|
||||||
|
|
||||||
|
[click-to-show]
|
||||||
|
other = "クリックすると表示されます"
|
||||||
|
|
|
@ -24,3 +24,7 @@ other = "撰写者"
|
||||||
|
|
||||||
[edit-this-page]
|
[edit-this-page]
|
||||||
other = "编辑此页面"
|
other = "编辑此页面"
|
||||||
|
|
||||||
|
[click-to-show]
|
||||||
|
other = "点击查看"
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,6 @@ other = "此頁面上的內容"
|
||||||
|
|
||||||
[contactUs]
|
[contactUs]
|
||||||
other = "聯繫我們"
|
other = "聯繫我們"
|
||||||
|
|
||||||
|
[click-to-show]
|
||||||
|
other = "點擊檢視"
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<div class="hidden-photo" onclick="showHiddenPhoto(this)">
|
<div class="hidden-photo" onclick="showHiddenPhoto(this)">
|
||||||
<img src="{{ .Get 0 }}" alt="{{ .Get 1 }}">
|
<img src="{{ .Get 0 }}" alt="{{ .Get 1 }}">
|
||||||
<div class="mask"></div>
|
<div class="mask">
|
||||||
|
{{ i18n "click-to-show" }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue