oazaSrdceWeb / css / blog.css
blog.css
Raw
@font-face {
  font-family: "Faculty";
  src: url("font/FacultyGlyphic-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
.spacer {
  height: 100px;
}
.spacer2 {
  height: 70px;
}
.spacer3 {
  height: 5px;
}
.spacer3-5 {
  height: 10px;
}
.spacer4 {
  height: 20px;
}
.spacer50 {
  height: 50px;
}

.heading2 {
  font-family: "Faculty", sans-serif;
  font-size: 55px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
  color: #0071bc;
}
.heading3 {
  font-family: "Faculty", sans-serif;
  font-size: 55px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}
.biggerGone {
  display: none;
}
/*
  NAVBAR SECTION
  */

nav {
  background: linear-gradient(180deg, #a5d2fc, #ffff, #a5d2fc);
}
.navLinks {
  font-weight: 400;
  font-size: 20px;
  font-family: "Faculty", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navLinks .link {
  width: 60px;
  position: relative;
  padding-bottom: 10px;
  text-decoration: none;
}
.navLinks .link a {
  color: #0071bc;
}
.navLinks .link a:hover {
  color: #0c8ce1;
  text-decoration: none;
}

.navLinks .expandable .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(180deg, #a5d2fc, #ffff, #ffff, #a5d2fc);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.navLinks .expandable:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 8px 16px;
  color: black;
}

.submenu a:hover {
  text-decoration: none;
}

/*
NAVBAR SECTION END
-----
*/

/*
NEWINFO SECTION 
*/

.newInfo {
  background: linear-gradient(180deg, #a5d2fc, #a5d2fc, #a5d2fc, #a5d2fc);
}
.newInfo .row {
  display: flex;
  justify-content: center; /* Horizontálně vystředí obsah */
  flex-wrap: wrap; /* Umožní zalamování */
}
a.card-link {
  text-decoration: none;
  color: black;
  display: block; /* Zajistí, že odkaz se chová jako blokový prvek */
  margin: 15px;
}

a.card-link:hover {
  text-decoration: none;
  color: black;
  transform: scale(1.02); /* Mírně zvětší box */
}

a.card-link .card {
  background: linear-gradient(180deg, #a5d2fc, #fff, #fff, #a5d2fc);
  max-width: 300px;
  border-radius: 15px;
  border: none;
  margin: 0 auto; /* Vycentruje kartu(div) ve sloupci */
}

a.card-link .card img {
  border-radius: 15px;
  height: 190px;
  width: 270px;
  margin-top: 5px;
}

a.card-link .card h4 {
  font-weight: 600;
  font-size: 28px;
  margin-top: 3px;
  margin-bottom: 3px;
}

/*
  NEWINFO SECTION END
  -----
  */

/*
TIPS SECTION

*/
.tips {
  background: linear-gradient(180deg, #a5d2fc, #fff, #fff, #a5d2fc);
}
.articleCart {
  background: linear-gradient(180deg, #a5d2fc, #d0e7fb, #a5d2fc, #d0e7fb);
  border-radius: 15px;
  max-width: 1100px;
}
.photoPart {
  align-items: start;
}
.tipsPhotoTop img {
  width: 100%;
  height: 165px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.tipsPhotoBott img {
  width: 83.5px;
  height: 60px;
  margin-top: 2px;
}
.leftPhoto {
  border-bottom-left-radius: 15px;
}
.rightPhoto {
  border-bottom-right-radius: 15px;
}

.articleContent {
  padding: 10px;
}
.articleContent h1 {
  font-family: "Faculty", sans-serif;
  margin-top: 10px;
}
.articleContent img {
  width: 23%;
  height: auto;
  margin: 5px;
}

.articleContent img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.articleContent p {
  margin-left: 15px;
  font-size: 17px;
  max-width: 730px;
}

/*
  TIPS SECTION END
  -----
  */

footer {
  background: linear-gradient(180deg, #a5d2fc, #d0e7fb, #a5d2fc);
}
footer a:hover {
  text-decoration: none;
  color: black;
}

footer a {
  text-decoration: none;
  color: black;
}

/* Větší tablet & menší notebook */
@media (min-width: 992px) and (max-width: 1200px) {
  a.card-link {
    margin: 14px;
  }

  a.card-link .card {
    max-width: 270px;
  }

  a.card-link .card img {
    height: 160px;
    width: 240px;
  }

  a.card-link .card h4 {
    font-size: 24px;
  }
  .articleCart .tipsPhotoBott img {
    width: 72px;
    height: 50px;
  }
  .articleContent p {
    font-size: 15px;
  }
}
/* Větší tablet & menší tablet */
@media (min-width: 768px) and (max-width: 992px) {
  a.card-link {
    margin: 12px;
  }

  a.card-link .card {
    max-width: 230px;
  }

  a.card-link .card img {
    height: 120px;
    width: 200px;
  }

  a.card-link .card h4 {
    font-size: 20px;
  }
  .articleCart .tipsPhotoTop img {
    height: 145px;
  }
  .articleCart .tipsPhotoBott img {
    width: 52px;
    height: 40px;
  }
  .articleContent p {
    font-size: 13px;
  }
  .articleContent h1 {
    font-size: 30px;
  }
  .articleContent {
    max-height: 195px;
  }
}
/* Tablet  */
@media (min-width: 577px) and (max-width: 768px) {
  .showSmTablet {
    display: block;
  }
  .hideSmTablet {
    display: none;
  }
  a.card-link {
    margin: 12px;
  }

  a.card-link .card {
    max-width: 190px;
  }

  a.card-link .card img {
    height: 115px;
    width: 160px;
  }

  a.card-link .card h4 {
    font-size: 18px;
  }
  .articleContent a img {
    width: 16%;
  }
}
/* Mobilní styl */
@media (max-width: 576px) {
  .smallGone {
    display: none;
  }
  .smallShow {
    display: block;
  }
  a.card-link {
    margin: 12px;
  }

  a.card-link .card {
    max-width: 190px;
  }

  a.card-link .card img {
    height: 115px;
    width: 160px;
  }

  a.card-link .card h4 {
    font-size: 18px;
  }
  .articleContent a img {
    width: 16%;
  }
}