Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit b7f098c6 authored by 62160286's avatar 62160286
Browse files

Add font-size and font-color

parent 27a12d74
No related branches found
No related tags found
No related merge requests found
<template>
<div @click="clickCell">{{ player }}</div>
<div
@click="clickCell"
:class="{ cell: true, cellX: player === 'X', cellO: player === 'O' }"
>
{{ player }}
</div>
</template>
<script>
export default {
......@@ -14,4 +19,14 @@ export default {
}
}
</script>
<style></style>
<style>
.cell {
font-size: 30pt;
}
.cellX {
color: blue;
}
.cellO {
color: red;
}
</style>
......@@ -149,4 +149,10 @@ table {
margin-right: auto;
border: 1px solid black;
}
td {
text-align: center;
vertical-align: middle;
width: 50pt;
height: 50pt;
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment