add option to set input style

This commit is contained in:
Gabriele Musco 2023-04-22 18:02:11 +02:00
parent 72da9f00c7
commit 4395cd9b69
2 changed files with 4 additions and 3 deletions

View File

@ -85,6 +85,7 @@ summaryLength = 70 # number of words for article summaries
navtype = "standard" # changes the style of the pagination, available styles are: "standard", "circles"
enableShadow = false # shows a shadow around some elements
menuStyle = "standard" # changes the style of the main site navigation menu, available styles are: "standard", "buttons"
inputStyle = "standard" # changes the style of inputs (like the searchbar), available styles are: "standard", "buttons"
enableSearch = true # enable search page
searchbarEverywhere = true # if the searchbar should be shown in every page; requires enableSearch

View File

@ -713,7 +713,7 @@ a.buttonTag {
}
input, textarea, textarea.cactus-editor-textarea {
{{ if (site.Params.paperCards | default false) }}
{{ if (eq (site.Params.inputStyle | default "standard") "buttons") }}
@include buttonLike;
{{ else }}
border-radius: 0 !important;
@ -741,7 +741,7 @@ input, textarea, textarea.cactus-editor-textarea {
}
.cactus-login-form {
{{ if (.Site.Params.paperCards | default false) }}
{{ if (eq (site.Params.inputStyle | default "standard") "buttons") }}
border-radius: $border_radius;
{{ else }}
border-radius: 0;
@ -806,7 +806,7 @@ input, textarea, textarea.cactus-editor-textarea {
width: 450px;
max-width: 100%;
padding: $margin;
{{ if (.Site.Params.paperCards | default false) }}
{{ if (eq (site.Params.inputStyle | default "standard") "buttons") }}
border-radius: $border_radius;
{{ end }}
h1, h2, h3, h4 {