Microsoft has terminated support for Internet Explorer (IE) 10 and earlier versions in 2016. There are great security risks to continue using it. Please use contemporary mainstream browsers to access. Learn more >')
You can set the height of the navigation bar and visual effects. The currently available visual effects are: -shadow: Card shadow. -floatable: When the mouse moves into the container, it will appear to float. -blur: The background blur effect (frosted glass), displayed as opaque when the browser does not support it.
The visual effects parameters are the same as above. It is worth noting that the card's floatable effect and blur effect conflict. You can set the display language name of the code block in language: true. text_align can set the text alignment direction of h1/h2/h3/h4/p.
blog/_config.volantis.yml
custom_css: ... body: effect: [shadow] # [shadow, floatable, blur] highlight: language:true# show language of codeblock copy_btn:true text_align:# left, right, justify, center h1:left h2:left h3:left h4:left p:justify note:# style for default note: {% note text %} icon:'\f054' color:''
Layout spacing
You can set several heading layout spacing h2/h3/h4, paragraph spacing line, and paragraph spacing inline within blocks.
blog/_config.volantis.yml
custom_css: ... gap: h2:48px# Spacing above H2 (only px unit) h3:32px# Spacing above H3 (only px unit) h4:16px# Spacing above H4 (only px unit) paragraph:1rem# Paragraph spacing between paragraphs row:.5rem# Paragraph spacing between other elements
color_scheme: # ------------ # Universal color common: # Theme color theme:'#44D7B6' # Link color link:'#2196f3' # Button color button:'#44D7B6' # The color when the mouse is placed on the interactive element hover:'#ff5722' # The color of the text inside the theme color block inner:'#fff' # The background color of the text in the selected area selection:'alpha(#2196f3,0.2)' # ------------ # Bright theme (default) light: # Website background color site_bg:'#f4f4f4' # Text on website background site_inner:'#fff' # Site footer text site_footer:'#666'
# Card background color card:'#fff' # Normal text on the card text:'#444'
# Block and code block background color block:'#f6f6f6' # The background color when the code block is highlighted codeblock:'#FFF7EA' # Inline code color inlinecode:'#D56D28'
# List text list:'#666' # List the text when hover list_hl:'mix($color-theme,#000, 80)' # Supporting text meta:'#888' # ------------ # Dark theme dark: # Website background color site_bg:'#222' # Text on website background site_inner:'#eee' # Site footer text site_footer:'#aaa' # Card background color card:'#444' # Normal text on the card text:'#eee'
# Block and code block background color block:'#3a3a3a' # The background color when the code block is highlighted codeblock:'#343a3c' # Inline code color inlinecode:'#D56D28'
# List text list:'#aaa' # List the text when hover list_hl:'mix($color-theme,#fff, 80)' # Supporting text meta:'#888' # Night picture brightness brightness:70%
Customize the right-click menu
blog/_config.volantis.yml
rightmenu: enable:true # hr: dividing line, music: music controller layout: [home, help, examples, contributors, hr, source_docs, source_theme, hr, print, hr, music] # Optional function item print: name:printpage icon:fafa-print onclick:document.execCommand('print') # The format of the custom menu is as follows help: name:FAQ icon:fafa-question url:https://volantis.js.org/faqs/ examples: name:sampleblog icon:fafa-rss url:https://volantis.js.org/examples/ contributors: name:Jointhecommunity icon:fafa-fanfa-spin url:https://volantis.js.org/contributors/ source_docs: name:sourcecodeofthissite icon:fafa-code-branch url:https://github.com/volantis-x/volantis-docs/ source_theme: name:themesourcecode icon:fafa-code-branch url:https://github.com/volantis-x/hexo-theme-volantis/
This is only for communication between users. If you have any questions, please go to GitHub to submit an issue. Asking questions in the comment area will not receive any response from the developer!