Xeverything11 (talk | contribs)
m fix
Xeverything11 (talk | contribs)
m tweaks
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
.root-category-box {
.root-category-box {
   display: inline-block;
   display: flex;
  flex-wrap: wrap;
}
}


.root-category-item {
.root-category-item {
   width: calc(16.6% - 1rem - 1px);
   flex: 14.5%;
   margin: 0.5rem;
   margin: 0.5rem;
   height: 6rem;
   height: 6rem;
Line 39: Line 40:
   right: 0;
   right: 0;
   display: flex;
   display: flex;
   justify-content: stretch;
   justify-content: center;
   align-items: center;
   align-items: center;
   font-weight: 500;
   font-weight: 500;
Line 62: Line 63:
@media screen and (max-width: 900px) {
@media screen and (max-width: 900px) {
   .root-category-item {
   .root-category-item {
     width: calc(33.3% - 1rem - 1px);
     flex: 26%;
   }
   }
}
}
Line 68: Line 69:
@media screen and (max-width: 480px) {
@media screen and (max-width: 480px) {
   .root-category-item {
   .root-category-item {
     width: calc(50% - 1rem - 1px);
     flex: 34%;
   }
   }
}
}

Latest revision as of 20:59, 13 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 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6rem !important;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s;
}

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

.root-category-textbox {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  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-item:hover .root-category-textbox {
  transform: scale(1.2);
  background-color: rgba(255,255,255,0.8);
}

.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: 34%;
  }
}

This category currently contains no pages or media.