1 Star 1 Fork 0

飘尘/日历小组件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.css 2.65 KB
一键复制 编辑 原始数据 按行查看 历史
飘尘 提交于 2023-11-19 13:13 . init
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body{
width: 100%;
height: 100vh;
}
.text-container{
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 100%;
}
.text-item{
width: 100%;
height: 15%;
display: flex;
justify-content: center;
align-items: center;
margin-top: 2%;
font-size: max(1.2vw, 1.1rem);
}
.text-item span, .text-item label{
font-weight: 300;
margin-right: 1vw;
user-select: none;
color: rgb(58, 58, 58);
}
.text-item input{
border: none;
background-color: transparent;
outline: none;
border-bottom: 1px solid #aaaaaa;
padding-bottom: 2px;
padding-left: 2px;
font-size: max(0.8vw, 1rem);
transition: all .2s;
font-weight: 300;
}
.text-item input:hover, .text-item input:focus{
border-bottom: 1px solid #1e1e1e;
}
.calendar-container{
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 100%;
}
.calendar-controls-container{
margin-top: 5vh;
width: 100%;
height: 8vh;
display: flex;
align-items: center;
justify-content: center;
font-size: max(1.2vw, 1.1rem);
}
.now{
width: 20%;
display: flex;
justify-content: center;
align-items: center;
font-weight: 600;
}
.base-btn{
background-color: transparent;
border-radius: 5px;
width: 5%;
height: 70%;
border: 1px solid rgb(58, 58, 58);
font-weight: 600;
cursor: pointer;
transition: all .2s;
}
.base-btn:hover{
background-color: rgba(0, 0, 0, .05);
}
.left{
float: left;
margin-left: 20%;
}
.right{
float: right;
margin-right: 20%;
}
.calendar-main{
width: 50%;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
align-content: flex-start;
border: 1px solid rgba(58, 58, 58, .4);
border-radius: 10px;
}
.calendar-row{
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 8vh;
user-select: none;
}
.calendar-item{
display: flex;
justify-content: center;
align-items: center;
width: 12%;
}
.calendar-date{
cursor: pointer;
transition: all .2s;
}
.calendar-date:hover, .calendar-date-focus{
background-color: rgba(0, 0, 0, .1);
}
.calendar-date-selected{
border: 1px dashed rgba(0, 0, 0, .5);
}
.calendar-date-violate{
border: 1px solid red;
}
.violate-container{
margin-top: 2.5vh;
width: 100%;
display: flex;
justify-content: center;
}
.violate-container button{
width: 10%;
height: 5vh;
border: 1px solid rgb(58, 58, 58);
font-weight: 600;
cursor: pointer;
transition: all .2s;
background-color: transparent;
border-radius: 10px;
font-weight: 300;
}
.violate-container :hover{
opacity: .6;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/piao-chen/calendar-widget.git
git@gitee.com:piao-chen/calendar-widget.git
piao-chen
calendar-widget
日历小组件
master

搜索帮助