Files
win12/widgets.css
T
tjy-gitnub 48bc2360ff v6.0.0 文件系统,窗口大小,天气小组件,任务栏小组件
-新增文件系统(由 @NB-Group 之后提供)
-窗口大小调整功能(由 @User782Tec 提供)
-保存桌面布局(由 @User782Tec 提供)
-天气小组件(由 @tjy-gitnub 提供)
-小组件添加到任务栏(由 @tjy-gitnub 提供,目前仅支持天气小组件)
-引入全新提示框(由 @tjy-gitnub 提供)
-新的反馈通道
-修复了有时开机动画不能正确显示的问题
-修复了登录界面不显示的问题
-适配新的主题格式,加速预览图显示
-细节优化和修复
2023-06-18 21:55:28 +08:00

208 lines
3.7 KiB
CSS

.wg {
border-radius: 10px;
box-shadow: 1px 2px 5px var(--sd);
overflow: hidden;
transition: 200ms;
}
.wg>.titbar {
display: flex;
flex-direction: row-reverse;
}
.wg>.titbar>.more {
border-radius: 50%;
width: 25px;
height: 25px;
background-color: var(--bggrey);
box-shadow: 2px 2px 5px var(--sd);
margin: 3px 3px 0 0;
text-align: center;
overflow: hidden;
z-index: 1;
}
.wg>.titbar>.more>.bi {
display: block;
}
.wg>.titbar>.more:hover>.bi {
background: var(--hover);
}
.wg>.titbar>.menu {
transition: 200ms cubic-bezier(0.9, 0, 0.1, 1);
max-width: 0;
box-shadow: 2px 2px 5px var(--sd);
overflow: hidden;
margin: 3px 3px 0 3px;
background-color: var(--bggrey);
border-radius: 12.5px;
height: 25px;
flex-grow: 1;
display: flex;
max-width: fit-content;
transform: scaleX(0);
transform-origin: right;
}
.wg>.titbar>.menu.show {
transform: scaleX(1);
}
.wg>.titbar>.menu>.a {
width: 25px;
height: 100%;
}
.wg>.titbar>.menu>.a>.bi {
margin-left: 4px;
}
.wg>.titbar>.menu>.a:first-child>.bi{
margin-left: 8px;
}
.wg>.titbar>.menu>.a:first-child,
.wg>.titbar>.menu>.a:last-child {
width: 28px;
}
.wg>.titbar>.menu>.a.img>img {
width: 18px;
height: 18px;
margin: 3.5px 0 3.5px 6px;
}
.wg>.titbar>.menu>.a:hover {
background-color: var(--hover);
}
.wg>.content {
width: 100%;
height: 100%;
margin-top: -28px;
}
.wg.toolbar{
border-radius: 8px;
height: 100%;
background-color: var(--bg70);
backdrop-filter: blur(20px) saturate(1.5);
-webkit-backdrop-filter: blur(20px) saturate(1.5);
box-shadow: 0 1px 2px #44444460, 0px 3px 25px 1px var(--sd);
margin: 0 3px;
}
.wg.toolbar>.titbar>.more{
width: 18px;
height: 18px;
font-size: 13px;
opacity: 0;
}
.wg.toolbar:hover>.titbar>.more{
opacity: 1;
}
.wg.toolbar>.titbar>.menu>.a.addtotb{
display: none;
}
.wg.calc{
grid-column-start: span 2;
grid-row-start: span 3;
}
.wg.calc>.content{
display: grid;
grid-template-areas:
"input input input input"
"pow sqrt c jia"
"n7 n8 n9 jian"
"n4 n5 n6 cheng"
"n1 n2 n3 chu"
"dot n0 back ans";
grid-template-columns: repeat(4,25%);
grid-template-rows: 25% repeat(5,15%);
gap: 0px;
}
.wg.calc>.content>input{
grid-area: input;
border: none;
outline: none;
background-color: #00000000;
font-size: 33px;
padding-top: 15px;
text-align: end;
color: var(--text);
width: 100%;
}
.wg.calc>.content>.b{
margin: 5px 5px;
font-size: 25px;
margin: 0;
border: 1px solid var(--hr);
text-align: center;
transition: 50ms;
background: var(--card);
}
.wg.calc>.content>.b.u{
/* padding-top: 3px; */
}
.wg.calc>.content>.b.ans{
border: none;
background-image: linear-gradient(120deg, var(--theme-1), var(--theme-2));
filter: opacity(0.7);
}
.wg.calc>.content>.b.ans:hover{
filter: none;
}
.wg.calc>.content>.b:hover{
background-color: var(--mm);
}
.wg.weather.menu{
grid-column-start: span 3;
grid-row-start: span 2;
}
.wg.weather>.content{
display: flex;
}
.wg.weather.menu>.content>.img{
width: 70px;
height: 100%;
background-size: cover;
margin: 0 10px;
}
.wg.weather.menu>.content>.text>.temperature{
font-size: 30px;
margin: 8px 0;
}
.wg.weather>.content>.text{
padding-top: 10px;
line-height: 1;
}
.wg.toolbar.weather>.content>.img{
width: 30px;
height: 100%;
margin: 0 5px 0 10px;
}
.wg.toolbar.weather>.content>.text{
font-size: 8px;
padding-top: 5px;
margin-right: 10px;
}
.wg.toolbar.weather>.content>.text>.temperature{
font-size: 18px;
}