Skip to content

Commit 5e238e2

Browse files
committed
Fixes
- UI's options only on linklist. - Subheader-form only on admin
1 parent fd83d20 commit 5e238e2

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

stack/_inc/page.header.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<header id="the-header">
2-
2+
{if="$is_logged_in && $template === 'linklist'"}
33
<div id="actions" class="subheader-form">
44
<div class="subheader_item_actions">
55
<a href="#" id="actions-delete" class="item_action">{'Delete'|t}</a>
@@ -9,6 +9,7 @@
99
<a href="#" class="subheader-opener button item_action" data-open-id="bulk-tag-action-delete">{'Delete tags'|t}</a>
1010
</div>
1111
</div>
12+
{/if}
1213

1314
{$addDelete=['add', 'delete']}
1415
{loop="$addDelete"}
@@ -91,11 +92,13 @@
9192
<a href="{$base_path}/login" id="shaarli-menu-login">{'Login'|t}</a>
9293
</li>
9394
{/if}
95+
{if="$template === 'linklist'"}
9496
<li class="s_ui_size">
9597
<button class="s_ui_size_button s_ui_small" aria-hidden="true"><svg width="24" height="24" style="overflow:visible"><rect class="svg-full" width="24" height="6" /><rect class="svg-full" y="9" width="24" height="6" /><rect class="svg-full" y="18" width="24" height="6" /></svg></button>
9698
<button class="s_ui_size_button s_ui_medium" aria-hidden="true"><svg width="24" height="24" style="overflow:visible"><rect class="svg-full" width="24" height="11" /><rect class="svg-full" y="13" width="24" height="11" /></svg></button>
9799
<button class="s_ui_size_button s_ui_large" aria-hidden="true"><svg width="24" height="24" style="overflow:visible"><rect class="svg-full" width="24" height="24" /></svg></button>
98100
</li>
101+
{/if}
99102
</ul>
100103
</nav>
101104
</header>

stack/css/markdown.min.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/* @override
22
https://shaarli:8890/tpl/chaaplin/css/markdown.min.css?*
33
https://liens.rolandtisserand.fr/tpl/bubbles/css/markdown.min.css?*
4-
https://liens.rolandtisserand.fr/tpl/stack/css/markdown.min.css?*
5-
https://23-liens.local:8890/tpl/stack/css/markdown.min.css?* */
4+
https://liens.rolandtisserand.fr/tpl/stack/css/markdown.min.css?* */
65

76

87
.markdown img {
@@ -24,18 +23,17 @@
2423
}
2524

2625
.markdown h2 {
27-
font-size: 150% !important;
26+
font-size: 2em !important;
2827
color: inherit !important;
29-
font-weight: 600 !important;
3028
}
3129

3230
.markdown h3 {
33-
font-size: 125%;
31+
font-size: 1.5em;
3432
margin-bottom: 1ch;
35-
font-weight: 600 !important;
3633
}
3734

3835
.markdown h4 {
36+
font-size: 1.2em
3937
}
4038

4139
.markdown h5 {

stack/css/stack.css

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/* @override
22
https://liens.rolandtisserand.fr/tpl/stack/css/stack.css?*
3-
https://shaarli-dev:8890/tpl/stack/css/stack.css?*
4-
https://shaarli-dev:8890/tpl/stack/css/stack.css?*
5-
https://23-liens.local:8890/tpl/stack/css/stack.css?*
3+
https://23-shaarli-stack:8890/tpl/stack/css/stack.css?*
64
*/
75

86
:root {
@@ -26,6 +24,8 @@
2624
--border-radius: 1rem;
2725
}
2826

27+
/*Rules for debugging purpose*/
28+
2929
/*button,svg,div,article {
3030
outline: 1px solid #f3f3f3;
3131
}*/
@@ -1722,7 +1722,6 @@ a:hover .svg-fill {
17221722
}
17231723

17241724
.s_large_post .linklist-link {
1725-
font-weight: bold;
17261725
padding-right: 3rem;
17271726
}
17281727
}
@@ -1919,6 +1918,19 @@ a:hover .svg-fill {
19191918
display: none;
19201919
}
19211920

1921+
.subheader-form .item_action {
1922+
font-size: 1.2rem;
1923+
transition: background 200ms ease-in-out 0s;
1924+
color: var(--dark-main-color);
1925+
background-color: var(--background-color);
1926+
border-radius: var(--border-radius);
1927+
padding: 1ch;
1928+
padding-left: 2ch;
1929+
padding-right: 2ch;
1930+
text-decoration: none;
1931+
margin-bottom: 0;
1932+
}
1933+
19221934
.subheader-form.open {
19231935
visibility: visible;
19241936
display: block;
@@ -1934,16 +1946,12 @@ a:hover .svg-fill {
19341946
}
19351947

19361948
.subheader-form .item_action {
1937-
font-size: 1.2rem;
1938-
transition: background 200ms ease-in-out 0s;
1939-
color: var(--dark-main-color);
19401949
background-color: var(--background-color);
19411950
border-radius: var(--border-radius);
19421951
padding: 1ch;
19431952
padding-left: 2ch;
19441953
padding-right: 2ch;
19451954
text-decoration: none;
1946-
margin-bottom: 0;
19471955
}
19481956

19491957
.subheader-form .item_action:hover {
@@ -2302,7 +2310,8 @@ hr {
23022310

23032311
@media (min-width:1200px) {
23042312
#the-header {
2305-
padding-top: 3vh;
2313+
padding-top: 3vw;
2314+
23062315
}
23072316

23082317
nav#nav-links {
@@ -2347,11 +2356,13 @@ right: 3vw;
23472356
@media (prefers-color-scheme: dark) {
23482357
:root {
23492358
--dark-main-color: white;
2350-
--background-color: black;
2359+
--background-color: #040404a6;
23512360
--main-color: #3ec904;
23522361
}
23532362

23542363
form [type="text"]::placeholder {
23552364
color: unset;
23562365
}
2366+
2367+
23572368
}

0 commit comments

Comments
 (0)