Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanyuktha prabhu patch 1 #2366

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions projects/Tic-tac-toe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ height: 5vh;
position: absolute;
height: 100%; /* Full height of the slider */
width: 50%; /* Half width for highlighting X or O */
background-color: #4caf50; /* Green color for the active player */
background-color: #4d194d; /* Green color for the active player */
border-radius: 20px; /* Rounded edges */
transition: left 0.3s ease; /* Smooth transition */
border: none; /* Remove default button border */
Expand All @@ -44,7 +44,7 @@ height: 5vh;
text-align: center;
font-size: 1rem;
font-weight: bold;
color: #333; /* Text color */
color: #fde4cf; /* Text color */
background: none; /* Remove default button background */
border: none; /* Remove default button border */
outline: none; /* Remove default button outline */
Expand All @@ -63,7 +63,7 @@ height: 5vh;
left: 50%;
transform: translate(-50%, -50%); /* Center the message */
background-color: whitesmoke; /* Blue background */
color: #2777b8; /* White text */
color: #a4133c; /* White text */
padding: 20px;
border-radius: 10px;
font-size: 2rem;
Expand Down Expand Up @@ -124,12 +124,12 @@ border-right: 0;
cursor: pointer;
border-radius: 5px; /* Rounded corners */
border: none; /* Remove border */
background-color: #4CAF50; /* Green background */
color: white; /* White text color */
background-color:#065a60; /* aesthetic cobalish background */
color: #faf0ca; /* creamy text color */
transition: background-color 0.3s, transform 0.3s; /* Transition effects */
}
#reset:hover {
background-color: #45a049; /* Darker green on hover */
background-color:#144552; /* Darker green on hover */
transform: scale(1.01); /* Slightly enlarge on hover */
}
#multiplayer{
Expand All @@ -141,20 +141,20 @@ border-right: 0;
cursor: pointer;
border-radius: 5px; /* Rounded corners */
border: none; /* Remove border */
background-color: #4CAF50; /* Green background */
color: white; /* White text color */
background-color: #065a60; /* aesthetic cobaltish background */
color: #faf0ca; /* creamy text color */
transition: background-color 0.3s, transform 0.3s; /* Transition effects */
}
#multiplayer:hover{
background-color: #45a049; /* Darker green on hover */
transform: scale(1.01); /* Slightly enlarge on hover */
background-color: #144552; /* Darker green on hover */
transform: scale(1.02); /* Slightly enlarge on hover */
}
/* Winning line styling */
#winning-line {
position: absolute;
height: 10px;
width: 300px;
background-color: #45a049; /* Red line to indicate win */
background-color: #028090; /* Red line to indicate win */
display: none; /* Hidden initially */
z-index: 10;
transition: all 0.5s ease; /* Smooth transition */
Expand Down
Loading