|
@@ -1182,20 +1182,28 @@ const submitMove = () => {
|
|
|
|
|
|
|
|
.box-item {
|
|
.box-item {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- aspect-ratio: 0.8;
|
|
|
|
|
border: 1px solid #ddd;
|
|
border: 1px solid #ddd;
|
|
|
- display: flex;
|
|
|
|
|
- flex-direction: column;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
color: #333;
|
|
color: #333;
|
|
|
background: #fff;
|
|
background: #fff;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+
|
|
|
|
|
+ /* 使用伪元素实现宽高比,兼容安卓WebView */
|
|
|
|
|
+ &::before {
|
|
|
|
|
+ content: '';
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ padding-top: 125%; /* 0.8的宽高比 = 1/0.8 = 125% */
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
.box-label {
|
|
.box-label {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 50%;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
font-size: 11px;
|
|
font-size: 11px;
|
|
|
color: #666;
|
|
color: #666;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -1236,8 +1244,11 @@ const submitMove = () => {
|
|
|
cursor: default;
|
|
cursor: default;
|
|
|
|
|
|
|
|
.sub-grid {
|
|
.sub-grid {
|
|
|
- width: 100%;
|
|
|
|
|
- height: 100%;
|
|
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 3px;
|
|
|
|
|
+ left: 3px;
|
|
|
|
|
+ right: 3px;
|
|
|
|
|
+ bottom: 3px;
|
|
|
display: grid;
|
|
display: grid;
|
|
|
gap: 2px;
|
|
gap: 2px;
|
|
|
}
|
|
}
|