| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /**
- * 这里是app内置的常用样式变量
- *
- * app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
- /**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
- /* 颜色变量 */
- @import '@/uni_modules/uni-scss/variables.scss';
- /* 行为相关颜色 */
- $color-primary: #317afd;
- $color-success: #4cd964;
- $color-warning: #f0ad4e;
- $color-error: #e93f27;
- /* 文字基本颜色 */
- $text-color:#333;//基本色
- $text-color-info:#666;
- $text-color-inverse:#fff;//反色
- $text-color-grey:#999;//辅助灰色,如加载更多的提示信息
- $text-color-placeholder: #808080;
- $text-color-disable:#cccccc;
- /* 背景颜色 */
- $bg-color:#ffffff;
- $bg-color-grey:#f3f5f9;
- $bg-color-hover:#f1f1f1;//点击状态颜色
- $bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
- /* 边框颜色 */
- $border-color:#c8c7cc;
- /* 尺寸变量 */
- /* 文字尺寸 */
- $font-size-sm:12px;
- $font-size-base:14px;
- $font-size-lg:16;
- /* 图片尺寸 */
- $img-size-sm:20px;
- $img-size-base:26px;
- $img-size-lg:40px;
- /* Border Radius */
- $border-radius-sm: 2px;
- $border-radius-base: 3px;
- $border-radius-lg: 6px;
- $border-radius-circle: 50%;
- /* 水平间距 */
- $spacing-row-sm: 5px;
- $spacing-row-base: 10px;
- $spacing-row-lg: 15px;
- /* 垂直间距 */
- $spacing-col-sm: 4px;
- $spacing-col-base: 8px;
- $spacing-col-lg: 12px;
- /* 透明度 */
- $opacity-disabled: 0.3; // 组件禁用态的透明度
- /* 文章场景相关 */
- $color-title: #333; // 文章标题颜色
- $font-size-title:32rpx;
- $line-height-title:44rpx;
- $color-subtitle: #666; // 二级标题颜色
- $font-size-subtitle:28rpx;
- $line-height-subtitle:40rpx;
- $color-paragraph: #999; // 文章段落颜色
- $font-size-paragraph:28rpx;
- $line-height-paragraph:40rpx;
- @mixin setIconBg ($width,$height,$url){
- content: ' ';
- position: absolute;
- left: 0rpx;
- top: 0;
- bottom: 0;
- margin: auto;
- background-image: url('@/static/'+$url);
- background-size: #{$width}rpx #{$height}rpx;
- background-position: center;
- width: #{$width}rpx;
- height: #{$height}rpx;
- }
- @mixin setIcon ($width, $height, $url) {
- content: ' ';
- width: #{$width}rpx;
- height: #{$height}rpx;
- background: url('@/static/'+$url) center no-repeat;
- background-size: #{$width}rpx #{$height}rpx;
- }
|