battleship/demo/dbclickrotate/style.css

39 lines
528 B
CSS
Raw Normal View History

2022-09-14 09:34:39 +00:00
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.ship {
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
.ship.vertical {
flex-direction: column;
}
.ship span {
width: 40px;
height: 40px;
background-color: orange;
}
.ship .head {
border-radius: 20px 0 0 20px;
}
.ship .tail {
border-radius: 0 10px 10px 0;
}
.ship.vertical .head {
border-radius: 20px 20px 0 0;
}
.ship.vertical .tail {
border-radius: 0 0 10px 10px;
}