2.0.53 • Published 1 year ago

sass-stretched-link v2.0.53

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

sass-stretched-link

A SASS mixin that implements a stretched link. Useful for cards that should be clickable everywhere.

It sometimes happens that when you click a card with a link, you want the whole card to be clickable. The best way to do this is to have a link that is put inside the card but the clickable link area stretches over the card. Bootstrap implements a .stretched-link class which does that. This SASS mixin implements the logic behind it and thus abstracts away complexity from the app or the CSS framework.

Install

# npm
$ npm install sass-stretched-link

# Yarn
$ yarn add sass-stretched-link

Usage

Import the mixin like so:

@import '~sass-stretched-link';

Then create a class with the mixin:

.stretched-link {
  @include stretched-link;
}

Now you can use the class in your code:

<div class="card">
  <a class="stretched-link" href="/">Link</a>
</div>

Contribute

Are you missing something or want to contribute? Feel free to file an issue or a pull request! ⚙️

Support

Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:

Thanks a lot for your support! ❤️

License

MIT License © Sebastian Landwehr

2.0.28

1 year ago

2.0.29

1 year ago

2.0.37

1 year ago

2.0.3

1 year ago

2.0.38

1 year ago

2.0.2

1 year ago

2.0.35

1 year ago

2.0.5

1 year ago

2.0.36

1 year ago

2.0.4

1 year ago

2.0.33

1 year ago

2.0.7

1 year ago

2.0.34

1 year ago

2.0.6

1 year ago

2.0.31

1 year ago

2.0.9

1 year ago

2.0.32

1 year ago

2.0.8

1 year ago

2.0.30

1 year ago

2.0.1

1 year ago

2.0.39

1 year ago

2.0.48

1 year ago

2.0.49

1 year ago

2.0.46

1 year ago

2.0.47

1 year ago

2.0.44

1 year ago

2.0.45

1 year ago

2.0.42

1 year ago

2.0.43

1 year ago

2.0.40

1 year ago

2.0.41

1 year ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.13

1 year ago

2.0.14

1 year ago

2.0.11

1 year ago

2.0.12

1 year ago

2.0.53

1 year ago

2.0.10

1 year ago

2.0.51

1 year ago

2.0.52

1 year ago

2.0.50

1 year ago

2.0.19

1 year ago

2.0.17

1 year ago

2.0.18

1 year ago

2.0.26

1 year ago

2.0.27

1 year ago

2.0.24

1 year ago

2.0.25

1 year ago

2.0.22

1 year ago

2.0.23

1 year ago

2.0.20

1 year ago

2.0.21

1 year ago

2.0.0

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago