gallery.css

← Back to explorer
static/ css/ gallery.css
Raw
CSS 191 lines · UTF-8
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
nav {
  position: absolute;
  top: 5%;
  right: 0;
  left: 0;
  width: 319px;
  display: table;
  margin: 0 auto;
  transform: translateY(-50%);
}

@media screen and (max-width: 768px) {
  nav {
    position: absolute;
    top: 7%;
    left: 0;
    right: 0;
    width: 30%;
    padding: 10% 75% 9% 1%;
    display: flex;
    flex-direction: row;
    font-size: 11px;
  }
  .file-grid {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-right: 40px;
    margin-left: 50px;
    margin-top: 100px;
  }
}


nav a {
  position: relative;
  width: 33.333%;
  display: table-cell;
  text-align: center;
  color: #949494;
  text-decoration: none;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: bold;
  padding: 10px 20px;
  transition: 0.2s ease color;
}

nav a:before,
nav a:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  transition: 0.2s ease transform;
}

nav a:before {
  top: 0;
  left: 10px;
  width: 6px;
  height: 6px;
}

nav a:after {
  top: 5px;
  left: 18px;
  width: 4px;
  height: 4px;
}

nav a:nth-child(1):before {
  background-color: yellow;
}

nav a:nth-child(1):after {
  background-color: red;
}

nav a:nth-child(2):before {
  background-color: #00e2ff;
}

nav a:nth-child(2):after {
  background-color: #89ff00;
}

nav a:nth-child(3):before {
  background-color: purple;
}

nav a:nth-child(3):after {
  background-color: palevioletred;
}

nav a:nth-child(4):before {
  background-color: darkgreen;
}


nav a:nth-child(4):after {
  background-color: lightgreen;
}


nav a:nth-child(5):before {
  background-color: darkblue;
}


nav a:nth-child(5):after {
  background-color: lightblue;
}

#indicator {
  position: absolute;
  left: 5%;
  bottom: 0;
  width: 30px;
  height: 3px;
  /* background-color: #fff; */
  border-radius: 5px;
  transition: 0.2s ease left;
}

nav a:hover {
  /* color: #fff; */
}

nav a:hover:before,
nav a:hover:after {
  transform: scale(1);
}

nav a:nth-child(1):hover ~ #indicator {
  background: linear-gradient(130deg, yellow, red);
}

nav a:nth-child(2):hover ~ #indicator {
  left: 28%;
  background: linear-gradient(130deg, #00e2ff, #89ff00);
}

nav a:nth-child(3):hover ~ #indicator {
  left: 49%;
  background: linear-gradient(130deg, purple, palevioletred);
}

nav a:nth-child(4):hover ~ #indicator {
  left: 70%;
  background: linear-gradient(130deg, green, yellow);
}

nav a:nth-child(5):hover ~ #indicator {
  left: 89%;
  background: linear-gradient(130deg, darkblue, lightblue);
}


.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 100px;
}
.file-card {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 1));
  border: 2px solid #000000;
  padding: 10px;
  box-shadow: 3px 3px 5px #ccc;
  border-radius: 5px;
  text-align: center;
}
.file-card img {
  max-width: 100%;
  max-height: 150px;
  border: 1px solid #ccc;
  border-radius: 10px;
}
.file-card p {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}

.file-card .default_icon {
  border: none;
}
a {
  color: #0066cc;
  text-decoration: none;
}
/* a:hover {text-decoration: underline;} */