Skip to content

Commit

Permalink
Merge pull request anuragverma108#3538 from Amankr200/allignment-#3536
Browse files Browse the repository at this point in the history
  • Loading branch information
sailaja-adapa authored Oct 16, 2024
2 parents c9583bd + 96f2a16 commit 534d426
Showing 1 changed file with 62 additions and 52 deletions.
114 changes: 62 additions & 52 deletions assets/css/visitors.css
Original file line number Diff line number Diff line change
@@ -1,65 +1,75 @@
.visitor-counter {
position: fixed;
top: 570px;
left: 10px;
background-color: transparent;
height: 100px;
width: 100px;
color: black;
font-weight: 700;
font-size: 18px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
border-radius: 200px;
backdrop-filter: blur(5px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
0 1px 3px rgba(0, 0, 0, 0.08);
z-index: 1000;
}

.visitor-counter div:first-child {
margin-bottom: 5px;
}

.website-counter {
font-size: 24px;
}

@media screen and (max-width: 768px) {
.visitor-counter {
position: fixed;
top: 570px;
left: 10px;
background-color: rgba(255, 255, 255, 0.8); /* Slightly opaque background for better visibility */
height: 100px;
width: 100px;
color: #333; /* Darker text for better contrast */
font-weight: 700;
font-size: 18px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
border-radius: 12px; /* Softer corners */
backdrop-filter: blur(10px); /* Increased blur for a modern touch */
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), /* Slightly more pronounced shadow */
0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 1000;
transition: all 0.3s ease; /* Smooth transition for hover effect */
}

.visitor-counter:hover {
transform: scale(1.05); /* Slightly enlarge on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.visitor-counter div:first-child {
margin-bottom: 5px;
font-size: 14px; /* Adjusted for clarity */
letter-spacing: 1px; /* Increased spacing for readability */
}

.website-counter {
font-size: 24px;
font-family: 'Arial', sans-serif; /* Consistent font family */
}

@media screen and (max-width: 768px) {
.visitor-counter {
height: 100px;
width: 100px;
font-size: 16px;
}
.website-counter {
}

.website-counter {
font-size: 20px;
}
}

@media screen and (max-width: 480px) {
.visitor-counter {
}

@media screen and (max-width: 480px) {
.visitor-counter {
height: 80px;
width: 80px;
font-size: 14px;
}

.website-counter {
font-size: 18px;
}
}

.dark-mode .visitor-counter div{
color: white;
}
.dark-mode .visitor-counter .website-counter{
color: white;
.website-counter {
font-size: 18px;
}
}

.dark-mode .visitor-counter div {
color: #f0f0f0; /* Lighter text for dark mode */
}

.dark-mode .visitor-counter .website-counter {
color: #f0f0f0; /* Lighter color for consistency */
}

.dark-mode .visitor-counter {
backdrop-filter: blur(5px);
box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1),
0 1px 3px rgba(255, 255, 255, 0.08);
}
.dark-mode .visitor-counter {
background-color: rgba(0, 0, 0, 0.7); /* Darker background for dark mode */
box-shadow: 0 6px 12px rgba(255, 255, 255, 0.1),
0 2px 4px rgba(255, 255, 255, 0.05);
}

0 comments on commit 534d426

Please sign in to comment.