.emacs.d

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

commit a8840d2b4653acd363ecadf1c70b525062926440
parent 3451a36b9d7df0f8e5214ead0c4a364adc2164d2
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Fri,  5 Jul 2019 09:09:11 -0400

Add ya snippets

Diffstat:
Asnippets/css-mode/visuallyhidden | 14++++++++++++++
Asnippets/web-mode/css-default | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
Asnippets/web-mode/locize-use-translation | 6++++++
3 files changed, 72 insertions(+), 0 deletions(-)

diff --git a/snippets/css-mode/visuallyhidden b/snippets/css-mode/visuallyhidden @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: Visually Hidden +# key: visuallyhidden +# -- + +.visuallyhidden { + border: 0 !important; + clip: rect(1px, 1px, 1px, 1px); + height: 1px !important; + overflow: hidden; + padding:0 !important; + position: absolute !important; + width: 1px !important; +} diff --git a/snippets/web-mode/css-default b/snippets/web-mode/css-default @@ -0,0 +1,52 @@ +# -*- mode: snippet -*- +# name: CSS Defaults +# key: cssdef +# -- + +<style media="screen"> + :root { + font-size: calc(1vw + 1vh + .5vmin); + } + + html, + body { + height: 100%; + min-height: 100%; + } + + body { + background: #eee; + color: #111; + font: 1rem/1.6 monospace; + } + + body > * { + margin: auto; + max-width: 960px; + width: auto; + } + + img { + max-width: 100%; + width: auto; + } + + button, + input, + optgroup, + select, + textarea { + font-family: inherit; + } + + .visuallyhidden { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + } +</style> diff --git a/snippets/web-mode/locize-use-translation b/snippets/web-mode/locize-use-translation @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Locize t() +# key: locize_t +# -- + +{t('')}