From 8309c2272f2bdb062069c24fdd6c7dae2be3181f Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 29 Sep 2020 16:23:54 +0100 Subject: [PATCH] update css snippets --- UltiSnips/css.snippets | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/UltiSnips/css.snippets b/UltiSnips/css.snippets index e26e679..ac07742 100644 --- a/UltiSnips/css.snippets +++ b/UltiSnips/css.snippets @@ -2,9 +2,21 @@ snippet sld "/* stylelint-disable-next-line ... */" /* stylelint-disable-next-line ${1:declaration-block-no-shorthand-property-overrides} */ endsnippet -snippet @m "@media ..." -@media (${1:min}-${2:width}: ${3:$bp-${4:s}}) { - $0 +snippet @m "@media ( ..." +@media ($1: ${2:$bp-${3:s}}) { + $0 +} +endsnippet + +snippet @max "@media (max-width: ..." +@media (max-width: ${2:$bp-${3:s-max}}) { + $0 +} +endsnippet + +snippet @min "@media (min-width: ..." +@media (min-width: ${2:$bp-${3:s}}) { + $0 } endsnippet