-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
151 lines (145 loc) · 2.86 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
body{
font-family:'Montserrat',sans-serif;
margin:0 auto; /*居中对齐*/
max-width: 720px; /*设置最大宽度*/
}
.header-area{
display:flex;
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
height:50px; /*height: 100vh; 使用视口高度确保容器填充整个屏幕 */
background-color: #424242;
}
.logo{
font-weight: 700;
font-size: 18px;
color:rgb(211, 211, 211);
}
.area-1{
display: flex;
flex:wrap; /*允许换行*/
gap:10px;
margin-top:20px;
margin:10px;
/* padding: 5px;这设置每个 feature-block 之间的间隔,使其更整洁 */
align-items: stretch;
}
.feature-block {
display: flex;
flex-direction: column;/* 子元素从上到下堆叠 */
flex:1;
align-items: center;
/* justify-content: center; */
text-align: center;
min-width: calc(33.33% -10px);
box-sizing: border-box;/* 确保边框和内边距在宽度内 */
border: 1px solid gray;
padding: 5px;
justify-content: space-between; /* 在元素之间分配空间,这样按钮将被推到底部 */
}
.feature-title{
color: #008c8c;
text-decoration: none;
font-weight:700;
font-size:12px;
padding:10px;
}
.feature-desc{
color:gray;
padding: 5px;
font-weight:400;
font-size:8px;
}
.feature-btn{
padding: 10px 20px; /* 按钮内的空间填充 */
margin:10px;
background-color: #008c8c;
border-radius: 3px; /* 圆角 */
font-size: 16px; /* 文字大小 */
color: white; /* 文字颜色 */
text-decoration: none; /* 去掉链接默认的下划线 */
transition: background-color 0.3s; /* 背景颜色过渡效果 */
}
.feature-btn:hover{
background-color: gray;
}
.card {
max-width: 400px;
max-height: 400px;
position: relative;
margin: 0 auto;
margin-top: 0px;
}
.pick{
width:400px;
height:100px;
position:relative;
margin: 0 auto;
margin-top: -10px;
}
.source {
display: block;
width: 100%;
height: 100%;
/* object-fit: cover;*/
}
.source1 {
position: absolute;
inset: 0;
display: block;
width: 100%;
height: 100%;
opacity: .95;
mix-blend-mode:multiply;
}
.source2 {
position: absolute;
inset: 0;
display: block;
width: 100%;
height: 100%;
opacity: .15;
mix-blend-mode:soft-light;
}
.skirt {
position: absolute;
inset: 0;
background: var(--my-color);
--mask: url('imgs/box_body.png') 50% 50% / cover;
mask: var(--mask);
-webkit-mask: var(--mask);
mix-blend-mode: multiply;
}
.skirt2 {
position: absolute;
inset: 0;
background: var(--my-color2);
--mask2: url('imgs/box_cover.png') 50% 50% / cover;
mask: var(--mask2);
-webkit-mask: var(--mask2);
mix-blend-mode: multiply;
}
:root {
--my-color: red;
--my-color2:#008c8c;
}
#colorPicker {
width: 50px;
height: 50px;
margin-top: -10px;
margin-left: 50px;
position: relative;
z-index: 10;
}
#colorPicker2 {
width: 50px;
height: 50px;
margin-top: -10px;
margin-left: 50px;
position: relative;
z-index: 11;
}
.my_name{
font-size: 6px;
text-align: center;
}