1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-10 16:14:20 +02:00

Version 1.4.3: Register user functions,account-button, cleanup

This commit is contained in:
trendschau
2021-01-04 20:18:31 +01:00
parent cd8c67b5d1
commit 1f063a6778
20 changed files with 163 additions and 600 deletions

View File

@@ -104,6 +104,9 @@ tr{
th,td{
padding: .5em 1em;
}
p b, p strong{
font-weight: bold;
}
/************************************
* STANDARD SUGGESTIONS *
@@ -320,7 +323,14 @@ button.play-video::after {
.landingpageinfo h4{
font-size: 1.25rem;
}
.icon {
display: inline-block;
width: 1em;
height: 1em;
stroke-width: 0;
stroke: currentColor;
fill: currentColor;
}
/************************************
* TACHYONS ADDITIONS *
************************************/

View File

@@ -1,5 +1,5 @@
name: Cyanine Theme
version: 1.1.0
version: 1.1.1
description: Cyanine is a modern and flexible multi-purpose theme and the standard theme for typemill.
author: Trendschau
homepage: https://trendschau.net
@@ -163,6 +163,15 @@ forms:
label: Label for read more link
placeholder: All News
fieldsetUsers:
type: fieldset
legend: Users
fields:
accountButton:
type: checkbox
label: Show Account Button
checkboxlabel: Show account button in frontend for authenticated users?
fieldsetAuthor:
type: fieldset
legend: Article Author

View File

@@ -95,8 +95,7 @@
/*******************
** COLORS **
*******************/
body,.landingpagecontrast{
body,.landingpagecontrast,.account{
background: {{ settings.themes.cyanine.brandcolorprimary|default('lightseagreen') }};
}
main, footer, .landingpageintro, .landingpageinfo, .landingpageteaser, .landingpagenavi, .landingpagecontrast, .landingpagenews{
@@ -106,7 +105,8 @@
background: {{ settings.themes.cyanine.brandcolorprimary|default('lightseagreen') }};
}
body,.landingpagecontrast, a,
.landingpagecontrast a, .landingpagecontrast a:link, .landingpagecontrast a:visited{
.landingpagecontrast a, .landingpagecontrast a:link, .landingpagecontrast a:visited,
.account, .account a, .account a:link, .account a:hover, .account a:focus, .account a:visited{
color: {{ settings.themes.cyanine.fontcolorprimary|default('#F7F7F7') }};
}
.landingpagecontrast a, .landingpagecontrast a:link, .landingpagecontrast a:visited{
@@ -215,7 +215,25 @@
{% endblock %}
</head>
<body class="optimize-text pa2">
{% if ( settings.themes.cyanine.accountButton ) and ( is_loggedin() ) %}
<svg style="position: absolute; width: 0; height: 0; overflow: hidden" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="icon-user" viewBox="0 0 20 28">
<path d="M20 21.859c0 2.281-1.5 4.141-3.328 4.141h-13.344c-1.828 0-3.328-1.859-3.328-4.141 0-4.109 1.016-8.859 5.109-8.859 1.266 1.234 2.984 2 4.891 2s3.625-0.766 4.891-2c4.094 0 5.109 4.75 5.109 8.859zM16 8c0 3.313-2.688 6-6 6s-6-2.688-6-6 2.688-6 6-6 6 2.688 6 6z"></path>
</symbol>
</defs>
</svg>
<div class="account fixed pb2 top-0 right-0 left-0">
<div class="account fixed h1 w2 w2 right-2">
<a href="{{base_url}}/tm/account"><div class="account fixed h2 w2 top-0 br-100 tc">
<svg class="icon baseline icon-user w1 h1 mt2"><use xlink:href="#icon-user"></use></svg>
</div></a>
</div>
</div>
{% endif %}
{% block content %}{% endblock %}
{% include 'partials/footer.twig' %}