_mixin_style.scss 1.78 KB

/* 游ゴシック
=========================================== */
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 100;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 200;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 300;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 400;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Bold");
  font-weight: bold;
}
@mixin YuGothic() {
  font-family: "Yu Gothic", YuGothic;
  font-weight: 500;
}

@mixin transformFont(){
  transform: scale( 1 , 1.4 );
}

/* 矢印
=========================================== */
@mixin arrow_r($width:6px, $height:6px, $color:#333){
  content:"";
  display: block;
  width: $width;
  height: $height;
  border-right: 1px $color solid;
  border-bottom: 1px $color solid;
  transform: rotate(-45deg);
}
@mixin arrow_l($width:6px, $height:6px, $color:#333){
  content:"";
  display: block;
  width: $width;
  height: $height;
  border-right: 1px $color solid;
  border-bottom: 1px $color solid;
  transform: rotate(45deg);
}
@mixin arrow_t($width:6px, $height:6px, $color:#333,$bwidth:1px){
  content:"";
  display: block;
  width: $width;
  height: $height;
  border-right: $bwidth $color solid;
  border-bottom: $bwidth $color solid;
  transform: rotate(-135deg);
}
@mixin arrow_b($width:6px, $height:6px, $color:#333){
  content:"";
  display: block;
  width: $width;
  height: $height;
  border-right: 1px $color solid;
  border-bottom: 1px $color solid;
  transform: rotate(45deg);
}

/* 角丸
=========================================== */
@mixin kadomaru($size:3px){
  border-radius: $size;
  -webkit-border-radius: $size;
  -moz-border-radius: $size;
}