From dc818bd2b588987028b6cc58e5d1a5a569097d3f Mon Sep 17 00:00:00 2001 From: Deepjyoti Barman Date: Mon, 30 Nov 2020 13:25:28 +0530 Subject: [PATCH] Add styling for the title if it will be a link as well The title in the cards are now optionally clickable. If the `url` attribute is passed to the square in the config then the title will be clickable and will open that particular `url`. If not `url` is passed, it will be a plain old heading without any link. --- css/main.css | 3 +++ scss/main.scss | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/css/main.css b/css/main.css index 984cdc2..f422c0d 100644 --- a/css/main.css +++ b/css/main.css @@ -97,6 +97,9 @@ body { .main #other-content .sqr h4 { font-size: 18px; margin: 15px; } + .main #other-content .sqr h4 a { + color: inherit; + font-size: inherit; } .main #other-content .sqr:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); } diff --git a/scss/main.scss b/scss/main.scss index fbd8ab9..fc5a529 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -143,6 +143,11 @@ body { h4 { font-size: 18px; margin: 15px; + + a { + color: inherit; + font-size: inherit; + } } &:hover {