From 4395cd9b6921a062ebe8828b9483003e84a3351d Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Sat, 22 Apr 2023 18:02:11 +0200 Subject: [PATCH] add option to set input style --- README.md | 1 + assets/scss/style.scss | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 152fc35..c0e81ed 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 3a01964..7a872ff 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -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 {