Skip to content

Commit

Permalink
styling+adaptive
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavydov committed Dec 3, 2023
1 parent 17338b7 commit 539dc3d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ body {
flex-direction: column;
align-items: center;
margin: 20px;
background-color: #f5f5f5; /* Цвет фона страницы */
}

/* Стили для панели управления */
#controls {
margin-bottom: 10px;
display: flex;
flex-wrap: wrap;
gap: 10px;
}

/* Стили для игрового поля */
Expand All @@ -27,10 +31,19 @@ body {

/* Стили для активных клеток */
.cell.active {
background-color: #3498db;
background-color: #3498db; /* Цвет клетки */
}

/* Стили для отображения текущего поколения */
#generation {
margin-top: 10px;
font-size: 18px;
}

/* Адаптивная верстка */
@media screen and (max-width: 600px) {
#controls {
flex-direction: column;
align-items: flex-start;
}
}

0 comments on commit 539dc3d

Please sign in to comment.