Sass & Scss & CSS3

Sass & Scss

@mixin & @include & @import & variable

https://sass-lang.com/guide

Sass Playground

scss

https://sass.js.org/

https://codepen.io/webgeeker/pen/NeaKjm

.scss


@import "_variables";
@import "_demo"; /* scss variables */
$default-color: #000;
// mixin
@mixin common-lable($color) {
color: $color;
display: inline-block;
width: 55px;
text-align: center;
}
.audit-common-lable{
@include common-lable($default-color);
&::after{
display: inline-block;
content: ":";
}
}
.audit-common-lable-placeholder{
@include common-lable($default-color);
}

.css


.imported {
content: "yay, file support!";
} /* scss variables */
.audit-common-lable {
color: #000;
display: inline-block;
width: 55px;
text-align: center;
} .audit-common-lable::after {
display: inline-block;
content: ":";
} .audit-common-lable-placeholder {
color: #000;
display: inline-block;
width: 55px;
text-align: center;
}

CSS3 Playground

var

http://cssnext.io/playground/

https://css3playground.com/

https://www.w3.org/TR/?title=css


@charset "UTf-8"; /**
*
* @author xgqfrms
* @license MIT
* @copyright xgqfrms
*
* @description css3-var.css
*
*/ :root {
--color: #000;
--default-color: #fff;
--new-color: #0f0;
} *{
color: var(--color);
}


VS code & codes snippets


{
"CSS3 Template": {
"prefix": "c3t",
"body": [
"@charset \"UTf-8\";",
"",
"/**",
" * ",
" * @author xgqfrms",
" * @license MIT",
" * @copyright xgqfrms",
" * ",
" * @description $1.css",
" * ",
" */",
"",
":root {",
" --color: #000;",
" --default-color: #fff;",
" --new-color: #0f0;",
"}"
],
"description": "CSS3 Template & code snippets!"
}
}

最新文章

  1. Java中将unix时间戳转化为正常显示时间
  2. 关闭linux centos各种声音
  3. 为DAG预留群集名称对象(CNO)
  4. 理解UIEdgeInsets
  5. nodejs http.get乱码问题处理方法
  6. WPF利用Image实现图片按钮
  7. bash基础知识
  8. wxpython 安装教程
  9. sublime中css输入分号后自动提示的烦恼
  10. Xamarin使用ListView开启分组视图Cell数据展示bug处理
  11. sql serve 数据库游标的使用
  12. AtCoder Grand Contest 032-B - Balanced Neighbors (构造)
  13. SQLServer脚本编写
  14. Netty入门——客户端与服务端通信
  15. 关于PHP中的webshell
  16. Linux c++ time different
  17. day15(模块引用笔记)
  18. 解题:APIO 2018 铁人两项
  19. 在ubuntu16安装supervisor 并 启动 .net core.
  20. Implementing x / 6 Using Only Bit Manipulations

热门文章

  1. ACM--移动桌子--贪心--HDOJ 1050--Moving Tables
  2. 修改Tomcat控制台标题(转)
  3. CF 547 D. Mike and Fish
  4. [css 实践篇]CSS中的尺寸单位
  5. XAF-物料管理信息工作日志
  6. 译图智讯VIN码识别助力汽配商转型升级
  7. flask_sqlalchemy介绍
  8. nginx main函数
  9. 【python 2.7】python读取json数据存入MySQL
  10. centos 6.5 双网卡 上网 virtualbox nat hostonly