�@Sass�ł͕ϐ��𗘗p�ł���B�悭�g���F�A�悭�g���t�H���g�Z�b�g�Ȃǂ����炩���ߕϐ������Ă����A��������R�ɌĂяo���ė��p�ł���B
�@�ϐ��́A�u$�v�̌�ɒ�`�ł���
$width:500px; $color:#aa443f; #maincontainer{ width:$width; color:$color; }
���R���p�C��
#maincontainer { width: 500 px; color: #aa443f; }
�@CSS�̌p���̓l�X�g��p���ĊȌ��ɋL�q�ł���B
#main{ background-color:#000; .content{ background-color:#aaa; color:#000; .sidebar{ padding:10px; } } }
���R���p�C��
#main { background-color: black; } #main .content { background-color: #aaaaaa; color: black; } #main .content .sidebar { padding: 10px; }
�@����̃l�[���X�y�[�X�����v���p�e�B�́A�l�[���X�y�[�X�Ńl�X�g�ł���B
.fontnest{ font:{ family:family; size:1.2em; color:#fff; } }
���R���p�C��
.fontnest { font-family: family; font-size: 1.2em; font-color: white; }
�@Sass�ł�CSS�̂悤�Ɂu@import�v�����p�ł���BCSS��Sass�̌���I�Ⴂ�Ƃ��āASass�͍ŏI�I�ɐ��������CSS�t�@�C����1�����ɂȂ�Ƃ������_������̂��B
�@CSS�������ꍇ�ł��S�̂Ŏg����CSS�Ɠ���y�[�W�Ŏg��CSS�ȂǁA����̃t�@�C���ɕ������č�邱�Ƃ������B�Ƃ��낪�A�������邱�Ƃ�HTTP���N�G�X�g�̐��������Ă��܂��B
�@Sass�ł̓t�@�C�������č쐬���Ă��Ă��A@import�𗘗p���邱�ƂōŏI�I�ȃt�@�C����1�ɂ܂Ƃ߂邱�Ƃ��ł��A�T�[�o�[�̕��ׂ��y���ł���̂��B
�@Sass�̃~�b�N�X�C���́A����܂Ƃ܂����X�^�C����ϐ��̂悤�Ƀp�b�P�[�W���Ă����A���R�ɌĂяo���ė��p�ł���@�\���B�X�^�C���V�[�g�̃e���v���[�g�@�\�Ƃ����邾�낤�B�ϐ��̏ꍇ�͒P��̒l�������Ă������A�~�b�N�X�C���͒P��������͕����̃X�^�C���������B
�@��`��=�iSASS�L�@�j��@mixin�iSCSS�L�@�j�ōs���āA�Ăяo����+�iSASS�L�@�j��@include�iSCSS�L�@�j���g���B
@mixin maintext { font:{ family: Arial; size: 20px; weight: bold; } color: #ff0000; } .mainmix{ @include maintext; background-color:#fff; }
���R���p�C��
.mainmix { font-family: Arial; font-size: 20px; font-weight: bold; color: #ff0000; background-color: #fff; }
�@�܂��A�~�b�N�X�C���ł́A�ϐ��������Ɏg�����Ƃ��ł���B
@mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; -ms-border-radius: $radius; -o-border-radius: $radius; border-radius: $radius; } .box { @include border-radius(10px); }
���R���p�C��
.box { -webkit-border-radius: 10px; -moz-border-radius: 10px; -ms-border-radius: 10px; -o-border-radius: 10px; border-radius: 10px; }
�@Sass�ł́A+�A-�A*�A/�A%���g�����A�l�̉��Z���\���B���l�͂������A�F�܂ł����Z�ł���̂ŁA�u�����A����������ƍ����v�Ȃ�Ă������Ƃ�GUI�i�V�Ŏ��s�ł���B�u�����A����������ƍ����v��Sass�I�ɕ\������Ȃ�A����Ȋ������B
.coloradd{ color:#ff44aa - #555; }
���R���p�C��
.coloradd { color: #aa0055; }
�@�܂��A�ʂ̒P�ʓ��m�ʼn��Z���邱�Ƃ��ł���B
.widthadd{ width:40px + 2in; }
���R���p�C��
.widthadd { width: 232px; }
Copyright © ITmedia, Inc. All Rights Reserved.