首页 > 其他分享 >2024.4.24

2024.4.24

时间:2024-05-07 17:33:07浏览次数:12  
标签:24 checkbox 2024.4 switch radio input wx before

/* ==================
初始化
==================== */
body {
background-color: #f1f1f1;
font-size: 28upx;
color: #333333;
font-family: Helvetica Neue, Helvetica, sans-serif;
}

view,
scroll-view,
swiper,
button,
input,
textarea,
label,
navigator,
image {
box-sizing: border-box;
}

.round {
border-radius: 5000upx;
}

.radius {
border-radius: 6upx;
}

/* ==================
图片
==================== */

image {
max-width: 100%;
display: inline-block;
position: relative;
z-index: 0;
}

image.loading::before {
content: "";
background-color: #f5f5f5;
display: block;
position: absolute;
width: 100%;
height: 100%;
z-index: -2;
}

image.loading::after {
content: "\e7f1";
font-family: "cuIcon";
position: absolute;
top: 0;
left: 0;
width: 32upx;
height: 32upx;
line-height: 32upx;
right: 0;
bottom: 0;
z-index: -1;
font-size: 32upx;
margin: auto;
color: #ccc;
-webkit-animation: cuIcon-spin 2s infinite linear;
animation: cuIcon-spin 2s infinite linear;
display: block;
}

.response {
width: 100%;
}

/* ==================
开关
==================== */

switch,
checkbox,
radio {
position: relative;
}

switch::after,
switch::before {
font-family: "cuIcon";
content: "\e645";
position: absolute;
color: #ffffff !important;
top: 0%;
left: 0upx;
font-size: 26upx;
line-height: 26px;
width: 50%;
text-align: center;
pointer-events: none;
transform: scale(0, 0);
transition: all 0.3s ease-in-out 0s;
z-index: 9;
bottom: 0;
height: 26px;
margin: auto;
}

switch::before {
content: "\e646";
right: 0;
transform: scale(1, 1);
left: auto;
}

switch[checked]::after,
switch.checked::after {
transform: scale(1, 1);
}

switch[checked]::before,
switch.checked::before {
transform: scale(0, 0);
}

/* #ifndef MP-ALIPAY */
radio::before,
checkbox::before {
font-family: "cuIcon";
content: "\e645";
position: absolute;
color: #ffffff !important;
top: 50%;
margin-top: -8px;
right: 5px;
font-size: 32upx;
line-height: 16px;
pointer-events: none;
transform: scale(1, 1);
transition: all 0.3s ease-in-out 0s;
z-index: 9;
}

radio .wx-radio-input,
checkbox .wx-checkbox-input,
radio .uni-radio-input,
checkbox .uni-checkbox-input {
margin: 0;
width: 24px;
height: 24px;
}

checkbox.round .wx-checkbox-input,
checkbox.round .uni-checkbox-input {
border-radius: 100upx;
}

/* #endif */

switch[checked]::before {
transform: scale(0, 0);
}

switch .wx-switch-input,
switch .uni-switch-input {
border: none;
padding: 0 24px;
width: 48px;
height: 26px;
margin: 0;
border-radius: 100upx;
}

switch .wx-switch-input:not([class*="bg-"]),
switch .uni-switch-input:not([class*="bg-"]) {
background: #8799a3 !important;
}

switch .wx-switch-input::after,
switch .uni-switch-input::after {
margin: auto;
width: 26px;
height: 26px;
border-radius: 100upx;
left: 0upx;
top: 0upx;
bottom: 0upx;
position: absolute;
transform: scale(0.9, 0.9);
transition: all 0.1s ease-in-out 0s;
}

switch .wx-switch-input.wx-switch-input-checked::after,
switch .uni-switch-input.uni-switch-input-checked::after {
margin: auto;
left: 22px;
box-shadow: none;
transform: scale(0.9, 0.9);
}

radio-group {
display: inline-block;
}

 

switch.radius .wx-switch-input::after,
switch.radius .wx-switch-input,
switch.radius .wx-switch-input::before,
switch.radius .uni-switch-input::after,
switch.radius .uni-switch-input,
switch.radius .uni-switch-input::before {
border-radius: 10upx;
}

switch .wx-switch-input::before,
radio.radio::before,
checkbox .wx-checkbox-input::before,
radio .wx-radio-input::before,
switch .uni-switch-input::before,
radio.radio::before,
checkbox .uni-checkbox-input::before,
radio .uni-radio-input::before {
display: none;
}

标签:24,checkbox,2024.4,switch,radio,input,wx,before
From: https://www.cnblogs.com/luoqingci/p/18177944

相关文章

  • 概率学习2(2024-5-7)
       1.数据总体population、横截面研究cross-sectionalstudy,周期cycle,纵向研究longtitudinalstudy,记录record,参与调查的人respondent、样本sample、有代表性representative、过度抽样oversampling、原始数据rawdata、重编码recode、数据清洗datacleaning。 数据......
  • YC281A [ 20240429 CQYC省选模拟赛 T1 ] 玫瑰(rose)
    题意给定数列\(A,B,C\),每次操作,你可以花\(1\)的代价将\(A_i\)或\(B_i\)或\(C_i\)增加\(1\)。求使得三个数列每个元素排名相同的最小代价。\(n\le500\)Sol很厉害的题目。首先注意到这个最优方案只和前缀最大值有关,考虑设\(f_{i,j,k}\)表示当前状态枚举到了......
  • 2024.5.5 模拟赛
    seq对于\(n\leq15\),枚举每个子序列然后排序计算即可。时间复杂度\(\mathcalO(2^nn\logn)\)。对于\(A_i\)互不相同,可以枚举每个元素的贡献。即若\(A_i\)满足在某一子序列中排名第\(A_i\),则有\(1\)的贡献。也就是当\(1\simA_i\)都被选择时才能有贡献。而大于\(A......
  • 2024平航个人赛
    流量1、成功入侵网站的ip是192.168.5.214观察协议分级,发现主要是tcp的http报文为主使用统计功能,发现最多的分组是192.168.5.146,其次是192.168.5.214和192.168.5.157进行排查发现5.157的攻击者在1秒钟之内向5.146完成了所有的http请求,猜测5.157的攻击者只是实施了扫描或者......
  • 2024.5 模拟赛日志
    NOI2024数据结构选讲「广铁一中张冀飞」(20240427)多校NOI2024国赛模拟赛8(20240429)多校NOI2024国赛模拟赛9(20240430)NOI2024简单杂题选讲「金华一中毛艺婷」(20240501)多校NOI2024国赛模拟赛10(20240503)NOI2024网络流问题及其简单应用「重庆八中谢自均」(20240506)剩余7题。最小割......
  • Summer '24来啦!15个最热门的功能抢先看!
    SalesforceSummer'24即将发布!本篇文章我们将深入了解Summer'24最热门的声明性功能。01自动化Lightning应用程序新的自动化Lightning应用程序中包含所有与自动化相关的内容。访问该应用程序的用户可以在主应用程序中看到Flow、错误信息和其他基于社区的链接。02Einsteinf......
  • 2024 js预编译
    1、一切未声明定义的变量(没有var)是全局变量属于window全局域2、全局声明定义的变量是全局变量属于window全局域functiontest(){vara=b=123}test()//console.log(a)//报错aisnotdefinedconsole.log(window.a)//undefinedconso......
  • 力扣741 2024.5.6
    原题网址:https://leetcode.cn/problems/cherry-pickup/description/?envType=daily-question&envId=2024-05-06个人难度评价:1800分析:自然的想到分两次dp,第一次dp后修改格点值,然后进行第二次dp。这种做法是错误的:第一次dp的过程中,每次选择都对第二次dp产生后效性。明显从左上到......
  • fedora 40 迁移 kubuntu 24 (ubuntu)
    前言https://kubuntu.org/getkubuntu/国内很多软件都是偏好deb包的,fedora(cinnamon)也能用,就是得装一个沙箱环境flatpak,不与系统共享lib,往往导致/var/lib/flatpak非常臃肿:8G~15G。用不惯gnome,我习惯了windows的操作习惯,主要是想加上最大化、最小化按钮,宁愿用户额外装个包,也不愿......
  • ICPC2024 武汉邀请赛 题解
    2024ICPCNationalInvitationalCollegiateProgrammingContest,WuhanSiteB-CountlessMeSolution显然,只能执行\(n\)次操作是没用的条件我们只需要把和\(sum\)分给\(n\)个数,使得\(n\)个数的或和最小即可从高到低考虑每一位,假设此时枚举到第\(i\)位如果这一......