diff --git a/src/App.vue b/src/App.vue index 6b1bf3e395d4e0a4336e4d6c93d754fb3b517bbc..3053bd09f4e4cd4de6fbc83281e75dfa988de099 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,28 +1,148 @@ diff --git a/src/assets/main.css b/src/assets/main.css index 82a2b7b3339a36eac4dba6700685f2adba3311b1..a8b5d222b9b7b01696ce19a54b90278903899a61 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,6 +1,6 @@ @import "./base.css"; -*{ +* { margin: 0; padding: 0; } @@ -9,5 +9,79 @@ margin: 0 auto; font-weight: normal; + cursor: pointer; } +.content { + padding: 6px; + box-sizing: border-box; +} + +.flex-between { + display: flex; + justify-content: space-between; + align-items: center; +} + +input { + width: 60px; +} + +.border-top { + border-top: 1px solid #ccc; +} + +.content-lattice { + display: flex; + justify-content: center; +} + +.row { + display: flex; + flex-direction: column; +} + +.col { + width: 20px; + height: 20px; + text-align: center; + line-height: 20px; + position: relative; +} + +.col::after { + content: ''; + line-height: 0px; + text-align: center; + height: 1px; + width: 100%; + background: #999; + position: absolute; + top: calc(50% - 1px); + left: 0; +} + +.col::before { + content: ''; + width: 1px; + height: 100%; + background: #999; + position: absolute; + left: calc(50% - 1px); + top: 0; +} + +.isWhite::after { + content: 'O'; + color: brown; +} + +.isBlack::after { + content: 'O'; + color: black; +} + +.isWin::after { + content: 'O'; + color: red; +} \ No newline at end of file