Compare commits
No commits in common. "d19a835055f357d4241df484b8e977baf0897b8c" and "1d416be07865b34b5507d6340ab12b5b195a772b" have entirely different histories.
d19a835055
...
1d416be078
5 changed files with 25 additions and 91 deletions
Binary file not shown.
Before Width: | Height: | Size: 48 KiB |
|
@ -32,69 +32,18 @@ h6 {}
|
||||||
body > header {
|
body > header {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
background-color: #FCF9F5;
|
background: white;
|
||||||
margin-left: 0;
|
border-bottom-width: thin;
|
||||||
margin-right: 0;
|
border-bottom-style: solid;
|
||||||
width: 100vw !important;
|
|
||||||
max-width: 100vw;
|
|
||||||
/* border-bottom-width: thin;
|
|
||||||
border-bottom-style: solid;*/
|
|
||||||
padding-bottom: 0px !important;
|
padding-bottom: 0px !important;
|
||||||
margin-bottom: 0px !important;
|
|
||||||
padding-top: 0px !important;
|
padding-top: 0px !important;
|
||||||
/* padding-right: 1em !important;
|
padding-right: 1em !important;
|
||||||
padding-left: 1em !important;*/
|
padding-left: 1em !important;
|
||||||
/* color: #f1f1f1; */
|
/* color: #f1f1f1; */
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width:576px) {
|
nav {}
|
||||||
body>footer>nav,
|
|
||||||
body>header>nav {
|
|
||||||
max-width:510px;
|
|
||||||
padding-right:0;
|
|
||||||
padding-left:0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width:768px) {
|
|
||||||
body>footer>nav,
|
|
||||||
body>header>nav {
|
|
||||||
max-width:700px
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width:1024px) {
|
|
||||||
body>footer>nav,
|
|
||||||
body>header>nav {
|
|
||||||
max-width:950px
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width:1280px) {
|
|
||||||
body>footer>nav,
|
|
||||||
body>header>nav {
|
|
||||||
max-width:1200px
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width:1536px) {
|
|
||||||
body>footer>nav,
|
|
||||||
body>header>nav {
|
|
||||||
max-width:1450px
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
body>header>nav,
|
|
||||||
body>footer>nav {
|
|
||||||
margin: auto;
|
|
||||||
--pico-primary: #8D0B02 !important;
|
|
||||||
--pico-primary-hover: #cd5c5c !important;
|
|
||||||
}
|
|
||||||
body>footer>nav {
|
|
||||||
border-top-width: thin;
|
|
||||||
border-top-style: solid;
|
|
||||||
}
|
|
||||||
nav ul, nav ol {}
|
nav ul, nav ol {}
|
||||||
nav ul.abv-brand {
|
|
||||||
border-bottom-width: thin;
|
|
||||||
border-bottom-style: solid;
|
|
||||||
}
|
|
||||||
nav li {}
|
nav li {}
|
||||||
nav a {}
|
nav a {}
|
||||||
nav a:visited {}
|
nav a:visited {}
|
||||||
|
@ -138,19 +87,14 @@ search {}
|
||||||
|
|
||||||
body > footer {
|
body > footer {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
width: 100vw !important;
|
|
||||||
max-width: 100vw;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: #FCF9F5;
|
background: white;
|
||||||
/*border-top-width: thin;
|
border-top-width: thin;
|
||||||
border-top-style: solid;*/
|
border-top-style: solid;
|
||||||
padding-top: 0px !important;
|
padding-top: 0px !important;
|
||||||
padding-bottom: 0px !important;
|
padding-bottom: 0px !important;
|
||||||
/* color: #f1f1f1; */
|
/* color: #f1f1f1; */
|
||||||
}
|
}
|
||||||
body>footer>nav {
|
|
||||||
margin:auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
address {}
|
address {}
|
||||||
|
|
||||||
|
@ -196,14 +140,6 @@ a:visited {}
|
||||||
a:hover {}
|
a:hover {}
|
||||||
a:active {}
|
a:active {}
|
||||||
|
|
||||||
a.abv-map img {
|
|
||||||
height: 2ex;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.abv-map:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
strong {}
|
strong {}
|
||||||
b {}
|
b {}
|
||||||
|
|
||||||
|
@ -255,10 +191,6 @@ Embedded content
|
||||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
img {}
|
img {}
|
||||||
img.abv-logo {
|
|
||||||
height: 7ex;
|
|
||||||
}
|
|
||||||
|
|
||||||
svg {}
|
svg {}
|
||||||
video {}
|
video {}
|
||||||
canvas {}
|
canvas {}
|
||||||
|
|
BIN
static/map.png
BIN
static/map.png
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
|
@ -40,9 +40,8 @@ declare function page:head($title as xs:string, $script as node()* := ()) {
|
||||||
declare function page:header($lang as xs:string, $href-other as xs:string) {
|
declare function page:header($lang as xs:string, $href-other as xs:string) {
|
||||||
<header>
|
<header>
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="abv-brand">
|
<ul>
|
||||||
<li><img class="abv-logo" src="/static/Abaev_logo.png" alt="Abaevdict logo"></img>
|
<li><strong>{
|
||||||
<strong>{
|
|
||||||
switch($lang)
|
switch($lang)
|
||||||
case 'ru' return 'ИЭСОЯ В. И. Абаева'
|
case 'ru' return 'ИЭСОЯ В. И. Абаева'
|
||||||
default return 'Abaevdict'
|
default return 'Abaevdict'
|
||||||
|
@ -345,14 +344,7 @@ declare %rest:path("{$lang}/dict")
|
||||||
{for $doc at $i in $page:sorted
|
{for $doc at $i in $page:sorted
|
||||||
where $i > ($p - 1) * $page:items and $i <= $p * $page:items
|
where $i > ($p - 1) * $page:items and $i <= $p * $page:items
|
||||||
let $html := doc(`abaevdict_{$lang}/html/{$doc/@xml:id}.html`)
|
let $html := doc(`abaevdict_{$lang}/html/{$doc/@xml:id}.html`)
|
||||||
return if (doc('abaevdict_index/mentioned_en.xml')/
|
return $html}
|
||||||
lang-index/lang/word/entry[@id=string($doc/@xml:id)]) then
|
|
||||||
$html transform with {insert nodes (<br/>,
|
|
||||||
<a class="abv-map" data-abv-entry="{$doc/@xml:id}">
|
|
||||||
<img src="/static/map.png"></img></a>) as last
|
|
||||||
into ./article[1]/h6[1]}
|
|
||||||
else $html
|
|
||||||
}
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<!-- Footer for page navigation -->
|
<!-- Footer for page navigation -->
|
||||||
|
@ -364,7 +356,7 @@ declare %rest:path("{$lang}/dict")
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<!-- <ul><li>Page {$p} of {$page:total}</li></ul> -->
|
<!-- <ul><li>Page {$p} of {$page:total}</li></ul> -->
|
||||||
<ul class="abv-nextpage">
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
{if ($p < $page:total) then
|
{if ($p < $page:total) then
|
||||||
<a class="pagination__next" href="?page={$p + 1}">Next page</a> else ()}
|
<a class="pagination__next" href="?page={$p + 1}">Next page</a> else ()}
|
||||||
|
|
|
@ -39,6 +39,16 @@
|
||||||
<xsl:when test="current-grouping-key()">
|
<xsl:when test="current-grouping-key()">
|
||||||
<h6 class="abv-headword">
|
<h6 class="abv-headword">
|
||||||
<xsl:apply-templates select="current-group()"/>
|
<xsl:apply-templates select="current-group()"/>
|
||||||
|
<br/>
|
||||||
|
<a class="abv-map" href="#modal_map">
|
||||||
|
<xsl:attribute name="data-abv-entry" select="$entry-id"/>
|
||||||
|
<!-- map icon by Free Icons (https://free-icons.github.io/free-icons/) -->
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="1em" fill="currentColor" viewBox="0 0 512 512">
|
||||||
|
<path
|
||||||
|
d="M 160.88888888888889 57.77777777777778 Q 163.55555555555554 56.888888888888886 165.33333333333334 56.888888888888886 L 348.44444444444446 113.77777777777777 L 348.44444444444446 113.77777777777777 L 473.77777777777777 67.55555555555556 L 473.77777777777777 67.55555555555556 Q 488 63.111111111111114 499.55555555555554 71.11111111111111 Q 511.1111111111111 79.11111111111111 512 94.22222222222223 L 512 376 L 512 376 Q 511.1111111111111 395.55555555555554 493.3333333333333 402.6666666666667 L 351.1111111111111 455.1111111111111 L 351.1111111111111 455.1111111111111 Q 348.44444444444446 455.1111111111111 346.6666666666667 455.1111111111111 L 163.55555555555554 398.22222222222223 L 163.55555555555554 398.22222222222223 L 38.22222222222222 444.44444444444446 L 38.22222222222222 444.44444444444446 Q 24 448.8888888888889 12.444444444444445 440.8888888888889 Q 0.8888888888888888 432.8888888888889 0 417.77777777777777 L 0 136 L 0 136 Q 0.8888888888888888 116.44444444444444 18.666666666666668 109.33333333333333 L 160.88888888888889 57.77777777777778 L 160.88888888888889 57.77777777777778 Z M 24 122.66666666666667 Q 15.11111111111111 126.22222222222223 14.222222222222221 136 L 14.222222222222221 417.77777777777777 L 14.222222222222221 417.77777777777777 Q 14.222222222222221 424.8888888888889 20.444444444444443 429.3333333333333 Q 25.77777777777778 432.8888888888889 33.77777777777778 431.1111111111111 L 156.44444444444446 385.77777777777777 L 156.44444444444446 385.77777777777777 L 156.44444444444446 73.77777777777777 L 156.44444444444446 73.77777777777777 L 24 122.66666666666667 L 24 122.66666666666667 Z M 341.3333333333333 438.22222222222223 L 341.3333333333333 126.22222222222223 L 341.3333333333333 438.22222222222223 L 341.3333333333333 126.22222222222223 L 170.66666666666666 73.77777777777777 L 170.66666666666666 73.77777777777777 L 170.66666666666666 385.77777777777777 L 170.66666666666666 385.77777777777777 L 341.3333333333333 438.22222222222223 L 341.3333333333333 438.22222222222223 Z M 355.55555555555554 438.22222222222223 L 488.8888888888889 389.3333333333333 L 355.55555555555554 438.22222222222223 L 488.8888888888889 389.3333333333333 Q 496.8888888888889 385.77777777777777 497.77777777777777 376 L 497.77777777777777 94.22222222222223 L 497.77777777777777 94.22222222222223 Q 497.77777777777777 87.11111111111111 491.55555555555554 82.66666666666667 Q 486.22222222222223 79.11111111111111 479.1111111111111 80.88888888888889 L 355.55555555555554 126.22222222222223 L 355.55555555555554 126.22222222222223 L 355.55555555555554 438.22222222222223 L 355.55555555555554 438.22222222222223 Z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
</h6>
|
</h6>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue