Xeverything11 (talk | contribs)
add css
Xeverything11 (talk | contribs)
extra css
Line 16: Line 16:
.root-category-item:nth-child(even) {
.root-category-item:nth-child(even) {
   border: 1px solid var(--color-primary2);
   border: 1px solid var(--color-primary2);
}
.root-category-item p {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.root-category-item p span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.root-category-item p span a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
}


Line 21: Line 47:
   position: absolute;
   position: absolute;
   top: 0;
   top: 0;
  bottom: 0;
   left: 0;
   left: 0;
   right: 0;
   width: 100%;
  height: 100%;
   object-fit: cover;
   object-fit: cover;
   transform: scale(1);
   transform: scale(1);

Revision as of 19:10, 12 April 2025

.root-category-box {
  display: flex;
  flex-wrap: wrap;
}

.root-category-item {
  flex: 14.5%;
  margin: 0.5rem;
  height: 6rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-primary1);
}

.root-category-item:nth-child(even) {
  border: 1px solid var(--color-primary2);
}

.root-category-item p {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.root-category-item p span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.root-category-item p span a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.root-category-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s;
}

.root-category-item img:hover {
  transform: scale(1.1);
}

.root-category-textbox {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  text-align: center;
  text-transform: lowercase;
  color: black;
  background-color: rgba(255,255,255,0.7);
  padding: 0 10%;
  transform: scale(1);
  transition: transform 0.5s, background-color 0.5s;
}

.root-category-textbox:hover {
  transform: scale(1.2);
}

.root-category-text a {
  color: black;
}

@media screen and (max-width: 900px) {
  .root-category-item {
    flex: 26%;
  }
}

@media screen and (max-width: 480px) {
  .root-category-item {
    flex: 51%;
  }
}

This category currently contains no pages or media.