view mrjunejune/src/tools/index.css @ 208:5d3e116dd745

[MrJuneJune] made it more mobile friendly.
author MrJuneJune <me@mrjunejune.com>
date Sun, 15 Feb 2026 12:33:54 -0800
parents 3bdfffaad162
children
line wrap: on
line source

.title {
  color: var(--darkgray);
}

.nav-list {
  list-style: none;
  padding: 0;
}

.nav-list li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
  group; 
}

/* The Mini Sphere */
.sphere {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 15px;
  background: var(--darkgray);
  box-shadow: 0 0 10px rgba(68, 136, 255, 0.5);
  transition: all 0.3s ease;
  opacity: 0.5; /* Dim when not active */
}

/* The Text */
.nav-list a {
  color: var(--darkgray);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

/* Hover Effects */
.nav-list li:hover .sphere {
  opacity: 1;
  transform: scale(1.5);
  box-shadow: 0 0 20px var(--awesome);
  animation: pulse 1.5s infinite; /* Only pulses on hover */
}

.nav-list li:hover a {
  color: var(--awesome);
}

/* Simple pulse animation for the list version */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(68, 136, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(68, 136, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(68, 136, 255, 0); }
}

/* Mobile responsive */
@media (max-width: 720px) {
  .title {
    font-size: 2rem;
  }

  .nav-list a {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .nav-list li {
    margin-bottom: 1.5em;
    padding: 0.5em 0;
  }

  .sphere {
    width: 14px;
    height: 14px;
    margin-right: 12px;
  }
}