From 47498599e9569509781655dc50f8f929a179a108 Mon Sep 17 00:00:00 2001 From: Themefisher Dev Date: Tue, 18 Feb 2020 16:58:36 +0600 Subject: [PATCH] modified responsive and color variables --- assets/css/style.css | 38 +++++---------- exampleSite/config.toml | 89 ++++++++++++++++++----------------- layouts/_default/baseof.html | 4 +- layouts/index.html | 18 ++++--- layouts/partials/banner.html | 2 +- layouts/partials/default.html | 8 ++-- layouts/partials/head.html | 3 +- 7 files changed, 77 insertions(+), 85 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 19ac436..5fc9bda 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -4,7 +4,7 @@ body { -webkit-font-smoothing: antialiased; font-size: 17px; color: var(--text-color); - background-color: var(--secondary-color); + background-color: var(--body-color); } P { @@ -98,24 +98,6 @@ h6, border-color: var(--primary-color); } -.btn-default { - color: #333 !important; - background-color: #fff !important; - border: 1px solid #ccc !important; - display: inline-block !important; - padding: 6px 12px !important; - margin-bottom: 0 !important; - font-size: 14px !important; - font-weight: 400 !important; - line-height: 1.42857143 !important; - text-align: center !important; - white-space: nowrap !important; - vertical-align: middle !important; - -ms-touch-action: manipulation !important; - touch-action: manipulation !important; - border-radius: 4px !important; -} - .inline-button { line-height: .8rem !important; padding: 5px 8px !important; @@ -123,9 +105,8 @@ h6, margin-top: -5px; } -body { - background-color: var(--white-color); - overflow-x: hidden; +.overflow-hidden{ + overflow: hidden !important; } ::-moz-selection { @@ -234,7 +215,6 @@ select:focus { pre { padding: 20px; - background: var(--secondary-color); border-radius: 2px; } @@ -266,8 +246,12 @@ pre { background: var(--primary-color) !important; } -.bg-gray { - background-color: var(--secondary-color); +.bg-white { + background-color: var(--white-color) !important; +} + +.bg-light { + background-color: var(--light-color) !important; } .text-primary { @@ -275,7 +259,7 @@ pre { } .text-color { - color: var(--text-color); + color: var(--text-color) !important; } .text-dark { @@ -651,7 +635,7 @@ blockquote { border-left: 2px solid var(--primary-color); margin: 40px 0; font-weight: bold; - background: #f9f9f9; + background: var(--light-color); } blockquote p { diff --git a/exampleSite/config.toml b/exampleSite/config.toml index cb4f88f..d5f4e9f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,44 +8,6 @@ title = "Dot" # desable language disableLanguages = [] -############################# Default Parameters ########################## -[params] -# logo is for all page -logo = "" -# logo white is for homepage logo, you can use colorful logo too... -logo_white = "" -# when logo is empty, it will shown your site title - -# customize color -primary_color = "#02007e" -secondary_color = "#f9f9f9" -text_color = "#636363" -text_color_dark = "#242738" -white_color = "#ffffff" - -# font family -font_family = "lato" # Choose font family from : https://fonts.google.com/ - -# contact form action -contact_form_action = "#" # contact form works with : https://formspree.io - -############################## social links ############################## -[[params.social]] -icon = "ti-facebook" # themify icon pack : https://themify.me/themify-icons -link = "#" - -[[params.social]] -icon = "ti-twitter-alt" # themify icon pack : https://themify.me/themify-icons -link = "#" - -[[params.social]] -icon = "ti-vimeo-alt" # themify icon pack : https://themify.me/themify-icons -link = "#" - -[[params.social]] -icon = "ti-linkedin" # themify icon pack : https://themify.me/themify-icons -link = "#" - ################################# navigation ################################ [[menu.main]] @@ -82,6 +44,47 @@ hasChildren = true url = "features" weight = 3 + +############################# Default Parameters ########################## +[params] +# logo is for all page +logo = "" +# logo white is for homepage logo, you can use colorful logo too... +logo_white = "" +# when logo is empty, it will shown your site title + +# customize color +primary_color = "#02007e" +body_color = "#f9f9f9" +text_color = "#636363" +text_color_dark = "#242738" +white_color = "#ffffff" +light_color = "#f8f9fa" + +# font family +font_family = "lato" # Choose font family from : https://fonts.google.com/ + +# contact form action +contact_form_action = "#" # contact form works with : https://formspree.io + + +############################## social links ############################## +[[params.social]] +icon = "ti-facebook" # themify icon pack : https://themify.me/themify-icons +link = "#" + +[[params.social]] +icon = "ti-twitter-alt" # themify icon pack : https://themify.me/themify-icons +link = "#" + +[[params.social]] +icon = "ti-vimeo-alt" # themify icon pack : https://themify.me/themify-icons +link = "#" + +[[params.social]] +icon = "ti-linkedin" # themify icon pack : https://themify.me/themify-icons +link = "#" + ################################ English Language ###################### [Languages.en] languageName = "En" @@ -93,7 +96,7 @@ copyright = "The Hugo Documents are copyright © [gethugothemes](https://gethugo # banner [Languages.en.params.banner] title = "Support Center & Knowledge base" -description = "Find advice and answers from our support team fast or get in touch" +subtitle = "Find advice and answers from our support team fast or get in touch" bg_image = "images/banner.jpg" placeholder = "Have a question? Just ask here or enter terms" @@ -101,7 +104,8 @@ placeholder = "Have a question? Just ask here or enter terms" [Languages.en.params.cta] enable = true title = "Didn't find an answer to your question?" -description = "Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam." +content = "Musce libero nunc, dignissim quis turpis quis, semper vehicula dolor. Suspendisse tincidunt consequat quam." +# call to action button [Languages.en.params.cta.button] enable = true label = "contact us" @@ -119,7 +123,7 @@ copyright = "Les documents Hugo sont sous copyright © [gethugothemes](https://g # banner [Languages.fr.params.banner] title = "Comment pouvons nous aider?" -description = "Trouvez rapidement des conseils et des réponses auprès de notre équipe d'assistance ou contactez-nous." +subtitle = "Trouvez rapidement des conseils et des réponses auprès de notre équipe d'assistance ou contactez-nous." bg_image = "images/banner.jpg" placeholder = "Avoir une question? Il suffit de demander ici ou de saisir les termes" @@ -127,7 +131,8 @@ placeholder = "Avoir une question? Il suffit de demander ici ou de saisir les te [Languages.fr.params.cta] enable = true title = "Vous n'avez pas trouvé de réponse à votre question?" -description = "Contactez-nous pour plus de détails sur les services supplémentaires et la tarification du travail personnalisé" +content = "Contactez-nous pour plus de détails sur les services supplémentaires et la tarification du travail personnalisé" +# call to action button [Languages.fr.params.cta.button] enable = true label = "Contactez nous" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2b4d9b1..94c5673 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,9 +17,7 @@ {{ "" | safeHTML }} {{ end }} -
- {{ block "main" . }}{{ end }} -
+ {{ block "main" . }}{{ end }} {{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 1067e45..83a818a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" }} {{ "" | safeHTML }} -
+
@@ -23,16 +23,19 @@ {{ "" | safeHTML }} {{ if .Site.Params.cta.enable }} + {{ with .Site.Params.cta }} {{ "" | safeHTML }} -
+
-
- {{ with .Site.Params.cta.title }}

{{ . }}

{{ end }} - {{ with .Site.Params.cta.description }}

{{ . }}

{{ end }} - {{ if .Site.Params.cta.button.enable }} - {{ .Site.Params.cta.button.label}} +
+

{{ .title | markdownify }}

+

{{ .content | markdownify }}

+ {{ if .button.enable }} + {{ with .button }} + {{ .label }} + {{ end }} {{ end }}
@@ -41,5 +44,6 @@
{{ "" | safeHTML }} {{ end }} + {{ end }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/banner.html b/layouts/partials/banner.html index b267a90..d49cc1f 100644 --- a/layouts/partials/banner.html +++ b/layouts/partials/banner.html @@ -3,7 +3,7 @@

{{ .Site.Params.banner.title | markdownify }}

-

{{ .Site.Params.banner.description | markdownify }}

+

{{ .Site.Params.banner.subtitle | markdownify }}

diff --git a/layouts/partials/default.html b/layouts/partials/default.html index 4bafe6d..1bde383 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -1,9 +1,9 @@ {{ "" | safeHTML }} -
+
-
+
-
+

{{ .Title }}

{{ if .Content }}
{{.Content}}
{{ else }} -
+
    {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4a5234e..58a27db 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -26,10 +26,11 @@