Skip to content

Commit

Permalink
Add styling for the title if it will be a link as well
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
deepjyoti30 committed Nov 30, 2020
1 parent 5319864 commit dc818bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions css/main.css
Expand Up @@ -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); }
Expand Down
5 changes: 5 additions & 0 deletions scss/main.scss
Expand Up @@ -143,6 +143,11 @@ body {
h4 {
font-size: 18px;
margin: 15px;

a {
color: inherit;
font-size: inherit;
}
}

&:hover {
Expand Down

0 comments on commit dc818bd

Please sign in to comment.