Refactor footer icon with animation#195
Conversation
|
Lines 60 to 66 in 52d3c02 Can we add new setting here? |
|
Yes, it canbe moved. |
|
I think need to set default to And it is important to use red color in this icon? MB better to use gray for standart vision? |
|
|
|
I think need to see it, how it will in standart gray style? |
|
updated in http://test.saili.science/posts/codeblock-test/ . |
|
Yeah, i think it's better when red color. Are u agree with this? |
| .with-love { | ||
| display: inline-block; | ||
| margin: 0 5px; | ||
| color: rgb(255, 113, 168); |
There was a problem hiding this comment.
I think need just to remove any color.
There was a problem hiding this comment.
Or like border-radius offer a custom define...haha
There was a problem hiding this comment.
footer:
# Specify the date when the site was setup.
# If not defined, current year will be used.
#since: 2015
# Icon between year and copyright info.
icon: user
animated: true
...There was a problem hiding this comment.
I don't know how to get rgb string...
i just remove the color setting?
There was a problem hiding this comment.
About color — this is another talk.
I'm talking for now about animated option: to turn off/on it. So, i think by default it must set on false, but if anybody want, he can to enable this option and icon will animate.
There was a problem hiding this comment.
Add animated under icon need to refactor the footer.icon, so i just add paralleling setting.
_config.yml
Outdated
| @@ -64,6 +64,10 @@ footer: | |||
|
|
|||
| # Icon between year and copyright info. | |||
| icon: user | |||
There was a problem hiding this comment.
2 spaces indents here, please:
footer:
...
# Icon between year and copyright info.
icon: heart
# If you want to animate the Icon, set it to true.
animated: false
# Change the color of icon, using Hex Code.
color: "#808080"
...There was a problem hiding this comment.
I do it many times, and bad indent still.
There was a problem hiding this comment.
footer.icon.animated not work or what u mean?
There was a problem hiding this comment.
footer:
# Specify the date when the site was setup.
# If not defined, current year will be used.
#since: 2015
# Icon between year and copyright info.
icon: heart
# If you want to animate the icon, set it to true.
animated: false
# Change the color of icon, using Hex Code.
color: "#808080"
YAMLException: bad indentation of a mapping entry at line 68, column 5:
animated: false
There was a problem hiding this comment.
Now that user can change the icon & it's animation, I think it's better to set icon: user as default officially.
There was a problem hiding this comment.
YAMLException: bad indentation of a mapping entry at line 68, column 5:
animated: false
Oh, of course it will be error, because icon: heart already setted up. Need to something like this:
footer:
...
# Icon between year and copyright info.
icon:
image: heart
# If you want to animate the Icon, set it to true.
animated: false
# Change the color of icon, using Hex Code.
color: "#808080"
...think it's better to set
icon: useras default officially.
Default was always heart. Later i changed it to user. 😄
There was a problem hiding this comment.
In this way, need to refactor footer.icon in footer.swig, are you sure?
There was a problem hiding this comment.
Yes, need to refactor and it then will breaking changes. So, version must be 6.1 in next NexT release.
* Replace footer icon with beating heart * Add enable option in footer icon animation * Refactor footer icon * Rename the Animate class * Update _config.yml * Change `Animate` to lowercase. * Change `Animate` to lowercase.
* Replace footer icon with beating heart * Add enable option in footer icon animation * Refactor footer icon * Rename the Animate class * Update _config.yml * Change `Animate` to lowercase. * Change `Animate` to lowercase.

PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the new behavior?
thanks @reuixiy at first.
before:
after:
icon_animatedof icon animation.How to use?
In NexT
_config.yml:Does this PR introduce a breaking change?