.emacs.d

My Emacs configuration files.
Log | Files | Refs | README

commit 3ebbc243c48254c395b4532693aef78fdd650948
parent 6ee7bbab72382fe58888c7739f435bd09ac6c79b
Author: Hugo Soucy <hugo.soucy@toumoro.com>
Date:   Fri, 18 Oct 2019 14:37:35 -0400

Add a button link snippet

Diffstat:
Asnippets/web-mode/buttons/button-link | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/snippets/web-mode/buttons/button-link b/snippets/web-mode/buttons/button-link @@ -0,0 +1,22 @@ +# -*- mode: snippet -*- +# name: Link as a BUTTON (HTML/CSS) +# key: button-link +# -- + +<style> + .button-link { + background: ${1:#1192d1}; + border: 1px solid ${2:#1192d1}; + color: ${3:#ffffff}; + display: inline-block; + font-size: 1rem; + line-height: 1; + padding: 0.75em 1.25em; + text-align: center; + text-decoration: none; + } +</style> + +<a class="block-img-clickable" href="${4:#}"> + ${5:Lorem ipsum} +</a>