Skip to content

Commit 899fa25

Browse files
author
Darrell Sandstrom
committed
Add box, margin auto, media
1 parent 50fefb7 commit 899fa25

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

snippets/css-snippets.cson

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@
7171
'bottom':
7272
'prefix': 'bot'
7373
'body': 'bottom: ${1:0}'
74+
'box':
75+
'prefix': 'box'
76+
'body': """
77+
position: ${1:absolute}
78+
top: ${2:0}
79+
right: ${3:0}
80+
bottom: ${4:0}
81+
left: ${5:0}
82+
content: ''
83+
"""
7484
'box-shadow':
7585
'prefix': 'bs'
7686
'body': """
@@ -218,6 +228,9 @@
218228
'margin-top':
219229
'prefix': 'mart'
220230
'body': 'margin-top: ${1:${2:1}${3:px}}'
231+
'margin: 0 auto':
232+
'prefix': 'mara'
233+
'body': 'margin: 0 auto'
221234
'min-height':
222235
'prefix': 'mih'
223236
'body': 'min-height: ${1:${2:1}${3:px}}'
@@ -350,6 +363,9 @@
350363
'z-index':
351364
'prefix': 'zi'
352365
'body': 'z-index: ${1:1}'
366+
'@media':
367+
'prefix': 'med'
368+
'body': '@media $1 {\n $2\n}'
353369

354370
'.source.css, .source.scss, .source.css.scss, .source.less, .source.css.less':
355371
'background':
@@ -427,6 +443,16 @@
427443
'bottom':
428444
'prefix': 'bot'
429445
'body': 'bottom: ${1:0};'
446+
'box':
447+
'prefix': 'box'
448+
'body': """
449+
position: ${1:absolute};
450+
top: ${2:0};
451+
right: ${3:0};
452+
bottom: ${4:0};
453+
left: ${5:0};
454+
content: '';
455+
"""
430456
'box-shadow':
431457
'prefix': 'bs'
432458
'body': """
@@ -574,6 +600,9 @@
574600
'margin-top':
575601
'prefix': 'mart'
576602
'body': 'margin-top: ${1:${2:1}${3:px}};'
603+
'margin: 0 auto':
604+
'prefix': 'mara'
605+
'body': 'margin: 0 auto;'
577606
'min-height':
578607
'prefix': 'mih'
579608
'body': 'min-height: ${1:${2:1}${3:px}};'
@@ -706,6 +735,9 @@
706735
'z-index':
707736
'prefix': 'zi'
708737
'body': 'z-index: ${1:1};'
738+
'@media':
739+
'prefix': 'med'
740+
'body': '@media $1 {\n $2\n}'
709741

710742
'.source.css, .source.scss, .source.css.scss, .source.less, .source.css.less, .source.sass, .source.css.sass':
711743
'!important':

0 commit comments

Comments
 (0)